/* 1. BRAND & THEME VARIABLES */
:root {
    /* AITCOH Brand Colors - Clean Palette */
    --trust-blue: #265fa1;
    --trust-blue-dark: #1b477e;
    --trust-blue-light: #daebf9;
    --deep-navy: #0e2a47; 
    --text-grey: #4a5568; /* Softer than charcoal */
    --cream-white: #fffdf5; /* More subtle cream */
    --pure-white: #ffffff;
    --accent-gold: #d69e2e;

    /* Modern Crystal Theme Specifics */
    --glass-bg-light: rgba(255, 255, 255, 0.92); /* Higher opacity for cleaner look */
    --glass-bg-dark: rgba(27, 71, 126, 0.97);
    --glass-border: 1px solid rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 20px 40px -5px rgba(38, 95, 161, 0.08); /* Colored, diffuse shadow */
    --blur-amount: 30px;
    --border-radius: 24px;
}

/* 2. RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--text-grey);
    line-height: 1.8; /* Increased line height for airy feel */
    min-height: 100vh;
    /* Ultra-Clean Background: Very subtle gradient */
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--deep-navy);
    letter-spacing: -0.03em; /* Slightly tighter for a modern feel */
    /* A subtle, multi-layered text shadow for that elevated flair */
    text-shadow: 2px 4px 8px rgba(38, 95, 161, 0.1), 0 1px 2px rgba(14, 42, 71, 0.05);
}

h1 { font-weight: 800; font-size: 3.5rem; }
h2 { font-weight: 800; font-size: 2.8rem; margin-bottom: 1.5rem; line-height: 1.2; }
h3 { font-weight: 800; font-size: 2rem; }
h4 { font-weight: 800; font-size: 1.35rem; }

p { margin-bottom: 1.5rem; font-weight: 300; }

/* Anchor scroll offset so in-page links land below the ~106px sticky nav (offer bar + header) */
section[id] { scroll-margin-top: 120px; }

/* Sticky Navigation Container */
.sticky-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 1100;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Scrolling Offer Bar Styles */
.offer-bar {
    background: var(--accent-gold);
    color: #fff;
    padding: 10px 0;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.offer-ticker {
    display: inline-flex;
    animation: ticker 35s linear infinite;
}

.offer-item {
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.offer-item i {
    color: #fff;
    font-size: 1rem;
}

/* Shrink the offer ticker copy ~20% on mobile so it sits more comfortably */
@media (max-width: 768px) {
    .offer-bar {
        font-size: 0.68rem;
        letter-spacing: 0.7px;
        padding: 8px 0;
    }
    .offer-item { padding: 0 1.75rem; gap: 0.55rem; }
    .offer-item i { font-size: 0.85rem; }
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Subtle Navbar Animation */
@keyframes subtlePan {
    0% { background-position: 0 0, 0 0, 0% 50%; }
    50% { background-position: 0 0, 0 0, 100% 50%; }
    100% { background-position: 0 0, 0 0, 0% 50%; }
}

/* Pause animation on hover for accessibility */
.offer-bar:hover .offer-ticker {
    animation-play-state: paused;
}

/* Header */
header {
    width: 100%;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, var(--trust-blue-dark), var(--trust-blue), var(--trust-blue-dark));
    background-size: 40px 40px, 40px 40px, 200% 200%;
    animation: subtlePan 12s ease-in-out infinite;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Comparison Table Styles */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin-top: 2rem;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.comparison-table th, .comparison-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #edf2f7;
}
.comparison-table th {
    background: #f8fbff;
    color: var(--deep-navy);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.comparison-table td {
    font-size: 1rem;
    color: var(--text-grey);
}
.comparison-table .feature-col {
    font-weight: 600;
    color: var(--deep-navy);
    width: 30%;
}
.comparison-table i.fa-circle-check { color: var(--trust-blue); margin-right: 8px; }
.comparison-table i.fa-circle-xmark { color: #cbd5e0; margin-right: 8px; }

/* Elevated Highlight Column */
.comparison-table .highlight-col {
    background: #eaf4fe; /* Pronounced soft blue */
    font-weight: 700;
    color: var(--trust-blue-dark);
    border-left: 3px solid var(--trust-blue);
    border-right: 3px solid var(--trust-blue);
}
.comparison-table th.highlight-col {
    background: var(--trust-blue);
    color: var(--pure-white);
    font-size: 1.05rem;
    border-top: 3px solid var(--trust-blue);
}
.comparison-table tbody tr:last-child td.highlight-col {
    border-bottom: 3px solid var(--trust-blue);
}

@media (max-width: 768px) {
    /* Re-flow the comparison table into stacked comparison cards on mobile.
       Each <tr> becomes a card with the feature name as the title, and the
       two options shown as labeled rows below using the data-label attribute
       added to non-feature td cells. The AITCOH highlighted column gets the
       blue background treatment so the eye lands on it. */

    .comparison-table {
        display: block;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        font-size: 1rem;
        overflow: visible;
    }
    .comparison-table thead { display: none; }
    .comparison-table tbody { display: block; }
    .comparison-table tr {
        display: block;
        background: #ffffff;
        border: 1px solid rgba(38, 95, 161, 0.12);
        border-radius: 16px;
        margin-bottom: 1rem;
        overflow: hidden;
        box-shadow: 0 6px 18px -10px rgba(38, 95, 161, 0.18);
    }
    .comparison-table tr:last-child { margin-bottom: 0; }

    .comparison-table td {
        display: block;
        width: 100%;
        border: none;
        padding: 0.85rem 1rem;
        text-align: left;
    }

    /* Feature name = card title */
    .comparison-table td.feature-col {
        background: #f4f9ff;
        font-size: 1rem;
        font-weight: 700;
        color: var(--deep-navy);
        letter-spacing: -0.01em;
        border-bottom: 1px solid rgba(38, 95, 161, 0.08);
        padding: 0.85rem 1rem;
    }

    /* Standard Contractors row */
    .comparison-table td:not(.feature-col):not(.highlight-col) {
        font-size: 0.92rem;
        color: var(--text-grey);
        padding: 0.85rem 1rem;
    }

    /* Caption above each option using the data-label attribute */
    .comparison-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-family: 'Montserrat', sans-serif;
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.1px;
        color: rgba(38, 95, 161, 0.55);
        margin-bottom: 0.3rem;
    }

    /* AITCOH highlight cell gets the blue treatment + bold copy */
    .comparison-table td.highlight-col {
        background: #eaf4fe;
        color: var(--trust-blue-dark);
        font-weight: 700;
        font-size: 0.95rem;
        border: none;
        border-top: 1px solid rgba(38, 95, 161, 0.10);
    }
    .comparison-table td.highlight-col[data-label]::before {
        color: var(--trust-blue);
    }
    /* Reset desktop-only border decorations on the highlight cells */
    .comparison-table tr td.highlight-col {
        border-left: none;
        border-right: none;
    }
    .comparison-table tbody tr:last-child td.highlight-col {
        border-bottom: none;
    }

    /* Disable the diagonal sheen sweep on mobile for clarity */
    .comparison-table th.highlight-col::after,
    .comparison-table td.highlight-col::after {
        display: none;
    }
}

/* 3. GLASSMORPHISM UTILITIES - SLEEK VERSION */
.glass-panel {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    padding: 3.5rem; /* More padding for whitespace */
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.glass-panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 60px -10px rgba(38, 95, 161, 0.12);
}

.glass-panel-dark {
    background: var(--glass-bg-dark);
    color: var(--pure-white);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px -10px rgba(14, 42, 71, 0.25);
    padding: 3.5rem;
}

.glass-panel-dark h2, .glass-panel-dark h3, .glass-panel-dark h4 {
    color: var(--pure-white);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); /* Dark panel specific shadow */
}
.glass-panel-dark p { color: rgba(255,255,255,0.9); }

/* 4. LAYOUT COMPONENTS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}


.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0; /* Reduced padding to make navbar less tall */
}

.logo img {
    height: 66px;
    width: auto;
}

.nav-links a {
    color: var(--cream-white);
    text-decoration: none;
    font-weight: 600;
    margin-left: 2.5rem; /* Increased spacing */
    transition: color 0.3s;
    font-size: 0.95rem;
}
.nav-links a:hover { color: var(--pure-white); }

/* Highlight Style for Financing Nav Link */
.nav-links .btn-financing {
    background-color: #fffce8;
    color: #975a16 !important;
    border: 1px solid rgba(214, 158, 46, 0.4);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    margin-left: 1.5rem;
    transition: all 0.2s ease;
}
.nav-links .btn-financing:hover {
    background-color: #fefcbf;
    color: #744210;
    box-shadow: 0 4px 12px rgba(214, 158, 46, 0.15);
    transform: translateY(-1px);
}

/* Ensure nav button keeps white text despite nav-link styles */
.nav-links .btn {
    color: #ffffff;
}
.nav-links .btn:hover {
    color: #ffffff;
}

/* Hero */
.hero {
    text-align: center;
    padding: 6rem 0 3rem; /* Increased top padding */
    position: relative;
    overflow: hidden; 
}

/* Subtle Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px); /* Softer blur */
    z-index: -1;
    opacity: 0.4; /* Reduced opacity */
    animation: float 15s infinite ease-in-out; /* Slower animation */
}
.blob-1 { top: -20%; left: -10%; width: 600px; height: 600px; background: var(--trust-blue-light); }
.blob-2 { bottom: 0%; right: -15%; width: 500px; height: 500px; background: #fffce5; animation-delay: -5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

/* Subtle Wave Graphic */
.wave-graphic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.08; /* Very subtle background presence */
    z-index: -1;
    pointer-events: none;
}

.hero h1 { font-size: 4.2rem; margin-bottom: 1.5rem; line-height: 1.1; color: var(--deep-navy); letter-spacing: -2px; }
.hero p { font-size: 1.25rem; max-width: 700px; margin: 0 auto 2rem; color: var(--text-grey); }
.hero-support-line { font-weight: 600; color: var(--trust-blue); margin-bottom: 0.5rem; display: block; letter-spacing: 0.5px; text-transform: uppercase; font-size: 0.9rem; }
.hero-concrete-line { font-weight: 600; color: var(--deep-navy); margin-bottom: 3rem; display: block; font-size: 1.1rem; }

/* Flow Cue */
.flow-cue {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 0 auto 4rem;
    max-width: 800px;
    flex-wrap: wrap;
}
.flow-step {
    font-weight: 600;
    color: var(--deep-navy);
    opacity: 1;
    font-size: 1rem;
    white-space: nowrap;
    background: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}
.flow-connector {
    flex-grow: 1;
    height: 2px;
    background: #f0f0f0;
    min-width: 30px;
    max-width: 60px;
}

@media (max-width: 600px) {
    .flow-connector { display: none; }
    .flow-cue { flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
}


/* Sections */
.section-spacer { padding: 6rem 0; } /* More vertical space */

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

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

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

/* Lists styled for "Right Fit" */
.check-list, .cross-list { list-style: none; margin-top: 1.5rem; padding-left: 0;}
.check-list li, .cross-list li { margin-bottom: 1rem; padding-left: 2.5rem; position: relative; font-size: 1.05rem; }

.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute; left: 0; top: 4px;
    color: var(--trust-blue);
    font-size: 1.1rem;
}

.cross-list li::before {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute; left: 0; top: 4px;
    color: #a0aec0; /* Soft grey/blue for negative */
    font-size: 1.1rem;
}

/* 5. INTERACTIVE ELEMENTS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700; /* Increased from 600 for better legibility */
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--trust-blue-dark); /* Darker blue for high contrast against light backgrounds */
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(27, 71, 126, 0.15); /* Cleaner, more subtle shadow */
}
.btn-primary:hover {
    background: var(--trust-blue); /* Brighter brand blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(38, 95, 161, 0.25);
}

/* Form */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--deep-navy); font-size: 0.9rem; }
.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}
.form-input:focus {
    outline: none;
    border-color: var(--trust-blue);
    box-shadow: 0 0 0 4px rgba(38, 95, 161, 0.1);
}

.qualifier-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #f0f0f0;
}
.qualifier-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--deep-navy);
    margin-bottom: 1rem;
    display: block;
    letter-spacing: -0.5px;
}
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.radio-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-pill span {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600; /* Slightly bolder */
    color: var(--text-grey);
    cursor: pointer;
    transition: all 0.2s ease;
}
.radio-pill input:checked + span {
    background: var(--trust-blue-dark); /* Matches primary button */
    color: white;
    border-color: var(--trust-blue-dark);
    box-shadow: 0 4px 12px rgba(27, 71, 126, 0.2);
}
.radio-pill span:hover { border-color: var(--trust-blue); color: var(--trust-blue-dark); }

/* Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(14, 42, 71, 0.5); /* Navy tint overlay */
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: all 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-card {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95); transition: transform 0.3s;
}
.modal-overlay.active .modal-card { transform: scale(1); }

/* Footer */
footer {
    background-color: var(--trust-blue-dark);
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--cream-white);
    padding: 4rem 0;
    text-align: center;
    margin-top: 6rem;
}
footer a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s; }
footer a:hover { color: white; }

.process-time {
    display: block;
    font-size: 0.8rem;
    color: var(--trust-blue);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile */
@media (max-width: 900px) {
    .hero h1 { font-size: 3.2rem; letter-spacing: -1px; }
    h2 { font-size: 2.2rem; }
    .nav-links { display: none; } 
    .nav-container { justify-content: center; }
    .glass-panel { padding: 2rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   PREMIUM ANIMATION SYSTEM (added by animation pass)
   --------------------------------------------------------------------------
   Subtle, water-inspired motion overlay for AITCOH landing page.
   Sections:
     A. Hero ambient particle canvas styling
     B. Scroll reveal targets (class is added by JS, not present in HTML)
     C. Liquid glass shine on .glass-panel / .glass-panel-dark
     D. Premium CTA effects (hover lift, soft glow, gentle pulse)
     E. Process section sequential reveal + active-state number glow
     F. Highlighted comparison column soft top-to-bottom sheen
     G. Form micro-interactions (radio pills, focus, submit loading)
     H. prefers-reduced-motion + tab-visibility safeguards
   Tune by adjusting the keyframe durations / transition values below.
   ========================================================================== */

/* --- A. Hero ambient particle canvas --- */
.hero-particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}
/* Keep hero content stacked above the canvas */
.hero .container {
    position: relative;
    z-index: 1;
}

/* --- B. Scroll reveal targets --- */
.reveal-target {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
                transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: opacity, transform;
}
.reveal-target.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- C. Liquid glass shine on glass panels --- */
.glass-panel,
.glass-panel-dark {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.glass-panel::before,
.glass-panel-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 55%;
    height: 100%;
    background: linear-gradient(115deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 35%,
        rgba(255, 255, 255, 0.18) 50%,
        rgba(255, 255, 255, 0) 65%,
        rgba(255, 255, 255, 0) 100%);
    transform: skewX(-18deg);
    pointer-events: none;
    z-index: 2;
    animation: glassShine 13s ease-in-out infinite;
    animation-delay: 3s;
}
.glass-panel-dark::before {
    background: linear-gradient(115deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(218, 235, 249, 0) 35%,
        rgba(218, 235, 249, 0.10) 50%,
        rgba(255, 255, 255, 0) 65%,
        rgba(255, 255, 255, 0) 100%);
}
@keyframes glassShine {
    0%   { left: -75%; opacity: 0; }
    8%   { opacity: 1; }
    55%  { left: 130%; opacity: 1; }
    60%  { opacity: 0; }
    100% { left: 130%; opacity: 0; }
}
/* Disable shine on small screens for performance */
@media (max-width: 768px) {
    .glass-panel::before,
    .glass-panel-dark::before {
        display: none;
    }
}

/* --- D. Premium CTA effects ---
   Pulse is opt-in via .btn-pulse (applied only to the final form submit
   button). All other .btn-primary CTAs keep hover lift + halo without
   pulsing, so multiple primary CTAs no longer compete for attention. */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(38, 95, 161, 0);
    transition: box-shadow 0.5s ease;
    pointer-events: none;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(38, 95, 161, 0.30),
                0 0 0 1px rgba(38, 95, 161, 0.05);
}
.btn-primary:hover::after {
    box-shadow: 0 0 0 6px rgba(38, 95, 161, 0.10);
}

/* Pulse opt-in: applied only to the form submit button via the .btn-pulse class */
.btn-pulse {
    animation: ctaPulse 4.5s ease-in-out infinite;
}
.btn-pulse:hover {
    /* Hover takes over from the pulse for a clean glow */
    animation: none;
}
.btn-pulse.is-loading {
    animation: none;
}
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(27, 71, 126, 0.15); }
    50%      { box-shadow: 0 6px 20px rgba(38, 95, 161, 0.28); }
}

/* --- E. Process section: sequential reveal + active number glow --- */
/* Process cards are reveal-targets via JS; stagger comes from inline transition-delay.
   When a card becomes visible, the big numeral (first child span) gets a soft glow. */
#process .grid-4 > .glass-panel > span:first-child {
    transition: text-shadow 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}
#process .grid-4 > .glass-panel.is-visible > span:first-child {
    text-shadow: 0 6px 24px rgba(38, 95, 161, 0.28);
}
#process .grid-4 > .glass-panel:hover > span:first-child {
    transform: translateY(-2px);
}

/* --- F. Highlighted comparison column soft sheen --- */
.comparison-table th.highlight-col,
.comparison-table td.highlight-col {
    position: relative;
    overflow: hidden;
}
.comparison-table th.highlight-col::after,
.comparison-table td.highlight-col::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(110deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    animation: tableSheen 9s ease-in-out infinite;
}
/* Header cell sweep is more subtle since text is white-on-blue */
.comparison-table th.highlight-col::after {
    background: linear-gradient(110deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.22) 50%,
        rgba(255, 255, 255, 0) 100%);
}
/* Stagger delays create a top-to-bottom flow down the column */
.comparison-table thead .highlight-col::after                  { animation-delay: 0s; }
.comparison-table tbody tr:nth-child(1) .highlight-col::after  { animation-delay: 0.4s; }
.comparison-table tbody tr:nth-child(2) .highlight-col::after  { animation-delay: 0.8s; }
.comparison-table tbody tr:nth-child(3) .highlight-col::after  { animation-delay: 1.2s; }
.comparison-table tbody tr:nth-child(4) .highlight-col::after  { animation-delay: 1.6s; }
.comparison-table tbody tr:nth-child(5) .highlight-col::after  { animation-delay: 2.0s; }
@keyframes tableSheen {
    0%   { left: -120%; }
    55%  { left: 160%; }
    100% { left: 160%; }
}
@media (max-width: 768px) {
    .comparison-table th.highlight-col::after,
    .comparison-table td.highlight-col::after {
        display: none;
    }
}

/* --- G. Form micro-interactions --- */
.radio-pill span {
    transition: background-color 0.25s ease,
                color 0.25s ease,
                border-color 0.25s ease,
                box-shadow 0.25s ease,
                transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.radio-pill input:checked + span {
    transform: translateY(-1px);
    animation: radioSelect 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes radioSelect {
    0%   { transform: scale(0.96) translateY(0); }
    55%  { transform: scale(1.06) translateY(-2px); }
    100% { transform: scale(1) translateY(-1px); }
}
.form-input {
    transition: border-color 0.3s ease,
                box-shadow 0.3s ease,
                transform 0.25s ease;
}
.form-input:focus {
    transform: translateY(-1px);
    box-shadow: 0 0 0 4px rgba(38, 95, 161, 0.10),
                0 8px 24px -8px rgba(38, 95, 161, 0.18);
}
.form-input:hover:not(:focus) {
    border-color: rgba(38, 95, 161, 0.4);
}
/* Submit button loading state, applied by JS on form submit */
.btn-primary.is-loading {
    pointer-events: none;
    opacity: 0.85;
    animation: none;
}
.btn-primary.is-loading::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 0.65rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    vertical-align: -2px;
    animation: btnSpin 0.8s linear infinite;
}
@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* --- H. prefers-reduced-motion safeguards --- */
@media (prefers-reduced-motion: reduce) {
    .hero-particle-canvas { display: none; }
    .glass-panel::before,
    .glass-panel-dark::before,
    .comparison-table th.highlight-col::after,
    .comparison-table td.highlight-col::after { display: none; }
    .btn-pulse { animation: none; }
    .reveal-target {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .radio-pill input:checked + span { animation: none; }
    .btn-primary.is-loading::before { animation: none; }
    /* Pause the legacy infinite animations too */
    .offer-ticker { animation: none; }
    header { animation: none; }
}

/* ==========================================================================
   SERVICE AREA CALLOUT
   Used by the #service-area section. Sits inside .glass-panel-dark so it
   inherits the existing dark glass styling, shine, and reveal animation.
   ========================================================================== */
.service-area-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--trust-blue-light);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 1.25rem;
}
.service-area-eyebrow i { font-size: 1rem; }

.service-area-cities {
    max-width: 820px;
    margin: 2.25rem auto 2.75rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.4px;
    line-height: 2.2;
    color: rgba(255, 253, 245, 0.92);
}
.service-area-cities span { white-space: nowrap; }
.service-area-cities .sep {
    color: var(--trust-blue-light);
    opacity: 0.45;
    margin: 0 0.55rem;
    font-weight: 400;
}

/* Light CTA: high-contrast cream button for use on the dark navy panel */
.btn-cta-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.05rem 2.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    background: var(--cream-white);
    color: var(--deep-navy);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28),
                0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.35s ease;
    border: none;
    cursor: pointer;
}
.btn-cta-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.36),
                0 0 0 1px rgba(255, 255, 255, 0.18);
    color: var(--deep-navy);
}

@media (max-width: 600px) {
    .service-area-cities { font-size: 0.92rem; line-height: 2.1; }
    .service-area-cities .sep { margin: 0 0.35rem; }
}
@media (prefers-reduced-motion: reduce) {
    .btn-cta-light { transition: none; }
}

/* ==========================================================================
   HERO ZIP QUICK-CHECK
   --------------------------------------------------------------------------
   Compact secondary conversion card inside the hero glass panel.
   On submit, scrolls the user to #availability and prefills #quoteZip.
   Uses .btn .btn-primary for the button so it inherits the brand pulse,
   hover lift, and color tokens defined elsewhere.
   ========================================================================== */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* Honeypot field — invisible to humans, present in DOM for naive bots.
   Avoids display:none / visibility:hidden so simple bot detectors are
   less likely to skip it. */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.zip-check {
    max-width: 560px;
    margin: 2.25rem auto 0;
    padding: 1.75rem 1.5rem;
    background: linear-gradient(180deg, rgba(218, 235, 249, 0.75) 0%, rgba(255, 253, 245, 0.55) 100%);
    border: 1px solid rgba(38, 95, 161, 0.18);
    border-radius: 20px;
    box-shadow: 0 10px 28px -14px rgba(38, 95, 161, 0.25);
    text-align: left;
}
.zip-check h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--deep-navy);
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
    text-shadow: none; /* override the global h3 shadow */
    line-height: 1.3;
}
.zip-check > p {
    font-size: 0.92rem;
    color: var(--text-grey);
    line-height: 1.55;
    margin: 0 0 1.25rem;
    font-weight: 400;
}
.zip-check-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: stretch;
}
.zip-check-input {
    flex: 1 1 180px;
    min-width: 0;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid rgba(38, 95, 161, 0.25);
    background: var(--pure-white);
    border-radius: 50px;
    color: var(--deep-navy);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.zip-check-input::placeholder { color: #94a3b8; }
.zip-check-input:focus {
    outline: none;
    border-color: var(--trust-blue);
    box-shadow: 0 0 0 4px rgba(38, 95, 161, 0.14),
                0 6px 18px -8px rgba(38, 95, 161, 0.2);
    transform: translateY(-1px);
}
.zip-check-form .btn-primary {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.9rem 1.6rem;
}
/* Brief flash so users see their ZIP land in the main form after handoff */
.zip-check-prefilled {
    animation: zipPrefillFlash 1.2s ease-out;
}
@keyframes zipPrefillFlash {
    0%   { box-shadow: 0 0 0 0   rgba(38, 95, 161, 0.0); }
    30%  { box-shadow: 0 0 0 6px rgba(38, 95, 161, 0.18); }
    100% { box-shadow: 0 0 0 0   rgba(38, 95, 161, 0.0); }
}

/* Result region — populated after the user submits a ZIP */
.zip-check-result {
    margin-top: 1.1rem;
    padding: 0.95rem 1.1rem;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.55;
    animation: zipResultIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.zip-check-result[hidden] { display: none; }
.zip-check-result strong { font-weight: 800; }
.zip-check-result a {
    color: var(--trust-blue-dark);
    font-weight: 700;
    text-decoration: underline;
}
.zip-check-result a:hover { color: var(--trust-blue); }
.zip-check-result .result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    margin-right: 0.55rem;
    font-size: 0.8rem;
    vertical-align: -7px;
    color: #fff;
    flex-shrink: 0;
}
/* Positive: brand blue */
.zip-check-result.is-positive {
    background: rgba(38, 95, 161, 0.07);
    border: 1px solid rgba(38, 95, 161, 0.25);
    color: var(--deep-navy);
}
.zip-check-result.is-positive .result-icon {
    background: var(--trust-blue);
}
/* Negative: warm gold (informative, not alarming) */
.zip-check-result.is-negative {
    background: rgba(214, 158, 46, 0.10);
    border: 1px solid rgba(214, 158, 46, 0.35);
    color: #744210;
}
.zip-check-result.is-negative .result-icon {
    background: var(--accent-gold);
}
@keyframes zipResultIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .zip-check {
        padding: 1.5rem 1.25rem;
        margin-top: 2rem;
        border-radius: 16px;
    }
    .zip-check-form { flex-direction: column; }
    .zip-check-form .btn-primary { width: 100%; }
    /* Without this override, flex: 1 1 180px gets interpreted as height
       once the form switches to column flow, ballooning the input. */
    .zip-check-input { flex: 0 0 auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .zip-check-input { transition: none; }
    .zip-check-prefilled { animation: none; }
    .zip-check-result { animation: none; }
}

/* ==========================================================================
   PHONE CTAs — desktop nav + mobile sticky bottom bar
   --------------------------------------------------------------------------
   Desktop:  .nav-phone is a quiet pill in the nav, secondary to .btn-financing.
   Mobile:   .mobile-cta-bar is a fixed full-width Call Now bar at the bottom
             of the viewport. Always visible below 768px and respects iPhone
             safe-area insets.
   ========================================================================== */

/* --- Desktop: quiet phone pill in the navbar --- */
.nav-links .nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.15rem;
    /* Inherits .nav-links a margin-left: 2.5rem */
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50px;
    color: var(--cream-white);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.nav-links .nav-phone i { font-size: 0.8rem; opacity: 0.9; }
.nav-links .nav-phone:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--pure-white);
    transform: translateY(-1px);
}
/* Trim a touch of horizontal margin on mid-desktop widths so the row fits */
@media (max-width: 1080px) {
    .nav-links .nav-phone { margin-left: 1.25rem; padding: 0.45rem 0.95rem; }
}

/* --- Mobile sticky bottom CTA bar --- */
.mobile-cta-bar { display: none; }

@media (max-width: 768px) {
    .mobile-cta-bar {
        /* Always visible, anchored to the bottom of the viewport */
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1200; /* above sticky nav (1100), below modals (2000) */
        padding: 0.7rem 0.85rem;
        /* Account for iPhone home indicator / Android gesture bar */
        padding-bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(38, 95, 161, 0.12);
        box-shadow: 0 -8px 24px -8px rgba(38, 95, 161, 0.18);
    }
    /* Single-button layout: span the full bar width, centered */
    .mobile-cta-bar__btn {
        flex: 1 1 100%;
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        padding: 1rem 1rem;
        border-radius: 50px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 1rem;
        letter-spacing: 0.3px;
        text-decoration: none;
        white-space: nowrap;
        transition: transform 0.15s ease, box-shadow 0.2s ease;
    }
    .mobile-cta-bar__btn i { font-size: 1rem; }
    /* Now the dominant single action: filled trust-blue */
    .mobile-cta-bar__btn--call {
        background: var(--trust-blue-dark);
        color: var(--pure-white);
        box-shadow: 0 6px 16px rgba(27, 71, 126, 0.30);
    }
    .mobile-cta-bar__btn--call:hover,
    .mobile-cta-bar__btn--call:focus {
        background: var(--trust-blue);
        color: var(--pure-white);
    }
    .mobile-cta-bar__btn:active { transform: translateY(1px); }

    /* Reserve room at the bottom of the page so the bar never covers the form,
       footer copy, or other content. ~84px bar + iPhone safe-area inset. */
    body {
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }
    /* When the mobile keyboard pushes a focused field upward, the browser
       scrolls it into view. scroll-padding-bottom keeps the field sitting
       comfortably above the fixed Call Now bar instead of behind it. */
    html {
        scroll-padding-bottom: 110px;
    }
}

/* --- Even narrower phones: tighten padding a hair --- */
@media (max-width: 360px) {
    .mobile-cta-bar { padding: 0.6rem 0.65rem; }
    .mobile-cta-bar__btn {
        padding: 0.9rem 0.6rem;
        font-size: 0.95rem;
        letter-spacing: 0.2px;
    }
}

/* ==========================================================================
   MOBILE FORMAT POLISH PASS
   --------------------------------------------------------------------------
   Layered on top of existing 900/768/600/360 breakpoints. Tightens spacing,
   sizes type for thumbs and small viewports, and overrides inline styles
   that previously locked desktop dimensions onto phones.
     - 768px: tablet/phone boundary — section rhythm + container padding tighten
     - 600px: small phones — typography scales, grids stack, touch targets grow
     - 380px: ultra-narrow phones — final headline + padding compaction
   !important is used only to defeat inline style attributes that can't be
   reached otherwise (process cards, name-grid, #availability bottom padding).
   ========================================================================== */

@media (max-width: 768px) {
    /* Section rhythm: cut the giant 6rem vertical padding nearly in half */
    .section-spacer { padding: 3.5rem 0; }

    /* Container hugs the viewport more on phones */
    .container { padding: 0 1.25rem; }

    /* Hero: less air above the headline so it lives above the fold */
    .hero { padding: 3rem 0 2rem; }

    /* Hero typography pacing for phone reading */
    .hero h1 { font-size: 2.6rem; letter-spacing: -0.5px; line-height: 1.12; }
    .hero p { font-size: 1.05rem; }
    .hero-concrete-line { font-size: 0.95rem; margin-bottom: 2rem; }

    /* Override the inline padding-bottom: 8rem on the qualification section
       so the new mobile bar's 80px reserved padding isn't doubled up */
    #availability.section-spacer { padding-bottom: 3rem !important; }

    /* Process cards (inline padding: 2.5rem) lose a touch on mobile */
    #process .grid-4 > .glass-panel { padding: 1.75rem !important; }
    #process .grid-4 > .glass-panel > span:first-child {
        font-size: 2.6rem !important; /* override inline 3.5rem numerals */
    }

    /* FAQ + Senior Savings + similar h2 hairline reduction */
    h2 { font-size: 2rem; line-height: 1.2; }
    h3 { font-size: 1.55rem; }

    /* Footer breathing room reduced */
    footer { padding: 3rem 0; margin-top: 3rem; }
    footer img { height: 100px !important; }
}

@media (max-width: 600px) {
    /* Even tighter container for sub-iPhone-Pro widths */
    .container { padding: 0 1rem; }

    /* Glass panel inner padding compresses (existing 900px rule sets 2rem;
       at 600 we drop to 1.5rem so cards have more usable text width) */
    .glass-panel { padding: 1.75rem 1.5rem; }
    .glass-panel-dark { padding: 1.75rem 1.5rem; }

    /* Hero: final size step for narrow phones */
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; line-height: 1.6; }
    .hero-support-line { font-size: 0.78rem; letter-spacing: 0.4px; }

    /* Stack the inline 1fr 1fr name grid into a single column.
       Targets the inline style attribute since the wrapper has no class. */
    #quoteForm div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Radio pills: meet 44px touch target minimum + a hair more breathing */
    .radio-pill span {
        padding: 0.95rem 1.35rem;
        font-size: 0.95rem;
    }
    .radio-group { gap: 0.65rem; }

    /* Form inputs: bump tap height; keep typography readable */
    .form-input {
        padding: 1rem 1.1rem;
        font-size: 1rem;
    }

    /* Comparison table: a bit more density for narrow viewports */
    .comparison-table th, .comparison-table td {
        padding: 0.85rem 0.6rem;
        font-size: 0.82rem;
    }

    /* Trim the 2.5rem section margins on inline lists/cards a little */
    .qualifier-section { margin-bottom: 2rem; padding-bottom: 2rem; }

    /* Section spacing compresses one more notch */
    .section-spacer { padding: 2.75rem 0; }

    /* Process numerals one more step down */
    #process .grid-4 > .glass-panel > span:first-child {
        font-size: 2.25rem !important;
    }

    /* Service-area city row: shrink and tighten so it doesn't dominate */
    .service-area-cities { font-size: 0.88rem; line-height: 1.95; }

    /* Hero ZIP card padding aligns with the new card padding */
    .zip-check { padding: 1.35rem 1.1rem; }
    .zip-check h3 { font-size: 1.05rem; }
    .zip-check > p { font-size: 0.88rem; }
}

@media (max-width: 380px) {
    /* Ultra-narrow phones (iPhone SE 1st gen, older Androids) */
    .container { padding: 0 0.85rem; }
    .hero h1 { font-size: 2rem; letter-spacing: 0; }
    h2 { font-size: 1.7rem; }
    .glass-panel,
    .glass-panel-dark { padding: 1.5rem 1.15rem; }
    .btn { padding: 0.95rem 1.5rem; font-size: 0.95rem; }
    /* Form qualifier titles smaller so they don't wrap mid-word */
    .qualifier-title { font-size: 1rem; }
}

/* ==========================================================================
   TRUST STRIP — visual proof points below the partner trust bar
   --------------------------------------------------------------------------
   Six icon cards: Licensed GC, Aging-in-Place, Walk-In Showers, Safety
   Packages, Financing, Local Consultation. Single horizontal row on
   desktop, 3 cols on tablet, stacked on mobile (icon-left layout).
   ========================================================================== */

.trust-strip {
    padding: 2.5rem 0 3.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-bottom: 1px solid rgba(38, 95, 161, 0.06);
}
.trust-strip-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.trust-strip-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--cream-white);
    border: 1px solid rgba(38, 95, 161, 0.12);
    border-radius: 16px;
    padding: 1.5rem 0.85rem;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}
.trust-strip-card:hover {
    transform: translateY(-3px);
    border-color: rgba(38, 95, 161, 0.28);
    box-shadow: 0 10px 24px -10px rgba(38, 95, 161, 0.20);
}
.trust-strip-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--trust-blue-light);
    color: var(--trust-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.85rem;
    flex-shrink: 0;
}
.trust-strip-icon img {
    width: 65%;
    height: 65%;
    object-fit: contain;
    display: block;
}
.trust-strip-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--deep-navy);
    line-height: 1.35;
    letter-spacing: -0.1px;
    margin: 0;
}

/* Tablet: 3 columns × 2 rows */
@media (max-width: 1080px) {
    .trust-strip-grid { grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
}
/* Mobile: stacked single column with horizontal icon-left card layout */
@media (max-width: 600px) {
    .trust-strip { padding: 2rem 0 2.5rem; }
    .trust-strip-grid { grid-template-columns: 1fr; gap: 0.65rem; }
    .trust-strip-card {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 1rem 1.15rem;
        gap: 1rem;
    }
    .trust-strip-icon {
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
        margin-bottom: 0;
    }
    .trust-strip-label { font-size: 0.95rem; line-height: 1.3; }
}
@media (prefers-reduced-motion: reduce) {
    .trust-strip-card { transition: none; }
}

/* ==========================================================================
   SERVICE SELECTOR — four-card row that funnels into the qualification form
   --------------------------------------------------------------------------
   Cards reuse .glass-panel for the brand glass look (shine, top gloss,
   reveal animation), then override padding for card-appropriate sizing.
   Each CTA carries data-service so the form's hidden #quoteService input
   can be prefilled before the smooth-scroll anchors to #availability.
   ========================================================================== */

.brand-name { font-style: italic; }

.services-header { margin-bottom: 2.75rem; }
.services-header h2 { margin-bottom: 0.85rem; }
.services-header p {
    max-width: 740px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-grey);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}

/* Card itself — applied alongside .glass-panel; overrides its 3.5rem padding
   and reshapes the layout so media + copy + CTA align cleanly. */
.service-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    text-align: left;
}
.service-card:hover {
    /* Glass-panel already lifts on hover; we only adjust subtleties */
    border-color: rgba(38, 95, 161, 0.18);
}

/* Placeholder media area — replace inner contents with <img> when ready. */
.service-card-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--trust-blue-light); /* fallback while image loads */
    border-radius: 12px;
    margin-bottom: 1.25rem;
    overflow: hidden;
    position: relative;
}
.service-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.service-card:hover .service-card-media img {
    transform: scale(1.03);
}
@media (prefers-reduced-motion: reduce) {
    .service-card-media img,
    .service-card:hover .service-card-media img { transition: none; transform: none; }
}

.service-card-title {
    font-size: 1.25rem;
    margin: 0 0 0.6rem;
    color: var(--deep-navy);
    line-height: 1.25;
    text-shadow: none;
}
.service-card-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-grey);
    margin: 0 0 1.4rem;
    flex-grow: 1; /* push the CTA to the bottom for even card heights */
    font-weight: 400;
}
.service-card-cta {
    align-self: stretch;
    text-align: center;
    padding: 0.9rem 1.1rem;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    animation: none; /* no pulse on these — keep the hero CTA the loudest */
}

/* Tablet: 2 columns × 2 rows */
@media (max-width: 1080px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
/* Mobile: stacked single column */
@media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; gap: 1.15rem; }
    .service-card { padding: 1.25rem; }
    .service-card-title { font-size: 1.15rem; }
    .service-card-desc { font-size: 0.9rem; margin-bottom: 1.15rem; }
    .services-header { margin-bottom: 2rem; }
    .services-header p { font-size: 1rem; }
}

/* ==========================================================================
   CURRENT OFFERS — voucher-strip layout (intentionally NOT another card grid)
   --------------------------------------------------------------------------
   Three offers stack vertically inside one bordered "ticket book" with
   dashed-line dividers between them. Each row pairs a left value badge
   (gold for the discount, soft blue for the others) with a title +
   description on the right. Distinct visual rhythm from the .glass-panel
   grids elsewhere on the page.
   ========================================================================== */

.offers-section {
    /* Soft warm-cream background distinguishes this section from the
       blue/white sections above and below. */
    background: linear-gradient(180deg, #fffaf0 0%, #fffdf5 100%);
}

.offers-header { margin-bottom: 3rem; }
.offers-header h2 { margin-bottom: 0.85rem; }
.offers-header p {
    max-width: 740px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-grey);
}

/* The "ticket book" wrapper — single bordered card holding all three offers */
.offers-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 920px;
    background: var(--cream-white);
    border: 1px solid rgba(38, 95, 161, 0.14);
    border-radius: 20px;
    box-shadow: 0 14px 36px -18px rgba(38, 95, 161, 0.20);
    overflow: hidden;
}

.offer-row {
    display: flex;
    align-items: stretch;
    gap: 1.75rem;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px dashed rgba(38, 95, 161, 0.20);
    background: transparent;
    transition: background 0.3s ease;
}
.offer-row:last-child { border-bottom: none; }
.offer-row:hover { background: rgba(218, 235, 249, 0.28); }

/* Left value badge — like a coupon stub */
.offer-row-badge {
    flex: 0 0 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 0.85rem 0.5rem;
    text-align: center;
    background: var(--trust-blue-light);
    color: var(--trust-blue);
    border: 1.5px solid rgba(38, 95, 161, 0.20);
}
.offer-row-badge-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}
.offer-row-badge-icon {
    font-size: 1.55rem;
    margin-bottom: 0.35rem;
}
.offer-row-badge-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 0.2rem;
    opacity: 0.85;
}

/* Gold variant — only for the headline discount offer */
.offer-row--gold .offer-row-badge {
    background: #fff8e1;
    color: #975a16;
    border-color: rgba(214, 158, 46, 0.45);
}

/* Right body — title + description */
.offer-row-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.offer-row-title {
    font-size: 1.25rem;
    margin: 0 0 0.45rem;
    color: var(--deep-navy);
    line-height: 1.25;
    text-shadow: none;
}
.offer-row-text {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-grey);
    margin: 0;
    font-weight: 400;
}

/* CTA + disclaimer below the ticket book */
.offers-cta-wrapper { margin-top: 2.5rem; }
.offers-cta { padding: 1.05rem 2.75rem; font-size: 1rem; }
.offers-disclaimer {
    margin: 1rem auto 0;
    font-size: 0.78rem;
    color: var(--text-grey);
    opacity: 0.7;
    max-width: 620px;
    line-height: 1.55;
}

/* Mobile: badge sits on top of the body, dividers shrink, padding tightens */
@media (max-width: 600px) {
    .offers-list { border-radius: 16px; }
    .offer-row {
        flex-direction: column;
        gap: 0.85rem;
        padding: 1.25rem;
        align-items: flex-start;
    }
    .offer-row-badge {
        flex: 0 0 auto;
        flex-direction: row;
        gap: 0.55rem;
        padding: 0.45rem 0.85rem;
        align-self: flex-start;
    }
    .offer-row-badge-value { font-size: 1.35rem; }
    .offer-row-badge-icon { font-size: 1.15rem; margin-bottom: 0; }
    .offer-row-badge-label { margin-top: 0; font-size: 0.68rem; }
    .offer-row-title { font-size: 1.1rem; }
    .offer-row-text { font-size: 0.9rem; }
    .offers-header { margin-bottom: 2.25rem; }
    .offers-header p { font-size: 1rem; }
    .offers-cta-wrapper { margin-top: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .offer-row { transition: none; }
}

/* ==========================================================================
   WORKMANSHIP CLARIFICATION — sits below the comparison table, supports
   the "1-Year Workmanship Warranty" row with documented context. Two-column
   editorial layout (text + small certified card) so it reads differently
   from the surrounding card grids.
   ========================================================================== */

.workmanship-section {
    /* Soft blue tint, slightly different from the #advantage section above
       so the eye registers a section change without a hard visual break. */
    background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

.workmanship-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
}

.workmanship-text h2 {
    margin: 0 0 1rem;
    font-size: 2.2rem;
    line-height: 1.2;
}
.workmanship-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-grey);
    margin: 0;
}

/* Supporting "documented" card — feels like a small certificate/seal */
.workmanship-card {
    position: relative;
    background: var(--cream-white);
    border: 1px solid rgba(38, 95, 161, 0.18);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    box-shadow: 0 14px 36px -18px rgba(38, 95, 161, 0.22);
    text-align: left;
}
/* Quiet trust-blue accent stripe along the top, like a document header */
.workmanship-card::before {
    content: '';
    position: absolute;
    top: 0; left: 1.75rem; right: 1.75rem;
    height: 3px;
    background: linear-gradient(90deg,
        rgba(38, 95, 161, 0) 0%,
        rgba(38, 95, 161, 0.55) 50%,
        rgba(38, 95, 161, 0) 100%);
    border-radius: 0 0 3px 3px;
}
.workmanship-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--trust-blue-light);
    color: var(--trust-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.workmanship-card-title {
    font-size: 1.15rem;
    margin: 0 0 0.6rem;
    color: var(--deep-navy);
    line-height: 1.25;
    text-shadow: none;
    letter-spacing: -0.01em;
}
.workmanship-card-text {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-grey);
    margin: 0;
    font-weight: 400;
}

/* Tablet: stacked, but text + card still feel paired */
@media (max-width: 900px) {
    .workmanship-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 640px;
    }
    .workmanship-text h2 { font-size: 1.85rem; }
}
@media (max-width: 600px) {
    .workmanship-text h2 { font-size: 1.6rem; }
    .workmanship-text p { font-size: 0.98rem; line-height: 1.6; }
    .workmanship-card { padding: 1.5rem 1.25rem; }
    .workmanship-card::before { left: 1.25rem; right: 1.25rem; }
}

