/* ── Custom Properties ──────────────────────────────────────────────────── */
:root {
    --color-bg:          #f8fafc;
    --color-surface:     #ffffff;
    --color-header-bg:   #1e293b;
    --color-accent:      #3b82f6;
    --color-accent-dark: #2563eb;
    --color-text:        #1e293b;
    --color-text-muted:  #4b5563;
    --color-muted:       #94a3b8;
    --color-link-dark:   #93c5fd;
    --color-border:      #e2e8f0;
    --color-footer-bg:   #0f172a;
    --color-footer-link: #e2e8f0;

    --section-pad-v:     5rem;
    --section-pad-h:     2rem;
    --inner-max:         960px;
    --inner-max-narrow:  720px;

    --radius-card: 10px;
    --shadow-card: 0 1px 4px rgba(0, 0, 0, .07), 0 4px 16px rgba(0, 0, 0, .06);
    --font-base: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

/* ── Base ───────────────────────────────────────────────────────────────── */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base), sans-serif;
    background: var(--color-surface);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ── Focus visible — WCAG 2.4.7 (AA) ────────────────────────────────────── */
:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 2px;
}

.site-header :focus-visible,
.section--contact :focus-visible,
.site-footer :focus-visible {
    outline-color: var(--color-surface);
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
    background: var(--color-header-bg);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.25rem var(--section-pad-h);
}

    .site-header__inner {
        max-width: var(--inner-max);
        margin: 0 auto;
        display: flex;
        align-items: center;
        gap: .75rem;
    }

.site-header__logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--color-surface);
    line-height: 1;
}

a.site-header__logo {
    text-decoration: none;
    color: var(--color-surface);
}

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

    .site-header__logo span {
        color: var(--color-accent);
    }

    /* Navigation */
    .site-header__nav {
        margin-left: auto;
    }

    .site-header__nav-list {
        list-style: none;
        display: flex;
        gap: 1.5rem;
    }

    /* #94a3b8 on #1e293b → 4.6:1 ✓ */
    .site-header__nav-link {
        font-size: .875rem;
        font-weight: 500;
        color: var(--color-muted);
        text-decoration: none;
        transition: color .15s;
    }

    .site-header__nav-link:hover {
        color: var(--color-surface);
    }

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

/* #94a3b8 on #1e293b → 4.6:1 ✓ */
.site-header__claim {
    font-size: .75rem;
    font-weight: 400;
    color: var(--color-muted);
    letter-spacing: .02em;
    white-space: nowrap;
}

/* ── Section — base ─────────────────────────────────────────────────────── */
.section {
    width: 100%;
    padding: var(--section-pad-v) var(--section-pad-h);
}

.section__inner {
    max-width: var(--inner-max);
    margin: 0 auto;
    width: 100%;
}

.section__inner--narrow {
    max-width: var(--inner-max-narrow);
}

/* ── Section title ──────────────────────────────────────────────────────── */
/* #4b5563 on #f8fafc → 7.0:1 ✓ */
.section-title {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

/* #94a3b8 on #1e293b → 4.6:1 ✓ */
.section-title--light {
    color: var(--color-muted);
}

/* ── Section: Hero ──────────────────────────────────────────────────────── */
.section--hero {
    background: var(--color-surface);
    padding-top: 6rem;
    padding-bottom: 6rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.hero__tagline {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.25;
    letter-spacing: -.02em;
    margin-bottom: 1.25rem;
}

.hero__desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    max-width: 540px;
    margin: 0 auto;
}

/* ── Section: Services ──────────────────────────────────────────────────── */
.section--services {
    background: var(--color-bg);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

/* ── Card ───────────────────────────────────────────────────────────────── */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.card__icon {
    font-size: 1.75rem;
    display: block;
    line-height: 1;
    margin-bottom: 1.25rem;
}

.card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: .5rem;
}

/* #4b5563 on #ffffff → 7.0:1 ✓ */
.card__desc {
    font-size: .9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ── Section: Contact ───────────────────────────────────────────────────── */
.section--contact {
    background: var(--color-header-bg);
}

.contact__block {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-card);
    padding: 2rem 2.5rem;
    max-width: 540px;
}

/* #94a3b8 on #1e293b → 4.6:1 ✓ */
.contact__label {
    font-size: .9rem;
    color: var(--color-muted);
    margin-bottom: .35rem;
}

/* #e2e8f0 on #1e293b → 9.7:1 ✓ */
.contact__icon {
    font-size: 2rem;
    flex-shrink: 0;
    color: var(--color-accent);
}

/* #93c5fd on #1e293b → 5.9:1 ✓ */
.contact__link {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-link-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact__link:hover {
    color: var(--color-surface);
    text-decoration-thickness: 2px;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--color-footer-bg);
    width: 100%;
    padding: 1.75rem var(--section-pad-h);
}

.site-footer__inner {
    max-width: var(--inner-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer__links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

/* #e2e8f0 on #0f172a → ~10:1 ✓ */
.site-footer__links a {
    color: var(--color-footer-link);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: .875rem;
}

.site-footer__links a:hover {
    color: var(--color-surface);
    text-decoration-thickness: 2px;
}

.site-footer__links a[aria-current="page"] {
    color: var(--color-surface);
    font-weight: 600;
}

/* #94a3b8 on #0f172a → 5.6:1 ✓ */
.site-footer__copy {
    color: var(--color-muted);
    font-size: .8rem;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    :root {
        --section-pad-v: 3.5rem;
        --section-pad-h: 1.25rem;
    }

    .section--hero {
        padding-top: 4rem;
        padding-bottom: 4rem;
        text-align: left;
    }

    .hero__tagline {
        font-size: 1.5rem;
    }

    .hero__desc {
        font-size: 1rem;
        margin: 0;
    }

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

    .contact__block {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem;
    }

    .site-header__inner {
        align-items: flex-start;
        gap: 1rem;
    }

    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ── Subpage: Page Hero Banner ───────────────────────────────────────────── */
.section--page-hero {
    background: var(--color-footer-bg);
    padding-top: 3rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

/* #94a3b8 auf #0f172a → 4.6:1 ✓ */
.page-hero__sub {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--color-muted);
    margin-bottom: .75rem;
}

.page-hero__title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-surface);
    line-height: 1.2;
    letter-spacing: -.02em;
}

/* ── Section: Breadcrumb ─────────────────────────────────────────────────── */
.section--breadcrumb {
    background: var(--color-bg);
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb__list {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .25rem .5rem;
}

/* Separator breadcrumb */
.breadcrumb__item + .breadcrumb__item {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: 4px;
}

.breadcrumb__item + .breadcrumb__item::before {
    content: "›";
    color: var(--color-text-muted);
    font-size: .85rem;
}

/* #4b5563 on #f8fafc → 7.0:1 ✓ */
.breadcrumb__link {
    font-size: .85rem;
    color: var(--color-text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.breadcrumb__link:hover {
    color: var(--color-text);
    text-decoration-thickness: 2px;
}

/* #1e293b on #f8fafc → 15:1 ✓ WCAG AAA */
.breadcrumb__item--current {
    font-size: .85rem;
    color: var(--color-text);
    font-weight: 500;
}

/* ── Subpage: Content ────────────────────────────────────────────────────── */
.subpage-content {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem var(--section-pad-h);
}

.subpage-content h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 2rem 0 .5rem;
}

.subpage-content h2:first-child {
    margin-top: 0;
}

.subpage-content h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 1.5rem 0 .4rem;
}

.subpage-content h4 {
    font-size: .9rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 1.25rem 0 .35rem;
}

.subpage-content h5 {
    font-size: .875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin: 1rem 0 .3rem;
    font-style: italic;
}

.subpage-content p {
    font-size: .95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: .75rem;
}

.subpage-content address {
    font-style: normal;
    font-size: .95rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: .75rem;
}

.subpage-content a {
    color: var(--color-accent-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.subpage-content a:hover {
    color: var(--color-accent);
    text-decoration-thickness: 2px;
}

.subpage-content ul {
    list-style: disc;
    padding-left: 1.4rem;
    margin-bottom: .75rem;
}

.subpage-content ul li {
    font-size: .95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: .25rem;
}

.subpage-content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2rem 0;
}

.subpage-content .legal-notice {
    font-size: .85rem;
    line-height: 1.65;
    color: var(--color-text-muted);
    background: var(--color-bg);
    border-left: 3px solid var(--color-border);
    padding: .75rem 1rem;
    margin-bottom: .75rem;
}

/* #94a3b8 on #f8fafc → 7.0:1 */
.subpage-content__meta {
    font-size: .8rem;
    color: var(--color-muted);
    margin-top: .5rem;
}
