/*
 * Site — inner pages
 * ---------------------------------------------------------------------------
 * Shared layout for every page that is not the home page: compact hero,
 * long-form prose (CMS content), card grids, checklists, contact form,
 * and alerts. Loads after base.css.
 */

/* Page hero */
.site-page-hero {
    padding: 9rem 0 3.5rem;
    background: linear-gradient(180deg, var(--rt-green-muted) 0%, var(--rt-green-light) 100%);
}

.site-page-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    max-width: 18ch;
}

.site-page-hero__lead {
    margin-top: 1.25rem;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--rt-muted);
    max-width: 60ch;
}

.site-page-hero__meta {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--rt-muted);
}

.site-page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Section shell */
.site-section {
    padding: 4.5rem 0;
    background: var(--rt-white);
}

.site-section--muted {
    background: var(--rt-green-light);
}

/* Long-form CMS content */
.site-prose {
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
}

.site-prose > * + * {
    margin-top: 1.15rem;
}

.site-prose h1,
.site-prose h2,
.site-prose h3,
.site-prose h4 {
    color: var(--rt-ink);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-top: 2.5rem;
}

.site-prose h1 { font-size: 1.875rem; }
.site-prose h2 { font-size: 1.5rem; }
.site-prose h3 { font-size: 1.25rem; }
.site-prose h4 { font-size: 1.0625rem; }

.site-prose > :first-child {
    margin-top: 0;
}

.site-prose a {
    color: var(--rt-green);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-prose ul,
.site-prose ol {
    padding-left: 1.5rem;
}

.site-prose li + li {
    margin-top: 0.5rem;
}

.site-prose strong {
    color: var(--rt-ink);
}

.site-prose blockquote {
    border-left: 3px solid var(--rt-green-accent);
    padding-left: 1.25rem;
    color: var(--rt-muted);
    font-style: italic;
}

.site-prose img {
    border-radius: var(--rt-radius);
}

/* Wide CMS tables must scroll rather than push the page sideways. */
.site-prose table {
    width: 100%;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
}

.site-prose th,
.site-prose td {
    border: 1px solid rgba(12, 12, 12, 0.1);
    padding: 0.65rem 0.85rem;
    text-align: left;
}

/* Empty-state for an unpublished page */
.site-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    border: 1px dashed rgba(12, 12, 12, 0.15);
    border-radius: var(--rt-radius);
    color: var(--rt-muted);
}

.site-empty i {
    font-size: 2rem;
    color: var(--rt-green-soft);
    margin-bottom: 1rem;
}

.site-empty h2 {
    font-size: 1.25rem;
    color: var(--rt-ink);
    margin-bottom: 0.5rem;
}

.site-empty a {
    color: var(--rt-green);
    font-weight: 700;
    text-decoration: underline;
}

/* Card grid */
.site-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.site-card {
    background: var(--rt-green-light);
    border-radius: var(--rt-radius);
    padding: 1.75rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.site-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(12, 12, 12, 0.08);
}

.site-card h3 {
    font-size: 1.0625rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.site-card p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--rt-muted);
}

.site-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 0.85rem;
    background: var(--rt-green);
    color: var(--rt-white);
    font-size: 1.05rem;
    margin-bottom: 1.1rem;
}

/* Help centre topic tiles */
.site-help__topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.site-help__topic {
    display: block;
    background: var(--rt-green-light);
    border-radius: var(--rt-radius);
    padding: 1.75rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.site-help__topic:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(12, 12, 12, 0.08);
}

.site-help__topic h3 {
    font-size: 1.0625rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.site-help__topic p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--rt-muted);
}

/* Numbered lists */
.site-checklist {
    counter-reset: check;
    list-style: none;
    margin-top: 2rem;
}

.site-checklist li {
    counter-increment: check;
    position: relative;
    padding-left: 2.75rem;
    line-height: 1.7;
    color: #374151;
}

.site-checklist li + li {
    margin-top: 1rem;
}

.site-checklist li::before {
    content: counter(check);
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--rt-green);
    color: var(--rt-white);
    font-size: 0.8125rem;
    font-weight: 800;
}

.site-steps-list {
    counter-reset: step;
    list-style: none;
    margin-top: 2rem;
}

.site-steps-list li {
    counter-increment: step;
    position: relative;
    padding-left: 3.25rem;
}

.site-steps-list li + li {
    margin-top: 1.75rem;
}

.site-steps-list li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--rt-green-soft);
}

.site-steps-list h3 {
    font-size: 1.0625rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.site-steps-list p {
    color: var(--rt-muted);
    line-height: 1.65;
}

.site-note {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--rt-green-accent);
    background: var(--rt-green-light);
    border-radius: 0 0.5rem 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--rt-muted);
    line-height: 1.65;
}

/* Contact */
.site-contact {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.site-contact__aside h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.site-contact__channels {
    list-style: none;
}

.site-contact__channels li {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.site-contact__channels li + li {
    margin-top: 1.25rem;
}

.site-contact__channels strong {
    display: block;
    font-size: 0.9375rem;
    margin-bottom: 0.15rem;
}

.site-contact__channels a,
.site-contact__channels span {
    font-size: 0.9375rem;
    color: var(--rt-muted);
    line-height: 1.55;
}

.site-contact__channels a:hover {
    color: var(--rt-green);
}

.site-contact__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 0.75rem;
    background: var(--rt-green-muted);
    color: var(--rt-green);
}

.site-contact__links {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(12, 12, 12, 0.08);
}

.site-contact__links h3 {
    font-size: 0.9375rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.site-contact__links ul {
    list-style: none;
}

.site-contact__links li + li {
    margin-top: 0.6rem;
}

.site-contact__links a {
    font-size: 0.9375rem;
    color: var(--rt-muted);
}

.site-contact__links a:hover {
    color: var(--rt-green);
}

.site-contact__form-wrap {
    background: var(--rt-green-light);
    border-radius: var(--rt-radius-lg);
    padding: 2.25rem;
}

/* Form */
.site-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.site-form__field {
    margin-bottom: 1.25rem;
}

.site-form__field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.site-form__optional {
    font-weight: 500;
    color: var(--rt-muted);
}

.site-form__field input,
.site-form__field select,
.site-form__field textarea {
    width: 100%;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--rt-ink);
    background: var(--rt-white);
    border: 1px solid rgba(12, 12, 12, 0.12);
    border-radius: 0.75rem;
    padding: 0.75rem 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-form__field textarea {
    resize: vertical;
    min-height: 9rem;
    line-height: 1.6;
}

.site-form__field input:focus,
.site-form__field select:focus,
.site-form__field textarea:focus {
    outline: none;
    border-color: var(--rt-green-mid);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rt-green-mid) 18%, transparent);
}

.site-form__field .has-error {
    border-color: #dc2626;
}

.site-form__error {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: #dc2626;
}

/* Honeypot — off-screen rather than display:none so bots still fill it. */
.site-form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.site-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.site-form__note {
    font-size: 0.8125rem;
    color: var(--rt-muted);
    line-height: 1.55;
    flex: 1 1 16rem;
}

.site-form__note a {
    color: var(--rt-green);
    text-decoration: underline;
}

/* Alerts */
.site-alert {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.15rem;
    border-radius: 0.85rem;
    margin-bottom: 1.75rem;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.site-alert strong {
    display: block;
    margin-bottom: 0.2rem;
}

.site-alert ul {
    margin: 0;
    padding-left: 1.1rem;
}

.site-alert--success {
    background: #dcfce7;
    color: #14532d;
}

.site-alert--error {
    background: #fee2e2;
    color: #7f1d1d;
}

@media (max-width: 992px) {
    .site-contact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-page-hero {
        padding: 7.5rem 0 2.5rem;
    }

    .site-form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .site-contact__form-wrap {
        padding: 1.5rem;
    }
}
