/* === Global Styles === */

:root {
    /* Colors — Neutrals (warm-toned) */
    --ink: #0c1220;
    --charcoal: #1a2335;
    --slate: #4a5568;
    --mist: #8b95a7;
    --cloud: #e2e8f0;
    --warm: #faf8f5;
    --cream: #f5f0eb;

    /* Colors — Primary */
    --green: #047857;
    --green-deep: #065f46;
    --green-glow: rgba(4, 120, 87, 0.12);

    /* Colors — Product accents */
    --amber: #f59e0b;
    --amber-glow: rgba(245, 158, 11, 0.10);
    --indigo: #6366f1;
    --indigo-glow: rgba(99, 102, 241, 0.10);
    --pink: #ec4899;
    --pink-glow: rgba(236, 72, 153, 0.10);

    /* Colors — Semantic */
    --success: #047857;
    --warning: #f59e0b;
    --warning-text: #92600a;
    --error: #dc2626;
    --info: #6366f1;

    /* Typography */
    --font-body: 'General Sans', sans-serif;
    --font-heading: 'Instrument Serif', serif;

    /* Type scale */
    --text-hero: 54px;
    --text-display: 42px;
    --text-h1: 38px;
    --text-h2: 32px;
    --text-h3: 28px;
    --text-h4: 24px;
    --text-h5: 21px;
    --text-lead: 18px;
    --text-base: 16px;
    --text-body: 16px;
    --text-body-sm: 15px;
    --text-sm: 14px;
    --text-ui: 14px;
    --text-caption: 13px;
    --text-fine: 11px;

    /* Spacing scale (4px base) */
    --space-2xs: 2px;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 80px;

    /* Border radius — per DESIGN.md */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.10);

    /* Transitions */
    --ease-micro: 100ms ease;
    --ease-short: 200ms ease;
    --ease-medium: 300ms ease;
    --ease-long: 600ms ease;

    /* Component tokens — cards */
    --card-bg: white;
    --card-border: rgba(0, 0, 0, 0.05);
    --card-radius: var(--radius-xl);
    --card-shadow: var(--shadow-sm);
    --card-shadow-hover: var(--shadow-lg);

    /* Component tokens — dark form cards */
    --form-card-bg: linear-gradient(160deg, #0f1729 0%, var(--ink) 50%, #0a1018 100%);
    --form-card-border: rgba(255, 255, 255, 0.06);
    --form-input-bg: rgba(255, 255, 255, 0.04);
    --form-input-border: rgba(255, 255, 255, 0.12);
    --form-input-focus-border: rgba(4, 120, 87, 0.6);
    --form-input-focus-shadow: 0 0 0 3px rgba(4, 120, 87, 0.15), 0 0 20px rgba(4, 120, 87, 0.06);
    --form-text: rgba(255, 255, 255, 0.75);
    --form-text-muted: rgba(255, 255, 255, 0.45);
    --form-placeholder: rgba(255, 255, 255, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Accessibility: respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Accessibility: visible focus indicators for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

/* Dark form cards: use lighter focus ring for contrast */
.form-card *:focus-visible,
.sidebar-form *:focus-visible,
[style*="background"][style*="#0c1220"] *:focus-visible {
    outline-color: #4ade80;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.product-card.reveal { transition-delay: calc(var(--i, 0) * 0.1s); }

/* Skip to content for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--green);
    color: #fff;
    padding: 8px 16px;
    z-index: 100;
    font-size: var(--text-caption);
    border-radius: 0 0 var(--radius-md) 0;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Visually hidden (still announced by screen readers). Used for form labels
   where the design uses placeholder-only fields but a11y still requires a
   real <label for="..."> (WCAG 1.3.1). Pattern: https://webaim.org/techniques/css/invisiblecontent/ */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--warm);
    line-height: 1.6;
}

/* Form elements don't inherit font-family by default — UA default is Arial. */
button, input, textarea, select {
    font-family: inherit;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 1201px) {
    /* Only pad main content — not nav/footer containers — so the fixed sidebar doesn't overlap article text */
    .has-sidebar main .container {
        padding-right: 420px; /* space for 360px sidebar + 24px right + gap */
    }
}

/* Breadcrumb */
.breadcrumb {
    font-size: 13px;
    margin-bottom: 16px;
    opacity: 0.5;
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Top Bar */
.nav-topbar {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-caption);
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    letter-spacing: 0.2px;
}
.nav-topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-topbar-item {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color var(--ease-short);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    min-height: 36px;
    font-size: var(--text-caption);
}
.nav-topbar-item svg {
    opacity: 0.45;
    flex-shrink: 0;
}
a.nav-topbar-item:hover {
    color: #fff;
}
a.nav-topbar-item:hover svg {
    opacity: 1;
}
.nav-topbar-license {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 11px;
}
.nav-topbar-license svg {
    color: var(--green);
    opacity: 0.8;
}
.nav-topbar-contact {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: box-shadow var(--ease-short), padding var(--ease-short);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
}

.nav-cta {
    background: var(--green);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: var(--text-ui);
    font-weight: 600;
    transition: all var(--ease-short);
    box-shadow: 0 2px 8px rgba(4, 120, 87, 0.2);
}

.nav-cta:hover {
    background: var(--green-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.3);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-links a {
    font-size: var(--text-body-sm);
    color: var(--slate);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--ease-short);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
}
.nav-links a:hover {
    color: var(--green);
    background: var(--green-glow);
}
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-hamburger svg { width: 28px; height: 28px; }

/* === Nav Dropdowns === */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-trigger {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: var(--text-body-sm);
    color: var(--slate);
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    transition: color var(--ease-short), background var(--ease-short);
}
.nav-dropdown-trigger:hover {
    color: var(--green);
    background: var(--green-glow);
}
.nav-dropdown-arrow {
    transition: transform var(--ease-short);
    opacity: 0.5;
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: -8px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: 6px;
    min-width: 220px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.04);
    z-index: 101;
}
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
}
.nav-dropdown-menu a {
    display: block;
    padding: 9px 14px;
    font-size: var(--text-ui);
    color: var(--slate);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--ease-micro);
}
.nav-dropdown-menu a:hover {
    background: var(--green-glow);
    color: var(--green-deep);
}
.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}
.nav-dropdown:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
}

/* === Footer === */

footer {
    background: linear-gradient(180deg, var(--ink) 0%, #080d17 100%);
    color: white;
    padding: var(--space-3xl) 0 var(--space-xl);
    font-size: var(--text-body-sm);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(4, 120, 87, 0.2), transparent);
}

footer p {
    margin-bottom: var(--space-sm);
    color: rgba(255, 255, 255, 0.6);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: var(--text-lead);
    margin-bottom: var(--space-md);
    color: white;
    letter-spacing: -0.2px;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: var(--text-ui);
    padding: 5px 0;
    transition: color var(--ease-short);
}

.footer-col a:hover {
    color: white;
}

.footer-contact-info {
    font-size: var(--text-ui);
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.9;
}

.footer-contact-info a {
    display: inline;
    padding: 0;
}

.footer-categories {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-categories-label {
    font-size: var(--text-caption);
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: var(--space-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-categories-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-categories-links a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    font-size: var(--text-caption);
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    transition: all var(--ease-short);
}

.footer-categories-links a:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: var(--space-md);
    text-align: center;
    font-size: var(--text-fine);
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.2px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color var(--ease-short);
}

.footer-bottom a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* === Dark Form Base Styles (shared by .form-card + .sidebar-form-card) === */

.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: var(--text-ui);
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--form-text);
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--form-input-border);
    border-radius: var(--radius-md);
    background: var(--form-input-bg);
    color: white;
    font-family: var(--font-body);
    font-size: var(--text-body-sm);
    transition: all var(--ease-short);
}
.form-group input::placeholder { color: var(--form-placeholder); }
.form-group select { color: rgba(255, 255, 255, 0.5); }
.form-group select option { background: var(--charcoal); color: white; }
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--form-input-focus-border);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: var(--form-input-focus-shadow);
}
.form-sub {
    font-size: var(--text-ui);
    color: var(--form-text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
}
.form-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--ease-short);
    margin-top: var(--space-xs);
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(4, 120, 87, 0.25), 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}
.form-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}
.form-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(4, 120, 87, 0.35), 0 2px 4px rgba(0, 0, 0, 0.1);
}
.form-submit:active { transform: translateY(0); }
.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.form-note {
    text-align: center;
    font-size: var(--text-fine);
    color: rgba(255, 255, 255, 0.4);
    margin-top: 10px;
    line-height: 1.4;
}
/* Time-to-complete reassurance above the submit button.
   Shown on every quote form (home hero, product/location pages, sidebar)
   to lower friction at decision time — users know exactly what they're
   signing up for. Distinct from .form-note (encryption/license) which
   still renders below the submit button. */
.form-time-reassure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: var(--slate);
    margin-bottom: 10px;
    font-family: var(--font-body);
}
.sidebar-form-card .form-time-reassure,
.form-card .form-time-reassure { color: rgba(255, 255, 255, 0.55); }
input.field-valid, select.field-valid { border-color: rgba(4, 120, 87, 0.5) !important; }
.form-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: var(--text-caption);
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: var(--space-sm);
    font-family: var(--font-body);
}
.form-response-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-lg);
    font-family: var(--font-body);
}
.form-success { display: none; text-align: center; padding: var(--space-xl) 0; }
.form-success .check {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--green-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: var(--text-h4);
    color: var(--green);
}
.form-success h3 {
    font-family: var(--font-heading);
    font-size: var(--text-h5);
    color: #fff;
    margin-bottom: var(--space-xs);
}
.form-success p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
}
.field-error {
    color: var(--error);
    font-size: var(--text-caption);
    margin-top: var(--space-xs);
}

/* === Sidebar Quote Form === */

.sidebar-form {
    position: fixed;
    top: 130px;
    right: 24px;
    z-index: 90;
    width: 360px;
}

.sidebar-form-toggle {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 91;
    background: var(--green);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    padding: 14px 24px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(4, 120, 87, 0.4);
    transition: all 0.3s ease;
    align-items: center;
    gap: 8px;
}
.sidebar-form-toggle:hover {
    background: var(--green-deep);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(4, 120, 87, 0.5);
}
.sidebar-form-toggle-icon { font-size: 18px; }

.sidebar-form-card {
    background: var(--ink);
    border-radius: var(--radius-xl);
    padding: 28px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.sidebar-form-card::before {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    background: var(--green);
    top: -100px; right: -100px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.12;
    filter: blur(50px);
}
.sidebar-form-card::after {
    content: '';
    position: absolute;
    width: 150px; height: 150px;
    background: var(--amber);
    bottom: -75px; left: -75px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.1;
    filter: blur(40px);
}

.sidebar-form-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    z-index: 2;
    transition: color 0.2s;
    display: none;
}
.sidebar-form-close:hover { color: white; }

.sidebar-form-card h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}
.sidebar-form-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.sidebar-form-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.sidebar-form-badge-icon { color: var(--amber); }

/* Sidebar compact overrides (base form styles inherited from shared section above) */
.sidebar-form-card .form-group { margin-bottom: 12px; }
.sidebar-form-card .form-group input,
.sidebar-form-card .form-group select {
    padding: 10px;
    font-size: var(--text-ui);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}
.sidebar-form-card .form-group input:focus,
.sidebar-form-card .form-group select:focus {
    border-color: var(--green);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px var(--green-glow);
}
.sidebar-form-card .form-submit {
    padding: 12px;
    background: var(--green);
    font-size: var(--text-ui);
    font-weight: 600;
    letter-spacing: 0;
    box-shadow: none;
    margin-top: var(--space-xs);
}
.sidebar-form-card .form-submit::after { display: none; }
.sidebar-form-card .form-submit:hover { background: var(--green-deep); box-shadow: none; }
.sidebar-form-card .form-submit:disabled { opacity: 0.6; }
.sidebar-form-social-proof { display: flex; align-items: center; gap: 5px; font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 8px; font-family: var(--font-body); }
.sidebar-form-card .form-success .check { width: 48px; height: 48px; font-size: var(--text-h5); }
.sidebar-form-card .form-success h3 { font-size: var(--text-lead); }
.sidebar-form-card .form-success p { color: rgba(255,255,255,0.6); font-size: var(--text-caption); }

@media (max-width: 1200px) {
    .sidebar-form {
        position: fixed;
        top: auto;
        right: auto;
        bottom: 0;
        left: 0;
        width: 100%;
    }
    .sidebar-form-card {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        max-height: 90vh;
        overflow-y: auto;
        padding: 32px 24px;
        animation: slideUp 0.3s ease;
    }
    .sidebar-form.open .sidebar-form-card {
        display: block;
    }
    .sidebar-form-close {
        display: block;
    }
    .sidebar-form-toggle {
        display: flex;
    }
    .sidebar-form.open .sidebar-form-toggle {
        display: none;
    }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Overlay for mobile form */
.sidebar-form-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 89;
}
.sidebar-form.open .sidebar-form-overlay {
    display: block;
}

/* === Sticky Mobile CTA (non-homepage) === */
.sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--green);
    padding: 12px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.sticky-cta.visible {
    transform: translateY(0);
}
.sticky-cta button {
    background: white;
    color: var(--green-deep);
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    letter-spacing: 0.3px;
}
.sticky-cta button:active {
    transform: scale(0.97);
}
.sticky-cta-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--green-deep);
    border: none;
    border-radius: var(--radius-md);
    width: 48px;
    height: 48px;
    margin-left: 8px;
    vertical-align: middle;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}
.sticky-cta-phone:active {
    transform: scale(0.95);
}
@media (max-width: 900px) {
    .sticky-cta { display: flex; align-items: center; justify-content: center; gap: 8px; }
    .sticky-cta button { flex: 1; max-width: none; }
}

/* === Sidebar Peek Animation === */
.sidebar-form-toggle.pulse-dot::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    background: var(--amber);
    border-radius: 50%;
    animation: sidebarPulse 2s ease-in-out infinite;
}
@keyframes sidebarPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

/* === Responsive Nav === */

@media (max-width: 900px) {
    .nav-topbar-content {
        justify-content: center;
        gap: 12px;
    }
    .nav-topbar-license {
        display: none;
    }
    .nav-topbar-contact {
        gap: 16px;
    }
    .nav-topbar-email {
        display: none;
    }
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        z-index: 99;
        overflow-y: auto;
        padding: 40px 24px;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        font-size: 18px;
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 4px 0;
    }
    .nav-hamburger {
        display: block;
        min-width: 44px;
        min-height: 44px;
    }
    /* Mobile dropdown accordion */
    .nav-dropdown {
        text-align: center;
    }
    .nav-dropdown-trigger {
        font-size: 18px;
        min-height: 44px;
    }
    .nav-dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: var(--warm);
        border-radius: var(--radius-md);
        padding: 8px 0;
        margin-top: 8px;
        min-width: auto;
    }
    .nav-dropdown:hover .nav-dropdown-menu {
        display: none;
    }
    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }
    .nav-dropdown.open .nav-dropdown-arrow {
        transform: rotate(180deg);
    }
    .nav-dropdown-menu a {
        text-align: center;
        font-size: 16px;
        padding: 8px 16px;
    }
}

/* === Responsive Footer === */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* === Toast Notifications (global — used by form error handling on all pages) === */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: toast-in 0.3s ease, toast-out 0.3s ease 4s forwards;
    max-width: 360px;
}
.toast.success { background: var(--green-deep); }
.toast.error { background: #dc2626; }
.toast.warning { background: #d97706; }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toast-out { from { opacity: 1; } to { opacity: 0; } }

/* =================================================================== */
/* Trusted Carriers — Full Section (homepage + product pages)           */
/* =================================================================== */
.carriers-section {
    padding: var(--space-4xl) 0;
    background: var(--cream);
    border-top: 1px solid var(--cloud);
    border-bottom: 1px solid var(--cloud);
}

.carriers-section .section-title {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-md);
}

.carriers-section .section-title em {
    font-style: italic;
    color: var(--green);
}

.carriers-section .section-desc {
    max-width: 680px;
    margin: 0 auto var(--space-2xl);
    text-align: center;
    color: var(--slate);
}

.carriers-grid {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 1100px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
    align-items: stretch;
}

.carrier-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-md);
    background: white;
    border: 1px solid var(--cloud);
    border-radius: var(--radius-lg);
    min-height: 118px;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.carrier-logo img {
    max-width: 100%;
    max-height: 46px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: filter 200ms ease, opacity 200ms ease;
}

.carrier-logo:hover {
    transform: translateY(-2px);
    border-color: rgba(4, 120, 87, 0.2);
    box-shadow: 0 4px 14px rgba(12, 18, 32, 0.06);
}

.carrier-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.carrier-rating {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--font-body);
    font-size: var(--text-caption);
    font-weight: 700;
    color: var(--green);
    letter-spacing: 0.02em;
}

.carrier-rating-source {
    font-size: var(--text-fine);
    font-weight: 600;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.carriers-footnote {
    margin-top: var(--space-xl);
    text-align: center;
    font-size: var(--text-caption);
    color: var(--slate);
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}

.carriers-legal {
    margin-top: var(--space-sm);
    text-align: center;
    font-size: var(--text-fine);
    color: var(--mist);
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    font-style: italic;
}

@media (max-width: 960px) {
    .carriers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .carriers-section {
        padding: var(--space-3xl) 0;
    }
    .carriers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }
    .carrier-logo {
        padding: var(--space-md) var(--space-sm);
        min-height: 100px;
    }
    .carrier-logo img {
        max-height: 36px;
        /* On touch devices there is no hover — always show full color */
        filter: grayscale(0%);
        opacity: 1;
    }
}

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

/* =================================================================== */
/* Trusted Carriers — Header Strip (every page, under nav topbar)       */
/* =================================================================== */
.carriers-strip {
    background: var(--warm);
    border-bottom: 1px solid var(--cloud);
    padding: 10px 0;
    min-height: 42px; /* reserve space so lazy-loaded logos don't cause CLS */
}

.carriers-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: nowrap;
}

.carriers-strip-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: var(--text-fine);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate);
    white-space: nowrap;
    flex-shrink: 0;
}

.carriers-strip-label svg {
    color: var(--green);
    flex-shrink: 0;
}

.carriers-strip-logos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: nowrap;
    overflow: hidden;
}

.carriers-strip-logos li {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 1;
    min-width: 0;
}

.carriers-strip-logos img {
    max-height: 22px;
    max-width: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: filter 200ms ease, opacity 200ms ease;
}

.carriers-strip-logos li:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 1100px) {
    .carriers-strip-inner { gap: var(--space-md); }
    .carriers-strip-logos { gap: var(--space-md); }
    .carriers-strip-logos img { max-width: 70px; }
}

@media (max-width: 900px) {
    /* Drop the label, keep only the logos — saves space but keeps the trust signal */
    .carriers-strip-label { display: none; }
    .carriers-strip-logos { gap: var(--space-md); justify-content: center; }
}

@media (max-width: 720px) {
    /* On small mobile, hide the strip entirely — nav area is already tight
       and carrier trust is repeated in the full section on every page */
    .carriers-strip { display: none; }
}
