/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap');

/* REKO static site. Assumes this structure:
   /index.html
   /how-it-works.html
   /for-markets.html
   /for-producers.html
   /for-communities.html
   /about.html
   /styles.css
   /script.js
   /assets/reko-logo.png
   /assets/hero-farmer.jpg
   /assets/how-it-works.jpg
   /assets/for-markets.jpg
   /assets/for-producers.jpg
   /assets/for-communities.jpg
   /assets/about.jpg
*/

:root {
    --bg: #ffffff;
    --text: #393c39;
    --muted: #5f635f;
    --muted-2: #686d68;
    --border: #e2e8f0;
    --surface: #f2f7f1;
    --surface-2: #f0f0f0;
    --brand: #7eac77;
    --brand-2: #5c8456;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
    --radius: 20px;
    --radius-sm: 14px;
    --container: 1120px;
}

/* Base */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Lato', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}

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

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

p {
    margin: 0 0 14px;
    color: var(--muted);
}

h1,
h2,
h3 {
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(38px, 4.2vw, 56px);
    line-height: 1.05;
}

h2 {
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
}

h3 {
    font-size: 20px;
    line-height: 1.2;
}

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

/* Header / Nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 999px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links a {
    font-size: 14px;
    color: var(--muted);
    padding: 10px 8px;
    border-radius: 10px;
    transition: color 0.15s ease;
}

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

.nav-links a.active {
    color: var(--text);
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-thickness: 2px;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: flex-end;
    margin-left: auto;
}

.hamburger {
    display: none;
    border: 1px solid var(--border);
    background: #fff;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 650;
    font-size: 14px;
    border: 1px solid transparent;
    transition: transform .06s ease, background .2s ease, border-color .2s ease, color .2s ease;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    border-color: rgba(0, 0, 0, 0.02);
}

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

.btn-light {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost {
    background: #fff;
    color: var(--text);
    border-color: var(--border);
}

.btn-ghost:hover {
    background: var(--surface-2);
}

/* Hero */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #0b1220;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.55) 0%, rgba(2, 6, 23, 0.66) 45%, rgba(2, 6, 23, 0.72) 100%),
        var(--hero-image, none);
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
}

.hero .container {
    position: relative;
    padding: 94px 0;
}

.hero-inner {
    max-width: 860px;
}

.hero-home::before {
    display: none;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-image-container {
    display: flex;
    justify-content: center;
}

.hero-image-container img {
    width: 280px;
    height: 585px;
    object-fit: cover;
    object-position: center bottom;
    border-radius: 20px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.25);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.hero-image-container img:hover {
    transform: rotate(0deg) scale(1.02);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(2, 6, 23, 0.35);
    margin-bottom: 18px;
}

.hero h1 {
    color: #fff;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hero p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-actions {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

/* Sections */
.section {
    padding: 88px 0;
}

.section.compact {
    padding: 64px 0;
}

.section.alt {
    background: var(--surface);
}

.bg-light-blue {
    background-color: #f2f7f1 !important;
}

.bg-light-green {
    background-color: #f0f0f0 !important;
}

.texture-panel {
    background-color: #fcfdfd;
    background-image: radial-gradient(#d1d5db 1px, transparent 0);
    background-size: 28px 28px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 28px;
}

.section-head .lead {
    max-width: 760px;
    font-size: 18px;
    color: var(--muted);
}

.kpi {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: 0 1px 0 rgba(2, 6, 23, 0.03);
    max-width: 360px;
    color: var(--muted);
}

.kpi b {
    color: var(--text);
}

/* Cards / grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.card {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 1px 0 rgba(2, 6, 23, 0.03);
}

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

.card p {
    margin: 0;
    color: var(--muted);
}

.card-link {
    display: block;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 1px 0 rgba(2, 6, 23, 0.03);
    transition: transform .08s ease, box-shadow .2s ease, border-color .2s ease;
}

.card-link:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    border-color: rgba(126, 172, 119, 0.45);
}

.card-link .pill {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 10px;
}

/* Chips */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    font-size: 13px;
}

/* Split section */
.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    align-items: center;
}

.split .card {
    height: 100%;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: #fff;
    padding: 28px 0;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--muted-2);
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 14px;
}

.footer-links a {
    color: var(--muted-2);
}

.footer-links a:hover {
    color: var(--text);
}

/* Responsive */
@media (max-width: 980px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .section-head {
        flex-direction: column;
    }

    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image-container img {
        transform: none;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: inline-flex;
    }

    .nav-cta {
        min-width: auto;
    }

    .brand {
        min-width: auto;
    }
}

/* Mobile nav drawer */
.mobile-nav {
    display: none;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.98);
}

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

.mobile-nav .container {
    padding: 14px 0 18px;
}

.mobile-nav a {
    display: block;
    padding: 12px 10px;
    border-radius: 12px;
    color: var(--muted);
}

.mobile-nav a:hover {
    background: var(--surface-2);
    color: var(--text);
}

.mobile-nav a.active {
    color: var(--text);
    font-weight: 650;
}

/* Utility spacing helpers (avoid inline height divs) */
.mt-12 {
    margin-top: 12px;
}

.mt-18 {
    margin-top: 18px;
}

.mt-24 {
    margin-top: 24px;
}

.mb-0 {
    margin-bottom: 0;
}