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

:root {
    --canvas: #f5f1ec;
    --surface-1: #ffffff;
    --surface-2: #ece8e0;
    --ink: #111111;
    --ink-muted: #626260;
    --ink-subtle: #7b7b78;
    --ink-tertiary: #9c9fa5;
    --hairline: #d3cec6;
    --hairline-soft: #e2ddd7;
    --inverse-canvas: #000000;
    --inverse-ink: #ffffff;
    --accent: #2a6e4a;
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-xxl: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink);
    background-color: var(--canvas);
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--accent);
}

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

ul {
    list-style: none;
}

/* Nav */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 56px;
    display: flex;
    align-items: center;
}

.nav-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
    letter-spacing: -0.2px;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--ink-muted);
    transition: color 0.15s;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
    z-index: 99;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 400;
    color: var(--ink-muted);
    border-bottom: 1px solid var(--hairline-soft);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Hero */
.hero {
    padding: 80px 0 64px;
    background-color: var(--canvas);
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-subtle);
    margin-bottom: 16px;
    letter-spacing: 0;
}

.hero-title {
    font-size: 48px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -1.2px;
    color: var(--ink);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink-muted);
    letter-spacing: -0.1px;
    margin-bottom: 0;
}

.hero-image-card {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

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

/* Section */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--surface-2);
}

.section-title {
    font-size: 36px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.8px;
    color: var(--ink);
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--ink-muted);
    margin-bottom: 48px;
}

.section-eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-subtle);
    margin-bottom: 12px;
}

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

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

.card {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: border-color 0.15s;
}

.card:hover {
    border-color: var(--ink-subtle);
}

.card-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}

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

.card-eyebrow {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-subtle);
    margin-bottom: 8px;
    text-transform: none;
}

.card-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.3px;
    color: var(--ink);
    margin-bottom: 12px;
}

.card-title a {
    color: var(--ink);
}

.card-title a:hover {
    color: var(--accent);
}

.card-body {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-muted);
    margin-bottom: 16px;
}

.card-meta {
    font-size: 12px;
    color: var(--ink-tertiary);
}

/* Article page */
.article-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
}

.article-eyebrow {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-subtle);
    margin-bottom: 16px;
}

.article-eyebrow a {
    color: var(--ink-subtle);
}

.article-eyebrow a:hover {
    color: var(--ink);
}

.article-title {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.8px;
    color: var(--ink);
    margin-bottom: 16px;
    max-width: 720px;
}

.article-desc {
    font-size: 18px;
    line-height: 1.5;
    color: var(--ink-muted);
    max-width: 640px;
    margin-bottom: 24px;
}

.article-meta {
    font-size: 13px;
    color: var(--ink-subtle);
    display: flex;
    align-items: center;
    gap: 16px;
}

.article-body {
    padding: 48px 0 80px;
}

.article-content {
    max-width: 720px;
}

.article-image-card {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 48px;
}

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

.article-content h2 {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--ink);
    margin-top: 40px;
    margin-bottom: 16px;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.3px;
    color: var(--ink);
    margin-top: 28px;
    margin-bottom: 12px;
}

.article-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-muted);
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 0;
}

.article-content ul li,
.article-content ol li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-muted);
    padding: 6px 0 6px 20px;
    position: relative;
    border-bottom: 1px solid var(--hairline-soft);
}

.article-content ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--ink-subtle);
}

.article-content ol {
    counter-reset: item;
}

.article-content ol li {
    counter-increment: item;
}

.article-content ol li::before {
    content: counter(item) '.';
    position: absolute;
    left: 0;
    color: var(--ink-subtle);
    font-weight: 500;
}

.article-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.15s;
}

.article-content a:hover {
    text-decoration-color: var(--accent);
}

.info-box {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 28px 0;
}

.info-box p {
    margin-bottom: 0;
    font-size: 15px;
    color: var(--ink-muted);
}

.info-box strong {
    color: var(--ink);
}

/* Related articles */
.related-section {
    padding: 48px 0 80px;
    border-top: 1px solid var(--hairline);
}

.related-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

/* Info grid (types of waste) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.info-tile {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.info-tile-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.info-tile-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.info-tile-text {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.5;
}

/* Contact form */
.contact-section {
    padding: 80px 0;
}

.contact-card {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 640px;
}

.contact-title {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: var(--ink);
    margin-bottom: 8px;
}

.contact-desc {
    font-size: 15px;
    color: var(--ink-muted);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-family: inherit;
    font-size: 16px;
    color: var(--ink);
    transition: border-color 0.15s;
    outline: none;
    min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--ink-subtle);
}

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

.form-group input.error,
.form-group textarea.error {
    border-color: #cc3333;
}

.form-error-msg {
    font-size: 13px;
    color: #cc3333;
    margin-top: 4px;
    display: none;
}

.form-error-msg.visible {
    display: block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: opacity 0.15s, background 0.15s;
    min-height: 40px;
}

.btn-primary {
    background: var(--ink);
    color: var(--inverse-ink);
}

.btn-primary:hover {
    opacity: 0.85;
    color: var(--inverse-ink);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--surface-1);
    color: var(--ink);
    border: 1px solid var(--hairline);
}

.btn-secondary:hover {
    border-color: var(--ink-subtle);
}

.form-success {
    display: none;
    background: #f0f7f2;
    border: 1px solid #b8d9c5;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-top: 16px;
    font-size: 15px;
    color: #2a6e4a;
}

.form-success.visible {
    display: block;
}

/* Footer */
.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 48px 32px 32px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.footer-brand span {
    color: var(--accent);
}

.footer-tagline {
    font-size: 13px;
    color: var(--ink-subtle);
    line-height: 1.5;
    max-width: 240px;
}

.footer-col-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 12px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 13px;
    color: var(--ink-subtle);
    transition: color 0.15s;
}

.footer-col ul li a:hover {
    color: var(--ink);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--hairline-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 12px;
    color: var(--ink-tertiary);
}

.footer-legal {
    display: flex;
    gap: 16px;
}

.footer-legal a {
    font-size: 12px;
    color: var(--ink-tertiary);
}

.footer-legal a:hover {
    color: var(--ink-subtle);
}

/* Cookie banner */
#cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 640px;
    background: var(--inverse-canvas);
    color: var(--inverse-ink);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 1000;
    flex-wrap: wrap;
}

#cookie-banner.hidden {
    display: none;
}

.cookie-text {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    flex: 1;
    min-width: 200px;
}

.cookie-text a {
    color: #fff;
    text-decoration: underline;
}

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

.btn-cookie-accept {
    background: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-cookie-reject {
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 400;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.25);
    font-family: inherit;
}

.btn-cookie-reject:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

/* Page sections (about, privacy, etc.) */
.page-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
}

.page-title {
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -0.8px;
    color: var(--ink);
    margin-bottom: 12px;
}

.page-desc {
    font-size: 18px;
    color: var(--ink-muted);
}

.page-updated {
    font-size: 13px;
    color: var(--ink-subtle);
    margin-top: 12px;
}

.page-body {
    padding: 48px 0 80px;
}

.prose h2 {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.4px;
    color: var(--ink);
    margin-top: 40px;
    margin-bottom: 16px;
}

.prose h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin-top: 24px;
    margin-bottom: 10px;
}

.prose p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-muted);
    margin-bottom: 16px;
}

.prose ul,
.prose ol {
    margin-bottom: 16px;
    padding-left: 20px;
}

.prose ul {
    list-style: disc;
}

.prose ol {
    list-style: decimal;
}

.prose ul li,
.prose ol li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-muted);
    margin-bottom: 6px;
}

.prose a {
    color: var(--accent);
}

/* About team / info */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.about-card {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.about-card-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.about-card-text {
    font-size: 15px;
    color: var(--ink-muted);
    line-height: 1.6;
}

/* Disclaimer */
.disclaimer {
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-top: 40px;
}

.disclaimer p {
    font-size: 13px;
    color: var(--ink-subtle);
    margin: 0;
    line-height: 1.5;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .nav-hamburger {
        display: flex;
    }

    .container,
    .container-narrow {
        padding: 0 20px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 20px;
    }

    .hero-title {
        font-size: 32px;
        letter-spacing: -0.6px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 28px;
    }

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

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

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

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

    .article-title {
        font-size: 28px;
        letter-spacing: -0.5px;
    }

    .article-desc {
        font-size: 16px;
    }

    .page-title {
        font-size: 28px;
    }

    .contact-card {
        padding: 28px 24px;
    }

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

    .nav-inner {
        padding: 0 20px;
    }

    .site-footer {
        padding: 40px 20px 24px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 48px 0 40px;
    }

    .hero-title {
        font-size: 26px;
    }

    #cookie-banner {
        bottom: 16px;
        left: 16px;
        right: 16px;
        width: auto;
        transform: none;
    }
}
