/* ECO WRAP · Global stylesheet
   Based on v4 Mixed style tile (Editorial color + Space Grotesk brand bones) */
/* ── Fonts (self-hosted) ── */
@font-face {
    font-family: "Playfair Display";
    src: url("/assets/fonts/playfair-display.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Playfair Display";
    src: url("/assets/fonts/playfair-display-700.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/inter-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/inter-600.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Space Grotesk";
    src: url("/assets/fonts/space-grotesk-500.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Space Grotesk";
    src: url("/assets/fonts/space-grotesk-700.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Space Mono";
    src: url("/assets/fonts/space-mono.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

/* ── Tokens (v4 Mixed) ── */
:root {
    --bg: #F7F7EF;
    --bg-alt: #EEEBDF;
    --ink: #2A2422;
    --ink-soft: #6D6661;
    --rule: #D7D0BD;
    --brand: #3F5838;
    --brand-soft: #597256;
    --accent: #8B6B45;
    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-brand: "Space Grotesk", "Inter Tight", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --font-mono: "Space Mono", ui-monospace, monospace;
    --size-display: 84px;
    --size-h1: 56px;
    --size-h2: 32px;
    --size-h3: 22px;
    --size-body: 17px;
    --size-caption: 13px;
    --lead-display: 0.95;
    --lead-body: 1.55;
    --max-w: 1200px;
    --gutter-desktop: 96px;
    --gutter-tablet: 40px;
    --gutter-mobile: 20px;
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--size-body);
    line-height: var(--lead-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
}

/* ── Layout shell ── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter-desktop);
}

/* ── Top nav ── */
.topnav {
    border-bottom: 1px solid var(--rule);
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 10;
}

.topnav .nav-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 16px;
}

.topnav .brand {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--brand);
}

.topnav .brand img {
    height: 48px;
    width: auto;
    position: relative;
    top: -2px;
    left: 2px;
}

.topnav .brand span {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.topnav .nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.topnav .nav-links a {
    font-family: var(--font-brand);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    color: var(--ink);
    letter-spacing: 0.01em;
}

.topnav .nav-links a:hover {
    color: var(--brand);
}

.topnav .hamburger {
    position: absolute;
    top: 36px;
    right: var(--gutter-desktop);
    display: none;
    cursor: pointer;
    padding: 8px;
    font-family: var(--font-brand);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: none;
    border: 1px solid var(--rule);
    color: var(--ink);
}

#nav-toggle {
    display: none;
}

/* ── Hero ── */
.hero {
    padding: 96px 0 48px;
    border-bottom: 1px solid var(--rule);
}

.hero .kicker {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin: 0 0 24px 0;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: var(--size-display);
    line-height: var(--lead-display);
    letter-spacing: -0.01em;
    margin: 0 0 28px 0;
    max-width: 14ch;
}

.hero h1 em {
    font-style: italic;
    color: var(--brand);
    font-weight: 500;
}

.hero .sub {
    font-size: 22px;
    line-height: 1.5;
    color: var(--ink-soft);
    max-width: 52ch;
    margin: 0 0 40px 0;
}

/* ── Buttons ── */
.btn-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    font-family: var(--font-brand);
    font-size: 15px;
    font-weight: 500;
    padding: 15px 28px;
    border-radius: 2px;
    text-decoration: none;
    border: 1px solid transparent;
    display: inline-block;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--ink);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--brand);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn-secondary:hover {
    background: var(--ink);
    color: var(--bg);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    padding: 15px 0;
    border-bottom: 1px solid var(--ink);
    border-radius: 0;
}

.btn-ghost:hover {
    color: var(--brand);
    border-color: var(--brand);
}

/* ── Section ── */
section.block {
    padding: 96px 0;
    border-bottom: 1px solid var(--rule);
}

section.block:last-of-type {
    border-bottom: 0;
}

.block-head {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin: 0 0 28px 0;
}

.block h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 44px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 32px 0;
    max-width: 22ch;
}

.block h2 em {
    font-style: italic;
    color: var(--brand);
}

.block h3 {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: var(--size-h3);
    line-height: 1.25;
    letter-spacing: -0.005em;
    margin: 0 0 10px 0;
}

.block p.lead {
    font-size: 20px;
    line-height: 1.5;
    color: var(--ink-soft);
    max-width: 60ch;
    margin: 0 0 40px 0;
}

.block p {
    max-width: 60ch;
}

/* ── Grid cards ── */
.cards-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

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

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

/* ── LEAF banner ── the acronym stands alone, not reliant on card layout ── */
.leaf-banner {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 28px;
    margin: 24px 0 16px;
    font-family: var(--font-display);
    font-weight: 500;
    font-style: italic;
    font-size: 120px;
    line-height: 1;
    color: var(--brand);
    letter-spacing: 0.02em;
    user-select: none;
}

.leaf-banner .dot {
    font-style: normal;
    font-weight: 400;
    color: var(--ink-soft);
    font-size: 64px;
    transform: translateY(-12px);
}

.leaf-caption {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin: 0 0 56px;
}

.leaf-letter {
    display: inline-block;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: 28px;
    color: var(--brand);
    margin-right: 8px;
    line-height: 1;
    vertical-align: -3px;
    letter-spacing: -0.01em;
}

.card {
    border: 1px solid var(--rule);
    padding: 36px;
    background: var(--bg);
}

.card.filled {
    background: var(--bg-alt);
}

.card .tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 16px;
    display: block;
}

.card h3 {
    margin-bottom: 10px;
}

.card .spec {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-soft);
    letter-spacing: 0.04em;
    margin-top: 18px;
}

.card img.prod {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    margin-bottom: 24px;
    filter: saturate(0.92);
}

/* ── Stats ── */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.stat .num {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 72px;
    line-height: 1;
    color: var(--brand);
    letter-spacing: -0.02em;
}

.stat .label {
    font-size: 15px;
    color: var(--ink-soft);
    margin-top: 12px;
    max-width: 22ch;
    line-height: 1.4;
}

.stat .source {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--ink-soft);
    text-transform: uppercase;
    margin-top: 10px;
}

/* ── Trust strip ── */
.trust {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 40px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    align-items: center;
    justify-items: center;
}

.trust .badge {
    display: flex;
    gap: 20px;
    align-items: center;
}

.trust .badge img {
    height: 60px;
    width: auto;
    filter: saturate(0.8);
}

.trust .badge .t {
    font-size: 21px;
    line-height: 1.35;
    max-width: 26ch;
}

.trust .badge .t strong {
    font-family: var(--font-brand);
    font-weight: 500;
    display: block;
    font-size: 22.5px;
}

/* ── Team cards ── */
.team {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.team .member {
    text-align: center;
    padding: 32px 16px;
    border: 1px solid var(--rule);
    background: var(--bg);
}

.team .avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
    object-fit: cover;
    object-position: center 20%;
    background: var(--brand);
    box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--rule);
}

.team h3 {
    margin-bottom: 4px;
}

.team .role {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 10px;
}

.team .bio {
    font-size: 14px;
    color: var(--ink-soft);
    margin: 0 auto;
    max-width: 28ch;
}

/* ── Image treatment ── */
.img-treat {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.img-treat figure {
    margin: 0;
}

.img-treat img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.img-treat figcaption {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-top: 12px;
}

/* ── Footer ── */
footer.site-foot {
    padding: 48px 0 64px;
    border-top: 1px solid var(--rule);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
}

footer.site-foot .foot-row {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

footer.site-foot a {
    color: var(--brand);
    text-decoration: none;
}

footer.site-foot a:hover {
    text-decoration: underline;
}

/* ── Specs table ── */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    text-align: left;
    padding: 16px 12px;
    border-bottom: 1px solid var(--rule);
    font-size: 15px;
}

.specs-table th {
    font-family: var(--font-brand);
    font-weight: 700;
    letter-spacing: 0.02em;
    background: var(--bg-alt);
}

.specs-table td:first-child {
    font-family: var(--font-brand);
    font-weight: 500;
}

/* ── 404 ── */
.notfound {
    text-align: center;
    padding: 160px 0;
}

.notfound h1 {
    max-width: 100%;
    margin: 0 auto 24px;
}

/* ── Tablet: 640 - 1023px ── */
@media (max-width: 1023px) {
    .container {
        padding: 0 var(--gutter-tablet);
    }

    .hero {
        padding: 64px 0 40px;
    }

    .hero h1 {
        font-size: 60px;
    }

    .hero .sub {
        font-size: 19px;
    }

    .block {
        padding: 72px 0;
    }

    .block h2 {
        font-size: 36px;
    }

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

    .leaf-banner {
        font-size: 92px;
        gap: 20px;
    }

    .leaf-banner .dot {
        font-size: 48px;
    }
}

/* ── Mobile: < 640px ── */
@media (max-width: 639px) {
    :root {
        --size-body: 16px;
    }

    .container {
        padding: 0 var(--gutter-mobile);
    }

    /* Hamburger */
    .topnav .hamburger {
        position: absolute;
        top: 36px;
        right: var(--gutter-mobile);
        display: block;
    }

    .topnav .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--rule);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .topnav .nav-links a {
        padding: 18px var(--gutter-mobile);
        border-top: 1px solid var(--rule);
        display: block;
        width: 100%;
    }

    #nav-toggle:checked ~ .nav-inner .nav-links {
        max-height: 400px;
    }

    .hero {
        padding: 48px 0 32px;
    }

    .hero h1 {
        font-size: 40px;
        max-width: 100%;
    }

    .hero .sub {
        font-size: 17px;
    }

    .block {
        padding: 56px 0;
    }

    .block h2 {
        font-size: 28px;
    }

    .block p.lead {
        font-size: 17px;
    }

    .cards-2,
    .cards-3,
    .cards-4,
    .stats,
    .trust,
    .team,
    .img-treat {
        grid-template-columns: 1fr;
    }

    .leaf-banner {
        font-size: 64px;
        gap: 12px;
        margin-top: 16px;
    }

    .leaf-banner .dot {
        font-size: 32px;
        transform: translateY(-6px);
    }

    .leaf-caption {
        margin-bottom: 32px;
        font-size: 11px;
    }

    .card {
        padding: 24px;
    }

    .stat .num {
        font-size: 56px;
    }

    footer.site-foot .foot-row {
        flex-direction: column;
        gap: 16px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 14px;
    }

    .btn-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-row .btn {
        text-align: center;
    }

    .notfound {
        padding: 80px 0;
    }
}

/* Tablet hides hamburger, keeps inline nav */
@media (min-width: 640px) and (max-width: 1023px) {
    .topnav .nav-links {
        gap: 20px;
    }
}
