:root {
    --color-bg: #f4f7fb;
    --color-surface: #ffffff;
    --color-text: #1a2b3c;
    --color-muted: #5a6b7d;
    --color-primary: #0c4a6e;
    --color-primary-dark: #082f49;
    --color-accent: #ea580c;
    --color-accent-hover: #c2410c;
    --color-border: #dbe4ef;
    --color-success: #15803d;
    --color-error: #b91c1c;
    --shadow-sm: 0 1px 3px rgba(12, 74, 110, 0.08);
    --shadow-md: 0 8px 30px rgba(12, 74, 110, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --font: "DM Sans", system-ui, sans-serif;
    --container: 1120px;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--color-primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4 { line-height: 1.25; margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

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

.sr-only {
    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;
    top: 0;
    background: var(--color-accent);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.logo-img {
    display: block;
    height: 44px;
    width: auto;
    border-radius: 4px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.15s, color 0.15s;
}

.nav-link:hover,
.nav-link.is-active {
    background: #e0f2fe;
    color: var(--color-primary);
}

.nav-link--shop {
    background: var(--color-accent);
    color: #fff !important;
    margin-left: 0.25rem;
}
.nav-link--shop:hover { background: var(--color-accent-hover); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
}

/* Hero */
.hero {
    padding: 4rem 0 3rem;
    background: linear-gradient(160deg, var(--color-primary-dark) 0%, var(--color-primary) 45%, #0369a1 100%);
    color: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero h1 { margin-bottom: 1rem; }
.hero-lead { font-size: 1.15rem; opacity: 0.95; max-width: 38ch; }

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

.hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.35rem;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}
.btn--primary:hover { background: var(--color-accent-hover); color: #fff; }

.btn--secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn--secondary:hover { background: rgba(255, 255, 255, 0.25); color: #fff; }

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn--outline:hover { background: var(--color-primary); color: #fff; }

.btn--small { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* Sections */
.section { padding: 3.5rem 0; }
.section--alt { background: var(--color-surface); }

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.section-header p { color: var(--color-muted); margin-bottom: 0; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #e0f2fe;
    color: var(--color-primary);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--color-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.card-link { font-weight: 600; text-decoration: none; }

/* Page header */
.page-header {
    padding: 2.5rem 0;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: #fff;
}

.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { opacity: 0.9; margin: 0; max-width: 60ch; }

.page-content {
    padding: 2.5rem 0 4rem;
}

.content-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.content-box + .content-box { margin-top: 1.5rem; }

.content-with-image {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 2rem;
    align-items: start;
}

.content-with-image > div:last-child img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin: 1.5rem 0;
}

.data-table th,
.data-table td {
    border: 1px solid var(--color-border);
    padding: 0.75rem 1rem;
    text-align: left;
}

.data-table th {
    background: #f0f9ff;
    font-weight: 600;
}

.data-table td:last-child,
.data-table th:last-child { text-align: center; }

/* Doc list */
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
}
.doc-list li:last-child { border-bottom: none; }
.doc-list a { font-weight: 500; text-decoration: none; }
.doc-list a:hover { text-decoration: underline; }

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

.form-group { margin-bottom: 1rem; }
.form-group--full { grid-column: 1 / -1; }

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(12, 74, 110, 0.15);
}

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

.recaptcha-field { margin-top: 0.5rem; }

.email-reveal { margin-top: 0.25rem; }

.contact-item--email,
.contact-item:has(.email-reveal) {
    grid-column: 1 / -1;
}

.email-reveal .recaptcha-field {
    max-width: 304px;
}

.recaptcha-container {
    display: inline-block;
    max-width: 100%;
}

.email-result { margin: 0.5rem 0 0; }

.form-hint { font-size: 0.85rem; color: var(--color-muted); margin-top: 0.25rem; }

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert--success {
    background: #dcfce7;
    color: var(--color-success);
    border: 1px solid #bbf7d0;
}

.alert--error {
    background: #fee2e2;
    color: var(--color-error);
    border: 1px solid #fecaca;
}

/* Contact info */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    background: #f0f9ff;
    border-radius: var(--radius);
    padding: 1.25rem;
}

.contact-item strong { display: block; margin-bottom: 0.35rem; color: var(--color-primary); }

.contact-item--hours { grid-column: 1 / -1; }

.contact-hours { white-space: nowrap; }

.contact-tagline {
    font-size: 1.15rem;
    font-weight: 600;
    opacity: 1;
    margin-bottom: 0.5rem;
}

.map-embed {
    margin-top: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 280px;
    border: 0;
}

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

.banner-grid img {
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.banner-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.price-note {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin: -0.5rem 0 1rem;
}

.footnotes {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
}

.footnotes p { margin-bottom: 0.5rem; }

.data-table--compact { font-size: 0.9rem; }

/* Footer */
.site-footer {
    background: var(--color-primary-dark);
    color: #cbd5e1;
    padding: 3rem 0 0;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.site-footer h3, .site-footer h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: #94a3b8; text-decoration: none; }
.footer-links a:hover { color: #fff; }

.footer-contact a { color: #e2e8f0; text-decoration: none; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
    font-size: 0.875rem;
    color: #64748b;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 200;
    padding: 1rem 0;
}

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

.cookie-inner p { margin: 0; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 900px) {
    .hero-grid,
    .content-with-image { grid-template-columns: 1fr; }

    .nav-toggle { display: flex; }

    .site-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        padding: 1rem;
        box-shadow: var(--shadow-md);
    }

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

    .nav-link { padding: 0.75rem 1rem; }
    .nav-link--shop { margin-left: 0; margin-top: 0.5rem; }

    .form-grid { grid-template-columns: 1fr; }
    .banner-grid { grid-template-columns: 1fr; }
    .banner-grid--3 { grid-template-columns: 1fr; }
}
