:root {
    --brand: #255C99;
    --brand-deep: #1a4370;
    --mist: #F4F6F8;
    --ink: #000000;
    --muted: #5a6573;
    --hairline: #DCE3EC;
    --panel: #ffffff;
    --danger: #C62828;
    --success: #2f9e6b;
    --radius: 12px;
    --radius-tight: 8px;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--mist);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-tight);
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    transition: top 160ms var(--ease-out);
}

.skip-link:focus { top: 1rem; }

.wrap {
    width: min(1120px, calc(100% - 2.5rem));
    margin-inline: auto;
}

/* —— Buttons —— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 48px;
    padding: 0 1.35rem;
    border-radius: var(--radius-tight);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition:
        transform 160ms var(--ease-out),
        background-color 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: #fff;
    color: var(--brand);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.btn-brand {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 10px 28px rgba(37, 92, 153, 0.24);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover { background: #f2f6fa; }
    .btn-brand:hover { background: var(--brand-deep); }
    .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
}

/* —— Header —— */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    padding: 0.85rem 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    transition:
        background-color 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease,
        padding 220ms ease;
}

.site-header.is-solid {
    padding: 0.65rem 0;
    background: rgba(244, 246, 248, 0.94);
    border-bottom-color: var(--hairline);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(15, 23, 32, 0.05);
}

.site-header .wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.brand-lockup img {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-tight);
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    flex-shrink: 0;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.brand-copy strong {
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #fff;
    transition: color 180ms ease;
}

.brand-copy small {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    transition: color 180ms ease;
}

.site-header.is-solid .brand-copy strong { color: var(--ink); }
.site-header.is-solid .brand-copy small { color: var(--muted); }

.top-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-tight);
    transition: color 160ms ease, background-color 160ms ease;
}

.nav-link[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.12); }

.site-header.is-solid .nav-link { color: var(--muted); }
.site-header.is-solid .nav-link[aria-current="page"] {
    color: var(--brand);
    background: rgba(37, 92, 153, 0.08);
}

@media (hover: hover) and (pointer: fine) {
    .nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
    .site-header.is-solid .nav-link:hover {
        color: var(--brand);
        background: rgba(37, 92, 153, 0.08);
    }
    .site-header.is-solid .btn-header:hover { background: var(--brand-deep); }
}

.btn-header {
    min-height: 42px;
    padding: 0 1.1rem;
    font-size: 0.875rem;
}

.site-header.is-solid .btn-header {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 92, 153, 0.22);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-tight);
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 160ms var(--ease-out);
}

.menu-toggle:active { transform: scale(0.95); }

.site-header.is-solid .menu-toggle {
    border-color: var(--hairline);
    background: #fff;
    color: var(--ink);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }

/* —— Hero —— */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: #fff;
    background: var(--brand-deep);
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(26, 67, 112, 0.35) 0%, rgba(15, 40, 70, 0.88) 58%, rgba(10, 28, 50, 0.96) 100%),
        url("/brand/produce.jpg") center / cover no-repeat;
    animation: heroZoom 12s var(--ease-out) both;
}

@keyframes heroZoom {
    from { transform: scale(1.08); }
    to { transform: scale(1.02); }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 7.5rem 0 4.5rem;
    animation: rise 700ms var(--ease-out) both;
}

.hero h1 {
    max-width: 14ch;
    font-size: clamp(2.6rem, 7vw, 4.6rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.lede {
    max-width: 34rem;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 1.85rem;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* —— Page intro (inner pages) —— */
.page-intro {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    color: #fff;
    padding: 8.5rem 0 3.5rem;
}

.page-intro h1 {
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    animation: rise 600ms var(--ease-out) both;
}

.page-intro p {
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.05rem;
    animation: rise 600ms var(--ease-out) 60ms both;
}

/* —— Sections —— */
section { padding: 5rem 0; }

.eyebrow {
    display: inline-block;
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.section-title {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
    margin-bottom: 0.85rem;
}

.section-copy {
    max-width: 36rem;
    color: var(--muted);
    font-size: 1.05rem;
}

.features {
    background: var(--panel);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.feature-list { margin-top: 2.75rem; }

.feature {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 1.25rem;
    padding: 1.75rem 0;
    border-top: 1px solid var(--hairline);
}

.feature-index {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: -0.04em;
    line-height: 1;
    padding-top: 0.2rem;
}

.feature h3 {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 0.4rem;
}

.feature p { color: var(--muted); max-width: 38rem; }

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.tags span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--brand);
    background: rgba(37, 92, 153, 0.08);
    border: 1px solid rgba(37, 92, 153, 0.14);
    border-radius: var(--radius-tight);
    padding: 0.28rem 0.65rem;
}

.how-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

.how-visual {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--hairline);
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.how-visual img { display: block; width: 100%; height: auto; }

.steps { display: grid; gap: 1.35rem; margin-top: 1.75rem; }

.step strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.step span { color: var(--muted); font-size: 0.95rem; }

.cta-band {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    color: #fff;
    text-align: center;
    padding: 4.5rem 0;
}

.cta-band h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    margin-bottom: 0.75rem;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.82);
    max-width: 28rem;
    margin: 0 auto 1.75rem;
}

.cta-band .cta-row { justify-content: center; }

/* Scroll reveal: content is visible by default; JS opts elements in. */
.js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

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

/* —— Contact —— */
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
    align-items: start;
}

.contact-aside h2 {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 0.6rem;
}

.contact-aside p { color: var(--muted); margin-bottom: 1.5rem; }

.contact-points { display: grid; gap: 1rem; }

.contact-point {
    padding: 1rem 1.1rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    background: #fff;
}

.contact-point strong { display: block; font-weight: 600; margin-bottom: 0.15rem; }
.contact-point span { color: var(--muted); font-size: 0.92rem; }

.panel {
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.04);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.field { display: grid; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }

.field label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink);
}

.field label .optional { color: var(--muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
    width: 100%;
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--mist);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-tight);
    padding: 0.8rem 0.95rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.field textarea { min-height: 9rem; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(37, 92, 153, 0.14);
}

.field .error-text { color: var(--danger); font-size: 0.8rem; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-note { color: var(--muted); font-size: 0.82rem; }
.form-note a { color: var(--brand); font-weight: 500; }

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.25rem;
}

.alert {
    border-radius: var(--radius-tight);
    padding: 0.9rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
    animation: rise 300ms var(--ease-out) both;
}

.alert-success {
    background: rgba(47, 158, 107, 0.08);
    border: 1px solid rgba(47, 158, 107, 0.28);
    color: #1d6b47;
}

.alert-error {
    background: rgba(198, 40, 40, 0.06);
    border: 1px solid rgba(198, 40, 40, 0.24);
    color: #8e1c1c;
}

/* —— Legal —— */
.legal {
    background: #fff;
    border-top: 1px solid var(--hairline);
}

.legal-body { max-width: 46rem; }

.legal-meta {
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 2rem;
}

.legal-body h2 {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 2.25rem 0 0.6rem;
}

.legal-body h3 {
    font-size: 1.02rem;
    font-weight: 600;
    margin: 1.6rem 0 0.45rem;
}

.legal-body p { color: #2b3440; margin-bottom: 0.9rem; line-height: 1.7; }
.legal-body a { color: var(--brand); font-weight: 500; }

/* —— Footer —— */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--hairline);
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    padding: 3.25rem 0 2.5rem;
}

.footer-brand { display: grid; gap: 0.9rem; max-width: 22rem; }

.footer-brand .brand-copy strong { color: var(--ink); }
.footer-brand .brand-copy small { color: var(--muted); }
.footer-brand .brand-lockup img { box-shadow: 0 4px 14px rgba(37, 92, 153, 0.12); }

.footer-brand p { font-size: 0.92rem; line-height: 1.55; }

.footer-col h2 {
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-col ul { list-style: none; display: grid; gap: 0.65rem; }

.footer-col a {
    color: var(--muted);
    font-weight: 500;
    transition: color 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .footer-col a:hover,
    .footer-bottom a:hover { color: var(--brand); }
}

.footer-bottom {
    border-top: 1px solid var(--hairline);
    padding: 1.15rem 0;
    background: var(--mist);
}

.footer-bottom .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8rem;
}

.footer-bottom nav { display: flex; gap: 1.1rem; }
.footer-bottom a { color: var(--muted); font-weight: 500; }

/* —— Error page —— */
.error-page {
    min-height: 70vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 8rem 0 4rem;
}

.error-page .code {
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--brand);
    line-height: 1;
}

.error-page h1 {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin: 0.75rem 0 0.5rem;
}

.error-page p { color: var(--muted); margin-bottom: 1.75rem; }

/* —— Responsive —— */
@media (max-width: 840px) {
    .how-grid,
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-content { padding: 6.5rem 0 3.25rem; }
    .feature { grid-template-columns: 3rem 1fr; }
    .menu-toggle { display: inline-flex; }

    .top-nav {
        position: absolute;
        top: calc(100% + 0.65rem);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        padding: 0.75rem;
        border-radius: var(--radius);
        background: #fff;
        border: 1px solid var(--hairline);
        box-shadow: 0 16px 40px rgba(15, 23, 32, 0.12);
        transform-origin: top right;
    }

    .site-header.is-open .top-nav {
        display: flex;
        animation: menuIn 180ms var(--ease-out) both;
    }

    @keyframes menuIn {
        from { opacity: 0; transform: scale(0.97) translateY(-4px); }
        to { opacity: 1; transform: none; }
    }

    .top-nav .nav-link { color: var(--muted); padding: 0.75rem 0.85rem; }
    .top-nav .nav-link[aria-current="page"] { color: var(--brand); background: rgba(37, 92, 153, 0.08); }

    .top-nav .btn-header {
        width: 100%;
        background: var(--brand);
        color: #fff;
        margin-top: 0.25rem;
    }

    .footer-main { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0 2rem; }
}

@media (max-width: 560px) {
    .form-grid { grid-template-columns: 1fr; }
    .panel { padding: 1.4rem; }
    .brand-copy small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-property: opacity, color, background-color, border-color !important;
    }
    .hero-media { animation: none !important; transform: scale(1.02); }
    .js .reveal { transform: none; }
}
