/* Omnivara — calm neutral palette */
:root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --accent: #5b7fa3;
    --accent-soft: #e8eef4;
    --accent-deep: #3d5a78;
    --border: #e2e8f0;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08);
    --radius: 12px;
    --radius-sm: 8px;
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: var(--font);
    --max: 1120px;
    --space: 1.5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a {
    color: var(--accent-deep);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

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

.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;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

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

.container {
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
}

/* Header */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.85rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.brand:hover {
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    flex-shrink: 0;
}

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

.brand-name {
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
}

.brand-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    margin-inline: auto;
}

.site-nav .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    align-items: center;
}

.site-nav a {
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--accent-deep);
    background: var(--accent-soft);
}

.site-nav .nav-cta {
    background: var(--accent-deep);
    color: #fff !important;
    padding: 0.45rem 0.9rem;
}

.site-nav .nav-cta:hover {
    background: var(--accent);
    color: #fff !important;
}

@media (max-width: 880px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        width: 100%;
        display: none;
        padding-block: 0.5rem 1rem;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav .nav-list {
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav a {
        display: block;
    }
}

/* Main */
.main {
    flex: 1;
    padding-block: 2.5rem 4rem;
}

.page-hero {
    padding-block: 2rem 3rem;
}

.page-hero--home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (max-width: 900px) {
    .page-hero--home {
        grid-template-columns: 1fr;
    }
}

.eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 0.75rem;
}

.page-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 1rem;
    color: var(--text);
}

.lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 42ch;
    margin: 0 0 1.5rem;
}

.hero-art {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    background: var(--surface);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
    background: var(--accent-deep);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--accent-soft);
    border-color: var(--accent-soft);
    text-decoration: none;
}

.section {
    padding-block: 3rem;
}

.section--alt {
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
    border-block: 1px solid var(--border);
}

.section-head {
    max-width: 640px;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.section-desc {
    margin: 0;
    color: var(--text-muted);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 1.5rem;
    margin: 0;
    list-style: none;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0.35rem;
    top: 0.25rem;
    bottom: 0.25rem;
    width: 2px;
    background: linear-gradient(var(--accent), var(--border));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.75rem;
    padding-left: 1.25rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -1.15rem;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--accent);
    box-shadow: 0 0 0 2px var(--bg);
}

.timeline-item h3 {
    margin: 0 0 0.35rem;
    font-size: 1.0625rem;
    font-weight: 600;
}

.timeline-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 600;
}

.card p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
    color: var(--accent-deep);
}

/* Editorial */
.editorial {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .editorial {
        grid-template-columns: 1fr;
    }
}

.article-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.article-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-soft);
    text-decoration: none;
}

.article-item time {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.article-item h3 {
    margin: 0.25rem 0 0;
    font-size: 1rem;
    font-weight: 600;
}

.article-item p {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.figure-caption {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Page inner */
.page-inner {
    max-width: 720px;
}

.page-inner--wide {
    max-width: 900px;
}

.prose h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose h3 {
    font-size: 1.0625rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.prose p,
.prose ul {
    color: var(--text-muted);
}

.prose ul {
    padding-left: 1.25rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 800px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.address-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.address-block address {
    font-style: normal;
    line-height: 1.7;
}

.form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.form input,
.form textarea,
.form select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    background: var(--surface);
    margin-bottom: 1rem;
}

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

.form-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Footer */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding-block: 3rem 1.5rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand p {
    margin: 0.75rem 0 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
    max-width: 32ch;
}

.footer-heading {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.75rem;
    color: var(--text-muted);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--accent-deep);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    padding-top: 1.25rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer-bottom p {
    margin: 0;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
    padding-block: 1rem 1.25rem;
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-title {
    font-size: 1rem;
    margin: 0 0 0.35rem;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
    max-width: 56ch;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Thank you */
.thank-panel {
    text-align: center;
    padding: 3rem 1.5rem;
    max-width: 520px;
    margin-inline: auto;
}

.thank-panel .page-title {
    margin-bottom: 0.75rem;
}
