/**********  Mobile Auto Glass LA — location (service-area) page stylesheet
    Location-page-only rules. Loaded IN ADDITION to homepage.css, which
    still owns every shared token (--brand-*, --hp-*), the hero shell, the
    quote form card, the dark process band, the CTA band, the review cards
    and the map/weather block.

    Location pages carry NO hero image: the hero is copy + checklist + CTA
    paired with the quote form, so the layout rules below replace the
    homepage's image column.
***********************************************************/

/* ===== Hero (reuses .hp-hero, no image column) ===== */
.loc-hero {
    padding: 176px 0 134px;
}

.loc-hero .hp-hero-copy h1 {
    margin-bottom: 18px;
}

/* checklist sits above the CTA on location docs, so the spacing flips */
.loc-hero .hp-feature-list {
    margin-bottom: 32px;
}

.loc-hero .hp-cta-phone {
    margin-bottom: 0;
}

/* the quote card rides the hero on desktop; homepage.css already gives
   .hp-form-card its glass treatment, this only handles the placement */
.loc-hero-form {
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .loc-hero-form .hp-form-wrap {
        position: sticky;
        top: 118px;
    }
}

@media (max-width: 991.98px) {
    .loc-hero {
        padding: 148px 0 108px;
    }

    .loc-hero .hp-feature-list {
        margin-bottom: 26px;
    }
}

@media (max-width: 767.98px) {
    .loc-hero {
        padding: 128px 0 84px;
    }

    .loc-hero .hp-feature-list {
        grid-template-columns: 1fr;
    }
}

/* ===== Intro band (paragraphs that overflow the hero) ===== */
.loc-intro {
    position: relative;
    overflow-x: clip;
    padding: 72px 0 20px;
    background:
        radial-gradient(48% 44% at 4% 8%, rgba(0, 48, 95, .06), transparent 62%),
        #fff;
}

.loc-intro-lead {
    font-family: var(--font-ui);
    color: var(--brand-navy-dk);
    font-size: 1.1rem;
    line-height: 1.9;
    letter-spacing: .003em;
    margin: 0 auto;
    max-width: 88ch;
    text-align: center;
}

.loc-intro-lead + .loc-intro-lead {
    margin-top: 18px;
}

/* ===== Generic location section shell ===== */
.loc-section {
    position: relative;
    overflow-x: clip;
    padding: 84px 0 92px;
}

.loc-section--white {
    background:
        radial-gradient(48% 40% at 4% 4%, rgba(0, 48, 95, .06), transparent 62%),
        #fff;
}

.loc-section--light {
    background:
        radial-gradient(52% 46% at 88% 2%, rgba(214, 17, 27, .07), transparent 62%),
        radial-gradient(46% 40% at 6% 96%, rgba(0, 48, 95, .08), transparent 60%),
        var(--hp-light);
}

.loc-section--dark {
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(100% 80% at 50% 0%, #0d2a4d 0%, transparent 60%),
        linear-gradient(170deg, var(--brand-navy-dk) 0%, var(--brand-night) 100%);
}

.loc-section-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.loc-section-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: radial-gradient(90% 70% at 50% 40%, #000 15%, transparent 74%);
    -webkit-mask-image: radial-gradient(90% 70% at 50% 40%, #000 15%, transparent 74%);
}

.loc-orb-a {
    width: 560px;
    height: 560px;
    top: -240px;
    right: -150px;
    background: radial-gradient(circle, rgba(214, 17, 27, .38), transparent 68%);
}

/* headings + prose inside a location section */
.loc-section h2 {
    font-family: var(--font-display);
    color: var(--brand-navy-dk);
    font-weight: 600;
    font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem);
    line-height: 1.24;
    letter-spacing: -.004em;
    margin-bottom: 18px;
    text-wrap: balance;
}

.loc-section--dark h2 {
    color: #fff;
}

/* defensive: keep the quote-form heading white if a .hp-form-card is ever
   nested inside a .loc-section (the section's own h2 color would otherwise
   win the specificity tie by source order) */
.loc-section .hp-form-card h2 {
    color: #fff;
}

.loc-section p.hp-intro-copy,
.loc-copy {
    font-family: var(--font-ui);
    color: var(--hp-body);
    font-size: 1.02rem;
    line-height: 1.9;
    letter-spacing: .003em;
    margin-bottom: 0;
    max-width: 72ch;
}

.loc-section .hp-head-center p.hp-intro-copy,
.loc-section .hp-head-center .loc-copy {
    max-width: 72ch;
    margin-left: auto;
    margin-right: auto;
}

.loc-section--dark .loc-copy,
.loc-section--dark p.hp-intro-copy {
    color: #c3d3e6;
}

/* sub-heading used for h3-level topics grouped under one loc-section h2 */
.loc-subhead {
    font-family: var(--font-display);
    color: var(--brand-navy-dk);
    font-weight: 600;
    font-size: 1.32rem;
    margin: 40px 0 14px;
}

.loc-subhead:first-child {
    margin-top: 0;
}

/* Blog pages show a "Contact Information" block of their own right before the
   shared footer, which repeats Name/Website/Hours/Phone/Address. The address
   line there is redundant with the site footer's address (which must stay
   visible), so only THIS in-page copy is hidden — never the footer's. */
body.blog-page .blog-address {
    display: none !important;
}

/* Inline content links (in-copy cross-links, Contact Information links) —
   themed to match brand colors instead of the browser/template default link color.
   font-size is set explicitly (not just inherited) because a leftover legacy rule in
   style.css (`@media (min-width:1200px) and (max-width:1500px) { a { font-size: 12px } }`)
   otherwise wins the cascade for the font-size property and shrinks these links well
   below the surrounding paragraph text at that viewport range. No border-bottom/underline
   here by design — color + weight alone signal the link. */
.loc-copy a,
.text-style {
    color: var(--brand-red);
    font-weight: 600;
    font-size: inherit;
    text-decoration: none;
    transition: color .25s ease;
}

.loc-copy a:hover,
.loc-copy a:focus,
.text-style:hover,
.text-style:focus {
    color: var(--brand-orange);
}

/* Inline links on the closing CTA band's dark background — brand-red reads too
   muddy against the navy/night background, so this uses brand-orange instead,
   with a white hover state for contrast. (The hero's own .hp-lead link color is
   owned by homepage.css's more specific `.hp-hero p.hp-lead a` — not duplicated
   here, to avoid two rules drifting out of sync.) */
.hp-cta-band .hp-cta-copy a {
    color: var(--brand-orange);
    font-weight: 600;
    font-size: inherit;
    text-decoration: none;
    transition: color .25s ease;
}

.hp-cta-band .hp-cta-copy a:hover,
.hp-cta-band .hp-cta-copy a:focus {
    color: #fff;
}

.loc-contact-strip a {
    font-size: inherit;
}

.loc-svc-card p a {
    color: var(--brand-red);
    font-weight: 600;
    font-size: inherit;
    text-decoration: none;
}

.loc-svc-card p a:hover,
.loc-svc-card p a:focus {
    color: var(--brand-orange);
}

/* trailing paragraph that follows a list */
.loc-note {
    margin-top: 30px;
    margin-bottom: 0;
}

.loc-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Label line above a list ===== */
.loc-list-label {
    font-family: var(--font-ui);
    color: var(--brand-navy-dk);
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: .012em;
    margin: 30px 0 18px;
}

.loc-section--dark .loc-list-label {
    color: #fff;
}

/* a plain lead-in line the doc sets as a label, not a heading */
.loc-group-label {
    display: block;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 1.08rem;
    letter-spacing: .014em;
    color: var(--brand-navy-dk);
    margin: 42px 0 0;
    padding-left: 16px;
    border-left: 4px solid var(--brand-red);
    line-height: 1.4;
}

.loc-group-label:first-of-type {
    margin-top: 34px;
}

/* ===== Check chips (bullet lists) ===== */
.loc-check-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
    gap: 14px;
}

/* ===== Hours panel — one cohesive centered card holding the whole Business
   Hours section (intro + time + days + note), instead of loose paragraphs
   sitting above/below a small unrelated-looking pill ===== */
.loc-hours-panel {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 36px 34px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 20px;
    box-shadow: var(--hp-shadow-md);
}

.loc-hours-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 10px 24px rgba(214, 17, 27, .28);
}

.loc-hours-intro {
    font-family: var(--font-ui);
    color: var(--hp-body);
    font-size: .98rem;
    line-height: 1.7;
    margin: 0 0 18px;
}

.loc-hours-time {
    font-family: var(--font-display);
    color: var(--brand-navy-dk);
    font-weight: 600;
    font-size: 2rem;
    line-height: 1.15;
    margin: 0 0 8px;
}

.loc-hours-days {
    display: inline-block;
    font-family: var(--font-ui);
    color: var(--brand-red);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    background: rgba(214, 17, 27, .07);
    border-radius: 30px;
    padding: 6px 18px;
    margin-bottom: 22px;
}

.loc-hours-note {
    font-family: var(--font-ui);
    color: var(--hp-body);
    font-size: .88rem;
    line-height: 1.6;
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--hp-line);
}

@media (max-width: 480px) {
    .loc-hours-panel {
        padding: 32px 22px 28px;
    }

    .loc-hours-time {
        font-size: 1.6rem;
    }
}

.loc-check-grid li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-ui);
    color: var(--brand-navy-dk);
    font-size: .97rem;
    line-height: 1.55;
    letter-spacing: .003em;
    padding: 15px 18px 15px 20px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--hp-line);
    box-shadow: var(--hp-shadow-sm);
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.loc-check-grid li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--brand-red), var(--brand-orange));
}

.loc-check-grid li:hover {
    transform: translateY(-3px);
    border-color: rgba(252, 122, 0, .5);
    box-shadow: var(--hp-shadow-md);
}

.loc-check-grid li i {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* ===== Service H3 cards ===== */
.loc-svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

@media (min-width: 992px) {
    .loc-svc-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.loc-svc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 18px;
    padding: 30px 28px 26px;
    box-shadow: var(--hp-shadow-sm);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.loc-svc-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-orange));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}

.loc-svc-card:hover {
    transform: translateY(-6px);
    border-color: rgba(214, 17, 27, .28);
    box-shadow: var(--hp-shadow-md);
}

.loc-svc-card:hover::before {
    transform: scaleX(1);
}

.loc-svc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 1.15rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
    box-shadow: 0 10px 24px rgba(214, 17, 27, .28);
}

.loc-svc-card h3 {
    font-family: var(--font-ui);
    color: var(--brand-navy-dk);
    font-weight: 600;
    font-size: 1.14rem;
    line-height: 1.35;
    letter-spacing: -.002em;
    margin-bottom: 12px;
}

.loc-svc-card p {
    font-family: var(--font-ui);
    color: var(--hp-body);
    font-size: .99rem;
    line-height: 1.85;
    letter-spacing: .003em;
    margin-bottom: 0;
}

.loc-svc-card p + p {
    margin-top: 12px;
}

/* per-card CTA, pinned to the bottom so a 1-line and a 2-line card align */
.loc-svc-link {
    margin-top: auto;
    padding-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.45;
    color: var(--brand-red);
    text-decoration: none;
    transition: color .25s ease, gap .25s ease;
}

.loc-svc-link i {
    font-size: .8rem;
    transition: transform .25s ease;
}

.loc-svc-link:hover,
.loc-svc-link:focus {
    color: var(--brand-red-dk);
    gap: 13px;
}

.loc-svc-link:hover i {
    transform: translateX(3px);
}

/* ===== Process steps (reuses .hp-steps / .hp-step-list) ===== */
.loc-step-list .hp-step p + p {
    margin-top: 10px;
}

/* ===== Areas we serve — the whole block reads centered, matching the
   centered section head above it ===== */
.loc-areas .loc-group-label {
    text-align: center;
    border-left: 0;
    padding-left: 0;
    margin-left: auto;
    margin-right: auto;
}

.loc-areas .loc-group-label::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    margin: 10px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-orange));
}

.loc-areas .loc-list-label {
    text-align: center;
}

.loc-areas .loc-note {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.loc-area-grid {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}

.loc-areas .loc-area-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 230px));
    justify-content: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.loc-area-grid li {
    display: flex;
}

.loc-area-grid a,
.loc-area-grid span {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    font-family: var(--font-ui);
    font-size: .92rem;
    line-height: 1.5;
    color: var(--brand-navy-dk);
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 10px;
    padding: 12px 16px;
    transition: border-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.loc-area-grid a::before,
.loc-area-grid span::before {
    content: "\f3c5";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: .8rem;
    color: var(--brand-red);
    flex: 0 0 auto;
}

.loc-area-grid a:hover,
.loc-area-grid a:focus {
    color: var(--brand-red);
    border-color: rgba(214, 17, 27, .35);
    transform: translateY(-2px);
    box-shadow: var(--hp-shadow-sm);
}

/* ===== Schedule CTA band extras ===== */
.loc-contact-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.loc-contact-strip li {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-family: var(--font-ui);
    font-size: .95rem;
    line-height: 1.5;
    color: #e7eef7;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 60px;
    padding: 11px 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    max-width: 100%;
}

.loc-contact-strip li i {
    color: var(--brand-gold);
    font-size: .9rem;
}

.loc-contact-strip a,
.loc-contact-strip li span {
    overflow-wrap: anywhere;
}

/* vertical variant — a narrower column (e.g. beside a form) reads better as
   a stacked list of full-width rows than a centered wrapping pill cluster */
.loc-contact-strip--stacked {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
}

.loc-contact-strip--stacked li {
    width: 100%;
    justify-content: flex-start;
    border-radius: 14px;
}

.loc-contact-strip a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: color .25s ease;
}

.loc-contact-strip a:hover,
.loc-contact-strip a:focus {
    color: var(--brand-gold);
}

.loc-contact-strip .loc-contact-label {
    color: #b9cade;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .74rem;
}

.loc-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    background: linear-gradient(120deg, var(--brand-red) 0%, #ef2f14 55%, var(--brand-orange) 130%);
    color: #fff !important;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.4;
    letter-spacing: .004em;
    padding: 13px 32px 13px 14px;
    border-radius: 60px;
    text-decoration: none;
    box-shadow: 0 16px 38px rgba(214, 17, 27, .48);
    transition: transform .28s ease, box-shadow .28s ease, filter .28s ease;
}

.loc-cta-btn:hover,
.loc-cta-btn:focus {
    transform: translateY(-3px);
    filter: brightness(1.08);
    box-shadow: 0 22px 50px rgba(252, 122, 0, .55);
    color: #fff !important;
}

.loc-cta-btn i {
    transition: transform .25s ease;
}

.loc-cta-btn:hover i {
    transform: translateX(3px);
}

/* ===== Map + weather block (reuses .hp-locate) ===== */
.loc-locate {
    padding-top: 88px;
}

/* the doc ships the iframe at 600x450 — override so it fills the frame */
.loc-locate .hp-map-frame iframe {
    width: 100%;
    height: 480px;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .loc-section {
        padding: 66px 0 72px;
    }

    .loc-intro {
        padding: 58px 0 14px;
    }

    .loc-intro-lead {
        font-size: 1.05rem;
    }

    .loc-locate {
        padding-top: 66px;
    }

    .loc-locate .hp-map-frame iframe {
        height: 380px;
    }
}

@media (max-width: 767.98px) {
    .loc-section {
        padding: 56px 0 62px;
    }

    .loc-intro {
        padding: 48px 0 10px;
    }

    .loc-svc-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .loc-svc-card {
        padding: 26px 22px 22px;
    }

    .loc-check-grid,
    .loc-area-grid,
    .loc-areas .loc-area-grid {
        grid-template-columns: 1fr;
    }

    .loc-contact-strip {
        flex-direction: column;
        align-items: stretch;
    }

    .loc-contact-strip li {
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
        row-gap: 2px;
    }

    .loc-contact-strip li a,
    .loc-contact-strip li span {
        overflow-wrap: anywhere;
    }

    .loc-cta-btn {
        font-size: .98rem;
        padding: 12px 24px 12px 12px;
    }

    .loc-locate {
        padding-top: 54px;
    }

    .loc-locate .hp-map-frame iframe {
        height: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .loc-svc-card,
    .loc-check-grid li,
    .loc-area-grid a,
    .loc-svc-link,
    .loc-cta-btn {
        transition: none;
    }

    .loc-svc-card:hover,
    .loc-check-grid li:hover,
    .loc-area-grid a:hover,
    .loc-cta-btn:hover {
        transform: none;
    }
}
