@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --green: #16834d;
    --green-dark: #0c5f38;
    --green-soft: #eaf7f0;
    --ink: #18231f;
    --muted: #6f7c76;
    --line: #e1e8e4;
    --bg: #f6faf8;
    --white: #fff;
    --shadow: 0 16px 40px rgba(18, 48, 36, .09);
    --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: 'DM Sans', Arial, sans-serif;
    line-height: 1.65;
}

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

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

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

.narrow { width: min(1000px, calc(100% - 40px)); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

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

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 14px;
    letter-spacing: .5px;
}

.brand-text span {
    margin-top: 4px;
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13px;
    font-weight: 600;
}

.main-nav a:not(.submit-btn):hover { color: var(--green); }

.submit-btn,
.btn-primary {
    background: var(--green);
    color: white;
    padding: 11px 19px;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(22,131,77,.18);
}

.submit-btn:hover,
.btn-primary:hover { background: var(--green-dark); }

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
}

.hero {
    padding: 0 0 72px;
    background: white;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .9fr;
    min-height: 410px;
}

.hero-image {
    position: relative;
    min-height: 410px;
    overflow: hidden;
    background: #b8dfc8;
}

.hero-image > img {
    width: 100%;
    height: 100%;
    min-height: 410px;
    object-fit: cover;
    opacity: .78;
    mix-blend-mode: multiply;
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(110,190,145,.42), rgba(110,190,145,.05));
    pointer-events: none;
}

.hero-logo-card {
    position: absolute;
    z-index: 2;
    right: 0;
    top: 48px;
    width: 300px;
    height: 170px;
    display: grid;
    place-items: center;
    background: rgba(122,194,151,.9);
    border-radius: 16px 0 0 16px;
    box-shadow: 0 18px 38px rgba(26,87,53,.12);
}

.hero-logo-card img {
    width: 210px;
    height: 125px;
    object-fit: contain;
}

.hero-content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 60px 70px;
    background: #fbfdfc;
}

.eyebrow {
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 13px;
}

.hero-content h1 {
    margin: 0 0 20px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -1.7px;
}

.hero-content h1 span { color: var(--green); }

.hero-content p {
    max-width: 520px;
    color: var(--muted);
    font-size: 14px;
}

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

.btn-outline {
    padding: 10px 18px;
    border: 1px solid #cbd8d1;
    border-radius: 8px;
    font-weight: 700;
    color: var(--green-dark);
}

section { scroll-margin-top: 90px; }

.stats-section {
    padding: 0 0 64px;
    background: var(--bg);
}

.section-heading {
    margin-bottom: 26px;
}

.section-heading.centered { text-align: center; }

.section-heading h2 {
    display: inline-block;
    margin: 0;
    font-size: 22px;
    letter-spacing: -.5px;
}

.section-heading p {
    max-width: 680px;
    margin: 7px auto 0;
    color: var(--muted);
    font-size: 13px;
}

.section-icon {
    margin-right: 7px;
    color: var(--green);
    font-weight: 900;
}

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

.stat-card {
    min-height: 92px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    background: #d9b13b;
    border-radius: 11px;
    box-shadow: var(--shadow);
}

.stat-card:nth-child(2) { background: #bfc2c3; }
.stat-card:nth-child(3) { background: #cf812c; }
.stat-card:nth-child(4) { background: #147ff0; }
.stat-card:nth-child(5) { background: #28a847; }
.stat-card:nth-child(6) { background: #69747b; }
.stat-card:nth-child(7) { background: #292b2c; }
.stat-card:nth-child(8) { background: #092441; }

.stat-card strong {
    font-size: 25px;
    line-height: 1;
}

.stat-card span {
    margin-top: 5px;
    font-size: 11px;
    font-weight: 700;
}

.journals-section {
    padding: 20px 0 90px;
    background: var(--bg);
}

.filters {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 12px;
    margin: 25px auto 28px;
    max-width: 1000px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: white;
    border: 1px solid #d8e1dc;
    border-radius: 7px;
}

.search-box span { color: var(--green); font-size: 20px; }

.search-box input,
.filters select {
    width: 100%;
    height: 42px;
    border: 0;
    outline: none;
    background: white;
    color: #46524d;
    font-family: inherit;
    font-size: 12px;
}

.filters select {
    padding: 0 10px;
    border: 1px solid #d8e1dc;
    border-radius: 7px;
}

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

.journal-card {
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(20,50,38,.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.journal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.cover-wrap {
    position: relative;
    height: 300px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #edf4f0;
}

.cover-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px 38px 0;
}

.cover-placeholder {
    display: none;
    width: 155px;
    height: 220px;
    padding: 20px 14px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    background: linear-gradient(145deg, #edf7f1, #cfe9da);
    border: 1px solid #b9dac7;
    box-shadow: 0 12px 25px rgba(24,76,49,.12);
}

.cover-fallback .cover-placeholder { display: flex; }

.cover-placeholder span {
    color: var(--green-dark);
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
}

.cover-placeholder small {
    margin-top: 8px;
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.journal-body { padding: 20px; }

.journal-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--green-dark);
    background: var(--green-soft);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.journal-body h3 {
    margin: 12px 0 2px;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    line-height: 1.15;
}

.journal-body h4 {
    margin: 0 0 10px;
    color: #47554f;
    font-size: 12px;
    font-weight: 700;
}

.journal-body p {
    min-height: 65px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.journal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.journal-meta span {
    padding: 5px 8px;
    border-radius: 5px;
    background: #f2f5f3;
    color: #69756f;
    font-size: 9px;
    font-weight: 700;
}

.journal-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
}

.journal-link span { font-size: 17px; }

.empty-state {
    display: none;
    padding: 40px;
    text-align: center;
    color: var(--muted);
}

.empty-state.show { display: block; }

.articles-section {
    padding: 80px 0;
    background: white;
}

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

.article-card {
    padding: 27px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfdfc;
}

.article-label {
    color: var(--green);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.article-card h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.article-card p {
    margin: 0 0 15px;
    color: var(--muted);
    font-size: 12px;
}

.article-card a {
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
}

.guide-section {
    padding: 70px 0;
    background: var(--green-soft);
}

.guide-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 42px;
    background: white;
    border: 1px solid #d8e8df;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.guide-box h2 {
    margin: 0 0 8px;
    font-family: 'Playfair Display', serif;
    font-size: 30px;
}

.guide-box p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    color: #dcece3;
    background: #0c2920;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    padding: 55px 0 40px;
}

.footer-brand img { background: white; border-radius: 8px; }

.footer-brand .brand-text strong { color: white; }

.footer-grid p {
    color: #a9c0b5;
    font-size: 12px;
}

.footer-grid h3 {
    margin: 0 0 12px;
    color: white;
    font-size: 14px;
}

.footer-grid > div:nth-child(2) a {
    display: block;
    margin: 7px 0;
    color: #a9c0b5;
    font-size: 12px;
}

.footer-grid > div:nth-child(2) a:hover { color: white; }

.footer-bottom {
    padding: 17px 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    color: #91aaa0;
    text-align: center;
    font-size: 10px;
}

@media (max-width: 900px) {
    .main-nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 68px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        background: white;
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: var(--shadow);
    }

    .main-nav.open { display: flex; }
    .menu-toggle { display: block; }

    .hero-grid { grid-template-columns: 1fr; }
    .hero-image { min-height: 300px; }
    .hero-image > img { min-height: 300px; }
    .hero-content { padding: 45px 35px; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .journal-grid { grid-template-columns: repeat(2, 1fr); }
    .filters { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
    .container, .narrow { width: min(100% - 24px, 1180px); }
    .nav-wrap { min-height: 66px; }
    .brand img { width: 42px; height: 42px; }

    .hero-logo-card {
        width: 190px;
        height: 120px;
        top: 28px;
    }

    .hero-logo-card img { width: 145px; height: 90px; }

    .hero-content { padding: 38px 20px 48px; }
    .hero-content h1 { font-size: 38px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .filters { grid-template-columns: 1fr; }
    .journal-grid { grid-template-columns: 1fr; }
    .article-grid { grid-template-columns: 1fr; }

    .guide-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px;
    }

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