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

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

:root {
    --black:    #0e0f0c;
    --green:    #9fe870;
    --dkgreen:  #163300;
    --mint:     #e2f6d5;
    --pgray:    #868685;
    --ltsurf:   #e8ebe6;
    --white:    #ffffff;
    --nav-hover: rgba(211,242,192,0.4);
    --card-border: 1px solid rgba(14,15,12,0.12);
    --ring:     rgba(14,15,12,0.12) 0px 0px 0px 1px;
    --r-pill:   9999px;
    --r-lg:     30px;
    --r-card:   16px;
    --r-sm:     10px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.44;
    letter-spacing: 0.18px;
    color: var(--black);
    background: var(--white);
    font-feature-settings: "calt";
    -webkit-font-smoothing: antialiased;
}

a { color: var(--dkgreen); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
address { font-style: normal; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── HEADER ─────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--white);
    border-bottom: var(--card-border);
    backdrop-filter: blur(8px);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 900; font-size: 20px; color: var(--black);
    text-decoration: none; font-feature-settings: "calt";
}
.logo:hover { text-decoration: none; }
.logo-mark { font-size: 24px; }

.main-nav ul {
    display: flex; gap: 4px; align-items: center;
}
.main-nav a {
    display: block; padding: 8px 14px;
    border-radius: var(--r-pill);
    font-size: 15px; font-weight: 600;
    color: var(--black); letter-spacing: -0.1px;
    transition: background 0.18s;
}
.main-nav a:hover, .main-nav a.active {
    background: var(--nav-hover);
    text-decoration: none;
}

.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
    display: block; width: 100%; height: 2px;
    background: var(--black); border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* ─── HERO ───────────────────────────────────── */
.hero {
    padding: 80px 0 64px;
    background: var(--white);
}
.hero-inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.hero-label {
    display: inline-block;
    background: var(--mint); color: var(--dkgreen);
    font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
    padding: 4px 14px; border-radius: var(--r-pill); margin-bottom: 20px;
    text-transform: uppercase;
}
.hero h1 {
    font-size: clamp(48px, 6vw, 96px);
    font-weight: 900; line-height: 0.9;
    letter-spacing: -2px; color: var(--black);
    font-feature-settings: "calt";
    margin-bottom: 24px;
}
.hero-sub {
    font-size: 18px; font-weight: 400; line-height: 1.55;
    color: #444; margin-bottom: 36px; max-width: 500px;
}
.hero-img {
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--ring);
    aspect-ratio: 4/3;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ─── BUTTONS ────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 14px 28px; border-radius: var(--r-pill);
    font-size: 17px; font-weight: 600; line-height: 1;
    letter-spacing: -0.1px; font-feature-settings: "calt";
    cursor: pointer; border: none; text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: scale(1.05); text-decoration: none; }
.btn:active { transform: scale(0.95); }
.btn-primary { background: var(--green); color: var(--dkgreen); }
.btn-secondary {
    background: rgba(22,51,0,0.08); color: var(--black);
    box-shadow: var(--ring);
}

/* ─── SECTION ────────────────────────────────── */
.section { padding: 72px 0; }
.section-alt { background: var(--ltsurf); }

.section-label {
    font-size: 12px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; color: var(--pgray); margin-bottom: 12px;
}
.section-title {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 900; line-height: 0.9;
    letter-spacing: -1.5px; margin-bottom: 20px;
    font-feature-settings: "calt";
}
.section-desc {
    font-size: 18px; color: #555; max-width: 620px; margin-bottom: 48px;
}

/* ─── CARDS ──────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.card {
    border-radius: var(--r-lg);
    border: var(--card-border);
    overflow: hidden;
    background: var(--white);
    transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(14,15,12,0.10);
}
.card-img { aspect-ratio: 16/9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 24px; }
.card-tag {
    display: inline-block;
    font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
    text-transform: uppercase; color: var(--dkgreen);
    background: var(--mint); padding: 3px 10px;
    border-radius: var(--r-pill); margin-bottom: 10px;
}
.card-title {
    font-size: 22px; font-weight: 600; line-height: 1.25;
    letter-spacing: -0.4px; margin-bottom: 10px; color: var(--black);
    font-feature-settings: "calt";
}
.card-excerpt { font-size: 15px; color: #555; line-height: 1.55; margin-bottom: 16px; }
.card-meta { font-size: 13px; color: var(--pgray); display: flex; gap: 12px; }

/* ─── FEATURES ───────────────────────────────── */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px; margin-top: 40px;
}
.feature-item {
    padding: 28px; border-radius: var(--r-lg);
    background: var(--white); border: var(--card-border);
}
.feature-icon { font-size: 32px; margin-bottom: 14px; }
.feature-title {
    font-size: 18px; font-weight: 600; letter-spacing: -0.3px;
    margin-bottom: 8px; font-feature-settings: "calt";
}
.feature-text { font-size: 15px; color: #555; line-height: 1.55; }

/* ─── ARTICLE PAGE ───────────────────────────── */
.article-hero {
    padding: 56px 0 40px;
    border-bottom: var(--card-border);
}
.article-hero .breadcrumb {
    font-size: 14px; color: var(--pgray); margin-bottom: 20px;
    display: flex; gap: 6px; align-items: center;
}
.article-hero .breadcrumb a { color: var(--pgray); }
.article-hero .breadcrumb span { color: var(--pgray); }
.article-meta {
    display: flex; flex-wrap: wrap; gap: 16px;
    align-items: center; margin-top: 20px;
    font-size: 14px; color: var(--pgray);
}
.article-h1 {
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 900; line-height: 0.9;
    letter-spacing: -2px; margin-bottom: 16px;
    font-feature-settings: "calt";
}
.article-lead {
    font-size: 20px; font-weight: 400; line-height: 1.55;
    color: #444; max-width: 760px;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 64px; align-items: start;
    padding: 56px 0;
}
.article-body h2 {
    font-size: 32px; font-weight: 900; line-height: 1.0;
    letter-spacing: -0.8px; margin: 48px 0 16px;
    font-feature-settings: "calt";
}
.article-body h3 {
    font-size: 22px; font-weight: 700; margin: 32px 0 12px;
    letter-spacing: -0.3px;
}
.article-body p { margin-bottom: 20px; line-height: 1.7; }
.article-body ul, .article-body ol {
    margin: 0 0 20px 24px; line-height: 1.7;
}
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--dkgreen); text-decoration: underline; }
.article-body strong { font-weight: 700; }
.article-body figure { margin: 32px 0; border-radius: var(--r-card); overflow: hidden; }
.article-body figure img { width: 100%; }
.article-body figcaption {
    font-size: 13px; color: var(--pgray); padding: 10px 0;
    text-align: center;
}

.article-sidebar { position: sticky; top: 88px; }
.sidebar-box {
    padding: 24px; border-radius: var(--r-lg);
    border: var(--card-border); margin-bottom: 24px;
}
.sidebar-title {
    font-size: 15px; font-weight: 700; margin-bottom: 14px;
    letter-spacing: -0.2px;
}
.sidebar-box ul li { margin-bottom: 8px; }
.sidebar-box ul a { font-size: 14px; font-weight: 600; color: var(--dkgreen); }
.sidebar-box ul a:hover { text-decoration: underline; }
.toc-list { counter-reset: toc; }
.toc-list li { counter-increment: toc; font-size: 14px; margin-bottom: 6px; }
.toc-list a { color: var(--black); font-weight: 400; }
.toc-list a:hover { color: var(--dkgreen); }

/* ─── CONTACT FORM ───────────────────────────── */
.contact-form {
    max-width: 560px; margin: 40px auto 0;
    background: var(--white); padding: 40px;
    border-radius: var(--r-lg); border: var(--card-border);
}
.contact-form h2 {
    font-size: 28px; font-weight: 900;
    margin-bottom: 24px; font-feature-settings: "calt";
}
.form-row { margin-bottom: 20px; }
.form-row label {
    display: block; font-size: 14px; font-weight: 600;
    margin-bottom: 6px; color: var(--black);
}
.form-row input, .form-row textarea {
    width: 100%; padding: 12px 16px;
    border: 1px solid rgba(14,15,12,0.2);
    border-radius: var(--r-sm);
    font-family: inherit; font-size: 16px;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: var(--white);
}
.form-row input:focus, .form-row textarea:focus {
    outline: none;
    border-color: var(--dkgreen);
    box-shadow: rgb(134,134,133) 0px 0px 0px 1px inset;
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-success {
    display: none; padding: 16px 20px;
    background: var(--mint); color: var(--dkgreen);
    border-radius: var(--r-card); font-weight: 600;
    margin-top: 16px;
}

/* ─── COOKIE BANNER ──────────────────────────── */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
    background: var(--black); color: var(--white);
    padding: 20px 24px;
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 16px; justify-content: space-between;
}
#cookie-banner p { font-size: 14px; line-height: 1.55; max-width: 700px; }
#cookie-banner a { color: var(--green); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.btn-cookie-accept { background: var(--green); color: var(--dkgreen); }
.btn-cookie-reject {
    background: rgba(255,255,255,0.12); color: var(--white);
    border: 1px solid rgba(255,255,255,0.25);
}
.btn-cookie-accept, .btn-cookie-reject {
    padding: 10px 20px; border-radius: var(--r-pill);
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: transform 0.15s;
}
.btn-cookie-accept:hover, .btn-cookie-reject:hover { transform: scale(1.05); }
.btn-cookie-accept:active, .btn-cookie-reject:active { transform: scale(0.95); }

/* ─── FOOTER ─────────────────────────────────── */
.site-footer {
    background: var(--black); color: rgba(255,255,255,0.75);
    padding: 60px 0 0;
}
.footer-inner {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 48px; padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {
    font-size: 20px; font-weight: 900; color: var(--white);
    margin-bottom: 8px; font-feature-settings: "calt";
}
.footer-tagline { font-size: 14px; margin-bottom: 20px; color: rgba(255,255,255,0.6); }
.footer-contact { font-size: 14px; line-height: 1.8; }
.footer-contact a { color: var(--green); }
.footer-heading {
    font-size: 13px; font-weight: 700; letter-spacing: 0.8px;
    text-transform: uppercase; color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
}
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { font-size: 14px; color: rgba(255,255,255,0.75); }
.site-footer ul a:hover { color: var(--green); text-decoration: none; }
.footer-bottom {
    padding: 20px 24px; max-width: 1200px; margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-disclaimer { max-width: 540px; }

/* ─── PAGES ──────────────────────────────────── */
.page-hero { padding: 64px 0 40px; border-bottom: var(--card-border); }
.page-title {
    font-size: clamp(40px, 5vw, 72px); font-weight: 900;
    line-height: 0.9; letter-spacing: -2px;
    font-feature-settings: "calt"; margin-bottom: 16px;
}
.page-content { max-width: 760px; margin: 0 auto; padding: 56px 24px; }
.page-content h2 {
    font-size: 26px; font-weight: 900; letter-spacing: -0.5px;
    margin: 40px 0 12px; font-feature-settings: "calt";
}
.page-content h3 { font-size: 20px; font-weight: 700; margin: 24px 0 10px; }
.page-content p { margin-bottom: 18px; line-height: 1.7; }
.page-content ul { margin: 0 0 18px 24px; }
.page-content ul li { margin-bottom: 8px; line-height: 1.65; }
.page-content a { color: var(--dkgreen); text-decoration: underline; }
.page-updated {
    display: inline-block; font-size: 13px; color: var(--pgray);
    margin-bottom: 32px;
}

/* ─── ARTICLES INDEX ─────────────────────────── */
.articles-header { padding: 64px 0 40px; }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 992px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-img { display: none; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
    .hero h1 { font-size: 44px; }
    .section-title { font-size: 34px; }
    .article-h1 { font-size: 36px; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
    .main-nav {
        display: none; position: absolute; top: 68px; left: 0; right: 0;
        background: var(--white); border-bottom: var(--card-border);
        padding: 16px 24px;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .nav-toggle { display: flex; }
    .contact-form { padding: 24px 20px; }
    #cookie-banner { flex-direction: column; }
}
