:root {
    --forest-green: #0f3d2e;
    --deep-forest: #082217;
    --ivory: #f8f5ec;
    --soft-ivory: #f1ede2;
    --gold: #c49a3a;
    --teal: #0f7c7c;
    --muted-teal: #1c8a86;
    --shadow: rgba(8, 34, 23, 0.08);
    --text-muted: rgba(15, 61, 46, 0.72);
    --border: rgba(12, 55, 41, 0.12);
}

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

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background-color: var(--ivory);
    color: var(--forest-green);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--teal);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.section {
    padding: 96px 0;
}

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

.section-header {
    max-width: 760px;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--deep-forest);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.lead {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: var(--teal);
    color: var(--ivory);
}

.btn:hover,
.btn:focus {
    background: var(--muted-teal);
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--teal);
    color: var(--teal);
}

.btn-outline:hover,
.btn-outline:focus {
    background: var(--teal);
    color: var(--ivory);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(12, 55, 41, 0.08);
    color: var(--deep-forest);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(248, 245, 236, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--deep-forest);
}

.logo span {
    color: var(--gold);
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.nav-toggle-label span {
    width: 28px;
    height: 3px;
    background: var(--forest-green);
}

.site-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 28px;
}

.site-nav a {
    font-weight: 500;
    color: var(--forest-green);
    padding: 8px 0;
}

.site-nav a.active {
    color: var(--teal);
    border-bottom: 2px solid var(--teal);
}

/* Hero */
.hero {
    background: linear-gradient(180deg, rgba(248, 245, 236, 1) 0%, rgba(226, 233, 229, 0.7) 100%);
}

.hero-grid {
    display: grid;
    gap: 48px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--deep-forest);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.hero-points {
    margin-top: 32px;
    display: grid;
    gap: 16px;
}

.hero-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    list-style: none;
    color: var(--text-muted);
}

.hero-points li::before {
    content: '';
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 6px;
    background: var(--gold);
}

/* Cards and grids */
.card-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 18px 40px var(--shadow);
    border: 1px solid rgba(12, 55, 41, 0.05);
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--deep-forest);
}

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

.card ul {
    list-style: none;
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.card ul li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-muted);
}

.card ul li::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--teal);
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.stat-wrapper {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    border: 1px solid var(--border);
}

.stat-card h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--deep-forest);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 12px;
}

.info-grid {
    display: grid;
    gap: 36px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.highlight-box {
    background: rgba(15, 124, 124, 0.08);
    border-left: 4px solid var(--teal);
    padding: 24px;
    border-radius: 16px;
}

.highlight-box h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--deep-forest);
}

.highlight-box p {
    color: var(--text-muted);
}

.dashboard-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.progress-metric {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(8, 34, 23, 0.08);
    display: grid;
    gap: 16px;
}

.progress-metric h4 {
    font-size: 1.15rem;
    color: var(--deep-forest);
}

.progress-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(15, 61, 46, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), var(--teal));
}

/* Footer */
.site-footer {
    background: var(--deep-forest);
    color: var(--ivory);
    padding: 64px 0 32px;
    margin-top: 96px;
}

.footer-grid {
    display: grid;
    gap: 36px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 32px;
}

.site-footer h4 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: var(--gold);
}

.site-footer p,
.site-footer li,
.site-footer a {
    color: rgba(248, 245, 236, 0.9);
    font-size: 0.95rem;
}

.footer-menu {
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(248, 245, 236, 0.2);
    padding-top: 18px;
    font-size: 0.85rem;
    color: rgba(248, 245, 236, 0.7);
}

/* Contact form */
.form-wrapper {
    background: #ffffff;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(8, 34, 23, 0.08);
    border: 1px solid rgba(12, 55, 41, 0.05);
}

.form-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

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

form label {
    font-weight: 600;
    color: var(--deep-forest);
}

form input,
form textarea,
form select {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(12, 55, 41, 0.2);
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    color: var(--deep-forest);
}

form textarea {
    min-height: 160px;
    resize: vertical;
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: 2px solid rgba(15, 124, 124, 0.3);
    border-color: var(--teal);
}

.form-actions {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.feedback-success {
    background: rgba(15, 124, 124, 0.12);
    border-left: 4px solid var(--teal);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    color: var(--deep-forest);
}

.feedback-error {
    background: rgba(196, 154, 58, 0.12);
    border-left: 4px solid var(--gold);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    color: var(--deep-forest);
}

/* Timeline */
.timeline {
    display: grid;
    gap: 24px;
    margin-top: 32px;
}

.timeline-item {
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(15, 61, 46, 0.12);
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(8, 34, 23, 0.06);
}

.timeline-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--deep-forest);
}

/* Legal pages */
.legal-section {
    padding: 80px 0;
}

.legal-section h2,
.legal-section h3 {
    color: var(--deep-forest);
    margin-bottom: 16px;
}

.legal-section p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.legal-list {
    margin-left: 18px;
    margin-bottom: 16px;
    color: var(--text-muted);
    display: grid;
    gap: 12px;
}

.notice-box {
    background: rgba(196, 154, 58, 0.12);
    border-left: 4px solid var(--gold);
    padding: 20px;
    border-radius: 16px;
    margin-top: 24px;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--forest-green);
    color: var(--ivory);
    padding: 20px 0;
    display: none;
    z-index: 900;
}

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

.cookie-inner {
    width: min(1120px, 92%);
    margin: 0 auto;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.cookie-inner p {
    flex: 1 1 320px;
    margin: 0;
    font-size: 0.95rem;
}

.cookie-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.cookie-actions button {
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 600;
    cursor: pointer;
    background: var(--gold);
    color: var(--deep-forest);
}

.cookie-actions button:hover,
.cookie-actions button:focus {
    background: #d5aa4b;
}

.cookie-actions a {
    color: rgba(248, 245, 236, 0.85);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .section {
        padding: 80px 0;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
        appearance: none;
    }

    .nav-toggle-label {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--deep-forest);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        padding: 40px;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 36px;
    }

    .site-nav a {
        color: var(--ivory);
        font-size: 1.4rem;
    }

    #nav-toggle:checked ~ .site-nav {
        transform: translateX(0);
    }

    .cookie-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 64px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .form-wrapper {
        padding: 24px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn,
    .hero-actions .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .cookie-actions {
        width: 100%;
        justify-content: space-between;
    }

    .cookie-actions button {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .cookie-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-actions button,
    .cookie-actions a {
        text-align: center;
    }
}