/* ==========================================================================
   Mobile San Fernando Car Glass — Homepage styles
   Hero + Intro/Form sections. Class-based, responsive, Bootstrap-friendly.
   ========================================================================== */

:root {
    --msf-navy: #0b2545;
    --msf-navy-deep: #08182f;
    --msf-accent: #f5a623;      /* warm safety-amber accent */
    --msf-accent-dark: #d98a08;
    --msf-blue: #1f7ae0;
    --msf-ink: #1c2733;
    --msf-muted: #5b6b7b;
    --msf-line: #e4e9f0;
    --msf-bg-soft: #f4f7fb;
    --msf-radius: 16px;
    --msf-shadow: 0 18px 45px rgba(11, 37, 69, 0.14);
}

.home-main {
    font-family: "PT Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--msf-ink);
}

/* ==========================================================================
   HEADER — top call bar + navbar, themed navy/amber to match the hero
   ========================================================================== */
body.home_page {
    font-family: "PT Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    overflow-x: hidden;   /* the marquee track is wide but must never scroll the page */
}

/* Main navbar */
.header-section {
    background: var(--msf-navy);
    box-shadow: 0 6px 24px rgba(8, 24, 47, 0.18);
}

.header-section .navbar {
    padding-top: 8px;
    padding-bottom: 8px;
}

.header-section .navbar-brand {
    padding: 0;
}

.header-section .navbar-brand img {
    max-height: 56px;
    width: auto;
    /* logo art is dark-on-transparent; lift it onto the navy bar */
    background: #fff;
    padding: 6px 10px;
    border-radius: 10px;
}

/* Hamburger (mobile) */
.header-section .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 6px 12px;
}

.header-section .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.4);
}

.header-section .navbar-toggler i {
    color: #fff;
    font-size: 1.2rem;
}

/* Nav links */
.header-section .navbar-nav {
    align-items: center;
    gap: 2px;
}

.header-section .nav-link {
    color: #e8f0fa !important;
    font-weight: 600;
    font-size: 0.96rem;
    padding: 9px 14px !important;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
}

.header-section .nav-link:hover,
.header-section .nav-link:focus,
.header-section .nav-item.dropdown:hover > .nav-link {
    color: var(--msf-accent) !important;
    background: rgba(255, 255, 255, 0.06);
}

.header-section .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
}

/* Call Now button inside the navbar */
.header-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-left: 18px;
    padding: 9px 20px;
    border-radius: 999px;
    background: var(--msf-accent);
    color: var(--msf-navy-deep);
    font-weight: 700;
    font-size: 0.96rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(245, 166, 35, 0.32);
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.header-call-btn i {
    font-size: 0.95rem;
}

.header-call-btn:hover {
    background: var(--msf-accent-dark);
    color: #fff;
    transform: translateY(-2px);
}

.header-call-btn__label strong {
    font-weight: 800;
}

/* Compact Call Now shown in the navbar row on mobile (next to logo + burger).
   Hidden on desktop, where the full .header-call-btn pill is used instead. */
.header-call-mobile {
    display: none;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    margin-right: 12px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--msf-accent);
    color: var(--msf-navy-deep);
    font-weight: 800;
    font-size: 0.92rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(245, 166, 35, 0.32);
}

.header-call-mobile i {
    font-size: 0.9rem;
}

/* Dropdown menus */
.header-section .dropdown-menu {
    border: 0;
    border-top: 3px solid var(--msf-accent);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 18px 40px rgba(8, 24, 47, 0.22);
    padding: 8px;
    margin-top: 6px;
}

.header-section .dropdown-item {
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--msf-ink);
    padding: 9px 14px;
    white-space: normal;
}

.header-section .dropdown-item:hover,
.header-section .dropdown-item:focus {
    background: var(--msf-bg-soft);
    color: var(--msf-navy);
}

/* Open dropdowns on hover for desktop */
@media (min-width: 992px) {
    .header-section .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
    }
    .header-section .dropdown-menu {
        min-width: 260px;
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* --------------------------------------------------------------------------
   ANNOUNCEMENT BAR — sits below the navbar, amber, clockwise scrolling marquee
   -------------------------------------------------------------------------- */
.announcement-bar {
    /* Header (fixed-top) is ~72px tall; push the bar just below it. */
    margin-top: 72px;
    background: var(--msf-accent);
    color: var(--msf-navy-deep);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.announcement-bar__track {
    display: inline-flex;
    align-items: center;
    /* Two copies sit side by side; shifting by -50% loops seamlessly. */
    animation: announcement-scroll 26s linear infinite;
    will-change: transform;
}

.announcement-bar:hover .announcement-bar__track {
    animation-play-state: paused;
}

.announcement-bar__item {
    display: inline-block;
    padding: 10px 28px;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

@keyframes announcement-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .announcement-bar__track {
        animation: none;
    }
    .home-hero__bg-orb {
        animation: none;
    }
}

/* Mobile nav panel */
@media (max-width: 991px) {
    .announcement-bar {
        /* Match the mobile header height exactly (56px) so there's no
           white gap between the navbar and the announcement bar. */
        margin-top: 56px;
    }
    .announcement-bar__item {
        font-size: 0.9rem;
        padding: 9px 20px;
    }
    /* Keep logo + Call Now + burger on ONE line. */
    .header-section .container-fluid.pe-5.ps-5 {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .header-section .navbar {
        width: 100%;
    }
    /* Top row: logo (left) — call+number — burger (right), all on one line.
       The collapse panel is forced onto its own full-width row below. */
    .header-section .navbar > .container-fluid {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
    }
    .header-section .navbar-brand {
        flex: 0 0 auto;
        order: 1;
        margin-right: 6px;
    }
    .header-section .navbar-brand img {
        max-height: 44px;
        padding: 4px 7px;
    }
    .header-section .navbar-toggler {
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        order: 3;
        padding: 5px 10px;
    }

    /* Call button keeps the number text next to the icon on mobile. */
    .header-call-mobile {
        display: inline-flex;
        flex: 0 1 auto;
        order: 2;
        min-width: 0;
        margin-left: auto;     /* push call + burger to the right */
        margin-right: 8px;
        padding: 7px 14px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    .header-call-mobile .header-call-mobile__label {
        display: inline;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .header-call-mobile i {
        font-size: 0.92rem;
    }
    .header-call-btn {
        display: none;
    }

    /* Expanded menu drops BELOW the navbar row, full width (never to the side),
       and scrolls so the full Services list is always reachable. */
    .header-section .navbar-collapse {
        order: 4;
        flex: 0 0 100%;
        width: 100%;
        background: var(--msf-navy-deep);
        margin-top: 10px;
        border-radius: 12px;
        padding: 10px;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .header-section .navbar-nav {
        align-items: stretch;
        gap: 2px;
    }
    .header-section .dropdown-menu {
        border-top: 0;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.04);
        margin: 4px 0 4px 8px;
    }
    .header-section .dropdown-item {
        color: #e8f0fa;
    }
    .header-section .dropdown-item:hover,
    .header-section .dropdown-item:focus {
        background: rgba(255, 255, 255, 0.08);
        color: var(--msf-accent);
    }
}

/* ----------------------------------------------------------------------------
   HERO
   ---------------------------------------------------------------------------- */
.home-hero {
    position: relative;
    background:
        linear-gradient(160deg, #040d1c 0%, #0b2545 40%, #0d3262 70%, #071a35 100%);
    color: #fff;
    overflow: hidden;
    padding: 64px 0 100px;
}

/* ── Dot-grid texture overlay ── */
.home-hero__bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.09) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* ── Glowing orbs ── */
.home-hero__bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 2;
}
.home-hero__bg-orb--1 {
    width: 680px; height: 680px;
    top: -220px; right: -120px;
    background: radial-gradient(circle, rgba(245,166,35,0.38) 0%, rgba(245,166,35,0.12) 45%, transparent 70%);
    animation: orb-float 8s ease-in-out infinite;
}
.home-hero__bg-orb--2 {
    width: 520px; height: 520px;
    bottom: -160px; left: -100px;
    background: radial-gradient(circle, rgba(31,122,224,0.34) 0%, rgba(31,122,224,0.08) 50%, transparent 70%);
    animation: orb-float 11s ease-in-out infinite reverse;
}
.home-hero__bg-orb--3 {
    width: 320px; height: 320px;
    top: 30%; left: 34%;
    background: radial-gradient(circle, rgba(245,166,35,0.16) 0%, transparent 70%);
    animation: orb-float 14s ease-in-out infinite;
    filter: blur(55px);
}

@keyframes orb-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-28px) scale(1.06); }
}

/* ── Lines removed ── */
.home-hero__bg-line { display: none; }

/* ── Animated shimmer sweep ── */
.home-hero__bg-shimmer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(
        118deg,
        transparent 20%,
        rgba(255,255,255,0.04) 40%,
        rgba(245,166,35,0.06) 50%,
        rgba(255,255,255,0.04) 60%,
        transparent 80%
    );
    background-size: 200% 100%;
    animation: hero-shimmer 6s ease-in-out infinite;
}

@keyframes hero-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Top-edge amber accent bar ── */
.home-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--msf-accent) 30%, var(--msf-accent) 70%, transparent);
    z-index: 5;
}

/* ── Bottom fade into next section ── */
.home-hero::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(6,16,31,0.35));
    z-index: 2;
    pointer-events: none;
}

.home-hero .container {
    position: relative;
    z-index: 3;
}

.home-hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--msf-accent);
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid rgba(245, 166, 35, 0.35);
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.home-hero__title {
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.12;
    font-weight: 700;
    margin: 0 0 24px;
    letter-spacing: -0.5px;
}

.home-hero__title .accent {
    color: var(--msf-accent);
}

.home-hero__trust {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
}

.home-hero__trust li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.02rem;
    font-weight: 600;
    color: #e8f0fa;
}

.home-hero__trust i {
    color: var(--msf-accent);
    font-size: 1.05rem;
}

.home-hero__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.home-hero__cta-line {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    width: 100%;
    color: #fff;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 30px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.home-btn--accent {
    background: var(--msf-accent);
    color: var(--msf-navy-deep);
    box-shadow: 0 12px 28px rgba(245, 166, 35, 0.35);
}

.home-btn--accent:hover {
    background: var(--msf-accent-dark);
    color: #fff;
    transform: translateY(-2px);
}

.home-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.home-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    transform: translateY(-2px);
}

.home-hero__media {
    position: relative;
}

.home-hero__media img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
    border-radius: var(--msf-radius);
    box-shadow:
        0 0 0 1px rgba(245,166,35,0.30),
        0 0 0 5px rgba(245,166,35,0.08),
        0 28px 64px rgba(6,16,31,0.65);
    display: block;
}

/* Floating badge — sits ON TOP of the image */
.home-hero__badge {
    position: absolute;
    bottom: 22px;
    left: -16px;
    z-index: 10;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--msf-navy);
    border-radius: 16px;
    padding: 14px 20px;
    box-shadow:
        0 8px 32px rgba(6,16,31,0.28),
        0 0 0 1px rgba(245,166,35,0.35);
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 260px;
    animation: badge-float 4s ease-in-out infinite;
}

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

.home-hero__badge i {
    font-size: 1.8rem;
    color: var(--msf-accent);
    flex-shrink: 0;
}

.home-hero__badge strong {
    display: block;
    font-size: 0.97rem;
    font-weight: 800;
    color: var(--msf-navy);
    line-height: 1.2;
}

.home-hero__badge span {
    font-size: 0.78rem;
    color: var(--msf-muted);
    line-height: 1.4;
    display: block;
    margin-top: 2px;
}

/* ----------------------------------------------------------------------------
   INTRO + FORM SECTION
   ---------------------------------------------------------------------------- */
.home-intro {
    background: var(--msf-bg-soft);
    padding: 84px 0;
    border-top: 4px solid var(--msf-accent);
}

.home-intro__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: start;
}

.home-intro__copy h2 {
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    font-weight: 700;
    color: var(--msf-navy);
    line-height: 1.2;
    margin: 0 0 22px;
}

.home-intro__copy p {
    font-size: 1.06rem;
    line-height: 1.75;
    color: var(--msf-muted);
    margin: 0 0 18px;
}

.home-intro__highlights {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.home-intro__highlights li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
    color: var(--msf-ink);
    background: #fff;
    border: 1px solid var(--msf-line);
    border-radius: 12px;
    padding: 14px 16px;
}

.home-intro__highlights i {
    color: var(--msf-accent-dark);
    margin-top: 2px;
}

/* Form card */
.home-form-card {
    background: #fff;
    border-radius: var(--msf-radius);
    box-shadow: var(--msf-shadow);
    padding: 6px;
    border-top: 6px solid var(--msf-accent);
    position: relative;
    top: -90px;          /* lift the card up into the hero seam */
    margin-bottom: -90px;
    overflow: hidden;
}

.home-form-card .login-form {
    padding: 24px 24px 26px;
}

/* --- Form header --- */
.quote-form__head {
    text-align: center;
    margin-bottom: 20px;
}

.quote-form__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--msf-accent-dark);
    background: rgba(245, 166, 35, 0.14);
    border: 1px solid rgba(245, 166, 35, 0.4);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.quote-form__title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--msf-navy);
    margin: 0 0 6px;
}

.quote-form__sub {
    font-size: 0.92rem;
    color: var(--msf-muted);
    margin: 0;
    line-height: 1.5;
}

/* --- Fields --- */
.home-form-card .form-floating > label {
    color: var(--msf-muted);
    font-weight: 600;
}

.home-form-card .form-floating > label i {
    color: var(--msf-accent-dark);
    margin-right: 6px;
}

.home-form-card .form-control {
    border-radius: 11px;
    border: 1.5px solid var(--msf-line);
    background: var(--msf-bg-soft);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.home-form-card .form-control:focus {
    border-color: var(--msf-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.18);
}

/* --- Captcha row --- */
.quote-captcha {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.quote-captcha__img {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 4px;
    background: #ffffff;
    border: 1px solid var(--msf-accent);   /* golden-yellow border */
    border-radius: 11px;
    margin: 0;
}

.quote-captcha__img #verificationimage {
    border-radius: 6px;
    width: 140px;
    height: auto;
    display: block;
}

.quote-captcha .form-control {
    flex: 1 1 auto;
}

/* --- Submit + note --- */
.home-form-card .btn-primary,
.quote-form__submit {
    background: var(--msf-accent) !important;
    color: var(--msf-navy-deep) !important;
    font-weight: 800;
    font-size: 1.02rem;
    border: 0;
    width: 100%;
    box-shadow: 0 12px 26px rgba(245, 166, 35, 0.34);
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.home-form-card .btn-primary:hover,
.quote-form__submit:hover {
    background: var(--msf-accent-dark) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.quote-form__note {
    font-size: 0.78rem;
    color: var(--msf-muted);
    margin: 12px 0 0;
}

.quote-form__note i {
    color: var(--msf-accent-dark);
    margin-right: 5px;
}

/* ==========================================================================
   SHARED SECTION TITLES
   ========================================================================== */
.home-section-title {
    font-size: clamp(1.65rem, 2.6vw, 2.2rem);
    font-weight: 800;
    color: var(--msf-navy);
    line-height: 1.18;
    margin: 0 0 16px;
}

.home-section-lead {
    font-size: 1.06rem;
    line-height: 1.75;
    color: var(--msf-muted);
    max-width: 820px;
    margin: 0;
}

/* ==========================================================================
   SECTION 3 — WHY MISSION HILLS DRIVERS CALL US
   ========================================================================== */
.home-why {
    background: var(--msf-navy);
    padding: 84px 0;
    position: relative;
    overflow: hidden;
}

.home-why::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 8% 20%, rgba(245, 166, 35, 0.14), transparent 40%),
        radial-gradient(circle at 92% 80%, rgba(31, 122, 224, 0.12), transparent 40%);
    pointer-events: none;
}

.home-why .container {
    position: relative;
    z-index: 1;
}

.home-why__intro {
    text-align: center;
    margin-bottom: 52px;
}

.home-why__intro .home-section-title {
    color: #fff;
}

.home-why__intro .home-section-lead {
    color: rgba(232, 240, 250, 0.82);
    margin: 0 auto;
}

/* 5 cards in 3 cols: first row fills all 3, second row has 2 cards centered.
   Use grid with explicit column placement for the last two cards. */
.home-why__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

/* Row 1: cards 1-2-3 each span 2 of 6 columns → fills the row evenly */
.home-why__grid .home-why__card:nth-child(1),
.home-why__grid .home-why__card:nth-child(2),
.home-why__grid .home-why__card:nth-child(3) {
    grid-column: span 2;
}

/* Row 2: cards 4-5 each span 2 cols, starting at col 2 and 4 → centered */
.home-why__grid .home-why__card:nth-child(4) {
    grid-column: 2 / span 2;
}

.home-why__grid .home-why__card:nth-child(5) {
    grid-column: 4 / span 2;
}

.home-why__card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--msf-radius);
    padding: 32px 28px;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.home-why__card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--msf-accent);
    transform: translateY(-4px);
}

.home-why__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--msf-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.home-why__icon i {
    font-size: 1.3rem;
    color: var(--msf-navy-deep);
}

.home-why__card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.3;
}

.home-why__card p {
    font-size: 0.97rem;
    line-height: 1.7;
    color: rgba(232, 240, 250, 0.75);
    margin: 0;
}

/* ==========================================================================
   SECTION 4 — AUTO GLASS SERVICES
   ========================================================================== */
.home-services {
    background: var(--msf-bg-soft);
    padding: 84px 0;
}

.home-services__intro {
    text-align: center;
    margin-bottom: 52px;
}

.home-services__intro .home-section-lead {
    margin: 0 auto;
}

.home-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.home-svc__card {
    background: #fff;
    border-radius: var(--msf-radius);
    box-shadow: 0 6px 24px rgba(11, 37, 69, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-svc__card:hover {
    box-shadow: var(--msf-shadow);
    transform: translateY(-4px);
}

.home-svc__img-wrap {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    flex-shrink: 0;
}

.home-svc__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    transition: transform 0.4s ease;
}

.home-svc__card:hover .home-svc__img-wrap img {
    transform: scale(1.04);
}

.home-svc__body {
    padding: 24px 22px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-svc__body h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--msf-navy);
    margin: 0 0 10px;
    line-height: 1.25;
}

.home-svc__body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.home-svc__body h3 a:hover {
    color: var(--msf-accent-dark);
}

.home-svc__body > p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--msf-muted);
    margin: 0 0 14px;
}

.home-svc__label {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--msf-accent-dark);
    margin: 0 0 8px !important;
    padding-top: 4px;
    border-top: 1px solid var(--msf-line);
}

.home-svc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-svc__list li {
    font-size: 0.92rem;
    color: var(--msf-ink);
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.home-svc__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--msf-accent);
}

/* ----------------------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .home-hero {
        padding: 48px 0 70px;
    }
    .home-hero__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    /* On mobile, show the image ABOVE the text content. */
    .home-hero__media {
        order: -1;
        max-width: 100%;
        margin: 0 auto;
    }
    .home-hero__content {
        order: 0;
    }
    .home-hero__media img {
        max-height: 320px;
        width: 100%;
        object-fit: cover;
    }
    .home-hero__badge {
        left: 8px;
        max-width: 220px;
        padding: 11px 14px;
        animation: none;
    }
    .home-intro__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .home-form-card {
        top: 0;
        margin-bottom: 0;
    }

    /* Section 3 — Why drivers choose us: 2 cols on tablet */
    .home-why {
        padding: 60px 0;
    }
    /* Tablet: 2 cols — each card spans 3 of 6 grid cols */
    .home-why__grid .home-why__card:nth-child(1),
    .home-why__grid .home-why__card:nth-child(2),
    .home-why__grid .home-why__card:nth-child(3),
    .home-why__grid .home-why__card:nth-child(4),
    .home-why__grid .home-why__card:nth-child(5) {
        grid-column: span 3;
    }

    /* Section 4 — Services: 2 cols on tablet */
    .home-services {
        padding: 60px 0;
    }
    .home-services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .header-section .navbar-brand img {
        max-height: 40px;
    }

    /* Phone: 1 col — every card spans full 6 cols */
    .home-why {
        padding: 48px 0;
    }
    .home-why__grid .home-why__card:nth-child(1),
    .home-why__grid .home-why__card:nth-child(2),
    .home-why__grid .home-why__card:nth-child(3),
    .home-why__grid .home-why__card:nth-child(4),
    .home-why__grid .home-why__card:nth-child(5) {
        grid-column: span 6;
    }

    /* Section 4 — Services: 1 col on phone */
    .home-services {
        padding: 48px 0;
    }
    .home-services__grid {
        grid-template-columns: 1fr;
    }

    .home-hero {
        padding: 44px 0 56px;
    }
    .home-hero__trust li {
        font-size: 0.95rem;
    }
    .home-btn {
        width: 100%;
        justify-content: center;
    }
    .home-intro__highlights {
        grid-template-columns: 1fr;
    }
    .home-hero__badge {
        position: static;
        margin-top: 16px;
        max-width: none;
    }
}

/* ==========================================================================
   SECTION 5 — PROFESSIONAL STANDARDS
   ========================================================================== */
.home-standards {
    background: #fff;
    padding: 84px 0;
}

.home-standards__intro {
    text-align: center;
    margin-bottom: 52px;
}

.home-standards__intro .home-section-lead {
    margin: 0 auto;
}

.home-standards__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.home-standards__card {
    background: var(--msf-bg-soft);
    border-radius: var(--msf-radius);
    border: 1px solid var(--msf-line);
    padding: 32px 26px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-standards__card:hover {
    box-shadow: var(--msf-shadow);
    transform: translateY(-4px);
}

.home-standards__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--msf-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.home-standards__icon i {
    font-size: 1.3rem;
    color: var(--msf-accent);
}

.home-standards__card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--msf-navy);
    margin: 0 0 10px;
    line-height: 1.3;
}

.home-standards__card p {
    font-size: 0.96rem;
    line-height: 1.7;
    color: var(--msf-muted);
    margin: 0;
}

/* ==========================================================================
   SECTION 6 — SCHEDULE CTA BAND
   ========================================================================== */
.home-cta {
    background: var(--msf-navy);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.home-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 5% 50%, rgba(245, 166, 35, 0.18), transparent 40%),
        radial-gradient(circle at 95% 50%, rgba(31, 122, 224, 0.14), transparent 40%);
    pointer-events: none;
}

.home-cta__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.home-cta__title {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.18;
}

.home-cta__lead {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(232, 240, 250, 0.82);
    margin: 0 0 28px;
}

.home-cta__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 36px;
    margin-bottom: 24px;
}

.home-cta__meta-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1.02rem;
    font-weight: 600;
    color: #e8f0fa;
}

.home-cta__meta-item i {
    color: var(--msf-accent);
}

.home-cta__sub {
    font-size: 1rem;
    color: rgba(232, 240, 250, 0.72);
    margin: 0 0 28px;
}

.home-cta__btn {
    font-size: 1.12rem;
    padding: 16px 40px;
}

/* ==========================================================================
   SECTION 7 — VERIFIED REVIEWS
   ========================================================================== */
.home-reviews {
    background: var(--msf-bg-soft);
    padding: 84px 0;
}

.home-reviews__intro {
    text-align: center;
    margin-bottom: 52px;
}

.home-reviews__intro .home-section-lead {
    margin: 0 auto;
}

.home-reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.home-review__card {
    background: #fff;
    border-radius: var(--msf-radius);
    box-shadow: 0 6px 24px rgba(11, 37, 69, 0.08);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-review__card:hover {
    box-shadow: var(--msf-shadow);
    transform: translateY(-4px);
}

.home-review__stars {
    display: flex;
    gap: 4px;
}

.home-review__stars i {
    color: var(--msf-accent);
    font-size: 1.1rem;
}

.home-review__text {
    font-size: 1rem;
    line-height: 1.72;
    color: var(--msf-ink);
    margin: 0;
    font-style: italic;
    flex: 1;
    border-left: 3px solid var(--msf-accent);
    padding-left: 14px;
}

.home-review__author {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-review__name {
    font-weight: 800;
    font-size: 0.97rem;
    color: var(--msf-navy);
}

.home-review__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #4285f4;
    text-decoration: none;
    background: rgba(66, 133, 244, 0.08);
    border: 1px solid rgba(66, 133, 244, 0.25);
    padding: 5px 12px;
    border-radius: 999px;
    width: fit-content;
}

.home-review__badge:hover {
    background: rgba(66, 133, 244, 0.15);
    color: #4285f4;
}

/* ==========================================================================
   SECTION 8 — AREAS WE SERVE
   ========================================================================== */
.home-areas {
    background: #fff;
    padding: 84px 0;
}

.home-areas .home-section-title {
    margin-bottom: 40px;
}

.home-areas__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.home-areas__list li a {
    display: block;
    text-align: center;
    padding: 14px 12px;
    border-radius: 12px;
    background: var(--msf-bg-soft);
    border: 1px solid var(--msf-line);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--msf-navy);
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.home-areas__list li a:hover {
    background: var(--msf-navy);
    border-color: var(--msf-navy);
    color: var(--msf-accent);
    transform: translateY(-2px);
}

/* ==========================================================================
   SECTION 9 — FAQs (Bootstrap accordion, centered)
   ========================================================================== */
.home-faqs {
    background: var(--msf-bg-soft);
    padding: 84px 0;
}

.home-faqs__intro {
    text-align: center;
    margin-bottom: 48px;
}

.home-faqs__list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: var(--msf-radius);
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(11, 37, 69, 0.09);
}

/* Override Bootstrap accordion defaults */
.home-faqs__list.accordion .accordion-item {
    border: 0;
    border-bottom: 1px solid var(--msf-line);
    border-left: 4px solid transparent;
    background: #fff;
    transition: border-color 0.2s ease;
}

.home-faqs__list.accordion .accordion-item:last-child {
    border-bottom: 0;
}

.home-faqs__list.accordion .accordion-item:has(.accordion-button:not(.collapsed)) {
    border-left-color: var(--msf-accent);
}

.home-faq__q.accordion-header {
    margin: 0;
}

.home-faqs__list .accordion-button {
    font-size: 1.04rem;
    font-weight: 700;
    color: var(--msf-navy);
    background: #fff;
    padding: 22px 28px;
    box-shadow: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.home-faqs__list .accordion-button::after {
    display: none; /* hide Bootstrap's default caret; using FA icon */
}

.home-faq__icon {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--msf-accent-dark);
    transition: transform 0.25s ease;
}

.home-faqs__list .accordion-button:not(.collapsed) {
    color: var(--msf-navy);
    background: rgba(245, 166, 35, 0.06);
    box-shadow: none;
}

.home-faqs__list .accordion-button:not(.collapsed) .home-faq__icon {
    transform: rotate(180deg);
}

.home-faqs__list .accordion-button:focus {
    box-shadow: none;
    outline: 2px solid var(--msf-accent);
    outline-offset: -2px;
}

.home-faq__a.accordion-body {
    font-size: 0.97rem;
    line-height: 1.78;
    color: var(--msf-muted);
    padding: 0 28px 22px 28px;
    background: rgba(245, 166, 35, 0.04);
}

/* ==========================================================================
   SECTION 10 — MAP + WEATHER (full-width, no container)
   ========================================================================== */
.home-local {
    background: #fff;
    border-top: 4px solid var(--msf-accent);
}

/* Label bar above the split */
.home-local__label-bar {
    background: var(--msf-navy-deep);
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.home-local__labels {
    display: flex;
    align-items: center;
    gap: 0;
}

.home-local__label-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--msf-accent);
    padding: 0 32px 0 0;
}

.home-local__label-item i { font-size: 0.95rem; }

.home-local__label-divider {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,0.2);
    margin-right: 32px;
    flex-shrink: 0;
}

/* Full-width stacked: map on top, weather below */
.home-local__split {
    display: flex;
    flex-direction: column;
}

.home-local__map {
    position: relative;
}

.home-local__map iframe {
    width: 100%;
    height: 480px;
    border: 0;
    display: block;
    filter: grayscale(15%) contrast(1.05);
}

/* Weather panel — sits below the map, clearly separated */
.home-local__weather {
    background: var(--msf-bg-soft);
    border-top: 4px solid var(--msf-accent);
}

.home-local__weather-label {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--msf-navy);
    color: var(--msf-accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.home-local__weather-label i { font-size: 1rem; }

.home-local__weather-widget {
    padding: 0;
    background: #fff;
}

.home-local__weather .weatherwidget-io {
    display: block;
    width: 100%;
}

/* ==========================================================================
   RESPONSIVE — new sections
   ========================================================================== */
@media (max-width: 991px) {
    .home-standards { padding: 60px 0; }
    .home-standards__grid { grid-template-columns: repeat(2, 1fr); }

    .home-cta { padding: 60px 0; }

    .home-reviews { padding: 60px 0; }
    .home-reviews__grid { grid-template-columns: 1fr; }

    .home-areas { padding: 60px 0; }
    .home-areas__list { grid-template-columns: repeat(3, 1fr); }

    .home-faqs { padding: 60px 0; }

    .home-local__map iframe { height: 340px; }
}

@media (max-width: 575px) {
    .home-standards { padding: 48px 0; }
    .home-standards__grid { grid-template-columns: 1fr; }

    .home-cta { padding: 48px 0; }
    .home-cta__btn { width: 100%; justify-content: center; }

    .home-reviews { padding: 48px 0; }

    .home-areas { padding: 48px 0; }
    .home-areas__list { grid-template-columns: repeat(2, 1fr); }

    .home-faqs { padding: 48px 0; }
    .home-faq__item { padding: 22px 20px; }

    .home-local__map iframe { height: 260px; }
    .home-local__label-item { font-size: 0.74rem; padding-right: 16px; }
    .home-local__label-divider { margin-right: 16px; }
}
