* {
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--charcoal);
    background: var(--white);
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

.image-frame {
    position: relative;
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--grey-300);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.image-frame > img {
    width: 100%;
    min-height: inherit;
    object-fit: cover;
}

.image-frame:hover {
    border-color: var(--primary);
    box-shadow: 0 24px 52px rgba(18, 43, 45, .14);
    transform: translateY(-5px);
}

a {
    color: var(--primary);
}

button {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -60px;
    z-index: 1000;
    padding: 10px 16px;
    color: var(--white);
    background: var(--primary);
}

.skip-link:focus {
    top: 16px;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    margin: 0 0 10px;
    border-radius: 999px;
    padding: 6px 11px;
    color: var(--white) !important;
    background: var(--badge-gradient);
    box-shadow: 0 7px 18px rgba(15, 94, 99, .16);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0 0 18px;
    color: var(--grey-900);
    font-weight: 700;
    line-height: 1.16;
    text-align: left;
}

h1 {
    max-width: 24ch;
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    letter-spacing: -.055em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.35rem);
    letter-spacing: -.04em;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin: 0 0 20px;
}

.lead {
    max-width: 720px;
    color: var(--grey-700);
    font-size: clamp(1.04rem, 2vw, 1.25rem);
}

.section-intro {
    margin-bottom: 46px;
    border-bottom: 1px solid var(--grey-300);
    padding-bottom: 30px;
}

.brief-statement,
.belief-statement {
    display: block;
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    inline-size: 100%;
    max-width: none;
    max-inline-size: none;
    margin: 24px 0 0;
    border: 1px solid var(--grey-200);
    border-left: 4px solid var(--primary, var(--secondary));
    padding: 20px 24px;
    color: var(--grey-700);
    background: var(--white);
    font-size: 1.05rem;
    font-weight: 600;
}

.section-intro > .brief-statement {
    margin-bottom: 0;
}

.section--primary .section-intro {
    border-color: rgba(255, 255, 255, .28);
}

@media (min-width: 1100px) {
    .section-intro > .brief-statement {
        font-size: clamp(.9rem, 1.15vw, 1.05rem);
        white-space: nowrap;
    }
}

.section--soft {
    background: var(--grey-100);
}

.section--primary {
    color: var(--white);
    background: var(--primary);
}

.section--primary h2,
.section--primary h3 {
    color: var(--white);
}

.section {
    padding: 80px 0;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
    border-radius: 6px;
    padding: 11px 20px;
    color: var(--white);
    background: var(--primary);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}

.button:hover {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cta {
    padding: clamp(1.25rem, 5vw, 56px);
    color: var(--charcoal);
    background: var(--white);
}

.cta h2 {
    max-width: none;
    color: var(--grey-900);
}

.cta > div:first-child {
    max-width: 820px;
}

.cta .button-row {
    margin-top: 26px;
}

/* ======================
SITE HEADER
====================== */

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, .98);
}

.header-inner {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr);
    align-items: center;
    padding-inline: 1rem;
    min-height: 100px;
}

.brand {
    grid-column: 1;
    justify-self: start;
}

.brand img {
    width: 200px;
    height: auto;
}

.nav {
    display: contents;
}

.nav ul {
    display: flex;
    grid-column: 2;
    align-items: center;
    justify-self: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav a:not(.button),
.nav__dropdown-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 0;
    padding: 1.5rem .55rem;
    color: var(--grey-900);
    background: transparent;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.nav>.button {
    grid-column: 3;
    justify-self: end;
    border-radius: 999px;
    padding: 6px 7px 6px 18px;
}

.nav>.button span {
    display: inline-grid;
    width: 30px;
    height: 30px;
    margin-left: 7px;
    place-items: center;
    border-radius: 50%;
    color: var(--primary);
    background: var(--white);
    font-size: 1rem;
}

.nav a:not(.button):hover,
.nav a:not(.button)[aria-current="page"],
.nav__dropdown-button:hover {
    color: var(--green-deep);
}

.nav a:not(.button)[aria-current="page"] {
    color: var(--green-deep);
}

.nav__item--dropdown {
    position: relative;
}

.nav__dropdown-button::after {
    content: "\25BE";
    align-self: center;
    font-size: .9rem;
    line-height: 1;
}

.nav__dropdown {
    position: absolute;
    top: calc(100% - 4px);
    left: 50%;
    translate: -50% 0;
    display: none !important;
    min-width: 230px;
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: 5px !important;
    background: var(--white);
    box-shadow: var(--shadow);
}

.nav .nav__dropdown a {
    display: flex;
    padding: 8px 10px;
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown,
.nav__item--dropdown.is-open .nav__dropdown {
    display: block !important;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 42px;
    border: 1px solid var(--primary);
    border-radius: 5px;
    color: var(--white);
    background: var(--primary);
    font-size: 1.35rem;
    cursor: pointer;
}

.site-footer {
    /* width: min(1440px, calc(100% - 40px)); */
    margin: 54px auto 0;
    overflow: hidden;
    border: 0;
    border-radius: 18px 18px 0 0;
    color: rgba(255, 255, 255, .92);
    background: var(--footer-gradient);
}

/* --- Mobile First Default (1 Column) --- */
.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0 36px;
}

/* --- Tablet Breakpoint (2 Columns) --- */
@media (min-width: 640px) and (max-width: 1023px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 40px;
    }
}

/* --- Desktop Breakpoint (Exact Original Layout Restored) --- */
@media (min-width: 1024px) {
    .footer-main {
        grid-template-columns: .8fr .8fr 1.1fr .85fr;
        gap: clamp(32px, 5vw, 74px);
        padding: 64px 0 46px;
    }
}

.footer-brand {
    display: flex;
    align-items: flex-start;
}

.footer-brand a {
    display: inline-block;
    line-height: 0;
}

.footer-logo {
    width: 230px;
    margin: 0;
    border-radius: 5px;
    padding: 9px;
    background: rgba(255, 255, 255, .96);
}

.site-footer h3 {
    position: relative;
    margin-bottom: 1rem;
    padding-bottom: 13px;
    color: var(--white);
}

.site-footer h3::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(15, 94, 99, .55);
    content: "";
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin-bottom: 9px;
}

.site-footer a {
    color: rgba(255, 255, 255, .92);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--white);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact li > span:first-child {
    display: inline-grid;
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 1.25rem;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: rgba(15, 94, 99, .72);
    font-size: .72rem;
}

/* --- Footer Bottom (Mobile Default: Stacked) --- */
.footer-bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .16);
    padding: 21px 0 25px;
    font-size: .74rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom p:nth-child(2),
.footer-bottom p:last-child {
    text-align: center;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
}

/* --- Footer Bottom (Desktop/Tablet Layout) --- */
@media (min-width: 768px) {
    .footer-bottom {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 24px;
        align-items: center;
        text-align: left;
    }

    .footer-bottom p:nth-child(2) {
        text-align: right;
    }

    .footer-legal-links {
        justify-content: flex-end;
    }
}

@media (max-width: 1200px) {
    .menu-toggle {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

    .header-inner {
        grid-template-columns: 1fr auto;
        min-height: 76px;
        padding: 10px 1rem;
    }

    .brand {
        flex-basis: 190px;
    }

    .brand img {
        width: 190px;
    }

    .nav {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        align-items: stretch;
        padding: 10px 0 18px;
    }

    .nav.is-open {
        display: block;
    }

    .nav ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: min(140px,100%);
        margin: 0 auto;
        padding: 0;
    }

    .nav ul > li {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .nav a:not(.button),
    .nav__dropdown-button {
        font-size: 1.05rem;      
        letter-spacing: 0.6px;   
        font-weight: 600;
        width: 100%;
        justify-content: flex-start;
        padding: 10px;
        margin: 0;
        text-align: left;
    }
    .nav__item--dropdown {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        }

    .nav__dropdown {
        position: static;
        translate: none;
        border: 0;
        padding: 0 0 0 14px !important;
        box-shadow: none;
        list-style: none;
    }

    .nav .button {
        display: flex;             
        align-items: center;
        justify-content: center;
        width: fit-content;         
        min-width: 140px;          
        margin: 18px auto 0;       
        text-align: center;
    }

    .nav a[aria-current="page"] {
        box-shadow: none;
        padding-left: 8px;
    }

    .nav a:not(.button)::after {
        left: 0;
        right: 0;
        bottom: 0;
    }

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

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

    .footer-bottom p:nth-child(2),
    .footer-bottom p:last-child {
        text-align: left;
    }
}

@media (max-width: 780px) {
    .container {
        width: min(100% - 36px, var(--container));
    }

    .section {
        padding: 60px 0;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .footer-main {
        gap: 38px;
    }

    .site-footer {
        width: calc(100% - 24px);
    }
}

@media (max-width: 520px) {
    h1 {
        font-size: 2.65rem;
    }

    h2 {
        font-size: 2rem;
    }

    .button:not(.nav .button) {
        width: 100%;
    }
}

@keyframes hero-enter {
    from {
        opacity: 0;
        transform: translate3d(-1.25rem, 18px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes dropdown-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown,
.nav__item--dropdown.is-open .nav__dropdown {
    animation: dropdown-enter .2s ease-out both;
}

.motion-ready .reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}

.motion-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.nav a:not(.button) {
    position: relative;
}

.nav a:not(.button)::after {
    position: absolute;
    right: 10px;
    bottom: 7px;
    left: 10px;
    height: 2px;
    background: var(--brand-gradient-horizontal);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}

.nav a:not(.button):hover::after,
.nav a:not(.button)[aria-current="page"]::after {
    transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .motion-ready .reveal {
        opacity: 1;
        transform: none;
    }
}
