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

:root {
    /* Colors — Neutrals (warm-toned) */
    --ink: #0c1220;
    --charcoal: #1a2335;
    --slate: #4a5568;
    --mist: #6b7280; /* WCAG AA on white/cream — measured 4.65:1 (was #8b95a7 / 3.01:1, fail) — Lighthouse a11y fix 2026-05-03 */
    --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);
    --teal: #0d9488;
    --teal-glow: rgba(13, 148, 136, 0.10);
    --rose: #be185d;
    --rose-glow: rgba(190, 24, 93, 0.10);

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

    /* Typography */
    --font-body: 'Geist', sans-serif;
    --font-heading: 'Geist', sans-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;
}
/* Mobile drawer wrapper — hidden at desktop. Revealed at narrow viewports
   via the @media block below when the shared mobile-drawer.js sets
   [data-state="open"]. Lives outside the desktop @media so the default
   state at all viewports is `display: none` until the drawer opens. */
.nav-links-mobile {
    display: none;
}
.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; }
/* Mobile-only tap-to-call icon — sits next to the hamburger at <901px
   viewports. Older / mortprot prospects often prefer voice; this puts
   a one-tap call route in the nav bar without forcing them to open the
   drawer first. Hidden on desktop where .nav-topbar already shows the
   full number. */
.nav-mobile-call {
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 8px;
    margin-right: 4px;
}
.nav-mobile-call:hover { background: rgba(212, 168, 67, 0.08); }

/* === 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: rgba(255, 255, 255, 0.7); /* Fleet-canonical secondary text on dark — matches Tailwind sites' text-white/70 (2026-04-26). */
    padding: var(--space-3xl) 0 var(--space-xl);
    font-size: var(--text-body-sm);
    position: relative;
    margin-top: auto; /* Push footer to bottom of flex layouts — fleet parity (2026-04-26). */
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.4), transparent); /* Gold accent — matches Tailwind sites' gold/40 (2026-04-26). */
}

/* Fleet-canonical gold accent line — equivalent to Tailwind's
   h-px bg-gradient-to-r from-transparent via-gold/40 to-transparent. */
.site-footer-accent {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.4), transparent);
    /* The footer::before already paints a gold accent at the top; keep this
       container in the markup for structural parity with the 5 Tailwind
       sites. Visually a no-op on Hub today; allows future restyling without
       a markup change. */
}

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

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

/* Footer column titles. Were <h4> until 2026-05-03 — promoted to <h3>
   to avoid the heading-order skip after page <h2> sections (Lighthouse
   a11y fix). Visual style unchanged. */
.footer-col h3 {
    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: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7); /* Fleet-canonical text-white/70 (2026-04-26). */
    text-decoration: none;
    font-size: var(--text-ui);
    /* Mobile UX: ≥44px tap target so adjacent footer links don't fat-finger. */
    min-height: 44px;
    padding: 6px 0;
    transition: color var(--ease-short);
}

.footer-col a:hover {
    color: var(--amber); /* Hover-to-gold matches Tailwind sites' hover:text-gold (2026-04-26). */
}

.footer-contact-info {
    font-size: var(--text-ui);
    color: rgba(255, 255, 255, 0.7);
    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);
    /* Mobile UX: ≥32px chip height so tag row stays tappable. */
    padding: 8px 12px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    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);
    /* Mobile UX: pad legal links so the privacy/terms/cookie row is tappable. */
    display: inline-block;
    padding: 8px 4px;
    min-height: 32px;
}

.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);
}
/* Required-field asterisk — see QUOTE-FORM-SPEC §5.4. Canonical factory's
   hub-scaffold variant emits <span class="text-red-500" aria-hidden="true">*</span>
   inside .form-group labels. site-hub doesn't use Tailwind, so map the
   utility class name to hub's existing --error token here. The same rule
   covers the .sidebar-form-card scoped form-group labels via inheritance
   of the cascading rule above. */
.form-group label .text-red-500,
.form-card label .text-red-500 {
    color: var(--error);
    font-weight: 600;
}
.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: 16px; /* 16px on mobile prevents iOS Safari auto-zoom on focus */
    transition: all var(--ease-short);
}
@media (min-width: 768px) {
    .form-group input,
    .form-group select {
        font-size: var(--text-body-sm); /* 15px on tablet+ */
    }
}
.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 selector retained for back-compat with any non-template
   embed; .form-success-heading is the new canonical (post-2026-04-24 H3 → P
   demotion to fix H1 → H3 skip — see HTML-HYGIENE-AUDIT-2026-04-24.md). */
.form-success h3,
.form-success .form-success-heading {
    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: 16px; /* 16px on mobile prevents iOS Safari auto-zoom on focus */
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}
@media (min-width: 768px) {
    .sidebar-form-card .form-group input,
    .sidebar-form-card .form-group select {
        font-size: var(--text-ui); /* 14px on tablet+ */
    }
}
.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,
.sidebar-form-card .form-success .form-success-heading { 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 — REMOVED 2026-05-03 (NEW-MOBILE-1 Phase 2C).
   The legacy `.sticky-cta` block (round-FAB-with-phone-icon, GREEN bar,
   pixel-positioned, no safe-area-inset-bottom) was replaced by the canonical
   `.mcta-*` vanilla port. Styles now live in
   packages/shared/assets/css/mobile-cta-bar.vanilla.css (shipped to /css/
   mobile-cta-bar.vanilla.css via .eleventy.js passthrough; linked from
   partials/head-meta.njk). The new port honors env(safe-area-inset-bottom)
   on iPhone notch devices — closing the only safe-area gap in the fleet. === */

/* === 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;
    }
    /* Mobile drawer (.nav-links-mobile) — shared mobile-drawer.js owns
       open/close via [data-state]. The drawer is full-viewport (matching
       the legacy fixed-overlay treatment) and only revealed when state=open.
       The legacy `.open` class is preserved as a fallback only for safety;
       the canonical signal is [data-state="open"]. */
    .nav-links-mobile {
        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-mobile[data-state="open"],
    .nav-links-mobile.open {
        display: flex;
    }
    .nav-links-mobile a {
        font-size: 18px;
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 4px 0;
        color: var(--slate);
        text-decoration: none;
        font-weight: 500;
    }
    .nav-hamburger {
        display: block;
        min-width: 44px;
        min-height: 44px;
    }
    /* Reveal the tap-to-call icon next to the hamburger at narrow viewports. */
    .nav-mobile-call {
        display: inline-flex;
        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 CSS removed 2026-04-23 post carrier-shortcode unification
   (commit 1de8ea9). All rendering now flows through the canonical
   {% carrierTrustBar %} shortcode in packages/shared/components/carrier-trust-bar.js
   which emits Tailwind utility classes. Dead classes removed:
   .carriers-section, .carriers-section .section-title/desc,
   .carriers-grid, .carrier-logo (+ img, hover states),
   .carrier-rating, .carrier-rating-source, .carriers-footnote,
   .carriers-legal, .carriers-strip (+ -inner / -label / -logos and
   their responsive breakpoints). Verified zero remaining HTML / njk /
   server references before deletion. */

/* ──────────────────────────────────────────────────────────────────────
   Agent credential strip — canonical styling (Batch L D1).
   Identical CSS block across all 6 sibling sites' main.css files so the
   shared macro renders the same chip everywhere. See
   packages/shared/components/agent-credential-strip.njk docstring.
   ────────────────────────────────────────────────────────────────── */

.credential-strip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #faf8f5;
    border: 1px solid rgb(15 23 42 / 0.1);
    border-radius: 9999px;
    padding: 4px 16px 4px 4px;
    margin-bottom: 20px;
    font-size: 12px;
    line-height: 1.4;
}
.credential-strip img[data-slot="headshot"] {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgb(212 168 67 / 0.5);
}
.credential-strip [data-slot="text"] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgb(15 23 42 / 0.82);
}
.credential-strip [data-slot="name"] {
    font-weight: 600;
    color: #0f172a;
}
.credential-strip [data-slot="sep"] {
    color: rgb(15 23 42 / 0.35);
}
.credential-strip [data-slot="badge"] {
    font-weight: 500;
    color: #0f172a;
}
.credential-strip [data-slot="license"] {
    color: rgb(15 23 42 / 0.65);
}

/* About credentials card - canonical /about/ sticky trust surface.
   Markup lives in packages/shared/components/about-credentials-card.njk. */
.about-credential-card {
    width: 100%;
    max-width: 20rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
    padding: 20px;
    text-align: left;
}
.about-credential-card__agent {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.about-credential-card__agent img {
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    object-fit: cover;
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.25);
    flex: 0 0 auto;
}
.about-credential-card__eyebrow {
    margin: 0 0 3px;
    color: #7e6224;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: uppercase;
}
.about-credential-card h2 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
}
.about-credential-card__license {
    display: inline-flex;
    margin-top: 6px;
    color: #7e6224;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 600;
    text-decoration: none;
}
.about-credential-card__license:hover {
    text-decoration: underline;
}
.about-credential-card__facts {
    margin: 18px 0 0;
}
.about-credential-card__facts div {
    margin: 0;
    padding: 13px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.about-credential-card__facts div:first-child {
    padding-top: 0;
}
.about-credential-card__facts dt {
    margin: 0 0 3px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}
.about-credential-card__facts dd {
    margin: 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
}
.about-credential-card__actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}
.about-credential-card__primary,
.about-credential-card__secondary,
.about-credential-card__tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 150ms ease;
}
.about-credential-card__primary {
    background: #0f172a;
    border: 1px solid #0f172a;
    color: #ffffff;
}
.about-credential-card__primary:hover {
    background: #1e293b;
    border-color: #1e293b;
    transform: translateY(-1px);
}
.about-credential-card__secondary {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.16);
    color: #0f172a;
}
.about-credential-card__secondary:hover {
    border-color: rgba(212, 168, 67, 0.55);
    color: #7e6224;
}
.about-credential-card__tertiary {
    min-height: 36px;
    padding: 6px 10px;
    color: #7e6224;
    font-weight: 700;
}
.about-credential-card__tertiary:hover {
    text-decoration: underline;
}


/* ──────────────────────────────────────────────────────────────────────
   Trust strip — canonical horizontal credibility band (NEW-Q9).
   Identical across all 6 sibling sites. Pairs with the shared macro at
   packages/shared/components/trust-strip.njk. Renders above the /quote/
   form so pre-form anxiety is anchored by license/carrier/SLA cues
   before the user looks at fields.

   Solid cream pill chosen for cross-hero compatibility (works on dark
   navy heroes used by site-whole/iul/mortprot/term AND on cream/white
   heroes used by site-final-exp/hub). Same surface logic as
   .credential-strip — proven to read against every fleet hero.
   ────────────────────────────────────────────────────────────────── */

.trust-strip {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    background: #faf8f5;
    border: 1px solid rgb(15 23 42 / 0.1);
    border-radius: 9999px;
    padding: 8px 18px;
    margin-bottom: 20px;
    font-size: 12px;
    line-height: 1.4;
    color: rgb(15 23 42 / 0.82);
    max-width: 100%;
}
.trust-strip [data-slot="fact"] {
    font-weight: 500;
    color: #0f172a;
    white-space: nowrap;
}
.trust-strip a[data-slot="fact"] {
    color: #0f172a;
    text-decoration: none;
    border-bottom: 1px dashed rgb(212 168 67 / 0.6);
    transition: color 120ms ease, border-color 120ms ease;
}
.trust-strip a[data-slot="fact"]:hover,
.trust-strip a[data-slot="fact"]:focus-visible {
    color: rgb(180 130 30);
    border-bottom-color: rgb(212 168 67);
}
.trust-strip [data-slot="dot"] {
    color: rgb(15 23 42 / 0.35);
}
