/* Solvexis — cool palette: white, light gray, blue accents */
:root {
    --bg: #ffffff;
    --bg-muted: #f4f6f9;
    --bg-accent: #e8eef5;
    --text: #1a2332;
    --text-muted: #5c6b7f;
    --border: #d8e0ea;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-soft: #dbeafe;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
    --radius: 12px;
    --radius-sm: 8px;
    --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Roboto", sans-serif;
    --line: 1.65;
    --max: 1120px;
    --max-narrow: 720px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: var(--line);
    color: var(--text);
    background: var(--bg);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: var(--blue-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

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

.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(--blue);
    color: #fff;
    font-weight: 600;
}

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

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

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

.small {
    font-size: 0.9375rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.25rem;
}

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

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

.brand-mark {
    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;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.65rem;
    cursor: pointer;
}

.nav-toggle-bars {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    box-shadow: 0 6px 0 var(--text), 0 -6px 0 var(--text);
}

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

.site-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--blue-dark);
    border-bottom-color: var(--blue);
}

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

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        box-shadow: var(--shadow);
    }

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

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

/* Hero */
.hero {
    background: linear-gradient(180deg, var(--bg-accent) 0%, var(--bg) 55%);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0 2.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr min(38%, 320px);
    gap: 2rem;
    align-items: center;
}

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

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue-dark);
    background: var(--blue-soft);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    line-height: 1.2;
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
}

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

.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;
    line-height: 1.2;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

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

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

.btn-secondary:hover {
    background: var(--bg-muted);
    text-decoration: none;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-ghost:hover {
    background: var(--bg-muted);
}

/* Sections */
.page-main {
    padding: 2.5rem 0 4rem;
}

.section {
    margin-bottom: 3.5rem;
}

.section:last-child {
    margin-bottom: 0;
}

.section-head {
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

.section-head h2 {
    font-size: 1.65rem;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

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

/* Content rails — structured blocks, not repetitive cards */
.rail {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.block {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.block-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    background: var(--bg-muted);
    border-bottom: 1px solid var(--border);
}

.block-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.block-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.block-kicker {
    margin: 0 0 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.block-title-lg {
    margin: 0;
    font-size: 1.2rem;
}

.block-meta {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.block-body {
    padding: 1.35rem 1.35rem 1.5rem;
}

.block-body p {
    margin: 0 0 1rem;
}

.block-body p:last-child {
    margin-bottom: 0;
}

.block-body ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.block-body li {
    margin-bottom: 0.5rem;
}

.interactive-hint {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: var(--blue-soft);
    border-radius: var(--radius-sm);
    border: 1px solid #bfdbfe;
    font-size: 0.9375rem;
}

.interactive-hint strong {
    color: var(--blue-dark);
}

/* Two-column explanatory */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

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

.figure {
    margin: 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-muted);
    overflow: hidden;
}

.figure img {
    display: block;
    width: 100%;
}

.figure figcaption {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* Article long-form */
.prose {
    max-width: var(--max-narrow);
}

.prose h1 {
    font-size: 2rem;
    margin-top: 0;
    letter-spacing: -0.02em;
}

.prose h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
}

.prose h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
}

.prose p {
    margin: 0 0 1rem;
}

.prose blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--blue);
    background: var(--bg-muted);
    color: var(--text-muted);
}

/* Contact form */
.form-grid {
    display: grid;
    gap: 1rem;
    max-width: 520px;
}

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

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

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

.field-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.address-block {
    padding: 1.25rem 1.35rem;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 400px;
}

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

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-muted);
    padding: 2.5rem 0 1rem;
    margin-top: auto;
}

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

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

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

.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 li {
    margin-bottom: 0.45rem;
}

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

.footer-links a:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    padding: 1rem 0 0;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
    padding: 1rem 0;
}

.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-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Thank you / legal */
.page-hero-sm {
    padding: 2rem 0 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-accent);
}

.page-hero-sm h1 {
    margin: 0;
    font-size: 1.75rem;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-main,
main {
    flex: 1;
}
