/* ==========================================================================
   NIMS Herbals — Design System
   Premium botanical-science B2B. Custom, dependency-free (no Bootstrap/jQuery).
   Sections:
     1. Tokens          7. Forms
     2. Reset & base    8. Header / navigation
     3. Typography      9. Page hero & breadcrumbs
     4. Layout          10. Footer
     5. Buttons/badges  11. Utilities & motion hooks
     6. Cards/tables    12. Responsive
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
    /* Brand greens */
    --c-pine: #0a3426; /* deepest — footer, topbar */
    --c-forest: #0d4433; /* headline green */
    --c-forest-2: #0f5b41;
    --c-primary: #14704f; /* interactive green */
    --c-primary-2: #1d8a60; /* hover green */
    --c-mist: #edf4ef; /* tinted surface */
    --c-mist-2: #f7faf7; /* subtle alt surface */
    /* Botanical gold accent */
    --c-gold: #c6a34a;
    --c-gold-2: #a8832f;
    /* Neutrals */
    --c-ink: #17251f;
    --c-body: #42534b;
    --c-muted: #6b7a72;
    --c-line: #dde6e0;
    --c-line-2: #ecf1ed;
    --c-white: #ffffff;
    /* Status */
    --c-danger: #b3402f;
    --c-danger-bg: #fbeeea;
    --c-info: #1d5f8a;
    --c-info-bg: #eaf3fa;
    --c-success: #14704f;
    --c-success-bg: #edf4ef;
    /* Typography */
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Epilogue", "Segoe UI", system-ui, -apple-system, sans-serif;
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.0625rem;
    --fs-lg: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
    --fs-h3: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
    --fs-h2: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
    --fs-h1: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
    /* Space & shape */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.5rem;
    --sp-6: 2rem;
    --sp-7: 3rem;
    --sp-8: 4.5rem;
    --r-sm: 6px;
    --r: 12px;
    --r-lg: 20px;
    --r-full: 999px;
    --sh-sm: 0 1px 2px rgba(10, 52, 38, .07);
    --sh: 0 8px 24px -12px rgba(10, 52, 38, .28);
    --sh-lg: 0 24px 60px -24px rgba(10, 52, 38, .35);
    /* Layout */
    --container: 1200px;
    --gutter: clamp(1.1rem, 4vw, 2rem);
    --section-y: clamp(3.5rem, 7vw, 6rem);
    --header-h: 4.75rem;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 2. RESET & BASE ---------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-md);
    line-height: 1.65;
    color: var(--c-body);
    background: var(--c-white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

ul, ol {
    padding-left: 1.2em;
}

a {
    color: var(--c-primary);
    text-decoration: none;
    transition: color .2s var(--ease);
}

    a:hover {
        color: var(--c-primary-2);
    }

:focus-visible {
    outline: 3px solid rgba(198, 163, 74, .75);
    outline-offset: 2px;
    border-radius: 3px;
}

::selection {
    background: var(--c-forest);
    color: #fff;
}

/* 3. TYPOGRAPHY ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--c-forest);
    font-variation-settings: "SOFT" 0, "WONK" 0;
    letter-spacing: -0.01em;
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

h4 {
    font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem);
}

h5, h6 {
    font-size: var(--fs-base);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--c-gold-2);
}

    .eyebrow::before {
        content: "";
        width: 1.9em;
        height: 1.5px;
        background: var(--c-gold);
    }

.eyebrow--plain::before {
    display: none;
}

.lead {
    font-size: var(--fs-md);
    line-height: 1.7;
    color: var(--c-body);
}

.muted {
    color: var(--c-muted);
}

.small {
    font-size: var(--fs-sm);
}

strong, b {
    color: var(--c-ink);
    font-weight: 600;
}

/* 4. LAYOUT ---------------------------------------------------------------- */
.container {
    width: min(100% - var(--gutter) * 2, var(--container));
    margin-inline: auto;
}

.container--wide {
    max-width: 1360px;
}

.container--narrow {
    max-width: 860px;
}

.section {
    padding-block: var(--section-y);
}

.section--tight {
    padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--tint {
    background: var(--c-mist-2);
}

.section--mint {
    background: var(--c-mist);
}

.section--dark {
    background: var(--c-pine);
    color: #d8e5dd;
}

    .section--dark h2, .section--dark h3, .section--dark strong {
        color: #fff;
    }

    .section--dark .lead {
        color: #c3d5cb;
    }

.section-head {
    max-width: 95%;
    margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

    .section-head .eyebrow {
        margin-bottom: .9rem;
    }

    .section-head h2 {
        margin-bottom: .9rem;
    }

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

    .section-head--center .eyebrow {
        justify-content: center;
    }

.grid {
    display: grid;
    gap: clamp(1.1rem, 2.5vw, 1.75rem);
}

.grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(1.75rem, 5vw, 4rem);
    align-items: center;
}

.stack > * + * {
    margin-top: var(--sp-4);
}

.flex {
    display: flex;
}

.flex--wrap {
    flex-wrap: wrap;
}

.flex--between {
    justify-content: space-between;
}

.flex--center {
    align-items: center;
}

.gap-3 {
    gap: var(--sp-3);
}

.gap-4 {
    gap: var(--sp-4);
}

/* 5. BUTTONS & BADGES ------------------------------------------------------ */
.btn {
    --btn-bg: var(--c-primary);
    --btn-fg: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    padding: .8em 1.7em;
    border: 1.5px solid transparent;
    border-radius: var(--r-full);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--sh);
        color: var(--btn-fg);
    }

    .btn:active {
        transform: translateY(0);
    }

    .btn svg {
        width: 1em;
        height: 1em;
    }

.btn--primary {
    --btn-bg: var(--c-primary);
    --btn-fg: #fff;
}

    .btn--primary:hover {
        --btn-bg: var(--c-primary-2);
    }

.btn--gold {
    --btn-bg: var(--c-gold);
    --btn-fg: var(--c-pine);
}

    .btn--gold:hover {
        --btn-bg: var(--c-gold-2);
        --btn-fg: #fff;
    }

.btn--forest {
    --btn-bg: var(--c-forest);
    --btn-fg: #fff;
}

    .btn--forest:hover {
        --btn-bg: var(--c-forest-2);
    }

.btn--outline {
    --btn-bg: transparent;
    --btn-fg: var(--c-primary);
    border-color: var(--c-primary);
}

    .btn--outline:hover {
        --btn-bg: var(--c-primary);
        --btn-fg: #fff;
    }

.btn--ghost {
    --btn-bg: transparent;
    --btn-fg: #fff;
    border-color: rgba(255,255,255,.55);
}

    .btn--ghost:hover {
        --btn-bg: #fff;
        --btn-fg: var(--c-forest);
        border-color: #fff;
    }

.btn--lg {
    padding: 1em 2.2em;
    font-size: var(--fs-base);
}

.btn--block {
    width: 100%;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    font-weight: 600;
    font-size: var(--fs-sm);
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--c-primary);
}

    .btn-link::after {
        content: "\2192";
        transition: transform .2s var(--ease);
    }

    .btn-link:hover::after {
        transform: translateX(4px);
    }

.badge {
    display: inline-block;
    padding: .35em .9em;
    border-radius: var(--r-full);
    background: var(--c-mist);
    color: var(--c-forest);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .06em;
}

.badge--gold {
    background: rgba(198, 163, 74, .16);
    color: var(--c-gold-2);
}

.badge--outline {
    background: transparent;
    border: 1px solid var(--c-line);
    color: var(--c-muted);
}

.badge--code {
    background: var(--c-forest);
    color: var(--c-gold);
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    letter-spacing: .1em;
}

/* 6. CARDS & TABLES -------------------------------------------------------- */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(1.4rem, 3vw, 2rem);
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

    .card > * + * {
        margin-top: .7rem;
    }

a.card, .card--link:hover {
    transform: translateY(-5px);
    box-shadow: var(--sh);
    border-color: transparent;
}

.card--tint {
    background: var(--c-mist-2);
    border-color: transparent;
}

.card--dark {
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.12);
    color: #cddcd3;
}

    .card--dark h3, .card--dark h4 {
        color: #fff;
    }

.card__icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 14px;
    background: linear-gradient(140deg, var(--c-mist), #dfeee5);
    color: var(--c-primary);
}

    .card__icon svg {
        width: 1.6rem;
        height: 1.6rem;
    }

.card__icon--gold {
    background: rgba(198,163,74,.15);
    color: var(--c-gold-2);
}

.card__media {
    margin: calc(-1 * clamp(1.4rem, 3vw, 2rem)) calc(-1 * clamp(1.4rem, 3vw, 2rem)) 1rem;
    border-radius: var(--r) var(--r) 0 0;
    overflow: hidden;
    background: var(--c-mist);
}

    .card__media img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        transition: transform .5s var(--ease);
    }

a.card:hover .card__media img {
    transform: scale(1.05);
}

/* Image-only frame (galleries) */
.card--frame {
    padding: 0;
    overflow: hidden;
}

    .card--frame .card__media {
        margin: 0;
        border-radius: var(--r);
        height: 100%;
    }

        .card--frame .card__media img {
            height: 100%;
            min-height: 230px;
        }

.card__title {
    font-size: var(--fs-lg);
}

    .card__title a {
        color: inherit;
    }

        .card__title a:hover {
            color: var(--c-primary);
        }

.card__text {
    color: var(--c-body);
    font-size: var(--fs-base);
}

.card__foot {
    margin-top: auto;
    padding-top: 1rem;
}

/* Stat highlight */
.stat {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.stat__value {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem);
    font-weight: 600;
    line-height: 1;
    color: var(--c-gold);
}

.stat__label {
    font-size: var(--fs-sm);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-muted);
}

/* Tables (product tables etc.) */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    background: var(--c-white);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-base);
    min-width: 640px;
}

    .table caption {
        text-align: left;
        padding: 1rem 1.25rem 0;
        color: var(--c-muted);
        font-size: var(--fs-sm);
    }

    .table th, .table td {
        padding: .85rem 1.25rem;
        text-align: left;
        border-bottom: 1px solid var(--c-line-2);
        vertical-align: top;
    }

    .table thead th {
        background: var(--c-forest);
        color: #e9f2ec;
        font-family: var(--font-body);
        font-size: var(--fs-xs);
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
        border-bottom: 0;
    }

    .table tbody tr:nth-child(even) {
        background: var(--c-mist-2);
    }

    .table tbody tr:hover {
        background: var(--c-mist);
    }

    .table tbody tr:last-child td {
        border-bottom: 0;
    }

    .table td code, .mono {
        font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
        font-size: .95em;
    }

/* 7. FORMS ----------------------------------------------------------------- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: var(--sp-4) var(--sp-5);
}

.field {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.field--full {
    grid-column: 1 / -1;
}

.label {
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--c-ink);
}

    .label .req {
        color: var(--c-danger);
    }

.input, .select, .textarea {
    width: 100%;
    padding: .8em 1em;
    border: 1.5px solid var(--c-line);
    border-radius: 10px;
    background: var(--c-white);
    color: var(--c-ink);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

    .input::placeholder, .textarea::placeholder {
        color: #9aa8a0;
    }

    .input:focus, .select:focus, .textarea:focus {
        outline: none;
        border-color: var(--c-primary);
        box-shadow: 0 0 0 4px rgba(20, 112, 79, .12);
    }

.textarea {
    min-height: 150px;
    resize: vertical;
}

.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2342534b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1em center;
    padding-right: 2.5em;
}

.form-hint {
    font-size: var(--fs-sm);
    color: var(--c-muted);
}

.field-error, .input-validation-error {
    border-color: var(--c-danger);
    background: var(--c-danger-bg);
}

.validation-summary-errors, .field-errors {
    color: var(--c-danger);
    font-size: var(--fs-sm);
}

.check {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: var(--fs-sm);
}

    .check input {
        margin-top: .35em;
        accent-color: var(--c-primary);
    }

/* Alerts / inline states */
.alert {
    padding: .95em 1.2em;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: var(--fs-base);
}

.alert--success {
    background: var(--c-success-bg);
    border-color: rgba(20,112,79,.3);
    color: var(--c-forest);
}

.alert--error {
    background: var(--c-danger-bg);
    border-color: rgba(179,64,47,.3);
    color: var(--c-danger);
}

.alert--info {
    background: var(--c-info-bg);
    border-color: rgba(29,95,138,.25);
    color: var(--c-info);
}

/* 8. HEADER / NAVIGATION --------------------------------------------------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    padding: .7em 1.2em;
    background: var(--c-gold);
    color: var(--c-pine);
    font-weight: 700;
}

    .skip-link:focus {
        left: 0;
    }

.topbar {
    background: var(--c-pine);
    color: #bfd3c7;
    font-size: var(--fs-sm);
}

    .topbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--sp-4);
        min-height: 2.6rem;
        flex-wrap: wrap;
    }

    .topbar a {
        color: #d6e4da;
    }

        .topbar a:hover {
            color: var(--c-gold);
        }

.topbar__group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

    .topbar__item svg {
        width: .95em;
        height: .95em;
        opacity: .8;
    }

.topbar__socials {
    display: flex;
    gap: .5rem;
}

    .topbar__socials a {
        display: grid;
        place-items: center;
        width: 1.75rem;
        height: 1.75rem;
        border-radius: 50%;
        background: rgba(255,255,255,.08);
        transition: background .18s var(--ease), transform .18s var(--ease);
    }

        .topbar__socials a:hover {
            background: var(--c-gold);
            color: var(--c-pine);
            transform: translateY(-2px);
        }

    .topbar__socials svg {
        width: .85rem;
        height: .85rem;
    }

.topbar__login {
    padding: .3em 1em;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: var(--r-full);
    font-weight: 600;
}

    .topbar__login:hover {
        background: var(--c-gold);
        border-color: var(--c-gold);
        color: var(--c-pine) !important;
    }

/* Main header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}

    .site-header.is-scrolled {
        box-shadow: var(--sh-sm);
        border-color: var(--c-line-2);
    }

    .site-header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--sp-5);
        min-height: var(--header-h);
    }

.brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: var(--c-forest);
}

    .brand:hover {
        color: var(--c-forest);
    }

.brand__mark {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 12px;
    background: var(--c-forest);
}

    .brand__mark svg {
        width: 1.5rem;
        height: 1.5rem;
    }

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand__name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: .01em;
}

.brand__tag {
    font-size: .62rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--c-gold-2);
    font-weight: 700;
}

/* Primary nav */
.nav {
    display: flex;
    align-items: center;
    gap: .35rem;
}

/* Off-canvas mobile nav — hidden by default, turned on below the breakpoint */
.nav--mobile {
    display: none;
}

.nav-close {
    display: none;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: .15rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .65em .8em;
    border-radius: 8px;
    color: var(--c-ink);
    font-size: .95rem;
    font-weight: 600;
    transition: color .18s var(--ease), background .18s var(--ease);
}

    .nav__link:hover {
        color: var(--c-primary);
        background: var(--c-mist);
    }

    .nav__link[aria-current="page"] {
        color: var(--c-primary);
    }

    .nav__link::after {
        content: "";
        position: absolute;
        left: .8em;
        right: .8em;
        bottom: .3em;
        height: 2px;
        background: var(--c-gold);
        border-radius: 2px;
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform .22s var(--ease);
    }

    .nav__link:hover::after,
    .nav__link[aria-current="page"]::after {
        transform: scaleX(1);
    }

.nav__caret {
    width: .7em;
    height: .7em;
    transition: transform .2s var(--ease);
}

.nav__item--has-menu {
    position: relative;
}

    .nav__item--has-menu:hover .nav__caret,
    .nav__item--has-menu.is-open .nav__caret {
        transform: rotate(180deg);
    }

.dropdown {
    position: absolute;
    top: calc(100% + .5rem);
    left: 0;
    min-width: 280px;
    padding: .55rem;
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    box-shadow: var(--sh-lg);
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}

.nav__item--has-menu:hover > .dropdown,
.nav__item--has-menu:focus-within > .dropdown,
.nav__item--has-menu.is-open > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown::before {
    content: "";
    position: absolute;
    inset: -.55rem 0 auto;
    height: .55rem;
}

.dropdown a {
    display: block;
    padding: .6em .85em;
    border-radius: 8px;
    color: var(--c-body);
    font-size: .93rem;
    font-weight: 500;
}

    .dropdown a:hover {
        background: var(--c-mist);
        color: var(--c-forest);
    }

    .dropdown a[aria-current="page"] {
        background: var(--c-mist);
        color: var(--c-forest);
        font-weight: 600;
    }

.header__cta {
    flex-shrink: 0;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.9rem;
    height: 2.9rem;
    padding: 0;
    border: 1px solid var(--c-line);
    border-radius: 10px;
    background: var(--c-white);
    cursor: pointer;
}

    .nav-toggle span {
        display: block;
        width: 1.25rem;
        height: 2px;
        margin-inline: auto;
        background: var(--c-forest);
        border-radius: 2px;
        transition: transform .25s var(--ease), opacity .2s var(--ease);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 52, 38, .45);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), visibility .25s;
    z-index: 99;
}

body.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
}

/* 9. PAGE HERO & BREADCRUMBS ---------------------------------------------- */
.page-hero {
    position: relative;
    background: radial-gradient(1000px 420px at 85% -20%, rgba(198,163,74,.22), transparent 60%), linear-gradient(160deg, var(--c-forest) 0%, var(--c-pine) 100%);
    color: #dbe8e0;
    padding-block: clamp(3.25rem, 7vw, 5.5rem);
    overflow: hidden;
}

    .page-hero::after {
        content: "";
        position: absolute;
        right: -60px;
        bottom: -80px;
        width: 340px;
        height: 340px;
        border: 1px solid rgba(198,163,74,.28);
        border-radius: 50%;
        pointer-events: none;
    }

    .page-hero h1 {
        color: #fff;
        margin-block: .8rem .7rem;
        max-width: 20ch;
    }

    .page-hero p {
        max-width: 62ch;
        color: #c3d5cb;
        font-size: var(--fs-lg);
    }

    .page-hero .eyebrow {
        color: var(--c-gold);
    }

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .breadcrumbs li {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        font-size: var(--fs-sm);
        color: #9db3a7;
    }

        .breadcrumbs li + li::before {
            content: "/";
            opacity: .55;
        }

    .breadcrumbs a {
        color: #cfe0d6;
    }

        .breadcrumbs a:hover {
            color: var(--c-gold);
        }

    .breadcrumbs [aria-current] {
        color: var(--c-gold);
        font-weight: 600;
    }

/* Inline "two column" detail blocks (product detail, quality lists) */
.prose {
    max-width: 75ch;
}

    .prose > * + * {
        margin-top: 1em;
    }

    .prose h2, .prose h3 {
        margin-top: 1.6em;
    }

    .prose ul, .prose ol {
        padding-left: 1.3em;
    }

    .prose li + li {
        margin-top: .35em;
    }

    .prose blockquote {
        margin: 1.4em 0;
        padding: .2em 0 .2em 1.2em;
        border-left: 3px solid var(--c-gold);
        font-family: var(--font-display);
        font-size: var(--fs-lg);
        color: var(--c-forest);
    }

/* Definition list (specs) */
.spec-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--c-line);
}

    .spec-list > div {
        display: grid;
        grid-template-columns: minmax(140px, 220px) 1fr;
        gap: var(--sp-4);
        padding: .8rem 0;
        border-bottom: 1px solid var(--c-line);
    }

    .spec-list dt {
        font-weight: 600;
        color: var(--c-ink);
        font-size: var(--fs-sm);
    }

    .spec-list dd {
        margin: 0;
        color: var(--c-body);
    }

/* 10. FOOTER --------------------------------------------------------------- */
.site-footer {
    background: var(--c-pine);
    color: #b7cabd;
    font-size: var(--fs-base);
}

    .site-footer a {
        color: #cddcd3;
    }

        .site-footer a:hover {
            color: var(--c-gold);
        }

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
    gap: clamp(1.75rem, 4vw, 3rem);
    padding-block: clamp(3rem, 6vw, 4.5rem);
}

.footer-brand .brand__name {
    color: #fff;
}

.footer-brand p {
    margin-top: 1rem;
    color: #a9bfb2;
    font-size: var(--fs-sm);
    line-height: 1.7;
}

.footer-socials {
    display: flex;
    gap: .55rem;
    margin-top: 1.25rem;
}

    .footer-socials a {
        display: grid;
        place-items: center;
        width: 2.3rem;
        height: 2.3rem;
        border: 1px solid rgba(255,255,255,.18);
        border-radius: 50%;
        transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
    }

        .footer-socials a:hover {
            background: var(--c-gold);
            border-color: var(--c-gold);
            color: var(--c-pine);
            transform: translateY(-3px);
        }

    .footer-socials svg {
        width: 1rem;
        height: 1rem;
    }

.footer-col h4 {
    color: #fff;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
    position: relative;
    padding-bottom: .7rem;
}

    .footer-col h4::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 2.2em;
        height: 2px;
        background: var(--c-gold);
    }

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .55rem;
}

.footer-col li {
    font-size: var(--fs-sm);
}

.footer-contact li {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    line-height: 1.6;
}

.footer-contact svg {
    flex-shrink: 0;
    width: 1.05rem;
    height: 1.05rem;
    margin-top: .3em;
    color: var(--c-gold);
}

.footer-contact address {
    font-style: normal;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-block: 1.4rem;
    font-size: var(--fs-sm);
}

    .footer-bottom .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--sp-4);
        flex-wrap: wrap;
    }

.footer-bottom__links {
    display: flex;
    gap: 1.4rem;
}

/* Newsletter / subscribe form (reused on home & footer) */
.subscribe {
    display: flex;
    gap: .6rem;
    max-width: 420px;
    margin-top: 1.1rem;
}

    .subscribe .input {
        background: rgba(255,255,255,.08);
        border-color: rgba(255,255,255,.22);
        color: #fff;
    }

        .subscribe .input::placeholder {
            color: #9db3a7;
        }

        .subscribe .input:focus {
            background: rgba(255,255,255,.12);
            border-color: var(--c-gold);
            box-shadow: none;
        }

/* 11. UTILITIES & MOTION HOOKS --------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.u-mt-4 {
    margin-top: var(--sp-4);
}

.u-mt-5 {
    margin-top: var(--sp-5);
}

.u-mt-6 {
    margin-top: var(--sp-6);
}

.u-mb-4 {
    margin-bottom: var(--sp-4);
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--c-gold-2) !important;
}

.bg-mist {
    background: var(--c-mist-2);
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    list-style: none;
    padding: 0;
}

/* Progressive-enhancement reveal hook (Phase 8 — active) */
.reveal {
    opacity: 1;
}

html.js.io .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: var(--d, 0s);
}

    html.js.io .reveal.is-visible {
        opacity: 1;
        transform: none;
    }

html.js.io .reveal--left {
    transform: translateX(-34px);
}

html.js.io .reveal--right {
    transform: translateX(34px);
}

html.js.io .reveal--zoom {
    transform: scale(.96);
}

html.js.io .reveal--fade {
    transform: none;
}

/* Staggered children — parent observes, children cascade via nth-child */
html.js.io .reveal--stagger {
    opacity: 1;
    transform: none;
}

    html.js.io .reveal--stagger > * {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity .65s var(--ease), transform .65s var(--ease);
        transition-delay: calc(var(--i, 0) * 90ms);
    }

    html.js.io .reveal--stagger.is-visible > * {
        opacity: 1;
        transform: none;
    }

    html.js.io .reveal--stagger > *:nth-child(1) {
        --i: 0;
    }

    html.js.io .reveal--stagger > *:nth-child(2) {
        --i: 1;
    }

    html.js.io .reveal--stagger > *:nth-child(3) {
        --i: 2;
    }

    html.js.io .reveal--stagger > *:nth-child(4) {
        --i: 3;
    }

    html.js.io .reveal--stagger > *:nth-child(5) {
        --i: 4;
    }

    html.js.io .reveal--stagger > *:nth-child(6) {
        --i: 5;
    }

    html.js.io .reveal--stagger > *:nth-child(7) {
        --i: 6;
    }

    html.js.io .reveal--stagger > *:nth-child(8) {
        --i: 7;
    }

/* Page-hero entrance */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes heroZoom {
    from {
        opacity: 0;
        transform: scale(1.045);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.page-hero .container > * {
    animation: fadeUp .7s var(--ease) both;
}

    .page-hero .container > *:nth-child(1) {
        animation-delay: .05s;
    }

    .page-hero .container > *:nth-child(2) {
        animation-delay: .18s;
    }

    .page-hero .container > *:nth-child(3) {
        animation-delay: .3s;
    }

    .page-hero .container > *:nth-child(4) {
        animation-delay: .42s;
    }

.hero-media img {
    animation: heroZoom 1.1s var(--ease) .25s both;
}

/* Certification marquee strip */
.marquee-band {
    padding-block: 1.4rem;
    background: var(--c-mist-2);
    border-block: 1px solid var(--c-line-2);
    overflow: hidden;
}

.marquee {
    overflow: hidden;
}

.marquee__track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    animation: marqueeScroll 38s linear infinite;
}

.marquee-band:hover .marquee__track {
    animation-play-state: paused;
}

.marquee__item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    padding: .55rem 1.1rem;
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--r-full);
    box-shadow: var(--sh);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--c-ink);
    -webkit-user-select: none;
    user-select: none;
}

    .marquee__item img {
        width: 2.5rem;
        height: 2.5rem;
        object-fit: contain;
    }

/* Back-to-top */
.to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 90;
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--c-line);
    border-radius: 50%;
    background: var(--c-forest);
    color: #fff;
    cursor: pointer;
    box-shadow: var(--sh);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s, background .18s var(--ease);
}

    .to-top.is-visible {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .to-top:hover {
        background: var(--c-primary-2);
    }

    .to-top svg {
        width: 1.15rem;
        height: 1.15rem;
    }

/* Card hover micro-interactions */
a.card .card__icon, .card--link .card__icon,
a.card .card__icon--sm, .card--link .card__icon--sm {
    transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}

a.card:hover .card__icon, .card--link:hover .card__icon,
a.card:hover .card__icon--sm, .card--link:hover .card__icon--sm {
    transform: translateY(-3px) scale(1.05);
}

.btn-link:hover::after {
    transform: translateX(4px);
}

.stat__value {
    font-variant-numeric: tabular-nums;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html.js.io .reveal,
    html.js.io .reveal--stagger > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .page-hero .container > *,
    .hero-media img,
    .marquee__track {
        animation: none !important;
    }

    .marquee {
        overflow-x: auto;
    }

    .marquee__track {
        transform: none !important;
        flex-wrap: wrap;
    }

    .to-top, .to-top.is-visible {
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* 12. RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 1080px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 960px) {
    .grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split {
        grid-template-columns: 1fr;
    }

    .nav {
        display: none;
    }

    .header__cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    /* Home hero stacks above its image */
    .page-hero--grid {
        grid-template-columns: 1fr;
    }

    .hero-media {
        max-width: 560px;
    }

    /* Off-canvas mobile nav */
    .nav--mobile {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: min(86vw, 380px);
        height: 100dvh;
        background: var(--c-white);
        box-shadow: var(--sh-lg);
        transform: translateX(100%);
        transition: transform .3s var(--ease);
        z-index: 101;
        overflow-y: auto;
        padding: 1.5rem;
    }

    body.nav-open .nav--mobile {
        transform: translateX(0);
    }

    .nav--mobile .nav-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        align-self: flex-end;
        flex-shrink: 0;
        position: sticky;
        top: 0;
        z-index: 2;
        width: 2.5rem;
        height: 2.5rem;
        margin-bottom: .85rem;
        padding: 0;
        border: 1px solid var(--c-line-2);
        border-radius: 50%;
        background: var(--c-white);
        color: var(--c-forest);
        box-shadow: var(--sh-sm);
        cursor: pointer;
        transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
    }

        .nav--mobile .nav-close:hover {
            background: var(--c-mist);
            color: var(--c-primary);
            transform: rotate(90deg);
        }

        .nav--mobile .nav-close svg {
            width: 1.15rem;
            height: 1.15rem;
        }

    .nav--mobile .nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: .25rem;
    }

    .nav--mobile .nav__link {
        justify-content: space-between;
        padding: .85em 1em;
        font-size: 1.02rem;
        border-bottom: 1px solid var(--c-line-2);
        border-radius: 0;
    }

        .nav--mobile .nav__link[aria-current="page"]::after {
            display: none;
        }

    .nav--mobile .dropdown {
        position: static;
        box-shadow: none;
        border: 0;
        border-left: 2px solid var(--c-mist);
        border-radius: 0;
        margin: .2rem 0 .5rem .7rem;
        padding: 0;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .nav--mobile .nav__item--has-menu.is-open > .dropdown {
        display: block;
    }

    .nav--mobile .header__cta {
        display: block;
        margin-top: 1.25rem;
    }

        .nav--mobile .header__cta .btn {
            width: 100%;
        }

    body.nav-open {
        overflow: hidden;
    }
}

@media (max-width: 720px) {
    .topbar .container {
        justify-content: center;
        font-size: var(--fs-xs);
    }

    .topbar__group--secondary {
        display: none;
    }

    .grid--2, .grid--3, .grid--4 {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .footer-bottom .container {
        justify-content: center;
        text-align: center;
    }

    .spec-list > div {
        grid-template-columns: 1fr;
        gap: .15rem;
    }

    .subscribe {
        flex-direction: column;
        max-width: none;
    }

    .page-hero::after {
        display: none;
    }

    /* Full-width CTAs on small screens */
    .hero-actions {
        width: 100%;
    }

        .hero-actions .btn {
            flex: 1 1 auto;
            min-width: 160px;
        }

    /* Keep product tables scrollable instead of squashing */
    .table {
        min-width: 560px;
    }
}

@media (max-width: 560px) {
    .topbar__item--email {
        display: none;
    }

    .brand__tag {
        display: none;
    }

    .brand__name {
        font-size: 1.15rem;
    }

    .brand__mark {
        width: 2.3rem;
        height: 2.3rem;
    }

    .site-header .container {
        gap: var(--sp-3);
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }

    .page-hero {
        padding-block: clamp(2.4rem, 8vw, 3.5rem);
    }

    .section-head {
        margin-bottom: 2rem;
    }

    .footer-contact address {
        font-size: var(--fs-sm);
    }
}

/* Phase 5 additions: link cards, contact form, split aside, media */
a.card {
    color: inherit;
}

a.card, .card--link {
    text-decoration: none;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

    a.card:hover, .card--link:hover {
        transform: translateY(-4px);
        box-shadow: var(--sh);
        border-color: var(--c-primary);
    }

    a.card:focus-visible, .card--link:focus-visible {
        outline: 2px solid var(--c-gold);
        outline-offset: 2px;
    }

.split-aside {
    display: grid;
    gap: clamp(1.1rem, 2.5vw, 1.75rem);
    align-content: start;
}

.img-rounded {
    width: 100%;
    border-radius: var(--r);
}

.form-card {
    display: grid;
    gap: 1.1rem;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--r-lg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: 0 10px 30px rgba(15,55,41,.08);
}

.form-row {
    display: grid;
    gap: .45rem;
}

    .form-row label {
        font-weight: 600;
        color: var(--c-ink);
        font-size: var(--fs-sm);
    }

    .form-row .req {
        color: var(--c-danger, #b3402f);
    }

/* ==========================================================================
   UI polish — imagery & icons (site feedback pass)
   ========================================================================== */

/* Home hero: split layout with photograph (50/50 columns, image fills the right half) */
.page-hero--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

    .page-hero--grid h1, .page-hero--grid p {
        max-width: none;
    }

    .page-hero--grid > div:first-child {
        min-width: 0;
    }

.hero-media {
    position: relative;
}

    .hero-media img {
        width: 100%;
        border-radius: var(--r-lg);
        box-shadow: var(--sh-lg);
        transform: translateZ(0);
    }

    .hero-media::before {
        content: "";
        position: absolute;
        inset: auto -24px -24px auto;
        width: 58%;
        height: 58%;
        border: 2px solid rgba(198,163,74,.45);
        border-radius: var(--r-lg);
        z-index: -1;
    }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-4);
    margin-top: var(--sp-6);
}

/* Framed photograph with floating badge */
.img-frame {
    position: relative;
}

    .img-frame .img-rounded {
        box-shadow: var(--sh);
    }

    .img-frame::after {
        content: "";
        position: absolute;
        left: -14px;
        bottom: -14px;
        width: 42%;
        height: 42%;
        border: 2px solid rgba(198,163,74,.4);
        border-radius: var(--r-lg);
        z-index: -1;
    }

.float-badge {
    position: absolute;
    right: 14px;
    bottom: -18px;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7em 1.1em;
    border-radius: var(--r-full);
    background: var(--c-forest);
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: .03em;
    box-shadow: var(--sh);
}

    .float-badge svg {
        width: 1em;
        height: 1em;
        color: var(--c-gold);
    }

/* Checklist (icon bullets) */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .85rem;
}

    .check-list li {
        display: flex;
        align-items: flex-start;
        gap: .7rem;
        color: var(--c-body);
        font-size: var(--fs-base);
    }

        .check-list li svg {
            flex: 0 0 auto;
            width: 1.2rem;
            height: 1.2rem;
            margin-top: .24em;
            color: var(--c-primary);
        }

/* Wide image band (milestone etc.) */
.band {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--c-mist);
    box-shadow: var(--sh);
}

    .band img {
        display: block;
        width: 100%;
        height: auto;
    }

/* Cards: icon chip above title (reuses card__icon tokens) */
.card > .card__icon {
    margin-bottom: .4rem;
}

.card__icon--sm {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 11px;
}

    .card__icon--sm svg {
        width: 1.35rem;
        height: 1.35rem;
    }

/* Media tile without an image (icon-centred CTA card) */
.card__media--cta {
    display: grid;
    place-items: center;
    min-height: 220px;
    background: radial-gradient(320px 220px at 72% 18%, rgba(198,163,74,.18), transparent 62%), var(--c-mist);
}

.cat-icon {
    display: grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 18px;
    background: var(--c-white);
    color: var(--c-primary);
    box-shadow: var(--sh);
}

    .cat-icon svg {
        width: 2.2rem;
        height: 2.2rem;
    }

/* ==========================================================================
   Phase 6 — Admin area (CMS shell, panels, tables, forms, auth screens)
   ========================================================================== */

/* Shell ------------------------------------------------------------------- */
.admin-body {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 100vh;
    background: var(--c-mist-2);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1.35rem 1rem;
    background: var(--c-pine);
    color: #cddcd3;
    overflow-y: auto;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: 0 .5rem 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,.09);
    color: #fff;
}

.admin-brand__mark {
    width: 2.1rem;
    flex: 0 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

.admin-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.admin-brand__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: #fff;
}

.admin-brand__tag {
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--c-gold);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    margin-top: .9rem;
    flex: 1 1 auto;
}

.admin-nav__link {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .62rem .8rem;
    border-radius: 9px;
    color: #b8ccc1;
    font-size: .93rem;
    font-weight: 500;
    transition: background .18s var(--ease), color .18s var(--ease);
}

    .admin-nav__link svg {
        width: 1.05rem;
        height: 1.05rem;
        flex: 0 0 auto;
        opacity: .85;
    }

    .admin-nav__link:hover {
        background: rgba(255,255,255,.07);
        color: #fff;
    }

    .admin-nav__link.is-active {
        background: rgba(198,163,74,.16);
        color: var(--c-gold);
        box-shadow: inset 3px 0 0 var(--c-gold);
    }

        .admin-nav__link.is-active svg {
            opacity: 1;
        }

.admin-sidebar__foot {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding-top: .8rem;
    border-top: 1px solid rgba(255,255,255,.09);
}

.admin-nav__form {
    margin: 0;
}

.admin-nav__link--button {
    width: 100%;
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.admin-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem clamp(1rem, 3vw, 2rem);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--c-line);
}

.admin-topbar__title {
    font-size: 1.35rem;
    margin: 0;
}

.admin-topbar__user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.25;
    font-size: var(--fs-sm);
}

.admin-topbar__name {
    font-weight: 700;
    color: var(--c-ink);
}

.admin-topbar__roles {
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-gold-2);
}

.admin-content {
    flex: 1 1 auto;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.admin-footer {
    padding: 1rem clamp(1rem, 3vw, 2rem);
    border-top: 1px solid var(--c-line);
    background: #fff;
    color: var(--c-muted);
    font-size: var(--fs-sm);
}

/* Flash messages ---------------------------------------------------------- */
.flash {
    margin: 1rem clamp(1rem, 3vw, 2rem) 0;
    padding: .8em 1.2em;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: var(--fs-base);
    font-weight: 500;
}

.flash--success {
    background: var(--c-success-bg);
    border-color: rgba(20,112,79,.3);
    color: var(--c-forest);
}

.flash--error {
    background: var(--c-danger-bg);
    border-color: rgba(179,64,47,.3);
    color: var(--c-danger);
}

/* Toolbar, panels --------------------------------------------------------- */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.toolbar__hint {
    color: var(--c-muted);
    font-size: var(--fs-sm);
    margin: 0;
}

.panel {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--sh-sm);
}

.panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--c-line-2);
}

    .panel__head h2 {
        font-size: 1.1rem;
        margin: 0;
    }

    .panel__head a {
        font-size: var(--fs-sm);
        font-weight: 600;
    }

.panel--empty {
    display: grid;
    gap: .9rem;
    justify-items: start;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--c-muted);
}

    .panel--empty p {
        margin: 0;
    }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.stat-tile {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: 1.15rem 1.25rem;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    color: inherit;
    text-decoration: none;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

    .stat-tile:hover {
        transform: translateY(-3px);
        box-shadow: var(--sh);
        border-color: var(--c-primary);
        color: inherit;
    }

.stat-tile__value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
    color: var(--c-forest);
}

.stat-tile__dim {
    font-size: .95rem;
    color: var(--c-muted);
    font-family: var(--font-body);
}

.stat-tile__label {
    font-size: .78rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--c-muted);
}

.stat-tile--cta {
    background: var(--c-forest);
    border-color: var(--c-forest);
}

    .stat-tile--cta:hover {
        background: var(--c-forest-2);
        border-color: var(--c-forest-2);
    }

    .stat-tile--cta .stat-tile__value--cta {
        color: var(--c-gold);
        font-family: var(--font-body);
        font-size: 1.6rem;
    }

    .stat-tile--cta .stat-tile__label {
        color: #cddcd3;
    }

/* Admin tables & row actions ---------------------------------------------- */
.table .th--right, .table .td--right {
    text-align: right;
}

.table .actions {
    white-space: nowrap;
}

    .table .actions form {
        display: inline-block;
        margin: 0;
    }

    .table .actions .btn {
        margin-left: .35rem;
    }

        .table .actions .btn:first-child {
            margin-left: 0;
        }

.table .row--unread {
    background: rgba(198,163,74,.07);
}

    .table .row--unread td:first-child {
        box-shadow: inset 3px 0 0 var(--c-gold);
    }

.btn--sm {
    padding: .4em 1em;
    font-size: .74rem;
}

.btn--danger {
    --btn-bg: transparent;
    --btn-fg: var(--c-danger);
    border-color: rgba(179,64,47,.45);
}

    .btn--danger:hover {
        --btn-bg: var(--c-danger);
        --btn-fg: #fff;
    }

.btn--active {
    --btn-bg: var(--c-forest);
    --btn-fg: #fff;
    border-color: var(--c-forest);
}

.btn-group {
    display: inline-flex;
    gap: .4rem;
    flex-wrap: wrap;
}

.badge--hot {
    background: var(--c-gold);
    color: var(--c-pine);
}

.badge--muted {
    background: var(--c-line-2);
    color: var(--c-muted);
}

.breadcrumb, .back-link {
    margin-bottom: 1rem;
    font-size: var(--fs-sm);
}

    .breadcrumb span {
        color: var(--c-muted);
    }

    .back-link a {
        font-weight: 600;
    }

.subnav {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.25rem;
}

.subnav__link {
    padding: .4em 1.1em;
    border: 1px solid var(--c-line);
    border-radius: var(--r-full);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--c-body);
}

    .subnav__link:hover {
        border-color: var(--c-primary);
        color: var(--c-primary);
    }

    .subnav__link.is-active {
        background: var(--c-forest);
        border-color: var(--c-forest);
        color: #fff;
    }

.filterbar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.25rem;
}

.filterbar__chip {
    padding: .35em 1em;
    border: 1px solid var(--c-line);
    border-radius: var(--r-full);
    background: #fff;
    font-size: var(--fs-sm);
    color: var(--c-body);
}

    .filterbar__chip:hover {
        border-color: var(--c-primary);
        color: var(--c-primary);
    }

    .filterbar__chip.is-active {
        background: var(--c-forest);
        border-color: var(--c-forest);
        color: #fff;
    }

/* Admin forms -------------------------------------------------------------- */
.form-stack {
    display: grid;
    gap: 1.15rem;
    padding: clamp(1.25rem, 3vw, 1.75rem);
}

.form-row--inline {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: .6rem;
}

    .form-row--inline label {
        font-weight: 500;
        color: var(--c-body);
    }

.input--check {
    width: 1.1rem;
    height: 1.1rem;
    padding: 0;
    accent-color: var(--c-primary);
}

.input--code {
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: .92rem;
    line-height: 1.55;
}

.field-hint {
    font-size: var(--fs-sm);
    color: var(--c-muted);
}

.validation-summary {
    margin: 0;
    padding: .8em 1.2em;
    border-radius: 10px;
    background: var(--c-danger-bg);
    border: 1px solid rgba(179,64,47,.3);
    color: var(--c-danger);
    font-size: var(--fs-sm);
}

span.field-error {
    background: none;
    color: var(--c-danger);
    font-size: var(--fs-sm);
}

.form-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    align-items: center;
}

.inline-form {
    margin: 0;
}

.notice {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    align-items: start;
    padding: 1.25rem;
    background: var(--c-info-bg);
    border: 1px solid rgba(29,95,138,.25);
    border-radius: 10px;
    color: var(--c-info);
}

    .notice p {
        margin: 0;
    }

/* Messages / media -------------------------------------------------------- */
.message-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.25rem;
    border-bottom: 1px solid var(--c-line-2);
}

    .message-head h2 {
        font-size: 1.25rem;
        margin: 0 0 .3rem;
    }

    .message-head p {
        margin: 0;
    }

.message-body {
    padding: 1.35rem;
    display: grid;
    gap: .7rem;
}

    .message-body p {
        margin: 0;
        white-space: pre-wrap;
    }

.media-preview {
    display: flex;
    gap: 1.1rem;
    align-items: center;
}

    .media-preview img {
        width: 120px;
        height: 90px;
        object-fit: cover;
        border: 1px solid var(--c-line);
        border-radius: 10px;
        background: var(--c-mist);
    }

.media-preview__meta p {
    margin: .15rem 0;
}

/* Auth screens (login / access denied) ------------------------------------ */
.auth-body {
    min-height: 100vh;
    background: radial-gradient(1000px 500px at 85% -10%, rgba(198,163,74,.18), transparent 60%), radial-gradient(800px 500px at -10% 110%, rgba(20,112,79,.22), transparent 60%), var(--c-pine);
}

.auth-shell {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: clamp(1rem, 4vw, 2rem);
}

.auth-card {
    display: grid;
    gap: 1.4rem;
    width: min(430px, 100%);
}

.auth-brand {
    display: grid;
    justify-items: center;
    gap: .35rem;
    text-align: center;
    color: #e8f0ea;
}

.auth-brand__mark {
    width: 3.1rem;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: .4rem;
}

.auth-brand__name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.auth-brand__tag {
    font-size: var(--fs-sm);
    color: #a9c1b4;
}

.auth-note {
    text-align: center;
    font-size: var(--fs-sm);
}

    .auth-note a {
        color: var(--c-gold);
    }

.auth-card .btn {
    width: auto;
}

.auth-card .form-actions {
    justify-content: center;
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 880px) {
    .admin-body {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-nav {
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: .8rem;
    }

    .admin-nav__link {
        padding: .5rem .8rem;
    }

    .admin-sidebar__foot {
        flex-direction: row;
    }

    .stat-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .table .actions {
        white-space: normal;
    }

    .table {
        font-size: var(--fs-sm);
    }

    .message-head {
        padding: 1rem;
    }
}

/* ==========================================================================
   Phase 9 — Modern animated refresh (premium, AI-era botanical)
   Appended as an override layer: keeps the proven system, upgrades the look.
   ========================================================================== */

:root {
    --grad-gold: linear-gradient(120deg, #f2dc8f 0%, #c6a34a 45%, #ffe9a8 100%);
    --grad-green: linear-gradient(120deg, #14704f, #1d8a60);
    --grad-hero: linear-gradient(160deg, #0d4c38 0%, #0a3426 100%);
    --glow-gold: 0 12px 34px -10px rgba(198, 163, 74, .55);
    --glow-green: 0 14px 34px -12px rgba(20, 112, 79, .45);
}

body {
    background: #fdfdfb;
    background-image: radial-gradient(62% 42% at 50% -6%, rgba(198, 163, 74, .06), transparent 65%);
}

:focus-visible {
    outline: 2px solid rgba(198, 163, 74, .9);
    box-shadow: 0 0 0 6px rgba(198, 163, 74, .16);
}

/* Typography — a touch more presence for the modern scale */
h1 {
    font-size: clamp(2.2rem, 1.6rem + 2.8vw, 3.6rem);
}

h2 {
    font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.55rem);
}

/* Real client logo */
.brand__logo {
    display: block;
    height: 4.5rem;
    width: auto;
}

.brand--footer {
    color: #fff;
}

.brand__logo--white {
    height: 6rem;
}

/* Scroll progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 120;
    background: linear-gradient(90deg, #c6a34a, #1d8a60);
    transform: scaleX(0);
    transform-origin: 0 50%;
    pointer-events: none;
}

/* Header — glassy, with a gradient hairline when scrolled */
.site-header {
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid rgba(221, 230, 224, .7);
}

    .site-header::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(198, 163, 74, .55), rgba(29, 138, 96, .55), transparent);
        opacity: 0;
        transition: opacity .3s var(--ease);
        pointer-events: none;
    }

    .site-header.is-scrolled {
        box-shadow: 0 10px 30px -18px rgba(10, 52, 38, .5);
        border-bottom-color: rgba(198, 163, 74, .4);
    }

        .site-header.is-scrolled::after {
            opacity: 1;
        }

.nav__link::after {
    background: linear-gradient(90deg, var(--c-gold), #1d8a60);
}

.dropdown {
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: rgba(221, 230, 224, .95);
}

/* Page hero — aurora glow, moving orbs, spotlight, gradient headline */
.page-hero {
    isolation: isolate;
    background: radial-gradient(560px 420px at var(--mx, 78%) var(--my, 20%), rgba(255, 255, 255, .09), transparent 62%), radial-gradient(1000px 420px at 85% -20%, rgba(198, 163, 74, .18), transparent 60%), var(--grad-hero);
}

    .page-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: radial-gradient(46% 60% at 12% 8%, rgba(79, 209, 165, .18), transparent 65%), radial-gradient(38% 52% at 92% 16%, rgba(198, 163, 74, .2), transparent 62%), radial-gradient(30% 44% at 70% 100%, rgba(29, 143, 96, .16), transparent 70%);
        animation: auroraShift 18s ease-in-out infinite alternate;
        pointer-events: none;
    }

@keyframes auroraShift {
    0% {
        transform: translate3d(-1.5%, -1%, 0) scale(1);
    }

    50% {
        transform: translate3d(2%, 1.5%, 0) scale(1.05);
    }

    100% {
        transform: translate3d(-1%, 2%, 0) scale(1.02);
    }
}

.page-hero > .container {
    position: relative;
}

.page-hero h1 {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 34px rgba(198, 163, 74, .35);
}

/* Photo-backed hero (client facility / lab / publication assets): dark scrim keeps the
   headline, lead and breadcrumbs legible while the aurora glow tints the photography. */
.page-hero--media {
    background: radial-gradient(560px 420px at var(--mx, 78%) var(--my, 20%), rgba(255, 255, 255, .10), transparent 62%), radial-gradient(1000px 420px at 85% -20%, rgba(198, 163, 74, .20), transparent 60%), linear-gradient(115deg, rgba(6, 32, 21, .94) 0%, rgba(6, 32, 21, .84) 45%, rgba(5, 28, 20, .62) 100%), var(--hero-img, linear-gradient(160deg, var(--c-forest), var(--c-pine))) top center / cover no-repeat;
}

/* Eyebrow — faint gold gradient text */
.eyebrow {
    background: linear-gradient(120deg, #ddbd62, #a8832f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Buttons — gradient fills, glow, and a light sheen sweep */
.btn {
    position: relative;
    overflow: hidden;
}

    .btn::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 52%;
        background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .42), transparent);
        transform: translateX(-140%) skewX(-15deg);
        transition: transform .65s var(--ease);
        pointer-events: none;
    }

    .btn:hover::after {
        transform: translateX(280%) skewX(-15deg);
    }

.btn--primary {
    background-image: linear-gradient(120deg, #14704f, #1d8a60);
    box-shadow: var(--glow-green);
}

    .btn--primary:hover {
        background-image: linear-gradient(120deg, #1d8a60, #23a475);
    }

.btn--gold {
    background-image: linear-gradient(120deg, #dbbd62, #c6a34a 70%, #dbbd62);
    box-shadow: var(--glow-gold);
    background-size: 200% 100%;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-position .5s var(--ease);
}

    .btn--gold:hover {
        background-position: 100% 0;
        --btn-bg: var(--c-gold);
        --btn-fg: var(--c-pine);
    }

.btn--outline:hover {
    box-shadow: var(--glow-green);
}

.btn--ghost:hover {
    box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .55);
}

.hero-actions .btn--gold {
    animation: ctaGlow 3.2s ease-in-out infinite;
}

@keyframes ctaGlow {
    0%, 100% {
        box-shadow: 0 12px 34px -10px rgba(198, 163, 74, .55);
    }

    50% {
        box-shadow: 0 16px 48px -8px rgba(198, 163, 74, .85);
    }
}

/* Cards — softer radius, gradient hairline on hover, deeper lift */
.card {
    border-radius: var(--r-lg);
}

    .card::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 1px;
        background: linear-gradient(140deg, rgba(198, 163, 74, .85), rgba(29, 138, 96, .65) 60%, rgba(198, 163, 74, .35));
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        opacity: 0;
        transition: opacity .3s var(--ease);
        pointer-events: none;
    }

a.card:hover::before, .card--link:hover::before {
    opacity: 1;
}

a.card:hover, .card--link:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 50px -20px rgba(10, 52, 38, .4), var(--glow-gold);
}

/* Icon chips — gradient surfaces with soft glow */
.card__icon {
    background: linear-gradient(140deg, #e9f4ed, #cfe8da);
    border: 1px solid rgba(20, 112, 79, .12);
    box-shadow: 0 8px 18px -10px rgba(20, 112, 79, .35);
}

.card__icon--gold {
    background: linear-gradient(140deg, rgba(246, 229, 175, .3), rgba(198, 163, 74, .16));
    border-color: rgba(198, 163, 74, .3);
    box-shadow: 0 8px 18px -10px rgba(198, 163, 74, .42);
}

a.card:hover .card__icon, .card--link:hover .card__icon {
    transform: translateY(-3px) rotate(-4deg) scale(1.06);
    box-shadow: 0 14px 28px -12px rgba(20, 112, 79, .5);
}

/* Stats — gradient numerals */
.stat__value {
    background: linear-gradient(120deg, #e8cc74, #c6a34a 55%, #a8832f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 18px rgba(198, 163, 74, .22));
}

.badge--gold {
    background: linear-gradient(120deg, rgba(246, 229, 175, .32), rgba(198, 163, 74, .16));
    border: 1px solid rgba(198, 163, 74, .35);
    box-shadow: 0 1px 2px rgba(10, 52, 38, .06);
}

/* Ambient orbs in dark sections */
.section--dark {
    isolation: isolate;
    position: relative;
    overflow: hidden;
}

    .section--dark::before,
    .section--dark::after {
        content: "";
        position: absolute;
        z-index: -1;
        border-radius: 50%;
        filter: blur(64px);
        pointer-events: none;
    }

    .section--dark::before {
        width: 420px;
        height: 420px;
        top: -160px;
        right: -120px;
        background: radial-gradient(circle, rgba(198, 163, 74, .22), transparent 65%);
        animation: orbFloat 16s ease-in-out infinite alternate;
    }

    .section--dark::after {
        width: 380px;
        height: 380px;
        bottom: -150px;
        left: -120px;
        background: radial-gradient(circle, rgba(29, 143, 96, .3), transparent 65%);
        animation: orbFloat 20s ease-in-out infinite alternate-reverse;
    }

@keyframes orbFloat {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(6%, -6%, 0) scale(1.15);
    }
}

.section--dark > .container {
    position: relative;
    z-index: 1;
}

.section--tint {
    background: linear-gradient(180deg, var(--c-mist-2), #eef6f0);
}

/* Hero media — slow halo pulse */
.hero-media img {
    animation: heroZoom 1.1s var(--ease) .25s both, mediaHalo 5s ease-in-out 1.4s infinite;
}

@keyframes mediaHalo {
    0%, 100% {
        box-shadow: var(--sh-lg), 0 0 0 0 rgba(198, 163, 74, 0);
    }

    50% {
        box-shadow: var(--sh-lg), 0 0 46px 8px rgba(198, 163, 74, .28);
    }
}

/* Float badge — glass pill with a gentle bob */
.float-badge {
    background: rgba(13, 68, 51, .9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--glow-green);
    animation: floaty 5s ease-in-out infinite;
}

@keyframes floaty {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Wide image band — slow Ken Burns */
.band img {
    animation: kenburns 24s ease-in-out infinite alternate;
}

@keyframes kenburns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.07);
    }
}

/* Marquee band — tinted gradient + glass pills */
.marquee-band {
    background: linear-gradient(120deg, var(--c-mist), #e0f0e7);
    border-block-color: rgba(198, 163, 74, .3);
}

.marquee__item {
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 8px 22px -12px rgba(10, 52, 38, .28);
}

/* Back-to-top — gradient orb */
.to-top {
    border-color: transparent;
    background: linear-gradient(140deg, #dbbd62, #a8832f);
    box-shadow: var(--glow-gold);
}

    .to-top:hover {
        transform: translateY(-4px);
        background: linear-gradient(140deg, #1d8a60, #14704f);
        box-shadow: var(--glow-green);
    }

/* Forms — glass card and glowing focus */
.form-card {
    border-radius: 22px;
    border-color: rgba(221, 230, 224, 1);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 30px 60px -30px rgba(10, 52, 38, .38);
}

.input, .select, .textarea {
    border-radius: 12px;
}

    .input:focus, .select:focus, .textarea:focus {
        border-color: #177e57;
        box-shadow: 0 0 0 4px rgba(29, 138, 96, .15), 0 8px 20px -12px rgba(20, 112, 79, .4);
    }

/* Tables — gradient header */
.table thead th {
    background: linear-gradient(120deg, #0d4c38, #0f5b41);
}

/* Reveal — a touch more sway */
html.js.io .reveal {
    transform: translateY(30px) scale(.99);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}

html.js.io .reveal--stagger > * {
    transform: translateY(26px) scale(.99);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

/* Admin — gradients to match */
.admin-sidebar {
    background: linear-gradient(180deg, #0d4c38, #0a3426);
}

.stat-tile__value {
    background: linear-gradient(120deg, #e8cc74, #c6a34a 55%, #a8832f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.stat-tile:hover {
    box-shadow: var(--sh), var(--glow-gold);
}

/* Logo containers used in the admin / auth shells */
.admin-brand__mark--logo {
    width: auto !important;
    height: 2rem;
    border-radius: 0;
    overflow: visible;
}

    .admin-brand__mark--logo img {
        height: 2rem;
        width: auto;
    }

.auth-brand__mark--logo {
    width: auto;
    height: 2.6rem;
    border-radius: 0;
    overflow: visible;
    margin-bottom: .5rem;
}

    .auth-brand__mark--logo img {
        height: 2.6rem;
        width: auto;
    }

/* Pointer-glow only on fine pointers */
@media (pointer: fine) {
    .page-hero {
        --mx: 78%;
        --my: 20%;
    }
}

@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
    .page-hero h1, .stat__value, .eyebrow, .stat-tile__value {
        background: none !important;
        filter: none !important;
        text-shadow: none !important;
    }

    .page-hero h1 {
        color: #fff;
        -webkit-text-fill-color: currentColor;
    }

    .stat__value {
        color: var(--c-gold) !important;
        -webkit-text-fill-color: currentColor;
    }

    .eyebrow {
        color: var(--c-gold-2) !important;
        -webkit-text-fill-color: currentColor;
    }

    .stat-tile__value {
        color: var(--c-forest) !important;
        -webkit-text-fill-color: currentColor;
    }
}

@media (max-width: 560px) {
    .brand__logo {
        height: 2rem;
    }

    .brand__logo--white {
        height: 2.5rem;
    }

    .brand__text {
        gap: .15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-hero::before,
    .section--dark::before, .section--dark::after,
    .float-badge, .band img, .hero-actions .btn--gold,
    .hero-media img, .btn--gold, .consent-banner {
        animation: none !important;
    }

    .btn::after {
        transform: none !important;
        transition: none !important;
    }

    .section--dark::before, .section--dark::after {
        filter: none !important;
    }
}

/* Consent banner + compact buttons */
.btn--sm {
    padding: .55rem 1.05rem;
    font-size: var(--fs-sm);
    border-radius: 999px;
}

.consent-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.1rem;
    flex-wrap: wrap;
    position: fixed;
    left: 50%;
    bottom: 1.1rem;
    transform: translateX(-50%);
    z-index: 119;
    max-width: min(92vw, 780px);
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, .93);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(221, 230, 224, 1);
    border-radius: 18px;
    box-shadow: 0 24px 60px -24px rgba(10, 52, 38, .5);
    animation: consentIn .5s var(--ease) both;
}

    .consent-banner[hidden] {
        display: none;
    }

    .consent-banner p {
        flex: 1 1 320px;
        margin: 0;
        font-size: var(--fs-sm);
        color: var(--c-ink);
    }

.consent-banner__actions {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    white-space: nowrap;
}

@keyframes consentIn {
    from {
        opacity: 0;
        transform: translate(-50%, 16px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 640px) {
    .consent-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .consent-banner__actions {
        justify-content: center;
    }
}

/* 13. CLIENT UPDATES ---------------------------------------------------------
   Welcome layout, catalogue filter, newsletter band, contact map, footer
   address labels, floating WhatsApp + chat assistant. */

/* Welcome: content + photograph split, partner cards below on their own row */
.welcome-cards {
    margin-top: clamp(2rem, 5vw, 3.5rem);
}

/* Reason to Choose Us — keep card body readable on the dark surface */
.card--dark .card__text {
    color: #d3e1d8;
}

/* Newsletter — redesigned gradient band with aurora accent */
.newsletter-band {
    position: relative;
    overflow: hidden;
    max-width: 1100px;
    margin-inline: auto;
    border-radius: 28px;
    padding: clamp(2.5rem, 6vw, 4.25rem) clamp(1.5rem, 5vw, 3.5rem);
    text-align: center;
    background: linear-gradient(140deg, var(--c-pine) 0%, var(--c-forest) 100%);
    box-shadow: 0 30px 60px -30px rgba(10, 52, 38, .45);
}

    .newsletter-band::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(620px 320px at 85% -20%, rgba(198, 163, 74, .28), transparent 60%), radial-gradient(420px 260px at 5% 110%, rgba(29, 138, 96, .35), transparent 65%);
    }

.newsletter-band__inner {
    position: relative;
    z-index: 1;
}

.newsletter-band h2 {
    color: #fff;
}

.newsletter-band .lead {
    color: #c7d8cd;
}

.subscribe--band {
    margin: clamp(1.5rem, 3vw, 2rem) auto 0;
    max-width: 700px;
    align-items: center;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--r-full);
    padding: .4rem .45rem .4rem 1.15rem;
}

    .subscribe--band .input {
        background: transparent;
        border-color: transparent;
        color: #fff;
    }

        .subscribe--band .input::placeholder {
            color: #9db9aa;
        }

@media (max-width: 560px) {
    .subscribe--band {
        align-items: stretch;
        border-radius: 18px;
    }

        .subscribe--band .btn {
            width: 100%;
        }
}

/* Contact — Google map beside the form */
.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 620px;
    border: 0;
    border-radius: var(--r-lg);
    box-shadow: var(--sh);
    background: var(--c-mist);
}

@media (max-width: 960px) {
    .contact-map iframe {
        min-height: 300px;
    }
}

/* Footer — labelled address blocks */
.footer-contact__block {
    display: grid;
    gap: .2rem;
    min-width: 0;
}

.footer-contact b {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: var(--fs-xs);
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Floating actions: WhatsApp (always visible) + chat toggle (JS enhanced) */
.floating-actions {
    position: fixed;
    right: 1.25rem;
    bottom: 5.5rem;
    z-index: 120;
    display: grid;
    gap: .7rem;
    justify-items: center;
}

.wa-btn, .chat-toggle {
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    box-shadow: var(--sh-lg);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}

    .wa-btn:hover, .chat-toggle:hover {
        transform: translateY(-3px);
    }

    .wa-btn svg, .chat-toggle svg {
        width: 1.55rem;
        height: 1.55rem;
    }

.wa-btn {
    background: #25d366;
    color: #fff;
}

    .wa-btn:hover {
        box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .55);
    }

.chat-toggle {
    display: none;
    background: linear-gradient(140deg, var(--c-primary), #0f5b41);
    color: #fff;
}

html.js .chat-toggle {
    display: grid;
}

.chat-toggle:hover {
    box-shadow: var(--glow-green);
}

.chat-toggle__close {
    display: none;
}

.chat-toggle[aria-expanded="true"] .chat-toggle__open {
    display: none;
}

.chat-toggle[aria-expanded="true"] .chat-toggle__close {
    display: block;
}

@media (max-width: 560px) {
    .floating-actions {
        right: .9rem;
        bottom: 5rem;
    }

    .wa-btn, .chat-toggle {
        width: 3.1rem;
        height: 3.1rem;
    }
}

/* Chat panel */
.chat-panel {
    position: fixed;
    right: 1.25rem;
    bottom: 9.4rem;
    z-index: 121;
    width: min(370px, calc(100vw - 2rem));
    height: min(480px, calc(100dvh - 11rem));
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--c-line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
    overflow: hidden;
    transform-origin: bottom right;
    animation: chatIn .28s var(--ease) both;
}

    .chat-panel[hidden] {
        display: none;
    }

@keyframes chatIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.chat-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1.1rem;
    background: linear-gradient(120deg, var(--c-pine), var(--c-forest));
    color: #fff;
}

.chat-head__avatar {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--grad-gold);
    color: var(--c-forest);
    font-family: var(--font-display);
    font-weight: 700;
}

.chat-head__meta {
    display: grid;
    gap: .1rem;
    min-width: 0;
}

    .chat-head__meta strong {
        font-size: var(--fs-base);
    }

.chat-head__status {
    font-size: var(--fs-xs);
    color: #bcd3c4;
}

.chat-close {
    margin-left: auto;
    background: transparent;
    border: 0;
    color: #dcebe2;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    padding: .2rem .35rem;
}

    .chat-close:hover {
        color: var(--c-gold);
    }

.chat-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: grid;
    gap: .6rem;
    align-content: start;
    background: linear-gradient(180deg, #f4f9f5, #edf4ef);
}

.chat-msg {
    max-width: 85%;
    padding: .6rem .85rem;
    border-radius: 14px;
    font-size: var(--fs-sm);
    line-height: 1.55;
    word-wrap: break-word;
    animation: msgIn .22s var(--ease) both;
}

.chat-msg--bot {
    justify-self: start;
    background: #fff;
    border: 1px solid var(--c-line-2);
    color: var(--c-ink);
    border-bottom-left-radius: 4px;
}

.chat-msg--user {
    justify-self: end;
    background: linear-gradient(120deg, var(--c-primary), #0f5b41);
    color: #fff;
    border-bottom-right-radius: 4px;
}

@keyframes msgIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    padding: .2rem 1rem .5rem;
}

.chat-chip {
    border: 1px solid rgba(20, 112, 79, .35);
    background: rgba(29, 138, 96, .08);
    color: var(--c-primary);
    border-radius: var(--r-full);
    padding: .38em .9em;
    font-size: var(--fs-xs);
    font-weight: 600;
    cursor: pointer;
    transition: background .15s var(--ease), color .15s var(--ease);
}

    .chat-chip:hover {
        background: var(--c-primary);
        color: #fff;
    }

.chat-input {
    border-top: 1px solid var(--c-line);
    background: #fff;
    padding: .6rem .7rem .7rem;
}

.chat-input__row {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.chat-input__field {
    flex: 1;
}

.chat-input__send {
    flex-shrink: 0;
    width: 2.9rem;
    height: 2.9rem;
    padding: 0;
    border-radius: 50%;
}

    .chat-input__send svg {
        width: 1.1rem;
        height: 1.1rem;
    }

@media (max-width: 560px) {
    .chat-panel {
        right: .9rem;
        bottom: 8.6rem;
        width: calc(100vw - 1.8rem);
        height: min(460px, calc(100dvh - 10rem));
    }
}

@media (prefers-reduced-motion: reduce) {
    .chat-panel, .chat-msg, .wa-btn, .chat-toggle {
        animation: none !important;
        transition: none !important;
    }
}

/* 14. CLIENT UPDATES — round 2 ----------------------------------------------
   Per-page vector hero art (sharp at any size), category detail chips,
   mobile hero reflow, and extra UI/UX motion (reduced-motion aware). */

/* --- Per-page hero backgrounds ---------------------------------------------
   Generated vector art per page (crisp, no upscaling blur). The cursor
   spotlight (--mx/--my) and scroll parallax (--oy) layer on top. */
.page-hero--art {
    background-color: #0a3426;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center calc(50% + var(--oy, 0px));
}

    .page-hero--art.hero-art--home {
        background-image: radial-gradient(560px 420px at var(--mx, 76%) var(--my, 18%), rgba(255, 255, 255, .07), transparent 62%), url("/media/hero/home.svg");
    }

    .page-hero--art.hero-art--about {
        background-image: radial-gradient(560px 420px at var(--mx, 76%) var(--my, 18%), rgba(255, 255, 255, .07), transparent 62%), url("/media/hero/about.svg");
    }

    .page-hero--art.hero-art--products {
        background-image: radial-gradient(560px 420px at var(--mx, 76%) var(--my, 18%), rgba(255, 255, 255, .07), transparent 62%), url("/media/hero/products.svg");
    }

    .page-hero--art.hero-art--contact {
        background-image: radial-gradient(560px 420px at var(--mx, 76%) var(--my, 18%), rgba(255, 255, 255, .07), transparent 62%), url("/media/hero/contact.svg");
    }

    .page-hero--art.hero-art--facility {
        background-image: radial-gradient(560px 420px at var(--mx, 76%) var(--my, 18%), rgba(255, 255, 255, .07), transparent 62%), url("/media/hero/facility.svg");
    }

    .page-hero--art.hero-art--rnd {
        background-image: radial-gradient(560px 420px at var(--mx, 76%) var(--my, 18%), rgba(255, 255, 255, .07), transparent 62%), url("/media/hero/rnd.svg");
    }

    .page-hero--art.hero-art--quality {
        background-image: radial-gradient(560px 420px at var(--mx, 76%) var(--my, 18%), rgba(255, 255, 255, .07), transparent 62%), url("/media/hero/quality.svg");
    }

    .page-hero--art.hero-art--certificates {
        background-image: radial-gradient(560px 420px at var(--mx, 76%) var(--my, 18%), rgba(255, 255, 255, .07), transparent 62%), url("/media/hero/certificates.svg");
    }

    .page-hero--art.hero-art--publications {
        background-image: radial-gradient(560px 420px at var(--mx, 76%) var(--my, 18%), rgba(255, 255, 255, .07), transparent 62%), url("/media/hero/publications.svg");
    }

    .page-hero--art.hero-art--blog {
        background-image: radial-gradient(560px 420px at var(--mx, 76%) var(--my, 18%), rgba(255, 255, 255, .07), transparent 62%), url("/media/hero/blog.svg");
    }

/* --- Home hero — compact height ---------------------------------------------
   Trim the vertical padding so the home hero reads shorter while keeping the
   50/50 split layout and the full-size product photo (no crop). */
.page-hero--art.hero-art--home {
    padding-block: clamp(2rem, 4vw, 3.25rem);
}

/* --- Certificate cards — full scan shown, never cropped ---------------------
   Certificate scans are portrait (A4-ish); the shared .card__media crop
   (fixed 220px + object-fit: cover) was cutting them off. Show the whole
   certificate instead. */
.card--cert .card__media img {
    display: block;
    height: auto;
    object-fit: contain;
}

/* --- Category card detail chips (data-driven product names) ---------------- */
.cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .85rem;
}

.chip {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--c-forest);
    background: linear-gradient(120deg, var(--c-mist), #e2efe7);
    border: 1px solid rgba(20, 112, 79, .18);
    border-radius: 999px;
    padding: .28rem .7rem;
}

.chip--more {
    color: var(--c-gold-2);
    background: rgba(198, 163, 74, .1);
    border-color: rgba(198, 163, 74, .32);
}

/* --- Home hero mobile reflow ------------------------------------------------
   The "UI polish" block redefined .page-hero--grid AFTER the responsive block,
   so the single-column reflow was being overridden on phones. Re-assert below
   960px (cascade safe: later in source, same specificity). */
@media (max-width: 960px) {
    .page-hero--grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

        .page-hero--grid h1, .page-hero--grid p {
            max-width: none;
        }

    .hero-media {
        max-width: none;
    }

        .hero-media img {
            width: 100%;
            height: auto;
            max-height: 300px;
            object-fit: cover;
        }
}

@media (max-width: 560px) {
    .hero-media img {
        max-height: 210px;
    }

    .page-hero {
        padding-block: 2.25rem 2.5rem;
    }
}

/* --- Extra UI/UX motion (progressive, reduced-motion disabled below) -------- */
/* Button press feedback */
.btn:active:not(:disabled) {
    transform: translateY(1px) scale(.98);
}

/* Floating WhatsApp + chat entrance */
html.js .floating-actions .wa-btn,
html.js .floating-actions .chat-toggle {
    animation: fxIn .55s var(--ease) .12s both;
}

html.js .floating-actions .chat-toggle {
    animation-delay: .26s;
}

@keyframes fxIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.85);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Server-rendered alerts slide in */
.alert {
    animation: alertIn .5s var(--ease) both;
}

@keyframes alertIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Quick-facts stat tiles lift on hover */
.stat {
    transition: transform .25s var(--ease);
}

    .stat:hover {
        transform: translateY(-3px);
    }

/* Section heading — gold underline draws in once revealed */
.section-head h2 {
    position: relative;
    display: inline-block;
    padding-bottom: .5rem;
}

    .section-head h2::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 56px;
        height: 3px;
        border-radius: 3px;
        background: linear-gradient(90deg, var(--c-gold), #1d8a60);
    }

html.js.io .reveal .section-head h2::after {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .6s var(--ease) .15s;
}

html.js.io .reveal.is-visible .section-head h2::after {
    transform: scaleX(1);
}

/* Newsletter band — gentle lift */
.newsletter-band {
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

    .newsletter-band:hover {
        transform: translateY(-4px);
        box-shadow: 0 38px 70px -34px rgba(10, 52, 38, .55);
    }

/* Reduced-motion kills for the new motion */
@media (prefers-reduced-motion: reduce) {
    html.js .floating-actions .wa-btn,
    html.js .floating-actions .chat-toggle,
    .alert {
        animation: none !important;
    }
}

/* --- Meet Our Experts: leadership profile cards -----------------------------
   Individual member cards with square portrait, name + role, and full bio.
   Hover = lift, gold ring + subtle zoom on the portrait (reduced-motion safe). */

/* Full-bleed 16:9 banners (e.g. Vision / Mission / Quality Control cards) —
   match the native image ratio so nothing crops at any card width. */
.card__media--banner img {
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.team-card {
    position: relative;
    display: flex;
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: flex-start;
    padding: clamp(1.4rem, 3vw, 2rem);
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

    .team-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--sh);
        border-color: transparent;
    }

.team-card__photo {
    flex: 0 0 auto;
    position: relative;
    width: clamp(18rem, 20vw, 16rem);
    aspect-ratio: 1;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--c-mist);
    border: 1px solid var(--c-line);
    box-shadow: var(--sh);
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

    .team-card__photo::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        box-shadow: inset 0 0 0 2px rgba(198, 163, 74, 0);
        transition: box-shadow .3s var(--ease);
        pointer-events: none;
    }

    .team-card__photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .55s var(--ease);
    }

.team-card:hover .team-card__photo {
    transform: translateY(-4px) scale(1.02);
    border-color: transparent;
    box-shadow: var(--sh-lg);
}

    .team-card:hover .team-card__photo::after {
        box-shadow: inset 0 0 0 2px rgba(198, 163, 74, .55);
    }

    .team-card:hover .team-card__photo img {
        transform: scale(1.07);
    }

.team-card__body {
    min-width: 0;
}

.team-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem .9rem;
    margin-bottom: .85rem;
}

.team-card__name {
    margin: 0;
}

@media (max-width: 720px) {
    .team-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .team-card__head {
        justify-content: center;
    }

    .team-card__photo {
        width: clamp(8.5rem, 60vw, 10.5rem);
    }
}

/* Reduced-motion kills for team cards */
@media (prefers-reduced-motion: reduce) {
    .team-card,
    .team-card__photo,
    .team-card__photo img {
        transition: none !important;
    }
}

/* --- Meet Our Experts: team members listed one after another ---------------- */
.team-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.4rem, 3vw, 2rem);
}
