:root {
    --green-dark: #14532d;
    --green: #15803d;
    --green-light: #dcfce7;
    --background: #f5f8f4;
    --text: #24352b;
    --muted: #526458;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

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

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--green-dark);
    box-shadow: 0 2px 12px #0002;
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 20px;
}

.brand {
    font-size: 1.55rem;
    font-weight: 800;
    white-space: nowrap;
}

nav a {
    color: white;
    text-decoration: none;
}

#menu {
    display: flex;
    gap: 22px;
    font-size: .9rem;
}

#menu a:hover {
    color: #bbf7d0;
}

#menu-toggle {
    display: none;
    background: transparent;
    color: white;
    border: 0;
    font-size: 1.6rem;
    cursor: pointer;
}

.hero {
    background: linear-gradient(120deg, #052e16, #166534);
    color: white;
    padding: 95px 0;
}

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

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.12;
    letter-spacing: -1.5px;
    margin: 22px 0;
}

.hero p {
    font-size: 1.15rem;
    color: #dcfce7;
    max-width: 650px;
    margin-bottom: 30px;
}

.tag {
    display: inline-block;
    background: #ffffff18;
    border: 1px solid #ffffff30;
    border-radius: 30px;
    padding: 6px 16px;
    font-size: .75rem;
    letter-spacing: 1px;
}

.hero-symbol {
    font-size: clamp(130px, 23vw, 300px);
    color: #86efac;
    text-align: center;
    line-height: 1;
    text-shadow: 0 10px 45px #0003;
}

.button {
    display: inline-block;
    border: 0;
    border-radius: 8px;
    background: var(--green);
    color: white;
    padding: 13px 24px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.button:hover {
    background: #166534;
    transform: translateY(-2px);
}

.hero .button {
    background: #bbf7d0;
    color: #14532d;
}

.section {
    padding-top: 72px;
    padding-bottom: 72px;
}

.alternate {
    background: var(--background);
}

.eyebrow {
    color: var(--green);
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: 2px;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.2;
    color: var(--green-dark);
    margin: 10px 0 20px;
}

h3 {
    line-height: 1.4;
}

.intro {
    color: var(--muted);
    max-width: 760px;
    margin-bottom: 32px;
}

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

.waste {
    padding: 25px;
    border: 1px solid #e1e7e1;
    border-top: 6px solid;
    border-radius: 12px;
    box-shadow: 0 5px 20px #00000008;
    transition: transform .2s, box-shadow .2s;
}

.waste:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px #00000012;
}

.waste-icon {
    font-size: 2.5rem;
}

.waste h3 {
    font-size: 1.35rem;
    margin: 8px 0;
}

.waste small {
    display: block;
    color: var(--muted);
    border-top: 1px solid #e1e7e1;
    padding-top: 12px;
}

.paper { border-top-color: #2563eb; }
.plastic { border-top-color: #dc2626; }
.glass { border-top-color: #15803d; }
.metal { border-top-color: #eab308; }
.organic { border-top-color: #795548; }
.reject { border-top-color: #757575; }

.notice {
    background: #f0fdf4;
    border-left: 4px solid var(--green);
    border-radius: 6px;
    padding: 20px 24px;
    margin-top: 28px;
}

.notice h3 {
    margin-top: 0;
}

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

.stats article {
    background: white;
    border: 1px solid #e1e7e1;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.stats strong {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--green);
    line-height: 1.2;
}

.chart {
    display: flex;
    height: 48px;
    overflow: hidden;
    border-radius: 8px;
    font-weight: bold;
    font-size: .85rem;
}

.chart div {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bar-organic {
    background: #795548;
    color: white;
}

.bar-recycle {
    background: #15803d;
    color: white;
}

.bar-other {
    background: #d1d5db;
    color: #24352b;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    font-size: .9rem;
}

.source {
    font-size: .82rem;
    color: var(--muted);
}

.two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.panel {
    padding: 30px;
    background: var(--background);
    border: 1px solid #e1e7e1;
    border-radius: 12px;
}

.large-icon {
    font-size: 2.5rem;
}

.panel h3 {
    color: var(--green-dark);
    font-size: 1.35rem;
}

.panel ul {
    padding-left: 20px;
}

.panel li {
    margin-bottom: 10px;
}

.ods-section {
    background: #fef9ed;
}

.ods-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: center;
    gap: 50px;
}

.ods-number {
    background: #bf8b2e;
    color: white;
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
}

.ods-number strong {
    font-size: 5rem;
    line-height: 1.2;
}

.ods-number span {
    font-size: .8rem;
}

.ods-number .infinity {
    font-size: 5rem;
    line-height: 1;
}

.quiz-panel {
    max-width: 800px;
    margin: 25px auto 0;
    padding: 30px;
    border: 1px solid #dce7dc;
    border-radius: 16px;
    box-shadow: 0 8px 30px #00000008;
}

.progress-track {
    height: 8px;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
}

#quiz-bar {
    height: 100%;
    background: var(--green);
    transition: width .3s;
}

.quiz-option {
    display: block;
    width: 100%;
    background: #f8faf8;
    border: 1px solid #dce7dc;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 10px 0;
    text-align: left;
    font: inherit;
    color: var(--text);
    cursor: pointer;
}

.quiz-option:hover:not(:disabled) {
    background: var(--green-light);
}

.quiz-option.correct {
    background: #dcfce7;
    border-color: #16a34a;
}

.quiz-option.wrong {
    background: #fee2e2;
    border-color: #dc2626;
}

.quiz-option:disabled {
    cursor: default;
}

#quiz-feedback {
    font-weight: 600;
}

.project-info {
    border-left: 4px solid var(--green);
    background: white;
    padding: 15px 25px;
    margin: 30px 0;
    border-radius: 6px;
}

.project-info p {
    margin: 7px 0;
}

.references {
    padding-left: 20px;
}

.references li {
    margin-bottom: 10px;
}

.references a {
    color: var(--green-dark);
    overflow-wrap: anywhere;
}

.share-section {
    background: var(--green);
    color: white;
    text-align: center;
    padding: 55px 0;
}

.share-section h2 {
    color: white;
}

.share-section .button {
    background: white;
    color: var(--green-dark);
}

footer {
    background: #052e16;
    color: #d1e7d6;
    padding: 35px 0;
    text-align: center;
    font-size: .9rem;
}

footer h3 {
    color: white;
    font-size: 1.4rem;
}

footer p {
    margin: 6px 0;
}

footer small {
    color: #a7c5af;
}

[hidden] {
    display: none !important;
}

a:focus-visible, button:focus-visible {
    outline: 3px solid #eab308;
    outline-offset: 4px;
}

@media (max-width: 900px) {
    #menu-toggle {
        display: block;
    }

    #menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--green-dark);
        padding: 22px;
        flex-direction: column;
    }

    #menu.open {
        display: flex;
    }

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

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

    .hero-symbol {
        font-size: 150px;
    }
}

@media (max-width: 600px) {
    .cards, .stats, .two-columns, .ods-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 55px 0;
    }

    .section {
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .ods-number {
        max-width: 250px;
        margin: auto;
    }

    .quiz-panel {
        padding: 20px;
    }

    .chart {
        font-size: .7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
