/* ==========================================================================
   Read Associates LLP — base styles + header/footer
   Color tokens match the brand color system (docs/color scheme reference).

   Typography note: 'Sohne' and 'Ivar Display' below are the same commercial
   fonts betterup.com uses, self-hosted from assets/fonts/. The Sohne files
   are Klim Type Foundry's official "Test" webfonts (licensed for evaluation
   only, not production) redistributed under a "personal use only" license
   by a third-party site; the Ivar Display file's embedded metadata suggests
   an unauthorized copy. Used here at the user's explicit instruction despite
   that — see PROGRESS.md for the full licensing note. 'Hanken Grotesk' /
   'Fraunces' (Google Fonts, freely licensed) stay in the stack as fallbacks
   for any weight/style not embedded below.
   ========================================================================== */

@font-face {
    font-family: 'Sohne';
    src: url('../fonts/sohne/sohne-extraleicht.woff2') format('woff2'),
         url('../fonts/sohne/sohne-extraleicht.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Sohne';
    src: url('../fonts/sohne/sohne-extraleicht-italic.woff2') format('woff2'),
         url('../fonts/sohne/sohne-extraleicht-italic.otf') format('opentype');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Sohne';
    src: url('../fonts/sohne/sohne-leicht.woff2') format('woff2'),
         url('../fonts/sohne/sohne-leicht.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Sohne';
    src: url('../fonts/sohne/sohne-leicht-italic.woff2') format('woff2'),
         url('../fonts/sohne/sohne-leicht-italic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Sohne';
    src: url('../fonts/sohne/sohne-buch.woff2') format('woff2'),
         url('../fonts/sohne/sohne-buch.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Sohne';
    src: url('../fonts/sohne/sohne-buch-italic.woff2') format('woff2'),
         url('../fonts/sohne/sohne-buch-italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Sohne';
    src: url('../fonts/sohne/sohne-kraftig.woff2') format('woff2'),
         url('../fonts/sohne/sohne-kraftig.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Sohne';
    src: url('../fonts/sohne/sohne-kraftig-italic.woff2') format('woff2'),
         url('../fonts/sohne/sohne-kraftig-italic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Sohne';
    src: url('../fonts/sohne/sohne-halbfett.woff2') format('woff2'),
         url('../fonts/sohne/sohne-halbfett.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Sohne';
    src: url('../fonts/sohne/sohne-halbfett-italic.woff2') format('woff2'),
         url('../fonts/sohne/sohne-halbfett-italic.otf') format('opentype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Sohne';
    src: url('../fonts/sohne/sohne-dreiviertelfett.woff2') format('woff2'),
         url('../fonts/sohne/sohne-dreiviertelfett.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Sohne';
    src: url('../fonts/sohne/sohne-dreiviertelfett-italic.woff2') format('woff2'),
         url('../fonts/sohne/sohne-dreiviertelfett-italic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Sohne';
    src: url('../fonts/sohne/sohne-fett.woff2') format('woff2'),
         url('../fonts/sohne/sohne-fett.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Sohne';
    src: url('../fonts/sohne/sohne-fett-italic.woff2') format('woff2'),
         url('../fonts/sohne/sohne-fett-italic.otf') format('opentype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Sohne';
    src: url('../fonts/sohne/sohne-extrafett.woff2') format('woff2'),
         url('../fonts/sohne/sohne-extrafett.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Sohne';
    src: url('../fonts/sohne/sohne-extrafett-italic.woff2') format('woff2'),
         url('../fonts/sohne/sohne-extrafett-italic.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Ivar Display';
    src: url('../fonts/ivar-display/ivar-display-regular.woff2') format('woff2'),
         url('../fonts/ivar-display/ivar-display-regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Ivar Display';
    src: url('../fonts/ivar-display/ivar-display-regular-italic.woff2') format('woff2'),
         url('../fonts/ivar-display/ivar-display-regular-italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Ivar Display';
    src: url('../fonts/ivar-display/ivar-display-medium.woff2') format('woff2'),
         url('../fonts/ivar-display/ivar-display-medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Ivar Display';
    src: url('../fonts/ivar-display/ivar-display-medium-italic.woff2') format('woff2'),
         url('../fonts/ivar-display/ivar-display-medium-italic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Ivar Display';
    src: url('../fonts/ivar-display/ivar-display-semibold.woff2') format('woff2'),
         url('../fonts/ivar-display/ivar-display-semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Ivar Display';
    src: url('../fonts/ivar-display/ivar-display-semibold-italic.woff2') format('woff2'),
         url('../fonts/ivar-display/ivar-display-semibold-italic.otf') format('opentype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Ivar Display';
    src: url('../fonts/ivar-display/ivar-display-bold.woff2') format('woff2'),
         url('../fonts/ivar-display/ivar-display-bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Ivar Display';
    src: url('../fonts/ivar-display/ivar-display-bold-italic.woff2') format('woff2'),
         url('../fonts/ivar-display/ivar-display-bold-italic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

:root {
    --ra-forest: #1E3A2F;
    --ra-forest-700: #142722;
    --ra-green: #6F8F3E;
    --ra-green-600: #587231;
    --ra-green-100: #E2EBCF;
    --ra-green-50: #F1F5E7;
    --ra-gold: #C4C368;
    --ra-gold-700: #9C9B49;
    --ra-gold-100: #F7F5E3;
    --ra-cream: #F3E9D8;
    --ra-paper: #FBF8F2;
    --ra-charcoal: #262622;
    --ra-gray-700: #57554C;
    --ra-gray-500: #8C8A7E;
    --ra-gray-300: #D9D6CB;
    --ra-gray-100: #F0EEE7;
    --ra-white: #FFFFFF;

    /* See the licensing note at the top of this file. 'Sohne' / 'Ivar Display'
       are the self-hosted files; Hanken Grotesk / Fraunces are the free,
       properly-licensed fallback if a given weight/style fails to load. */
    --font-sans: 'Sohne', 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
    --font-display: 'Sohne', 'Hanken Grotesk', system-ui, -apple-system, sans-serif;

    --header-height: 84px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--ra-charcoal);
    background: var(--ra-paper);
    line-height: 1.55;
}

/* ---------- Custom scrollbar ---------- */

html {
    scrollbar-width: thin;
    scrollbar-color: var(--ra-green) var(--ra-cream);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--ra-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--ra-green);
    border-radius: 999px;
    border: 2px solid var(--ra-cream);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ra-green-600);
}

h1, h2 {
    font-family: var(--font-display);
    font-weight: 400;
}

a {
    color: inherit;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 48px;
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 999px;
    padding: 12px 26px;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-cta {
    background: var(--ra-green);
    color: var(--ra-white);
}

.btn-cta:hover {
    background: var(--ra-green-600);
    transform: translateY(-1px);
}

/* ---------- Announcement bar ---------- */

.announcement-bar {
    background: var(--ra-gold);
}

.announcement-bar__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 12px;
    padding-bottom: 12px;
}

.announcement-bar__text {
    font-size: 14px;
    font-weight: 400;
    color: var(--ra-charcoal);
    text-align: center;
    padding: 0 40px;
}

.announcement-bar__text strong {
    font-weight: 700;
}

.announcement-bar__close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: var(--ra-charcoal);
    cursor: pointer;
}

.announcement-bar__close svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 640px) {
    .announcement-bar__text {
        font-size: 13px;
        padding: 0 32px;
    }
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--ra-paper);
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
    border-color: var(--ra-gray-300);
    box-shadow: 0 4px 16px rgba(30, 58, 47, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-height);
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.site-nav {
    flex-grow: 1;
}

.site-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
    justify-content: center;
}

.site-nav a {
    color: var(--ra-forest);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1px;
    position: relative;
    padding: 6px 0;
}

/* A button inside the nav keeps its own (white) label colour, not the nav-link colour. */
.site-nav .btn-cta {
    color: var(--ra-white);
}

.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -2px;
    height: 2px;
    background: var(--ra-gold);
    transition: right 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
    right: 0;
}

.site-nav__actions {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    margin-left: auto; /* keeps the hamburger right-aligned once .site-nav leaves the flow under 960px */
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ra-forest);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 960px) {
    .nav-toggle {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    .site-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--ra-paper);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
        display: flex;
        flex-direction: column;
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 24px 0;
    }

    .site-nav li {
        border-bottom: 1px solid var(--ra-gray-300);
    }

    .site-nav a {
        display: block;
        width: 100%;
        padding: 18px 0;
        font-size: 17px;
    }

    .site-nav a::after {
        display: none;
    }

    .site-nav__actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 24px;
        margin-top: auto;
    }

    .site-nav__actions .btn {
        width: 100%;
        display: inline-flex; /* the nav-link rule above sets display:block, which un-centres the label */
        padding: 18px 26px;
        font-size: 17px;
    }
}

body.nav-open {
    overflow: hidden;
}

/* ---------- Main ---------- */

.site-main {
    min-height: 60vh;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--ra-forest);
}

.footer-parallax {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-parallax__bg {
    position: absolute;
    inset: -20% 0;
    background-color: var(--ra-forest-700);
    background-image:
        linear-gradient(180deg, rgba(20, 39, 34, 0.35), rgba(20, 39, 34, 0.7)),
        url('../img/footer_bg.webp');
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.footer-parallax__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 48px 24px;
    max-width: 680px;
    margin: 0 auto;
}

.footer-parallax__content p {
    font-family: var(--font-display);
    color: var(--ra-white);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.35;
}

.footer-parallax__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-panel {
    background: var(--ra-cream);
    border-radius: 28px 28px 0 0;
    margin: 0 32px;
    padding-top: 56px;
    position: relative;
    z-index: 3;
}

@media (max-width: 640px) {
    .footer-panel {
        margin: 0 16px;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
    padding-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-logo {
    height: 56px;
    width: auto;
    flex-shrink: 0;
}

.footer-tagline {
    font-size: 13px;
    color: var(--ra-gray-700);
    max-width: 220px;
    line-height: 1.5;
}

.footer-col h3 {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--ra-gray-700);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    color: var(--ra-forest);
}

.footer-col a:hover {
    color: var(--ra-green);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 24px 0;
    border-top: 1px solid var(--ra-gray-300);
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-copyright {
    font-size: 13px;
    color: var(--ra-gray-700);
}

.footer-credit {
    font-size: 12px;
    color: var(--ra-gray-500);
}

.footer-credit a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
    color: var(--ra-forest);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--ra-gray-300);
    color: var(--ra-forest);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.social-icon svg {
    width: 16px;
    height: 16px;
}

.social-icon:hover {
    background: var(--ra-green);
    border-color: var(--ra-green);
    color: var(--ra-white);
}

@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .footer-panel {
        margin: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-parallax__bg {
        transform: none !important;
    }
}

/* ---------- Scroll-reveal (see initScrollReveal() in assets/js/main.js) ---------- */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Contact page — hero / first fold ---------- */

.contact-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--ra-forest-700);
}

.contact-hero__bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(120deg, rgba(20, 39, 34, 0.82), rgba(20, 39, 34, 0.55)),
        url('../img/contact_bg.webp');
    background-size: cover;
    background-position: center;
}

.contact-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
    padding: 96px 24px 80px;
}

.contact-hero__intro h1 {
    margin: 0 0 24px;
    font-size: 56px;
    line-height: 1.1;
    color: var(--ra-white);
}

.contact-hero__dash {
    color: var(--ra-gold);
}

.contact-hero__desc {
    max-width: 460px;
    margin: 0 0 32px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.contact-hero__detail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.contact-hero__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--ra-gold);
    flex-shrink: 0;
}

.contact-hero__icon svg {
    width: 18px;
    height: 18px;
}

.contact-hero__label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.55);
}

.contact-hero__value {
    font-size: 19px;
    font-weight: 400;
    color: var(--ra-white);
    text-decoration: none;
}

.contact-hero__value:hover {
    color: var(--ra-gold);
}

.contact-form-card {
    background: var(--ra-white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 24px 60px rgba(10, 20, 16, 0.35);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ra-forest);
}

.form-field input,
.form-field textarea {
    font-family: inherit;
    font-size: 15px;
    color: var(--ra-charcoal);
    background: var(--ra-gray-100);
    border: 1px solid var(--ra-gray-300);
    border-radius: 12px;
    padding: 13px 16px;
    resize: vertical;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--ra-gray-500);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--ra-green);
    background: var(--ra-white);
}

.contact-form__submit {
    align-self: flex-end;
    gap: 10px;
    background: var(--ra-forest);
}

.contact-form__submit:hover {
    background: var(--ra-forest-700);
}

.contact-form__submit svg {
    width: 16px;
    height: 16px;
}

.form-field.has-error input,
.form-field.has-error textarea {
    border-color: #C0573F;
}

.form-field__error {
    font-size: 13px;
    color: #A23E28;
}

.form-alert {
    font-size: 14px;
    border-radius: 12px;
    padding: 12px 16px;
}

.form-alert--error {
    background: #FBECE8;
    border: 1px solid #EFC6BB;
    color: #8A2E1A;
}

/* Spam trap: hidden from people (and screen readers), still filled in by most bots. */
.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-success {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
}

.contact-success__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--ra-green-100);
    color: var(--ra-green-600);
    margin-bottom: 8px;
}

.contact-success__icon svg {
    width: 24px;
    height: 24px;
}

.contact-success h2 {
    font-size: 30px;
    line-height: 1.2;
    color: var(--ra-forest);
}

.contact-success p {
    color: var(--ra-gray-700);
    line-height: 1.6;
}

.contact-success__again {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ra-green-600);
}

@media (max-width: 900px) {
    .contact-hero__grid {
        grid-template-columns: 1fr;
        padding: 64px 24px;
        gap: 40px;
    }

    .contact-hero__intro h1 {
        font-size: 42px;
    }

    .contact-form-card {
        padding: 28px;
    }
}

/* ---------- About page ---------- */

.section-eyebrow,
.eyebrow,
.about-hero__eyebrow,
.about-vision__eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ra-green-600);
    margin-bottom: 12px;
}

.media-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    background: var(--ra-gray-100);
    border: 1.5px dashed var(--ra-gray-300);
    border-radius: 16px;
    color: var(--ra-gray-500);
    padding: 24px;
}

.media-placeholder svg {
    width: 32px;
    height: 32px;
}

.media-placeholder span {
    font-size: 13px;
    max-width: 220px;
}

.media-placeholder--wide {
    aspect-ratio: 4 / 3;
}

.about-hero {
    padding: 56px 0 56px;
    background: var(--ra-paper);
}

.about-hero__top {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 36px;
    align-items: end;
    padding-bottom: 56px;
}

.about-hero__headline-col h1 {
    font-size: 46px;
    line-height: 1.15;
    color: var(--ra-forest);
    margin: 12px 0 0;
}

.about-hero__intro-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.about-hero__desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ra-gray-700);
    margin: 0;
}

/* ---- image slider ---- */

.about-hero__slider {
    overflow: hidden;
    padding-bottom: 32px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.about-hero__track {
    display: flex;
    gap: 20px;
    width: max-content;
    padding-left: 24px;
    animation: aboutHeroMarquee 32s linear infinite;
}

.about-hero__track:hover {
    animation-play-state: paused;
}

.about-hero__slide {
    flex: 0 0 auto;
    width: min(38vw, 600px);
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    border-radius: 16px;
}

@keyframes aboutHeroMarquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-hero__track {
        animation: none;
    }
}

.logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 40px;
    border: 1px dashed var(--ra-gray-300);
    border-radius: 8px;
    font-size: 12px;
    color: var(--ra-gray-500);
}

.about-story {
    position: relative;
    overflow: hidden;
    background-color: var(--ra-forest-700);
    padding: 60px 0;
}

.about-story__bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(120deg, rgba(20, 39, 34, 0.8), rgba(20, 39, 34, 0.55)),
        url('../img/about_bg.webp');
    background-size: cover;
    background-position: center;
}

.about-story__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}

.about-story__top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 24px;
    margin-bottom: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.7);
}

.about-story__dot {
    color: var(--ra-gold);
}

.about-story__headline {
    font-size: 38px;
    line-height: 1.25;
    color: var(--ra-white);
    margin: 0 0 40px;
}

.about-story__block {
    margin-bottom: 28px;
}

.about-story__block:last-child {
    margin-bottom: 0;
}

.about-story__label {
    font-size: 15px;
    font-weight: 700;
    color: var(--ra-white);
    margin-bottom: 14px;
}

.about-story__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-story__list li {
    display: flex;
    gap: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}

.about-story__list li span {
    color: var(--ra-gold);
    font-weight: 700;
}

.about-story__list a {
    color: var(--ra-gold);
}

.about-story__statement {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.about-story__media {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
}

.about-vision {
    background: var(--ra-forest);
    padding: 64px 0;
    text-align: center;
}

.about-vision__inner {
    max-width: 720px;
    margin: 0 auto;
}

.about-vision__eyebrow {
    color: var(--ra-gold);
    text-align: center;
}

.about-vision__statement {
    font-family: var(--font-display);
    font-size: 34px;
    line-height: 1.4;
    color: var(--ra-white);
    margin: 0;
}

.about-approach {
    background: var(--ra-paper);
    padding: 64px 0;
}

.about-approach__header {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
    align-items: start;
    margin-bottom: 64px;
}

.about-approach__header h2 {
    font-size: 40px;
    line-height: 1.2;
    color: var(--ra-forest);
    margin: 0;
}

.about-approach__header p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--ra-gray-700);
    margin: 0;
}

.about-approach__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.approach-item__media {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
}

.approach-item h3 {
    font-size: 18px;
    color: var(--ra-forest);
    margin: 0 0 8px;
}

.approach-item p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ra-gray-700);
    margin: 0;
}

.about-leadership {
    background: var(--ra-cream);
    padding: 64px 0;
}

.about-leadership__heading {
    font-size: 34px;
    color: var(--ra-forest);
    max-width: 640px;
    margin: 0 0 56px;
}

.about-leadership__grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.about-leadership__intro-col {
    position: sticky;
    top: calc(var(--header-height) + 32px);
}

.about-leadership__intro-col h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 24px;
    color: var(--ra-forest);
    margin: 0 0 16px;
}

.about-leadership__intro {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ra-gray-700);
    margin: 0 0 20px;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.leadership-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.leadership-card__photo-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.leadership-card__photo-link {
    display: block;
}

.leadership-card__photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.leadership-card__photo.media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.leadership-card__photo.media-placeholder svg {
    width: 72px;
    height: 72px;
}

img.leadership-card__photo {
    border: none;
    border-radius: 0;
    transition: opacity 0.15s ease;
}

.leadership-card__photo-link:hover img.leadership-card__photo {
    opacity: 0.9;
}

.leadership-card__linkedin {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ra-white);
    color: var(--ra-forest);
    box-shadow: 0 4px 12px rgba(20, 39, 34, 0.18);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.leadership-card__linkedin svg {
    width: 17px;
    height: 17px;
}

.leadership-card__linkedin:hover {
    background: var(--ra-forest);
    color: var(--ra-white);
}

.leadership-card__name {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: var(--ra-forest);
    text-decoration: none;
    transition: color 0.15s ease;
}

.leadership-card__name:hover {
    color: var(--ra-green-600);
}

.leadership-card__role {
    font-size: 14px;
    color: var(--ra-gray-500);
}

.about-advisors {
    background: var(--ra-paper);
    padding: 64px 0;
}

.about-advisors__grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.about-advisors__intro-col {
    position: sticky;
    top: calc(var(--header-height) + 32px);
}

.about-advisors__intro-col h2 {
    font-size: 34px;
    color: var(--ra-forest);
    margin: 0 0 16px;
}

.about-advisors__intro {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ra-gray-700);
    margin: 0;
}

.advisors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .about-hero__top {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 24px;
    }

    .about-hero__headline-col h1 {
        font-size: 34px;
    }

    .about-hero__slide {
        width: min(70vw, 360px);
    }

    .about-story__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-story__headline {
        font-size: 30px;
    }

    .about-approach__header {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .about-approach__header h2 {
        font-size: 30px;
    }

    .about-approach__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-leadership__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-leadership__intro-col {
        position: static;
    }

    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-advisors__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-advisors__intro-col {
        position: static;
    }

    .advisors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-vision__statement {
        font-size: 26px;
    }
}

@media (max-width: 560px) {
    .about-approach__grid {
        grid-template-columns: 1fr;
    }

    .leadership-grid {
        grid-template-columns: 1fr;
    }

    .advisors-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Services page ---------- */

.services-hero {
    padding: 56px 0 0;
    background: var(--ra-paper);
}

.services-hero__top {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    align-items: end;
    padding-bottom: 48px;
}

.services-hero__headline-col h1 {
    font-size: 44px;
    line-height: 1.15;
    color: var(--ra-forest);
    margin: 12px 0 0;
}

.services-hero__intro-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.services-hero__intro-col p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ra-gray-700);
    margin: 0;
}

.services-hero__photo {
    display: block;
    width: 100%;
    aspect-ratio: 21 / 8;
    object-fit: cover;
}

.service-category {
    padding: 56px 0;
    background: var(--ra-paper);
}

.service-category--alt {
    background: var(--ra-cream);
}

.service-category__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
    margin-bottom: 48px;
}

.service-category__title h2 {
    font-size: 30px;
    line-height: 1.2;
    color: var(--ra-forest);
    margin: 8px 0 0;
}

.service-category__header p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ra-gray-700);
    margin: 0;
    padding-top: 6px;
}

.service-category__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Grid-layout categories: title + description on the left, cards on the right
   (same split as the About page's Advisors & Associates section). */
.service-category__split {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: start;
}

.service-category__intro {
    position: sticky;
    top: calc(var(--header-height) + 32px);
}

.service-category__intro h2 {
    font-size: 30px;
    line-height: 1.2;
    color: var(--ra-forest);
    margin: 8px 0 16px;
}

.service-category__intro p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ra-gray-700);
    margin: 0;
}

.service-card {
    position: relative;
    aspect-ratio: 16 / 10;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), calc(100% - 48px) 100%, 0 100%);
}

.service-card__media {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 24px;
    border: none;
    border-radius: 0;
    background: var(--ra-cream);
}

.service-card__label {
    position: absolute;
    left: 24px;
    bottom: 24px;
    z-index: 1;
    font-size: 18px;
    font-weight: 600;
    color: var(--ra-forest);
}

/* ---------- Services — "Business Growth" pillars category (stands out from
   the plain grid categories above: gold gradient band, same build as
   .upcoming-events, with 3 richer cards — bullets + an "Outcome" line —
   instead of the small image cards the other categories use). ---------- */

.service-category--pillars {
    position: relative;
    overflow: hidden;
    padding: 72px 0;
    background:
        radial-gradient(900px 480px at 8% 0%, rgba(255, 246, 214, 0.55), transparent 65%),
        radial-gradient(700px 520px at 100% 100%, rgba(150, 105, 20, 0.30), transparent 70%),
        linear-gradient(160deg, #EBCB76 0%, #D4A53A 45%, #B8862A 100%);
}

.service-category--pillars .service-category__title .eyebrow,
.service-category--pillars .service-category__title h2,
.service-category--pillars .service-category__header p {
    color: var(--ra-forest);
}

.service-category--pillars .service-category__title .eyebrow {
    opacity: 0.75;
}

.service-category--pillars .service-category__header p {
    opacity: 0.85;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pillar-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px 28px;
    background: var(--ra-paper);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(30, 58, 47, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card.is-visible:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(30, 58, 47, 0.18);
}

.pillar-card__num {
    font-family: 'Fraunces', serif;
    font-size: 32px;
    color: var(--ra-gold-700);
}

.pillar-card__title {
    font-size: 21px;
    line-height: 1.3;
    color: var(--ra-forest);
    margin: 0;
}

.pillar-card__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pillar-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ra-gray-700);
}

.pillar-card__list svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--ra-green);
}

.pillar-card__outcome {
    margin: auto 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--ra-gold-100);
    font-size: 14px;
    line-height: 1.6;
    color: var(--ra-forest);
}

.pillar-card__outcome strong {
    color: var(--ra-gold-700);
}

.pillar-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ra-forest);
}

.pillar-card__link-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ra-gold-100);
    transition: transform 0.2s ease, background 0.2s ease;
}

.pillar-card__link-icon svg {
    width: 12px;
    height: 12px;
}

.pillar-card__link:hover .pillar-card__link-icon {
    background: var(--ra-gold);
    transform: translate(2px, -2px);
}

/* ---- Services: Our Approach (dark band, 4-step cycle + "We add value by") ---- */

.services-approach {
    padding: 96px 0;
    background:
        radial-gradient(800px 500px at 100% 0%, rgba(212, 165, 58, 0.14), transparent 70%),
        var(--ra-forest);
    color: var(--ra-white);
}

.services-approach .eyebrow {
    color: #E2BC5C;
}

.services-approach__top {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 72px;
    align-items: center;
}

.services-approach__intro h2 {
    font-size: 40px;
    line-height: 1.15;
    margin: 8px 0 20px;
    color: var(--ra-white);
}

.services-approach__intro p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    max-width: 520px;
}

.approach-cycle {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

/* vertical connector running through the numbered circles */
.approach-cycle::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 28px;
    bottom: 28px;
    border-left: 1.5px dashed rgba(226, 188, 92, 0.5);
}

.approach-cycle__step {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 24px;
    padding: 0 0 36px;
}

.approach-cycle__num {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ra-forest);
    border: 1.5px solid #E2BC5C;
    color: #E2BC5C;
    font-family: 'Fraunces', serif;
    font-size: 20px;
    transition: background 0.25s ease, color 0.25s ease;
}

.approach-cycle__step:hover .approach-cycle__num {
    background: #E2BC5C;
    color: var(--ra-forest);
}

.approach-cycle__step h3 {
    font-size: 20px;
    line-height: 1.3;
    margin: 6px 0 6px;
    color: var(--ra-white);
}

.approach-cycle__step p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.approach-cycle__loop {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 24px;
    align-items: center;
    font-size: 14px;
    font-style: italic;
    color: #E2BC5C;
}

.approach-cycle__loop svg {
    justify-self: center;
    width: 26px;
    height: 26px;
    padding: 4px;
    box-sizing: content-box;
    background: var(--ra-forest);
}

.value-adds {
    margin-top: 80px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.value-adds__title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #E2BC5C;
    margin: 0 0 28px;
}

.value-adds__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.value-add {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.value-add:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(226, 188, 92, 0.45);
}

.value-add__icon {
    display: flex;
    color: #E2BC5C;
}

.value-add__icon svg {
    width: 40px;
    height: 40px;
}

/* ---- Services: Strategic Relevance (needs checklist + partner card + logo marquee) ---- */

.services-relevance {
    padding: 96px 0 72px;
    background: var(--ra-paper);
    overflow: hidden;
}

.services-relevance__grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 64px;
    align-items: center;
}

.services-relevance__needs h2 {
    font-size: 36px;
    line-height: 1.2;
    color: var(--ra-forest);
    margin: 8px 0 32px;
}

.needs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 28px;
}

.needs-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--ra-gray-300);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ra-charcoal);
}

.needs-list svg {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    padding: 5px;
    border-radius: 50%;
    background: var(--ra-green-100);
    color: var(--ra-green-600);
}

.services-relevance__note {
    margin: 28px 0 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ra-gray-700);
}

.partner-card {
    position: relative;
    padding: 48px 44px;
    border-radius: 24px;
    color: var(--ra-forest);
    background:
        radial-gradient(500px 300px at 0% 0%, rgba(255, 246, 214, 0.55), transparent 65%),
        linear-gradient(160deg, #EBCB76 0%, #D4A53A 55%, #B8862A 100%);
    box-shadow: 0 24px 48px rgba(150, 105, 20, 0.22);
}

.partner-card__quote {
    font-family: 'Fraunces', serif;
    font-size: 26px;
    line-height: 1.35;
    margin: 0 0 32px;
}

.partner-card__quote em {
    font-style: italic;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
}

.partner-card__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.partner-card__list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.partner-card__list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 16px;
    font-weight: 600;
}

.partner-card__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ra-forest);
    color: #EBCB76;
    font-size: 13px;
}

.partner-card__cta {
    background: var(--ra-forest);
}

.partner-card__cta:hover {
    background: var(--ra-forest-700);
}

@media (max-width: 1200px) {
    .value-adds__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 960px) {
    .services-approach,
    .services-relevance {
        padding: 72px 0 56px;
    }

    .services-approach__top,
    .services-relevance__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .services-approach__intro h2 {
        font-size: 32px;
    }

    .services-relevance__needs h2 {
        font-size: 30px;
    }

    .value-adds {
        margin-top: 56px;
    }

    .value-adds__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .value-adds__grid,
    .needs-list {
        grid-template-columns: 1fr;
    }

    .needs-list {
        gap: 0;
    }

    .partner-card {
        padding: 36px 26px;
    }

    .partner-card__quote {
        font-size: 22px;
    }

}

.services-sectors {
    padding: 60px 0;
    background: var(--ra-forest);
    text-align: center;
}

.services-sectors .eyebrow {
    color: var(--ra-gold);
}

.services-sectors h2 {
    font-size: 32px;
    color: var(--ra-white);
    margin: 8px 0 16px;
}

.services-sectors__intro {
    max-width: 620px;
    margin: 0 auto 40px;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

.services-sectors__intro a {
    color: var(--ra-gold);
    font-weight: 600;
}

.services-sectors__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 820px;
    margin: 0 auto;
}

.sector-chip {
    font-size: 14px;
    font-weight: 500;
    color: var(--ra-white);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 10px 20px;
}

@media (max-width: 900px) {
    .services-hero__top {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 24px;
    }

    .services-hero__headline-col h1 {
        font-size: 32px;
    }

    .services-hero__photo {
        aspect-ratio: 4 / 3;
    }

    .service-category__header {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-category__split {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .service-category__intro {
        position: static;
    }
}

@media (max-width: 560px) {
    .service-category__cards {
        grid-template-columns: 1fr;
    }

    .service-card {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), calc(100% - 32px) 100%, 0 100%);
    }
}

@media (max-width: 900px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Homepage — Sectors of Expertise ---------- */

.sectors-expertise {
    padding: 64px 0;
    background: var(--ra-cream);
}

.sectors-expertise__header {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 48px;
}

.sectors-expertise__heading {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sectors-expertise__heading h2 {
    font-size: 44px;
    line-height: 1.15;
    color: var(--ra-forest);
}

.sectors-expertise__desc {
    font-size: 17px;
    line-height: 1.7;
    color: var(--ra-gray-700);
}

.sectors-expertise__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: start;
}

.sectors-expertise__image {
    position: relative;
    aspect-ratio: 6 / 5;
}

.sectors-expertise__image-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.sectors-expertise__image-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.sectors-expertise__image-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.sectors-expertise__image-placeholder {
    width: 100%;
    height: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .sectors-expertise__image-slide {
        transition: none;
    }
}

.sectors-expertise__list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--ra-gray-300);
    align-self: center;
}

.sector-row {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 22px 4px;
    border: none;
    border-bottom: 2px solid var(--ra-gray-300);
    background: none;
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 500;
    color: var(--ra-gray-700);
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.sector-row:hover {
    color: var(--ra-forest);
}

.sector-row.is-active {
    color: var(--ra-forest);
    font-weight: 700;
    border-bottom-color: var(--ra-forest);
}

@media (max-width: 900px) {
    .sectors-expertise__header {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 32px;
    }

    .sectors-expertise__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sectors-expertise__heading h2 {
        font-size: 30px;
    }

    .sector-row {
        font-size: 17px;
        padding: 18px 4px;
    }
}

/* ---------- Homepage — Hero slider (first fold) ---------- */

.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slider__track {
    display: flex;
    width: 100%;
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-slider__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    min-height: calc(100vh - var(--header-height));
}

.hero-slider__media {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--ra-forest) 0%, var(--ra-forest-700) 100%);
}

.hero-slider__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(20, 39, 34, 0) 35%, rgba(20, 39, 34, 0.85) 100%);
}

.hero-slider__content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
    color: var(--ra-white);
}

.hero-slider__content h1 {
    font-size: 52px;
    line-height: 1.15;
}

.hero-slider__intro {
    position: absolute;
    z-index: 1;
    left: 48px;
    bottom: 96px;
    max-width: 320px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

.hero-slider__pagination {
    position: absolute;
    left: 50%;
    bottom: 40px;
    z-index: 2;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-slider__dot {
    width: 48px;
    height: 1px;
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.hero-slider__dot.is-active {
    background: var(--ra-gold);
}

@media (max-width: 900px) {
    .hero-slider__intro {
        left: 24px;
        max-width: 260px;
        bottom: 88px;
    }
}

@media (max-width: 640px) {
    .hero-slider__content h1 {
        font-size: 34px;
    }

    .hero-slider__intro {
        left: 20px;
        right: 20px;
        max-width: none;
        bottom: 72px;
        text-align: center;
    }

    .hero-slider__pagination {
        bottom: 24px;
    }

    .hero-slider__dot {
        width: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider__track {
        transition: none;
    }
}

/* ---------- Homepage — Top Services ---------- */

.top-services {
    padding: 64px 0;
    background: var(--ra-paper);
}

.top-services__row {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 16px;
}

.top-services__row h2 {
    font-size: 44px;
    line-height: 1.15;
    color: var(--ra-forest);
}

.top-services__intro {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.top-services__intro p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--ra-gray-700);
}

.top-services__link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--ra-forest);
    text-decoration: none;
    width: fit-content;
}

.top-services__link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: 1px solid var(--ra-gray-300);
    border-radius: 7px;
    color: var(--ra-gray-500);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.top-services__link-icon svg {
    width: 15px;
    height: 15px;
}

.top-services__link:hover .top-services__link-icon {
    background: var(--ra-forest);
    border-color: var(--ra-forest);
    color: var(--ra-white);
}

.top-services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.top-services__slide {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    min-height: 220px;
    padding: 28px 28px 24px;
    background: var(--ra-cream);
    border-top: 4px solid var(--ra-gold);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
    transition: background-color 0.2s ease;
}

.top-services__slide-label {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ra-forest);
}

.top-services__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ra-white);
    color: var(--ra-forest);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.top-services__cta svg {
    width: 16px;
    height: 16px;
}

a.top-services__slide:hover,
a.top-services__slide:focus-visible {
    background: var(--ra-green-100);
}

a.top-services__slide:hover .top-services__cta,
a.top-services__slide:focus-visible .top-services__cta {
    background: var(--ra-green);
    color: var(--ra-white);
    transform: translate(2px, -2px);
}

@media (max-width: 900px) {
    .top-services__row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .top-services__row h2 {
        font-size: 30px;
    }

}

/* ---------- Homepage — Sustainability & Impact ---------- */

.sustainability-impact {
    padding: 64px 0 0;
    background: var(--ra-paper);
}

.sustainability-impact__stats {
    margin-top: 48px;
    border-top: 1px solid var(--ra-gray-300);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.sustainability-impact__stat {
    padding: 40px 32px;
    border-bottom: 1px solid var(--ra-gray-300);
}

.sustainability-impact__stat:not(:last-child) {
    border-right: 1px solid var(--ra-gray-300);
}

.sustainability-impact__stat:first-child {
    padding-left: 0;
}

.sustainability-impact__stat:last-child {
    padding-right: 0;
}

.sustainability-impact__stat-icon {
    width: 40px;
    height: 40px;
    color: var(--ra-green-600);
    margin-bottom: 24px;
}

.sustainability-impact__stat-icon svg {
    width: 100%;
    height: 100%;
}

.sustainability-impact__stat h4 {
    font-family: var(--font-sans);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ra-forest);
    margin-bottom: 10px;
}

.sustainability-impact__stat p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ra-gray-700);
}

@media (max-width: 900px) {
    .sustainability-impact__stats {
        grid-template-columns: 1fr;
    }

    .sustainability-impact__stat {
        padding: 28px 0;
    }

    .sustainability-impact__stat:not(:last-child) {
        border-right: none;
    }
}

/* ---------- Homepage — Latest Resources ---------- */

.latest-resources {
    padding: 64px 0;
    background: var(--ra-paper);
}

.latest-resources__header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.latest-resources__header h2 {
    font-size: 44px;
    line-height: 1.15;
    color: var(--ra-forest);
    max-width: 640px;
}

.latest-resources__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.resource-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    border: none;
    border-radius: 0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
}

.resource-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.resource-card__tag {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ra-green-600);
}

.resource-card__divider {
    color: var(--ra-gray-300);
}

.resource-card__date {
    font-size: 13px;
    color: var(--ra-gray-500);
}

.resource-card__title {
    margin-top: 10px;
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--ra-forest);
}

.resource-card__link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--ra-forest);
    text-decoration: none;
}

.resource-card__link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: 1px solid var(--ra-gray-300);
    border-radius: 7px;
    color: var(--ra-gray-500);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.resource-card__link-icon svg {
    width: 15px;
    height: 15px;
}

.resource-card__link:hover .resource-card__link-icon {
    background: var(--ra-forest);
    border-color: var(--ra-forest);
    color: var(--ra-white);
}

@media (max-width: 900px) {
    .latest-resources__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .latest-resources__header h2 {
        font-size: 30px;
    }
}

@media (max-width: 600px) {
    .latest-resources__grid {
        grid-template-columns: 1fr;
    }

    .resource-card__media {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
    }
}


/* ---------- Events page — split hero ----------
   Two full-height panels with a hairline divider (modeled on betterup.com's
   split banner): title on the left over contact_bg.webp, featured event card
   on the right over the same image blurred. */

.events-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - var(--header-height));
    min-height: max(640px, calc(100svh - var(--header-height)));
    background-color: var(--ra-forest-700);
}

.events-hero__panel {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 80px 64px;
}

.events-hero__panel--card {
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.events-hero__bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(120deg, rgba(20, 39, 34, 0.78), rgba(20, 39, 34, 0.45)),
        url('../img/contact_bg.webp');
    background-size: cover;
    background-position: left center;
}

/* Right panel: same photo, shifted, blurred and darkened so the card stands out
   while it still reads as one continuous image with the left panel. */
.events-hero__bg--blur {
    inset: -40px;
    background-image:
        linear-gradient(200deg, rgba(20, 39, 34, 0.35), rgba(20, 39, 34, 0.75)),
        url('../img/contact_bg.webp');
    background-position: right center;
    filter: blur(22px) saturate(1.15);
    transform: scale(1.08);
}

.events-hero__intro {
    position: relative;
    z-index: 1;
}

.events-hero__eyebrow {
    color: var(--ra-gold);
    margin-bottom: 20px;
}

.events-hero__intro h1 {
    font-size: clamp(48px, 6vw, 88px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--ra-white);
}

.event-card {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--ra-white);
    border-radius: 24px;
    padding: 14px;
}

.event-card--featured {
    max-width: 440px;
    box-shadow: 0 24px 60px rgba(10, 20, 16, 0.35);
}

.event-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
}

.event-card__image.media-placeholder {
    border-radius: 14px;
    padding: 16px;
}

.event-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 12px 12px;
}

.event-card--empty {
    align-items: flex-start;
    padding: 36px 32px;
}

.event-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--ra-gray-700);
    background: var(--ra-gray-100);
    border-radius: 999px;
    padding: 5px 12px;
}

.event-card__tag.is-upcoming {
    color: var(--ra-green-600);
    background: var(--ra-green-50);
}

.event-card__tag.is-upcoming::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ra-green);
}

.event-card__title {
    font-family: var(--font-display);
    font-weight: 400;
    margin: 14px 0 12px;
    font-size: 26px;
    line-height: 1.2;
    color: var(--ra-forest);
}

.event-card__meta {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.event-card__meta li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ra-forest);
}

.event-card__meta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--ra-green-600);
}

.event-card__desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ra-gray-700);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}

/* margin-top: auto pins the button to the card bottom, so buttons line up across a grid row. */
.event-card__btn {
    margin-top: auto;
    gap: 10px;
}


.event-card__btn svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 1100px) {
    .events-hero__panel {
        padding: 64px 40px;
    }
}

@media (max-width: 900px) {
    .events-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .events-hero__panel {
        padding: 64px 24px;
    }

    .events-hero__panel--title {
        min-height: 320px;
        align-items: flex-end;
        padding-bottom: 48px;
    }

    .events-hero__panel--card {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.22);
    }
}

@media (max-width: 520px) {
    .events-hero__panel--card {
        padding: 40px 16px;
    }

    .event-card__title {
        font-size: 22px;
    }
}

/* ---------- Events page — Upcoming Events (second fold) ----------
   Gold gradient built around the brand gold (--ra-gold #C4C368): lighter,
   warmer gold top-left fading into a deeper olive-gold bottom-right, with a
   soft cream glow so it doesn't read as a flat block. */

.upcoming-events {
    position: relative;
    overflow: hidden;
    padding: 110px 0 120px;
    background:
        radial-gradient(900px 480px at 8% 0%, rgba(247, 245, 227, 0.55), transparent 65%),
        radial-gradient(700px 520px at 100% 100%, rgba(111, 143, 62, 0.28), transparent 70%),
        linear-gradient(160deg, #D6D585 0%, var(--ra-gold) 45%, #ABAA55 100%);
}

.upcoming-events__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: end;
    margin-bottom: 56px;
}

.upcoming-events__eyebrow {
    color: var(--ra-forest);
    opacity: 0.75;
}

.upcoming-events__header h2 {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ra-forest);
}

.upcoming-events__header p {
    max-width: 440px;
    justify-self: end;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ra-forest);
}

.upcoming-events__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.upcoming-events__grid .event-card {
    box-shadow: 0 12px 32px rgba(30, 58, 47, 0.12);
    transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.2s ease;
}

.upcoming-events__grid .event-card.is-visible:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(30, 58, 47, 0.18);
}

.upcoming-events__grid .event-card__title {
    font-size: 22px;
}

.upcoming-events__empty {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 640px;
    padding: 24px 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: var(--ra-forest);
}

.upcoming-events__empty svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--ra-green-600);
}

.upcoming-events__empty a {
    color: var(--ra-forest);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .upcoming-events__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .upcoming-events {
        padding: 72px 0 80px;
    }

    .upcoming-events__header {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 36px;
    }

    .upcoming-events__header p {
        justify-self: start;
    }

    .upcoming-events__grid {
        grid-template-columns: 1fr;
    }
}

/* Screen-reader-only text (labels/legends that are visually implied). */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Event card — media wrapper + type chip ---------- */

.event-card__media {
    position: relative;
}

.event-card__type {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--ra-forest);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border-radius: 999px;
    padding: 5px 12px;
    box-shadow: 0 2px 8px rgba(20, 39, 34, 0.12);
}

/* ---------- Events page — black filter strip (third fold) ---------- */

.events-filter {
    background: #111412;
    color: var(--ra-white);
    padding: 28px 0;
    scroll-margin-top: var(--header-height);
}

.events-filter__form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.events-filter__search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 420px;
    max-width: 560px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 5px 5px 5px 18px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.events-filter__search:focus-within {
    border-color: var(--ra-gold);
    background: rgba(255, 255, 255, 0.12);
}

.events-filter__search > svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.6);
}

.events-filter__search input {
    flex: 1;
    min-width: 0;
    font-family: inherit;
    font-size: 15px;
    color: var(--ra-white);
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 12px;
}

.events-filter__search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.events-filter__search input::-webkit-search-cancel-button {
    filter: invert(1);
    opacity: 0.6;
    cursor: pointer;
}

.events-filter__submit {
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--ra-forest);
    background: var(--ra-gold);
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.events-filter__submit:hover {
    background: #D6D585;
}

.events-filter__types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border: none;
    min-width: 0;
}

.events-filter__pill {
    position: relative;
    cursor: pointer;
}

.events-filter__pill input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.events-filter__pill span {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 9px 18px;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.events-filter__pill:hover span {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--ra-white);
}

.events-filter__pill input:checked + span {
    background: var(--ra-white);
    border-color: var(--ra-white);
    color: #111412;
}

.events-filter__pill input:focus-visible + span {
    outline: 2px solid var(--ra-gold);
    outline-offset: 2px;
}

/* ---------- Events page — All events list + pagination ---------- */

.events-list {
    padding: 48px 0 110px;
    background: var(--ra-paper);
}

.events-list__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    font-size: 15px;
    color: var(--ra-gray-700);
}

.events-list__summary strong {
    color: var(--ra-forest);
    font-weight: 600;
}

.events-list__clear {
    font-size: 14px;
    font-weight: 600;
    color: var(--ra-green-600);
}

.events-list__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.events-list__grid .event-card {
    border: 1px solid var(--ra-gray-300);
    transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.events-list__grid .event-card.is-visible:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 20px 44px rgba(30, 58, 47, 0.14);
}

.events-list__grid .event-card__title {
    font-size: 22px;
}

.events-list__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 64px 24px;
    border: 1.5px dashed var(--ra-gray-300);
    border-radius: 24px;
    color: var(--ra-gray-700);
}

.events-list__empty svg {
    width: 36px;
    height: 36px;
    color: var(--ra-gray-500);
}

.events-list__empty h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 24px;
    color: var(--ra-forest);
}

.events-list__empty .btn {
    margin-top: 10px;
}

.events-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 56px;
}

.events-pagination__pages {
    list-style: none;
    display: flex;
    gap: 6px;
}

.events-pagination__page,
.events-pagination__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
    color: var(--ra-forest);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.events-pagination__page {
    min-width: 44px;
    padding: 0 8px;
    border: 1px solid transparent;
}

.events-pagination__page:hover {
    border-color: var(--ra-gray-300);
}

.events-pagination__page.is-current {
    background: #111412;
    color: var(--ra-white);
}

.events-pagination__step {
    padding: 0 18px;
    border: 1px solid var(--ra-gray-300);
}

.events-pagination__step:hover {
    border-color: var(--ra-forest);
}

.events-pagination__step svg {
    width: 16px;
    height: 16px;
}

.events-pagination__step.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .events-list__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .events-filter__search {
        flex-basis: 100%;
        max-width: none;
    }

    /* Type pills scroll sideways instead of wrapping into several rows. */
    .events-filter__types {
        flex-wrap: nowrap;
        overflow-x: auto;
        width: calc(100% + 24px);
        margin-right: -24px;
        padding-right: 24px;
        scrollbar-width: none;
    }

    .events-filter__types::-webkit-scrollbar {
        display: none;
    }

    .events-list {
        padding: 36px 0 80px;
    }

    .events-list__grid {
        grid-template-columns: 1fr;
    }

    /* Prev/Next collapse to icon-only buttons on phones. */
    .events-pagination__step {
        font-size: 0;
        gap: 0;
        width: 44px;
        padding: 0;
    }

    .events-pagination__step svg {
        width: 18px;
        height: 18px;
    }
}

/* Card image + title link to event-detail.php */
a.event-card__media {
    display: block;
    border-radius: 14px;
    overflow: hidden;
}

a.event-card__media .event-card__image {
    transition: transform 0.5s ease;
}

.event-card:hover a.event-card__media .event-card__image {
    transform: scale(1.04);
}

.event-card__title a {
    color: inherit;
    text-decoration: none;
}

.event-card__title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* ==========================================================================
   Event detail page (event-detail.php)
   ========================================================================== */

.event-detail-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--ra-forest-700);
    color: var(--ra-white);
}

.event-detail-hero__bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at center, rgba(20, 39, 34, 0.72), rgba(20, 39, 34, 0.9) 75%),
        url('../img/contact_bg.webp');
    background-size: cover;
    background-position: center;
}

.event-detail-hero__inner {
    position: relative;
    z-index: 1;
    padding-top: 56px;
    padding-bottom: 72px;
    /* Centered, matching the resource detail header. */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.event-detail-hero__inner .event-breadcrumb,
.event-detail-hero__tags,
.event-detail-hero__meta {
    justify-content: center;
}

/* Leaves room for the cover image to overlap the hero's bottom edge. */
.event-detail-hero.has-cover .event-detail-hero__inner {
    padding-bottom: 200px;
}

.event-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
}

.event-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.event-breadcrumb a:hover {
    color: var(--ra-gold);
}

.event-breadcrumb [aria-current] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60ch;
}

.event-detail-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.event-detail-status,
.event-detail-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 6px 14px;
}

.event-detail-status {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
}

.event-detail-status.is-upcoming {
    background: var(--ra-gold);
    color: var(--ra-forest);
}

.event-detail-status.is-upcoming::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ra-forest);
}

.event-detail-type {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--ra-white);
    text-decoration: none;
}

.event-detail-type:hover {
    border-color: var(--ra-gold);
    color: var(--ra-gold);
}

.event-detail-hero h1 {
    max-width: 900px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ra-white);
    margin-bottom: 28px;
}

.event-detail-hero__meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.88);
}

.event-detail-hero__meta li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-detail-hero__meta svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--ra-gold);
}

.event-detail-hero__actions {
    margin-top: 32px;
}

.event-detail-cover {
    position: relative;
    z-index: 2;
    margin-top: -160px;
}

.event-detail-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(20, 39, 34, 0.25);
}

.event-detail-body {
    padding: 72px 0 96px;
}

.event-detail-body__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 72px;
    align-items: start;
}

.event-detail-content {
    max-width: 720px;
}

.event-detail-content p {
    font-size: 17px;
    line-height: 1.75;
    color: var(--ra-gray-700);
    margin-bottom: 20px;
}

.event-detail-content .event-detail-content__lead {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.4;
    color: var(--ra-forest);
    margin-bottom: 28px;
}

.event-detail-card {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    background: var(--ra-white);
    border: 1px solid var(--ra-gray-300);
    border-radius: 24px;
    padding: 28px;
}

.event-detail-card h2 {
    font-size: 22px;
    color: var(--ra-forest);
    margin-bottom: 20px;
}

.event-detail-card dl {
    display: flex;
    flex-direction: column;
}

.event-detail-card dl > div {
    padding: 14px 0;
    border-top: 1px solid var(--ra-gray-100);
}

.event-detail-card dt {
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--ra-gray-500);
    margin-bottom: 4px;
}

.event-detail-card dd {
    font-size: 15px;
    color: var(--ra-forest);
}

.event-detail-card__btn {
    width: 100%;
    gap: 10px;
    margin-top: 12px;
}

.event-detail-card__btn svg {
    width: 16px;
    height: 16px;
}

.event-detail-card__back {
    display: block;
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    color: var(--ra-gray-700);
    text-decoration: none;
}

.event-detail-card__back:hover {
    color: var(--ra-green-600);
}

/* ---------- Gallery ---------- */

.event-gallery {
    padding: 0 0 110px;
}

.event-gallery__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-top: 56px;
    margin-bottom: 28px;
    border-top: 1px solid var(--ra-gray-300);
}

.event-gallery__header h2 {
    font-size: clamp(32px, 4vw, 48px);
    color: var(--ra-forest);
}

.event-gallery__count {
    font-size: 14px;
    color: var(--ra-gray-700);
}

/* Mosaic on a 3-column grid: the first photo is a large 2x2 tile, the next two
   stack beside it, then rows of three. 3/6/9… photos fill exactly; otherwise the
   last photo stretches across the leftover space so no row has a gap. */
.event-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    gap: 16px;
}

.event-gallery__item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.event-gallery__item:last-child:nth-child(3n + 1):not(:first-child) {
    grid-column: span 3;
}

.event-gallery__item:last-child:nth-child(3n + 2) {
    grid-column: span 2;
}

.event-gallery__grid[data-count="1"] {
    grid-template-columns: 1fr;
    grid-auto-rows: 520px;
}

.event-gallery__grid[data-count="1"] .event-gallery__item:first-child {
    grid-column: auto;
    grid-row: auto;
}

.event-gallery__grid[data-count="2"] {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 380px;
}

.event-gallery__grid[data-count="2"] .event-gallery__item {
    grid-column: auto;
    grid-row: auto;
}

.event-gallery__item {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 0;
    border: none;
    border-radius: 18px;
    background: var(--ra-gray-100);
    cursor: zoom-in;
}

.event-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.event-gallery__item:hover img {
    transform: scale(1.05);
}

.event-gallery__item:focus-visible {
    outline: 3px solid var(--ra-gold);
    outline-offset: 3px;
}

.event-gallery__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 16px 14px;
    font-size: 13px;
    text-align: left;
    color: var(--ra-white);
    background: linear-gradient(transparent, rgba(10, 20, 16, 0.7));
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.event-gallery__item:hover .event-gallery__caption,
.event-gallery__item:focus-visible .event-gallery__caption {
    opacity: 1;
    transform: none;
}

/* ---------- Lightbox (native <dialog>) ---------- */

.lightbox {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(8, 14, 11, 0.94);
    color: var(--ra-white);
}

.lightbox::backdrop {
    background: rgba(8, 14, 11, 0.94);
}

.lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: calc(100vw - 180px);
    max-height: calc(100vh - 80px);
}

.lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 140px);
    object-fit: contain;
    border-radius: 12px;
}

.lightbox__caption {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.lightbox__counter {
    color: rgba(255, 255, 255, 0.5);
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ra-white);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
}

.lightbox__close svg,
.lightbox__nav svg {
    width: 22px;
    height: 22px;
}

.lightbox__close {
    top: 20px;
    right: 20px;
}

.lightbox__nav--prev {
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__nav--next {
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

body.lightbox-open {
    overflow: hidden;
}

/* ---------- More events (reuses .upcoming-events gold section) ---------- */

.event-more__all {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ra-forest);
    text-decoration: none;
    border-bottom: 1.5px solid currentColor;
    padding-bottom: 2px;
}

.event-more__all svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.event-more__all:hover svg {
    transform: translateX(3px);
}

/* ---------- 404 ---------- */

.event-missing {
    padding: 120px 0;
    text-align: center;
}

.event-missing h1 {
    font-size: clamp(32px, 4vw, 48px);
    color: var(--ra-forest);
    margin-bottom: 12px;
}

.event-missing p {
    color: var(--ra-gray-700);
    margin-bottom: 28px;
}

@media (max-width: 1024px) {
    .event-detail-body__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .event-detail-card {
        position: static;
        max-width: 520px;
    }

    .event-gallery__grid {
        grid-auto-rows: 190px;
    }
}

@media (max-width: 760px) {
    .event-detail-hero__inner {
        padding-top: 36px;
        padding-bottom: 56px;
    }

    .event-detail-hero.has-cover .event-detail-hero__inner {
        padding-bottom: 120px;
    }

    .event-breadcrumb {
        margin-bottom: 28px;
    }

    .event-detail-cover {
        margin-top: -90px;
    }

    .event-detail-cover img {
        aspect-ratio: 4 / 3;
        border-radius: 18px;
    }

    .event-detail-body {
        padding: 48px 0 64px;
    }

    .event-gallery {
        padding-bottom: 72px;
    }

    .event-gallery__header {
        padding-top: 40px;
    }

    /* Phones: 2 columns — big first tile, then pairs; an odd one out goes full width. */
    .event-gallery__grid,
    .event-gallery__grid[data-count] {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
        gap: 10px;
    }

    .event-gallery__grid .event-gallery__item,
    .event-gallery__grid .event-gallery__item:last-child {
        grid-column: auto;
        grid-row: auto;
    }

    .event-gallery__grid .event-gallery__item:first-child,
    .event-gallery__grid .event-gallery__item:last-child:nth-child(even) {
        grid-column: span 2;
    }

    .event-gallery__grid .event-gallery__item:first-child {
        grid-row: span 2;
    }

    .event-gallery__grid[data-count="1"] {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }

    .event-gallery__grid[data-count="1"] .event-gallery__item:first-child {
        grid-column: auto;
        grid-row: auto;
    }

    .event-gallery__caption {
        opacity: 1;
        transform: none;
    }

    .lightbox__figure {
        max-width: calc(100vw - 24px);
    }

    .lightbox__nav {
        top: auto;
        bottom: 20px;
        transform: none;
    }

    .lightbox__nav--prev {
        left: calc(50% - 60px);
    }

    .lightbox__nav--next {
        right: calc(50% - 60px);
    }

    .lightbox__image {
        max-height: calc(100vh - 200px);
    }

    .event-more__all {
        justify-self: start;
    }
}

/* ==========================================================================
   Resources page (resources.php)
   Reuses from the events page: .events-filter (black strip, search box, type
   pills), .events-list (summary line, empty state), .events-pagination; and
   the homepage .resource-card look for the listing grid.
   ========================================================================== */

/* ---------- Half-height centered header ---------- */

.resources-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 50vh;
    min-height: max(420px, 50svh);
    background-color: var(--ra-forest-700);
    text-align: center;
}

.resources-hero__bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at center, rgba(20, 39, 34, 0.35), rgba(20, 39, 34, 0.85) 75%),
        url('../img/footer_bg.webp');
    background-size: cover;
    background-position: center;
}

.resources-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 72px;
}

.resources-hero__eyebrow {
    color: var(--ra-gold);
    margin-bottom: 16px;
}

.resources-hero h1 {
    font-size: clamp(56px, 8vw, 112px);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ra-white);
}

.resources-hero p {
    max-width: 560px;
    margin-top: 22px;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

/* ---------- Latest 3: feature + pair ---------- */

.resources-latest {
    padding: 88px 0 104px;
    background: var(--ra-paper);
}

.resource-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.resource-feature__media,
.resource-tile__media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
}

.resource-feature__image,
.resource-tile__image {
    display: block;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.resource-feature__image {
    aspect-ratio: 16 / 9;
}

.resource-tile__image {
    aspect-ratio: 2 / 1;
}

.resource-feature__image.media-placeholder,
.resource-tile__image.media-placeholder {
    border-radius: 10px;
}

.resource-feature:hover .resource-feature__image,
.resource-tile:hover .resource-tile__image {
    transform: scale(1.03);
}

.resource-feature__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--ra-gray-500);
    margin-bottom: 14px;
}

.resource-feature__type {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ra-green-600);
}

.resource-feature__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(26px, 2.6vw, 36px);
    line-height: 1.15;
    color: var(--ra-forest);
    margin-bottom: 18px;
}

.resource-feature__title a,
.resource-tile__title a,
.resource-card--listing .resource-card__title a {
    color: inherit;
    text-decoration: none;
}

.resource-feature__title a:hover,
.resource-tile__title a:hover,
.resource-card--listing .resource-card__title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.resource-feature__excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ra-gray-700);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-topics {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.resource-topics a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--ra-forest);
    text-decoration: none;
    border: 1px solid var(--ra-gray-300);
    border-radius: 999px;
    padding: 5px 12px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.resource-topics a::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ra-green);
}

.resource-topics li:nth-child(3n + 2) a::before {
    background: var(--ra-gold);
}

.resource-topics li:nth-child(3n + 3) a::before {
    background: var(--ra-forest);
}

.resource-topics a:hover {
    border-color: var(--ra-forest);
    background: var(--ra-white);
}

.resource-feature__btn {
    margin-top: 28px;
}

.resources-latest__pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-top: 56px;
}

.resource-tile__type {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--ra-forest);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 5px 12px;
}

.resource-tile__title {
    margin-top: 20px;
    font-family: var(--font-sans);
    font-size: clamp(20px, 1.8vw, 24px);
    font-weight: 500;
    line-height: 1.3;
    color: var(--ra-forest);
}

.resource-tile__meta {
    margin-top: 8px;
    font-size: 14px;
    color: var(--ra-gray-500);
}

/* ---------- Black strip additions: sort select, pill counts ---------- */

.resources-filter__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.resources-filter__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
}

.resources-filter__sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.resources-filter__sort label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

.resources-filter__select {
    position: relative;
}

.resources-filter__select select {
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    font-size: 14px;
    color: var(--ra-white);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 11px 42px 11px 18px;
    cursor: pointer;
}

.resources-filter__select select:focus {
    outline: none;
    border-color: var(--ra-gold);
}

.resources-filter__select option {
    color: var(--ra-charcoal);
}

.resources-filter__select svg {
    position: absolute;
    right: 16px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

.resources-filter__types .events-filter__pill em {
    font-style: normal;
    font-size: 12px;
    margin-left: 6px;
    opacity: 0.55;
}

/* ---------- Listing grid (cards look like the homepage .resource-card) ---------- */

.resources-list__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 32px;
}

.resource-card--listing {
    display: flex;
    flex-direction: column;
}

.resource-card--listing .resource-card__media {
    display: block;
    overflow: hidden;
}

.resource-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.resource-card__image.media-placeholder {
    border-radius: 0;
}

.resource-card--listing:hover .resource-card__image {
    transform: scale(1.04);
}

.resource-card__excerpt {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ra-gray-700);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-card--listing .resource-card__link {
    margin-top: auto;
    padding-top: 20px;
}

@media (max-width: 1024px) {
    .resource-feature {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .resources-list__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .resources-latest {
        padding: 56px 0 64px;
    }

    .resources-latest__pair {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 44px;
    }

    .resources-filter__sort {
        width: 100%;
        justify-content: space-between;
    }

    .resources-list__grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Resource detail page (resource-detail.php)
   ========================================================================== */

.resource-article__header {
    padding: 56px 0 48px;
    background:
        radial-gradient(900px 380px at 50% 0%, rgba(196, 195, 104, 0.2), transparent 70%),
        var(--ra-paper);
    text-align: center;
}

/* Centered header: every row (breadcrumb, pill, title, lead, meta) sits on the center axis. */
.resource-article__header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.resource-article__header .resource-breadcrumb,
.resource-article__header .resource-article__meta {
    justify-content: center;
}

.resource-breadcrumb {
    color: var(--ra-gray-500);
    margin-bottom: 36px;
}

.resource-breadcrumb a {
    color: var(--ra-gray-700);
}

.resource-breadcrumb a:hover {
    color: var(--ra-green-600);
}

.resource-article__type {
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ra-forest);
    background: var(--ra-gold-100);
    border: 1px solid var(--ra-gold);
    border-radius: 999px;
    padding: 6px 14px;
    text-decoration: none;
    margin-bottom: 22px;
}

.resource-article__type:hover {
    background: var(--ra-gold);
}

.resource-article__header h1 {
    max-width: 980px;
    font-size: clamp(36px, 4.6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--ra-forest);
}

.resource-article__lead {
    max-width: 760px;
    margin-top: 22px;
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.6;
    color: var(--ra-gray-700);
}

.resource-article__meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
    margin-top: 28px;
    font-size: 14px;
    color: var(--ra-gray-700);
}

.resource-article__meta li + li::before {
    content: '·';
    margin: 0 12px;
    color: var(--ra-gray-500);
}

/* Notched cover, same cut-corner motif as .resource-card__media. */
.resource-article__cover img {
    display: block;
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 64px), calc(100% - 64px) 100%, 0 100%);
}

.resource-article__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 80px;
    align-items: start;
    padding-top: 64px;
    padding-bottom: 100px;
}

.resource-article__body {
    max-width: none;
    font-size: 18px;
    line-height: 1.8;
    color: var(--ra-charcoal);
}

.resource-article__body > * + * {
    margin-top: 22px;
}

.resource-article__body h2 {
    margin-top: 48px;
    font-size: clamp(26px, 2.4vw, 32px);
    line-height: 1.2;
    color: var(--ra-forest);
}

.resource-article__body h3 {
    margin-top: 36px;
    font-family: var(--font-sans);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ra-forest);
}

.resource-article__body h2 + *,
.resource-article__body h3 + * {
    margin-top: 14px;
}

.resource-article__body ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resource-article__body li {
    position: relative;
    padding-left: 28px;
}

.resource-article__body li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.72em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ra-gold);
}

.resource-download {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 44px !important;
    padding: 22px 24px;
    border-radius: 18px;
    background: var(--ra-green-50);
    border: 1px solid var(--ra-green-100);
}

.resource-download__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--ra-white);
    color: var(--ra-green-600);
}

.resource-download__icon svg {
    width: 24px;
    height: 24px;
}

.resource-download__text {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.resource-download__text strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--ra-forest);
}

.resource-download__text span {
    font-size: 14px;
    color: var(--ra-gray-700);
}

.resource-article__topics {
    margin-top: 44px !important;
    padding-top: 28px;
    border-top: 1px solid var(--ra-gray-300);
}

.resource-article__topics > span {
    display: block;
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--ra-gray-500);
}

.resource-article__topics .resource-topics {
    margin-top: 12px;
}

.resource-aside {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    background: var(--ra-white);
    border: 1px solid var(--ra-gray-300);
    border-radius: 24px;
    padding: 26px;
}

.resource-aside dl > div {
    padding: 12px 0;
    border-bottom: 1px solid var(--ra-gray-100);
}

.resource-aside dl > div:first-child {
    padding-top: 0;
}

.resource-aside dt {
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--ra-gray-500);
    margin-bottom: 2px;
}

.resource-aside dd {
    font-size: 15px;
    color: var(--ra-forest);
}

.resource-aside__download {
    width: 100%;
    gap: 10px;
    margin-top: 20px;
}

.resource-aside__download svg {
    width: 16px;
    height: 16px;
}

.resource-share {
    margin-top: 22px;
}

.resource-share__label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--ra-gray-500);
    margin-bottom: 10px;
}

.resource-share__buttons {
    display: flex;
    gap: 10px;
}

.resource-share__copy {
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.resource-share__copy.is-copied {
    background: var(--ra-green);
    border-color: var(--ra-green);
    color: var(--ra-white);
}

.resource-share__status {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    font-size: 13px;
    color: var(--ra-green-600);
}

.resource-related {
    padding: 88px 0 110px;
    background: var(--ra-gray-100);
}

.resource-related__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.resource-related__header h2 {
    font-size: clamp(32px, 4vw, 48px);
    color: var(--ra-forest);
}

@media (max-width: 1024px) {
    .resource-article__layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .resource-aside {
        position: static;
        max-width: 520px;
    }
}

@media (max-width: 760px) {
    .resource-article__header {
        padding: 36px 0 32px;
    }

    .resource-breadcrumb {
        margin-bottom: 24px;
    }

    .resource-article__cover img {
        aspect-ratio: 4 / 3;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), calc(100% - 32px) 100%, 0 100%);
    }

    .resource-article__layout {
        padding-top: 40px;
        padding-bottom: 64px;
    }

    .resource-article__body {
        font-size: 17px;
    }

    .resource-related {
        padding: 56px 0 72px;
    }
}

/* Phones: the date · author · read-time line wraps, and a wrapped line would start
   with a stray "·" — drop the dots and just space the items. */
@media (max-width: 520px) {
    .resource-article__meta {
        gap: 4px 16px;
    }

    .resource-article__meta li + li::before {
        content: none;
    }
}

/* Phones: same stray-separator guard isn't needed here (meta items have no dots),
   but keep the wrapped meta rows tight and centered. */
@media (max-width: 520px) {
    .event-detail-hero__meta {
        gap: 10px 20px;
    }
}

/* Keep the event breadcrumb on one line; a long current-page title truncates with "…". */
.event-detail-hero__inner .event-breadcrumb {
    flex-wrap: nowrap;
    max-width: 100%;
}

.event-detail-hero__inner .event-breadcrumb > * {
    flex-shrink: 0;
}

.event-detail-hero__inner .event-breadcrumb [aria-current] {
    flex-shrink: 1;
    min-width: 0;
}

/* ==========================================================================
   Homepage — Client testimonials (above Sustainability & Impact)
   Layout from a client-supplied reference: white card floating over a tinted
   band with hairline columns; photo + decorative shapes left, quote right,
   client logos along the bottom. Colors/type are the brand system.
   ========================================================================== */

.testimonials {
    position: relative;
    overflow: hidden;
    padding: 110px 0;
    background:
        linear-gradient(90deg, transparent calc(12% - 1px), rgba(30, 58, 47, 0.07) 12%, transparent calc(12% + 1px)),
        linear-gradient(90deg, transparent calc(88% - 1px), rgba(30, 58, 47, 0.07) 88%, transparent calc(88% + 1px)),
        var(--ra-green-50);
}

/* The solid vertical band behind the card (the reference's teal column). */
.testimonials__band {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 34%;
    width: 18%;
    background: var(--ra-green-100);
}

.testimonials__band::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: rgba(30, 58, 47, 0.08);
}

.testimonials__card {
    position: relative;
    z-index: 1;
    background: var(--ra-white);
    border-radius: 24px;
    padding: 72px 88px 48px;
    box-shadow: 0 40px 80px -30px rgba(30, 58, 47, 0.28);
}

.testimonials__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 72px;
    align-items: center;
}

/* ---------- Photo + decorative shapes ---------- */

.testimonials__visual {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 400 / 440;
    justify-self: center;
}

.testimonials__deco {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.testimonials__deco .deco-frame {
    fill: var(--ra-gray-100);
}

.testimonials__deco .deco-line {
    stroke: var(--ra-green);
    stroke-width: 2.5;
    stroke-linecap: round;
}

.testimonials__deco .deco-wave {
    stroke: var(--ra-green);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.testimonials__deco .deco-ring {
    stroke: var(--ra-gold);
    stroke-width: 3;
}

.testimonials__deco .deco-arc {
    stroke: var(--ra-gold);
    stroke-width: 8;
    stroke-linecap: round;
}

.testimonials__photos {
    position: absolute;
    top: 12%;
    left: 22%;
    right: 22%;
    bottom: 10%;
    display: grid;
}

.testimonials__photo {
    grid-area: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.6s ease, transform 0.6s ease;
    box-shadow: 0 20px 40px -18px rgba(30, 58, 47, 0.35);
}

.testimonials__photo.is-active {
    opacity: 1;
    transform: none;
}

.testimonials__photo img,
.testimonials__photo .media-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.testimonials__photo .media-placeholder {
    background: var(--ra-cream);
    border-color: rgba(30, 58, 47, 0.18);
}

/* ---------- Quote side ---------- */

.testimonials__eyebrow {
    display: block;
    font-size: 14px;
    color: var(--ra-gray-700);
    margin-bottom: 14px;
}

.testimonials__eyebrow span {
    color: var(--ra-green-600);
    border-bottom: 1.5px solid var(--ra-gold);
    padding-bottom: 1px;
}

.testimonials__content h2 {
    font-size: clamp(32px, 3.4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--ra-forest);
    max-width: 440px;
}

.testimonials__slides {
    display: grid;
    margin-top: 34px;
}

.testimonials__slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.testimonials__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.testimonials__slide blockquote {
    position: relative;
    padding-left: 60px;
}

.testimonials__mark {
    position: absolute;
    left: 0;
    top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ra-gold);
    color: var(--ra-forest);
}

.testimonials__mark svg {
    width: 18px;
    height: 18px;
}

.testimonials__slide blockquote p {
    font-size: clamp(17px, 1.45vw, 20px);
    line-height: 1.65;
    color: var(--ra-gray-700);
}

.testimonials__slide figcaption {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 26px;
    padding-left: 60px;
}

.testimonials__slide figcaption strong {
    font-size: 17px;
    font-weight: 600;
    color: var(--ra-forest);
}

.testimonials__slide figcaption span {
    font-size: 13px;
    color: var(--ra-gray-500);
}

.testimonials__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    padding-left: 60px;
}

.testimonials__counter {
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--ra-gray-500);
}

.testimonials__counter [data-current] {
    color: var(--ra-forest);
    font-weight: 600;
}

.testimonials__arrows {
    display: flex;
    gap: 8px;
}

.testimonials__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--ra-gray-300);
    border-radius: 50%;
    background: var(--ra-white);
    color: var(--ra-forest);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.testimonials__arrow:hover {
    background: var(--ra-forest);
    border-color: var(--ra-forest);
    color: var(--ra-white);
}

.testimonials__arrow:focus-visible {
    outline: 2px solid var(--ra-gold);
    outline-offset: 2px;
}

.testimonials__arrow svg {
    width: 18px;
    height: 18px;
}

/* ---------- Client logos row ---------- */

.testimonials__logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 64px;
    padding-top: 36px;
    border-top: 1px solid var(--ra-gray-100);
}

.testimonials__logos .logo-placeholder {
    width: 132px;
    height: 44px;
}

.testimonials__logos img {
    height: 36px;
    width: auto;
    filter: grayscale(1);
    opacity: 0.6;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.testimonials__logos img:hover {
    filter: none;
    opacity: 1;
}

@media (max-width: 1024px) {
    .testimonials__card {
        padding: 56px 48px 40px;
    }

    .testimonials__main {
        gap: 48px;
    }
}

@media (max-width: 860px) {
    .testimonials {
        padding: 72px 0;
    }

    .testimonials__band {
        left: 30%;
        width: 40%;
    }

    .testimonials__main {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .testimonials__visual {
        max-width: 320px;
    }

    .testimonials__content h2 {
        max-width: none;
    }
}

@media (max-width: 520px) {
    .testimonials__card {
        padding: 36px 22px 28px;
        border-radius: 20px;
    }

    .testimonials__slide blockquote,
    .testimonials__slide figcaption,
    .testimonials__controls {
        padding-left: 0;
    }

    .testimonials__mark {
        position: static;
        margin-bottom: 14px;
    }

    .testimonials__logos {
        justify-content: center;
        margin-top: 44px;
    }

    .testimonials__logos .logo-placeholder {
        width: 110px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonials__photo,
    .testimonials__slide {
        transition: none;
    }
}

/* Real client logos in the testimonials card (uploaded via the admin). */
.testimonials__logos {
    justify-content: center;
    column-gap: 56px;
}

.testimonials__logos a {
    display: inline-flex;
}

.testimonials__logos img {
    max-width: 150px;
    object-fit: contain;
}

.testimonials__logos a:focus-visible {
    outline: 2px solid var(--ra-gold);
    outline-offset: 6px;
    border-radius: 4px;
}

/* ---------- Legal pages (Privacy Policy, Terms of Service, Cookie Policy) ---------- */

.legal-page {
    padding: 64px 0 96px;
}

.legal-page h1 {
    margin-top: 8px;
    font-size: clamp(32px, 4vw, 44px);
}

.legal-page__updated {
    margin-top: 12px;
    font-size: 14px;
    color: var(--ra-gray-500);
}

.legal-page__content {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--ra-gray-300);
}

/* ---------- ECO@Read ---------- */

.eco-read-hero p {
    max-width: 720px;
}

/* ---------- Newsletter signup band (gold) ---------- */

.newsletter-band {
    padding: 56px 0;
    background: linear-gradient(135deg, #FFE28A 0%, #FFC93C 45%, #F2A900 100%);
}

.newsletter-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px 56px;
    flex-wrap: wrap;
}

/* Wide text column (short band): heading + paragraph run across ~half the width. */
.newsletter-band__text {
    flex: 1 1 520px;
    max-width: 760px;
}

.newsletter-band__text .eyebrow {
    color: var(--ra-forest-700);
}

.newsletter-band__text h2 {
    margin-top: 8px;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    color: var(--ra-forest-700);
}

.newsletter-band__text p {
    margin-top: 10px;
    max-width: 680px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(20, 39, 34, 0.75);
}

.newsletter-form {
    flex: 1 1 520px;
    max-width: 620px;
}

.newsletter-form .form-alert {
    margin-bottom: 16px;
}

.newsletter-form__row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* Name, email and button on one line on wide screens. */
.newsletter-form__name,
.newsletter-form__email {
    flex: 1 1 0;
    min-width: 0;
}

.newsletter-form__email {
    flex-grow: 1.3;
}

.newsletter-form__name input,
.newsletter-form__email input {
    width: 100%;
}

.newsletter-form__submit {
    flex: 0 0 auto;
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    background: var(--ra-forest);
    color: var(--ra-white);
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.newsletter-form__submit:hover {
    background: var(--ra-forest-700);
}

.newsletter-form .form-field__error {
    display: block;
    margin-top: 8px;
}

.newsletter-band__success {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-band__success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: rgba(20, 39, 34, 0.12);
    color: var(--ra-forest-700);
}

.newsletter-band__success-icon svg {
    width: 26px;
    height: 26px;
}

.newsletter-band__success h2 {
    color: var(--ra-forest-700);
}

.newsletter-band__success p {
    margin-top: 8px;
    color: rgba(20, 39, 34, 0.75);
}

@media (max-width: 720px) {
    .newsletter-band {
        padding: 56px 0;
    }

    .newsletter-band__inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .newsletter-band__text {
        max-width: none;
    }

    .newsletter-form {
        max-width: none;
    }

    .newsletter-form__row {
        flex-direction: column;
    }

    .newsletter-form__submit {
        width: 100%;
    }
}

/* ---------- Rich HTML bodies (ECO@Read posts written in the admin editor) ----------
   Extends .resource-article__body typography with media and the editor's
   alignment/indent classes. Images and videos can sit anywhere in the text. */

.rich-body img,
.rich-body video {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.rich-body video {
    width: 100%;
    background: #000;
}

.rich-body iframe.ql-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: 14px;
    background: #000;
}

/* Media inside a paragraph (the editor puts images inline) still gets breathing room. */
.rich-body p > img {
    margin: 8px 0;
}

.rich-body a:not(.btn) {
    color: var(--ra-green-600);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Components inside the article body (download card, topic chips) keep their own look
   instead of picking up the prose link / list styles above. */
.rich-body .btn {
    text-decoration: none;
}

.rich-body .resource-topics {
    flex-direction: row;
    gap: 8px;
    margin-top: 20px;
}

.rich-body .resource-topics li {
    padding-left: 0;
}

.rich-body .resource-topics li::before {
    content: none;
}

.rich-body .resource-topics a {
    color: var(--ra-forest);
    text-decoration: none;
}

.rich-body strong {
    font-weight: 600;
}

.rich-body ol {
    padding-left: 1.4em;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rich-body ol li {
    padding-left: 6px;
}

.rich-body ol li::before {
    content: none;
}

.rich-body blockquote {
    border-left: 3px solid var(--ra-gold);
    padding: 4px 0 4px 22px;
    font-family: var(--font-display);
    font-size: 1.15em;
    line-height: 1.6;
    color: var(--ra-forest);
}

.rich-body .ql-align-center { text-align: center; }
.rich-body .ql-align-right { text-align: right; }
.rich-body .ql-align-justify { text-align: justify; }
.rich-body img.ql-align-center,
.rich-body .ql-align-center > img { margin-left: auto; margin-right: auto; }
.rich-body .ql-indent-1 { padding-left: 2em; }
.rich-body .ql-indent-2 { padding-left: 4em; }
.rich-body .ql-indent-3 { padding-left: 6em; }

/* Event page: rich HTML description uses the article typography, sized to the event column. */
.event-detail-content__body {
    max-width: none;
    font-size: 17px;
}

.event-detail-content__body > *:first-child {
    margin-top: 0;
}

/* Announcement bar colour options (chosen in admin/announcement.php). Gold is the default above. */
.announcement-bar--forest {
    background: var(--ra-forest);
}

.announcement-bar--forest .announcement-bar__text,
.announcement-bar--forest .announcement-bar__close {
    color: var(--ra-white);
}

.announcement-bar--forest .announcement-bar__link {
    color: var(--ra-gold);
}

.announcement-bar--cream {
    background: var(--ra-cream);
    border-bottom: 1px solid var(--ra-gray-300);
}

.announcement-bar__link {
    margin-left: 6px;
    font-weight: 600;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.announcement-bar__link:hover {
    text-decoration-thickness: 2px;
}

/* Service cards with a real photo (services.php): photo fills the notched card,
   a dark gradient keeps the white label readable. Long service names wrap and
   stay clear of the cut corner. */
.service-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card--photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 39, 34, 0) 35%, rgba(20, 39, 34, 0.82) 100%);
}

.service-card--photo:hover .service-card__image {
    transform: scale(1.04);
}

.service-card--photo .service-card__label {
    color: var(--ra-white);
}

.service-card__label {
    right: 64px;
    line-height: 1.35;
}

@media (max-width: 640px) {
    .service-card__label {
        font-size: 16px;
    }
}

/* ---------- Clickable service cards (services.php + homepage "Top services") ----------
   Each card links to contact.php?subject=<service name>. A small arrow badge, always
   visible in the bottom-right corner (inset past the notched corner), signals it's clickable. */

a.service-card {
    display: block;
}

a.service-card,
a.top-services__slide {
    text-decoration: none;
    color: inherit;
}

.service-card__cta {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ra-forest);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.service-card__cta svg {
    width: 16px;
    height: 16px;
}

a.service-card:hover .service-card__cta,
a.service-card:focus-visible .service-card__cta {
    transform: translate(2px, -2px);
    background: var(--ra-green);
    color: var(--ra-white);
}

a.service-card:not(.service-card--photo):hover .service-card__media {
    background: var(--ra-green-100);
}

a.service-card:focus-visible,
a.top-services__slide:focus-visible {
    outline: 3px solid var(--ra-gold);
    outline-offset: 3px;
}

/* Hero slides with a real banner photo (index.php $hero_slides['image']). A light
   overall tint on top of the existing bottom gradient keeps the centered white
   headline readable over a busy photo. */
.hero-slider__slide.has-image .hero-slider__media {
    background-color: var(--ra-forest-700);
    background-size: cover;
    background-position: center;
}

.hero-slider__slide.has-image .hero-slider__overlay {
    background:
        radial-gradient(ellipse 60% 55% at 50% 48%, rgba(20, 39, 34, 0.55), rgba(20, 39, 34, 0) 75%),
        linear-gradient(to bottom, rgba(20, 39, 34, 0.15) 0%, rgba(20, 39, 34, 0.15) 40%, rgba(20, 39, 34, 0.85) 100%);
}

/* ---------- Footer: email-only newsletter signup (Connect column) ---------- */

.footer-newsletter {
    margin-top: 20px;
}

.footer-newsletter__label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--ra-gray-700);
    margin-bottom: 10px;
}

.footer-newsletter__row {
    display: flex;
    align-items: center;
    max-width: 320px;
    background: var(--ra-white);
    border: 1px solid var(--ra-gray-300);
    border-radius: 999px;
    padding: 4px 4px 4px 16px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.footer-newsletter__row:focus-within {
    border-color: var(--ra-green);
    box-shadow: 0 0 0 3px rgba(111, 143, 62, 0.15);
}

.footer-newsletter__row input {
    flex: 1;
    min-width: 0;
    font-family: inherit;
    font-size: 14px;
    color: var(--ra-charcoal);
    background: transparent;
    border: none;
    outline: none;
    padding: 8px 0;
}

.footer-newsletter__row input::placeholder {
    color: var(--ra-gray-500);
}

.footer-newsletter__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--ra-forest);
    color: var(--ra-white);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.footer-newsletter__submit:hover {
    background: var(--ra-green);
}

.footer-newsletter__submit svg {
    width: 16px;
    height: 16px;
}

.footer-newsletter__status {
    margin-top: 8px;
    font-size: 13px;
    color: var(--ra-gray-700);
}

.footer-newsletter__status.is-ok {
    color: var(--ra-green-600);
    font-weight: 600;
}

.footer-newsletter__status.is-error {
    color: #A23E28;
}

#footer-newsletter {
    scroll-margin-top: calc(var(--header-height) + 24px);
}

/* ---------- Team member detail page ---------- */

.team-member-aside__photo-wrap {
    margin: -26px -26px 20px;
}

.team-member-aside__photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

img.team-member-aside__photo {
    border: none;
}

.team-member-aside__photo.media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member-aside__photo.media-placeholder svg {
    width: 72px;
    height: 72px;
}

.team-member-aside__linkedin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 16px;
}

.team-member-aside__linkedin svg {
    width: 16px;
    height: 16px;
}

.resource-aside dd.team-member-aside__name {
    font-size: 20px;
    font-weight: 600;
}

@media (min-width: 1025px) {
    .team-member-layout {
        grid-template-columns: 320px minmax(0, 720px);
        max-width: 1120px;
        margin-left: auto;
        margin-right: auto;
    }

    .team-member-layout .resource-article__body {
        order: 2;
        max-width: none;
    }

    .team-member-layout .resource-aside {
        order: 1;
    }
}

@media (max-width: 1100px) and (min-width: 721px) {
    .newsletter-form__row {
        flex-wrap: wrap;
    }

    .newsletter-form__name,
    .newsletter-form__email {
        flex: 1 1 200px;
    }
}

/* Phones: the band stacks vertically, so the desktop flex-basis (a width) must not
   turn into a 520px height. */
@media (max-width: 720px) {
    .newsletter-band__text,
    .newsletter-form {
        flex: 0 0 auto;
    }

    .newsletter-form__name,
    .newsletter-form__email {
        flex: 0 0 auto;
        width: 100%;
    }
}
