/**********  Mobile Auto Glass LA — service page stylesheet
    Service-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 FAQ accordion and the CTA band.
***********************************************************/

/* ===== Hero (reuses .hp-hero) ===== */
.svc-hero {
    padding: 176px 0 134px;
}

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

@media (min-width: 992px) {
    .svc-hero .hp-hero-img-frame {
        min-height: 430px;
    }
}

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

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

/* ===== Section 2 — intro copy + quote form ===== */
.svc-intro-lead {
    font-family: var(--font-ui);
    color: var(--brand-navy-dk);
    font-size: 1.1rem;
    line-height: 1.85;
    letter-spacing: .003em;
    margin-bottom: 30px;
    max-width: 62ch;
}

.svc-intro-lead a {
    color: var(--brand-red);
    font-weight: 600;
    /* 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 this link below the paragraph
       text at that viewport range (e.g. 1440px). */
    font-size: inherit;
    text-decoration: none;
    transition: color .25s ease;
}

.svc-intro-lead a:hover,
.svc-intro-lead a:focus {
    color: var(--brand-red-dk);
}

.svc-intro-block .hp-section-head {
    margin-bottom: 22px;
}

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

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

.svc-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);
}

.svc-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%);
}

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

.svc-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%);
}

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

.svc-orb-b {
    width: 520px;
    height: 520px;
    bottom: -260px;
    left: -170px;
    background: radial-gradient(circle, rgba(0, 84, 168, .42), transparent 68%);
}

/* headings + prose inside a service section */
.svc-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;
}

.svc-section p.hp-intro-copy,
.svc-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;
}

.svc-section .hp-head-center p.hp-intro-copy {
    max-width: 72ch;
}

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

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

.svc-section .hp-head-center .svc-note {
    margin-left: auto;
    margin-right: auto;
}

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

/* three-up on desktop so an even set of H3 cards fills its rows */
@media (min-width: 992px) {
    .svc-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.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;
}

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

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

.svc-card-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);
}

.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;
}

.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;
}

/* ===== List label + check chips ===== */
.svc-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;
}

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

.svc-section .hp-head-center .svc-list-label {
    text-align: center;
}

.svc-check-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
    gap: 14px;
}

.svc-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;
}

.svc-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));
}

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

.svc-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;
}

/* dark band variant */
.svc-section--dark .svc-check-grid li {
    color: #e9f1fa;
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .12);
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.svc-section--dark .svc-check-grid li:hover {
    background: rgba(255, 255, 255, .11);
    border-color: rgba(252, 122, 0, .5);
    box-shadow: none;
}

/* ===== Process steps (reuses .hp-steps / .hp-step) ===== */
.svc-step-list {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1199.98px) {
    .svc-step-list {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 34px;
    }

    .svc-step-list::before {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .svc-step-list {
        grid-template-columns: 1fr;
    }
}

/* ===== CTA band phone button ===== */
.svc-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    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;
}

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

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

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

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

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

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

    .svc-check-grid {
        grid-template-columns: 1fr;
    }

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

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

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

/* ===== Small helpers layered on the shared components ===== */
/* the doc puts the checklist above the hero CTA, so the spacing flips */
.svc-hero .hp-feature-list {
    margin-bottom: 32px;
}

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

/* stacked prose inside a section head */
.hp-section-head .hp-intro-copy + .hp-intro-copy {
    margin-top: 16px;
}

/* centred label / trailing note under a centred section head */
.svc-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* dark bands keep white headings (declared after .svc-section h2) */
.svc-section--dark h2 {
    color: #fff;
}

/* ===== Section-2 column: cards stack instead of gridding ===== */
.svc-intro-block .svc-card-grid {
    grid-template-columns: 1fr;
}

.svc-intro-block .svc-check-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.svc-intro-block .svc-list-label,
.svc-intro-block .svc-note {
    text-align: left;
}

/* ===== Bulleted list inside a process step (dark band) ===== */
.svc-step-list-items {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: grid;
    gap: 7px;
}

.svc-step-list-items li {
    position: relative;
    font-family: var(--font-ui);
    color: #c3d3e6;
    font-size: .93rem;
    line-height: 1.65;
    padding-left: 18px;
}

.svc-step-list-items li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
}

/* ===== FAQ on white, when the section above it is already light ===== */
.hp-faq.svc-faq-white {
    background:
        radial-gradient(46% 38% at 92% 6%, rgba(0, 48, 95, .06), transparent 62%),
        #fff;
}

/* ===== In-card list label — keep the doc's own capitalisation ===== */
.svc-card .hp-svc-label {
    text-transform: none;
    letter-spacing: .01em;
    font-size: .95rem;
    color: var(--brand-navy-dk);
    margin-top: 4px;
    margin-bottom: 12px;
}

.svc-card .hp-svc-list {
    margin-bottom: 18px;
}

.svc-card .hp-svc-list + p {
    margin-top: 0;
}

/* ===== Card-grid column counts that avoid orphan rows ===== */
@media (min-width: 992px) {
    .svc-card-grid--2,
    .svc-card-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .svc-card-grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== Process bands with a step count other than five ===== */
@media (min-width: 1200px) {
    .svc-step-list--6 {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 44px;
    }

    .svc-step-list--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* the connecting rail only reads across a single row */
.svc-step-list--6::before {
    display: none;
}
