@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;
    --dark-green:  #163300;
    --mint:        #e2f6d5;
    --pastel:      #cdffad;
    --gray:        #868685;
    --warm-dark:   #454745;
    --surface:     #e8ebe6;
    --white:       #ffffff;
    --radius-pill: 9999px;
    --radius-card: 30px;
    --radius-sm:   16px;
    --shadow-ring: rgba(14,15,12,0.12) 0 0 0 1px;
    --font-display: 'Inter', Helvetica, Arial, sans-serif;
    --font-body:    'Inter', Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== NAVIGATION ===== */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    box-shadow: var(--shadow-ring);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 16px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 20px;
    color: var(--black);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-mark {
    color: var(--green);
    font-size: 14px;
    line-height: 1;
}

.logo-accent {
    color: var(--gray);
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 15px;
    color: var(--black);
    transition: background 0.15s;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus {
    background: rgba(211,242,192,0.4);
    text-decoration: none;
}

.nav-link--active {
    background: var(--mint);
    color: var(--dark-green);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* ===== HERO ===== */
.hero {
    background: var(--white);
    padding: 80px 24px 72px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--dark-green);
    background: var(--mint);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 28px;
}

.hero h1 {
    font-weight: 900;
    font-size: clamp(42px, 6vw, 96px);
    line-height: 0.88;
    letter-spacing: -1px;
    color: var(--black);
    max-width: 820px;
    margin-bottom: 28px;
    font-feature-settings: "calt" 1;
}

.hero-desc {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--warm-dark);
    max-width: 560px;
    margin-bottom: 40px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
    text-decoration: none;
    font-feature-settings: "calt" 1;
}

.btn:hover { transform: scale(1.05); text-decoration: none; }
.btn:active { transform: scale(0.95); }

.btn-primary {
    background: var(--green);
    color: var(--dark-green);
}

.btn-secondary {
    background: rgba(22,51,0,0.08);
    color: var(--black);
}

/* ===== SECTION SHARED ===== */
.section {
    padding: 72px 24px;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--dark-green);
    background: var(--mint);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
}

.section-title {
    font-weight: 900;
    font-size: clamp(32px, 4vw, 64px);
    line-height: 0.9;
    color: var(--black);
    margin-bottom: 16px;
    font-feature-settings: "calt" 1;
}

.section-sub {
    font-size: 17px;
    color: var(--warm-dark);
    max-width: 600px;
    margin-bottom: 48px;
}

/* ===== ARTICLES GRID ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.article-card {
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-ring);
    overflow: hidden;
    background: var(--white);
    display: flex;
    flex-direction: column;
    transition: transform 0.18s;
}

.article-card:hover {
    transform: translateY(-4px);
    text-decoration: none;
}

.article-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.article-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-card-tag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--dark-green);
}

.article-card-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.396px;
    color: var(--black);
    font-feature-settings: "calt" 1;
}

.article-card-excerpt {
    font-size: 15px;
    color: var(--warm-dark);
    line-height: 1.5;
    flex: 1;
}

.article-card-meta {
    font-size: 13px;
    color: var(--gray);
    margin-top: 8px;
}

.article-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-green);
    margin-top: 4px;
}

.article-card-link:hover { text-decoration: underline; }

/* ===== FEATURE STRIP ===== */
.feature-strip {
    background: var(--black);
    padding: 72px 24px;
}

.feature-strip .section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.feature-strip .section-title { color: var(--white); }
.feature-strip .section-label { background: rgba(159,232,112,0.15); color: var(--green); }
.feature-strip .section-sub { color: var(--surface); }

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.feature-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(159,232,112,0.18);
    border-radius: var(--radius-card);
    padding: 28px 24px;
}

.feature-item-icon {
    width: 44px;
    height: 44px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 18px;
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
    font-feature-settings: "calt" 1;
}

.feature-item p {
    font-size: 15px;
    color: var(--surface);
    line-height: 1.55;
}

/* ===== HERO IMAGE ===== */
.hero-img-wrap {
    margin-top: 56px;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-ring);
}

.hero-img {
    width: 100%;
    height: 440px;
    object-fit: cover;
}

/* ===== ARTICLE PAGE ===== */
.article-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 56px;
    align-items: start;
}

.article-main {}

.article-header { margin-bottom: 36px; }

.article-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--dark-green);
    background: var(--mint);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
}

.article-title {
    font-weight: 900;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 0.92;
    color: var(--black);
    margin-bottom: 18px;
    font-feature-settings: "calt" 1;
}

.article-meta {
    font-size: 14px;
    color: var(--gray);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.article-featured-img {
    width: 100%;
    border-radius: var(--radius-sm);
    margin-bottom: 40px;
    box-shadow: var(--shadow-ring);
    max-height: 420px;
    object-fit: cover;
}

.article-body h2 {
    font-weight: 900;
    font-size: clamp(22px, 3vw, 36px);
    line-height: 1;
    color: var(--black);
    margin: 42px 0 16px;
    font-feature-settings: "calt" 1;
}

.article-body h3 {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    color: var(--black);
    margin: 30px 0 12px;
}

.article-body p {
    margin-bottom: 18px;
    font-size: 17px;
    line-height: 1.65;
    color: var(--warm-dark);
}

.article-body ul,
.article-body ol {
    margin: 0 0 18px 22px;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
    font-size: 17px;
    line-height: 1.6;
    color: var(--warm-dark);
    margin-bottom: 6px;
}

.article-body a {
    color: var(--dark-green);
    text-decoration: underline;
}

.article-body blockquote {
    border-left: 3px solid var(--green);
    padding: 14px 20px;
    margin: 28px 0;
    background: var(--mint);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 16px;
    color: var(--dark-green);
    font-weight: 600;
}

.article-body figure {
    margin: 32px 0;
}

.article-body figure img {
    width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-ring);
    max-height: 360px;
    object-fit: cover;
}

.article-body figcaption {
    font-size: 13px;
    color: var(--gray);
    margin-top: 8px;
    text-align: center;
}

.article-body .info-box {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 22px 24px;
    margin: 28px 0;
    border: 1px solid rgba(14,15,12,0.08);
}

.article-body .info-box h4 {
    font-weight: 700;
    font-size: 15px;
    color: var(--dark-green);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.article-body .info-box ul { margin: 0 0 0 18px; }

/* ===== SIDEBAR ===== */
.article-sidebar {}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-ring);
    padding: 28px 24px;
    margin-bottom: 24px;
}

.sidebar-card h4 {
    font-weight: 700;
    font-size: 16px;
    color: var(--black);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--surface);
}

.sidebar-links { display: flex; flex-direction: column; gap: 10px; }

.sidebar-link {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 0;
    border-bottom: 1px solid var(--surface);
    color: var(--black);
}

.sidebar-link:last-child { border-bottom: none; }

.sidebar-link span:first-child {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark-green);
}

.sidebar-link span:last-child {
    font-size: 12px;
    color: var(--gray);
}

.sidebar-link:hover span:first-child { text-decoration: underline; }

/* ===== STANDARD PAGE ===== */
.page-layout {
    max-width: 820px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.page-title {
    font-weight: 900;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 0.92;
    color: var(--black);
    margin-bottom: 10px;
    font-feature-settings: "calt" 1;
}

.page-updated {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 40px;
    display: block;
}

.page-body h2 {
    font-weight: 700;
    font-size: 24px;
    color: var(--black);
    margin: 36px 0 12px;
    font-feature-settings: "calt" 1;
}

.page-body h3 {
    font-weight: 600;
    font-size: 18px;
    color: var(--black);
    margin: 24px 0 10px;
}

.page-body p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--warm-dark);
    margin-bottom: 16px;
}

.page-body ul {
    margin: 0 0 16px 22px;
    list-style: disc;
}

.page-body li {
    font-size: 16px;
    line-height: 1.65;
    color: var(--warm-dark);
    margin-bottom: 6px;
}

.page-body a {
    color: var(--dark-green);
    text-decoration: underline;
}

/* ===== CONTACT FORM ===== */
.contact-section {
    background: var(--surface);
    border-radius: var(--radius-card);
    padding: 40px 36px;
    margin-top: 48px;
    box-shadow: var(--shadow-ring);
}

.contact-section h2 {
    font-weight: 900;
    font-size: 28px;
    color: var(--black);
    margin-bottom: 8px;
    font-feature-settings: "calt" 1;
}

.contact-section p.contact-desc {
    font-size: 15px;
    color: var(--warm-dark);
    margin-bottom: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 15px;
    padding: 11px 14px;
    border: 1px solid rgba(14,15,12,0.2);
    border-radius: 10px;
    background: var(--white);
    color: var(--black);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--dark-green);
    box-shadow: rgb(134,134,133) 0 0 0 1px inset;
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-submit-wrap { grid-column: 1 / -1; margin-top: 8px; }

#form-message {
    margin-top: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-green);
    min-height: 22px;
    display: none;
}

#form-message.visible { display: block; }

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--dark-green);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== DISCLAIMER ===== */
.disclaimer-bar {
    background: var(--mint);
    padding: 12px 24px;
    text-align: center;
    font-size: 13px;
    color: var(--dark-green);
    font-weight: 600;
    border-bottom: 1px solid rgba(22,51,0,0.12);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--black);
    color: var(--surface);
    padding: 64px 24px 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo .nav-logo-text { color: var(--white); }
.footer-logo .logo-accent { color: var(--gray); }
.footer-logo .nav-logo-mark { color: var(--green); }

.footer-tagline {
    font-size: 14px;
    color: var(--gray);
    margin-top: 14px;
    line-height: 1.6;
    max-width: 340px;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-col-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 14px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }

.footer-col a {
    font-size: 14px;
    color: var(--gray);
    transition: color 0.15s;
}

.footer-col a:hover { color: var(--green); text-decoration: none; }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--gray);
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom a { color: var(--gray); }
.footer-bottom a:hover { color: var(--green); text-decoration: none; }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-sm);
    padding: 18px 24px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.35);
    max-width: 560px;
    width: calc(100% - 48px);
    display: none;
}

.cookie-banner.visible { display: block; }

.cookie-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-inner p {
    font-size: 14px;
    flex: 1;
    min-width: 200px;
    line-height: 1.5;
}

.cookie-inner a { color: var(--green); }

.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

.btn-cookie-accept,
.btn-cookie-reject {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: transform 0.15s;
}

.btn-cookie-accept {
    background: var(--green);
    color: var(--dark-green);
}

.btn-cookie-reject {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.btn-cookie-accept:hover,
.btn-cookie-reject:hover { transform: scale(1.05); }

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px 0;
    font-size: 13px;
    color: var(--gray);
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumbs a { color: var(--dark-green); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: var(--gray); }

/* ===== REFERENCES ===== */
.references-block {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--surface);
}

.references-block h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 14px;
}

.references-block ol {
    margin: 0 0 0 20px;
}

.references-block li {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 8px;
}

.references-block a {
    color: var(--dark-green);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        order: -1;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px 20px;
        box-shadow: 0 8px 24px rgba(14,15,12,0.12);
        gap: 2px;
    }

    .nav-links.open { display: flex; }

    .nav-link { padding: 12px 16px; }

    .site-nav { position: relative; }

    .hero h1 { font-size: clamp(36px, 8vw, 60px); }
    .hero-img { height: 260px; }

    .articles-grid { grid-template-columns: 1fr; }
    .features-list { grid-template-columns: 1fr; }

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

    .footer-cols { grid-template-columns: 1fr; }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .hero { padding: 48px 16px 48px; }
    .section { padding: 48px 16px; }
    .contact-section { padding: 28px 20px; }
    .article-layout { padding: 32px 16px 56px; }
    .page-layout { padding: 32px 16px 56px; }
}
