/* =========================================================
   KAVIONAA — Design System
   Wild by Nature. Rooted in Heritage. Crafted for the World.

   Palette:
     --ink        deep forest near-black      #14201A
     --paper      warm parchment              #F2ECDD
     --paper-2    deeper parchment (cards)    #EAE1CB
     --moss       primary green               #3F4F35
     --moss-deep  darker green (sections)     #26301F
     --gold       muted turmeric accent       #C0912E
     --indigo     heritage indigo accent      #2B3B4C
     --line       hairline rule colour

   Type:
     Display: 'Fraunces'      — botanical, soft-serif, characterful
     Body:    'Inter'         — clean, neutral, legible
     Mono:    'IBM Plex Mono' — specimen-label / data accents
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
    --ink: #14201A;
    --paper: #F2ECDD;
    --paper-2: #EAE1CB;
    --moss: #3F4F35;
    --moss-deep: #212B1B;
    --moss-light: #6E7F5C;
    --gold: #C0912E;
    --indigo: #2B3B4C;
    --line: rgba(20, 32, 26, 0.16);
    --line-light: rgba(242, 236, 221, 0.22);

    --font-display: 'Fraunces', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --container: 1180px;
    --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.12;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--gold);
    display: inline-block;
}

.lede {
    font-size: 1.15rem;
    color: rgba(20,32,26,0.75);
    max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 15px 28px;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    cursor: pointer;
    background: transparent;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--moss); border-color: var(--moss); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-outline.on-dark { border-color: var(--line-light); color: var(--paper); }
.btn-outline.on-dark:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-gold { background: var(--gold); color: var(--moss-deep); border-color: var(--gold); }
.btn-gold:hover { background: transparent; color: var(--gold); }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(242,236,221,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s ease;
}
.site-header.scrolled {
    box-shadow: 0 8px 24px rgba(20,32,26,0.06);
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    max-width: var(--container);
    margin: 0 auto;
    transition: padding .3s ease;
}
.site-header.scrolled .nav-wrap {
    padding-top: 14px;
    padding-bottom: 14px;
}
.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.02em;
}
.logo span { color: var(--gold); }
.nav-links {
    display: flex;
    gap: 34px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    font-size: 0.86rem;
    letter-spacing: 0.02em;
    position: relative;
    padding-bottom: 4px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin: -10px;
    min-width: 44px;
    min-height: 44px;
}
.nav-toggle span { display: block; width: 24px; height: 1px; background: var(--ink); margin: 6px 0; transition: transform .25s ease, opacity .25s ease; }
.nav-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(20,32,26,0.45);
    z-index: 149;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.nav-close-row { display: none; }
.nav-close {
    background: none; border: none; cursor: pointer;
    font-size: 2rem; line-height: 1; color: var(--ink);
    min-width: 44px; min-height: 44px;
}

@media (max-width: 900px) {
    .nav-links {
        position: fixed; top: 0; right: 0; bottom: 0;
        width: min(340px, 84vw);
        background: var(--paper);
        flex-direction: column; align-items: flex-start;
        padding: 20px 32px 40px; gap: 8px;
        transform: translateX(100%);
        transition: transform .35s cubic-bezier(.4,0,.2,1);
        overflow-y: auto;
        z-index: 150;
        box-shadow: -20px 0 50px rgba(20,32,26,0.15);
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links li { width: 100%; }
    .nav-links a {
        font-size: 1.15rem;
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
        min-height: 44px;
    }
    .nav-close-row { display: flex; justify-content: flex-end; width: 100%; margin-bottom: 10px; }
    .nav-toggle { display: block; }
    .nav-backdrop.open { display: block; opacity: 1; pointer-events: auto; }
    .nav-cta .btn span.btn-text { display: none; }
    body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    background: var(--moss-deep);
    color: var(--paper);
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0.55;
}
.hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,32,26,0.15) 0%, rgba(20,32,26,0.75) 85%);
}
.hero-inner {
    position: relative;
    z-index: 2;
    padding: 80px 32px 90px;
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
}
.hero-inner .eyebrow { color: var(--gold); }
.hero h1 { max-width: 820px; color: var(--paper); }
.hero .lede { color: rgba(242,236,221,0.82); font-size: 1.2rem; }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-scroll {
    position: absolute; right: 32px; bottom: 40px; z-index: 2;
    font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em;
    color: rgba(242,236,221,0.65); display: flex; align-items: center; gap: 10px;
    writing-mode: vertical-rl;
}
.hero-scroll::after { content:''; width:1px; height: 50px; background: rgba(242,236,221,0.4); }

/* ---------- Sections ---------- */
section { padding: 110px 0; }
.section-tight { padding: 70px 0; }
.section-dark { background: var(--moss-deep); color: var(--paper); }
.section-dark .eyebrow { color: var(--gold); }
.section-moss { background: var(--moss); color: var(--paper); }
.section-paper-2 { background: var(--paper-2); }

.section-head { max-width: 680px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Two column intro */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; gap: 36px; }
    .split.reverse .split-media { order: 0; }
}
.split-media img { width: 100%; height: 520px; object-fit: cover; border-radius: var(--radius); }
.split-media.short img { height: 380px; }

/* ---------- Feature grid (Why Kavionaa) ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.feature-grid.on-dark { background: var(--line-light); border-color: var(--line-light); }
.feature-item {
    background: var(--paper);
    padding: 44px 36px;
}
.section-dark .feature-item, .section-moss .feature-item { background: var(--moss-deep); }
.feature-item .num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gold);
    display: block;
    margin-bottom: 22px;
}
.feature-item h3 { font-size: 1.25rem; margin-bottom: 12px; }
.feature-item p { color: rgba(20,32,26,0.68); font-size: 0.96rem; margin: 0; }
.section-dark .feature-item p, .section-moss .feature-item p { color: rgba(242,236,221,0.72); }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Specimen Card (signature product-card motif) ---------- */
.specimen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 28px;
}
.specimen-card {
    border: 1px dashed var(--line);
    padding: 22px;
    position: relative;
    background: var(--paper);
    transition: border-color .25s ease, transform .25s ease;
}
.specimen-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.specimen-card::before, .specimen-card::after,
.specimen-corner-tl, .specimen-corner-br { content: ''; }
.specimen-tag {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--moss-light);
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}
.specimen-image { width: 100%; height: 230px; object-fit: cover; margin-bottom: 18px; background: var(--paper-2); }
.specimen-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.specimen-botanical { font-family: var(--font-mono); font-style: normal; font-size: 0.78rem; color: var(--moss-light); margin-bottom: 12px; display: block; }
.specimen-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.specimen-chip {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    padding: 5px 10px;
    color: var(--ink);
}
.specimen-desc { font-size: 0.9rem; color: rgba(20,32,26,0.7); margin-bottom: 18px; }
.specimen-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; }
.specimen-price { font-family: var(--font-mono); font-size: 0.95rem; }
.specimen-price small { display: block; font-size: 0.62rem; color: var(--moss-light); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.specimen-link { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--ink); }

/* ---------- Category cards ---------- */
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .category-grid { grid-template-columns: 1fr; } }
.category-card {
    position: relative;
    height: 420px;
    overflow: hidden;
    color: var(--paper);
    background: var(--moss-deep);
}
.category-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: transform .5s ease, opacity .3s ease; }
.category-card:hover img { transform: scale(1.06); opacity: 0.75; }
.category-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,32,26,0.05) 20%, rgba(20,32,26,0.85) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 34px;
}
.category-card-overlay .eyebrow { color: var(--gold); }
.category-card-overlay h3 { color: var(--paper); font-size: 1.7rem; margin-bottom: 10px; }
.category-card-overlay p { color: rgba(242,236,221,0.78); font-size: 0.92rem; max-width: 380px; }

/* ---------- Quote / heritage strip ---------- */
.heritage-strip {
    border-top: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
    padding: 60px 0;
    text-align: center;
}
.heritage-strip blockquote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    max-width: 780px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.45;
}
.heritage-strip cite { display: block; margin-top: 22px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-style: normal; color: var(--gold); }

/* ---------- Stats row ---------- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
@media (max-width: 760px) { .stats-row { grid-template-columns: 1fr 1fr; } }
.stat { border-left: 1px solid var(--line-light); padding-left: 20px; }
.stat .stat-num { font-family: var(--font-display); font-size: 2.6rem; color: var(--gold); display: block; }
.stat .stat-label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(242,236,221,0.7); }

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--ink);
    color: var(--paper);
    text-align: center;
    padding: 100px 32px;
}
.cta-band h2 { color: var(--paper); max-width: 700px; margin-left:auto; margin-right:auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--moss-light);
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}
.breadcrumb a { border-bottom: 1px solid transparent; }
.breadcrumb a:hover { border-color: var(--moss-light); }

/* ---------- Product detail ---------- */
.product-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; padding: 70px 0; }
@media (max-width: 900px) { .product-hero { grid-template-columns: 1fr; gap: 36px; } }
.product-hero-image { width: 100%; height: 560px; object-fit: cover; background: var(--paper-2); }
.product-info .specimen-botanical { font-size: 0.95rem; margin-bottom: 22px; }
.product-info h1 { font-size: 2.6rem; margin-bottom: 6px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 26px 0; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table td { padding: 13px 0; font-size: 0.92rem; }
.spec-table td:first-child { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--moss-light); width: 40%; }
.product-price-box { background: var(--paper-2); padding: 26px; margin: 26px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.product-price-box .price { font-family: var(--font-mono); font-size: 1.5rem; }
.product-price-box .price-note { font-size: 0.78rem; color: var(--moss-light); margin-top: 4px; }
.prose { max-width: 720px; }
.prose h3 { margin-top: 40px; }
.prose p { color: rgba(20,32,26,0.78); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 22px; }
.field.full { grid-column: 1 / -1; }
label { display: block; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; color: var(--moss-light); }
input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--gold);
    outline-offset: 1px;
    border-color: var(--gold);
}
textarea { resize: vertical; min-height: 130px; }
.alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 26px; font-size: 0.92rem; }
.alert-success { background: rgba(63,79,53,0.12); border: 1px solid var(--moss); color: var(--moss); }
.alert-error { background: rgba(160,50,50,0.08); border: 1px solid #a03232; color: #a03232; }

/* ---------- Footer ---------- */
.site-footer { background: var(--moss-deep); color: var(--paper); padding: 90px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 70px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 20px; font-weight: 500; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 12px; font-size: 0.9rem; color: rgba(242,236,221,0.78); }
.footer-grid a:hover { color: var(--gold); }
.footer-logo { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: 16px; }
.footer-logo span { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid var(--line-light);
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.78rem;
    color: rgba(242,236,221,0.55);
    font-family: var(--font-mono);
}

/* ---------- Misc ---------- */
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.divider { height: 1px; background: var(--line); border: none; margin: 60px 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
::selection { background: var(--gold); color: var(--ink); }

.legal-content h2 { font-size: 1.5rem; margin-top: 46px; }
.legal-content p, .legal-content li { color: rgba(20,32,26,0.78); }
.legal-content { max-width: 780px; }

/* Skip link for accessibility */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 12px 20px; z-index: 999; }
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease, background .25s ease;
    z-index: 90;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--moss); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.reveal-in { opacity: 1; transform: translateY(0); }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ---------- Fluid section spacing on small screens ---------- */
@media (max-width: 640px) {
    section { padding: 64px 0; }
    .section-tight { padding: 46px 0; }
    .container { padding: 0 20px; }
    .cta-band { padding: 64px 20px; }
    .hero { min-height: 82vh; }
    .hero-inner { padding: 50px 20px 60px; }
    .hero-scroll { display: none; }
    .btn { padding: 14px 22px; font-size: 0.74rem; }
    .stats-row { grid-template-columns: 1fr 1fr; gap: 24px; }
    .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

@media (max-width: 400px) {
    h1 { font-size: 2.2rem; }
    .specimen-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}
