:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #334155;
    --line: #cbd5e1;
    --sun: #f59e0b;
    --eco: #15803d;
    --tech: #0f766e;
    --focus: #1d4ed8;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

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

a { color: var(--tech); }
a:hover { text-decoration-thickness: 2px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--focus);
    color: #fff;
    padding: 0.75rem 1rem;
    z-index: 1000;
}

.skip-link:focus { left: 1rem; top: 1rem; }

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

.site-header {
    background: var(--surface);
    border-bottom: 2px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text);
    text-decoration: none;
}

.menu-toggle {
    border: 2px solid var(--text);
    background: transparent;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
}

.primary-nav { display: none; }
.primary-nav.open { display: block; }
.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0.75rem 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.primary-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}
.primary-nav a[aria-current='page'] {
    color: var(--eco);
    text-decoration: underline;
    text-underline-offset: 0.3rem;
}

.hero {
    padding: 3rem 0 2rem;
}

.hero-grid,
.two-col,
.review-layout,
.contact-layout,
.blog-grid,
.card-grid,
.footer-grid {
    display: grid;
    gap: 1.25rem;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1.15;
    margin: 0 0 1rem;
}

.kicker {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #fde68a;
    color: #7c2d12;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section { padding: 2rem 0; }
.section h2 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    margin: 0 0 0.75rem;
}

.card {
    background: var(--surface);
    border: 2px solid var(--line);
    padding: 1rem;
}

.tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border: 1px solid currentColor;
    margin-bottom: 0.5rem;
}

.tag.sun { color: #92400e; background: #fef3c7; }
.tag.eco { color: #14532d; background: #dcfce7; }
.tag.tech { color: #134e4a; background: #ccfbf1; }

.btn {
    display: inline-block;
    border: 2px solid var(--text);
    padding: 0.65rem 0.95rem;
    text-decoration: none;
    font-weight: 700;
    color: var(--text);
    background: transparent;
    cursor: pointer;
}

.btn-accent {
    background: var(--sun);
    border-color: #b45309;
    color: #1f2937;
}

.btn-secondary {
    background: #e2e8f0;
    border-color: #64748b;
}

ul.clean-list {
    padding-left: 1.1rem;
    margin: 0;
}

details {
    border: 2px solid var(--line);
    background: var(--surface);
    padding: 0.75rem 1rem;
}

details + details { margin-top: 0.75rem; }
summary { font-weight: 700; cursor: pointer; }

form {
    display: grid;
    gap: 0.75rem;
}

label { font-weight: 600; }

input,
textarea,
select {
    width: 100%;
    border: 2px solid var(--line);
    background: #fff;
    padding: 0.7rem 0.75rem;
    font: inherit;
}

.form-row { display: grid; gap: 0.75rem; }
.form-feedback { min-height: 1.2em; font-weight: 600; }
.form-feedback.success { color: var(--eco); }
.form-feedback.error { color: #b91c1c; }

.site-footer {
    margin-top: 2.5rem;
    background: #e2e8f0;
    border-top: 2px solid var(--line);
    padding-top: 2rem;
}

.footer-grid h2 { margin-top: 0; font-size: 1.1rem; }
.footer-links,
.legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li,
.legal-links li { margin-bottom: 0.4rem; }

.newsletter-form { max-width: 24rem; }

.legal-row {
    border-top: 2px solid #94a3b8;
    margin-top: 1rem;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    background: #0f172a;
    color: #fff;
    border: 2px solid #e2e8f0;
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
    z-index: 80;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 700px) {
    .menu-toggle { display: none; }
    .primary-nav {
        display: block !important;
    }
    .primary-nav ul {
        flex-direction: row;
        padding: 0;
        gap: 1rem;
    }

    .hero-grid,
    .two-col,
    .review-layout,
    .contact-layout,
    .blog-grid,
    .card-grid,
    .footer-grid,
    .form-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 980px) {
    .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
    .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .legal-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .legal-links {
        display: flex;
        gap: 1rem;
    }
}