/* ============================================
   style.service.css — QuoteHomePros
   Shared layout and component styles for
   ALL landing pages (single + multi-category).
   Preserves legacy css-* class names for ui.min.js compat.
============================================ */

/* ── Reset & Base ─────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--color-bg-page);
    color: var(--color-text-primary);
    line-height: 1.5;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-brand);
    text-decoration: none;
}

/* ── Layout Containers ────────────────────── */

/* Full-bleed wrapper — constrains inner content */
.css-frnt3s {
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Column flex container */
.css-fkxj74 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Generic full-width block */
.css-16wondw {
    width: 100%;
}

/* ── Header ───────────────────────────────── */
.css-3krett {
    background: #FFFFFF;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    box-shadow: var(--shadow-sm);
}

.css-11eyuz6 {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 var(--space-md);
    max-width: var(--max-width-content);
    margin: 0 auto;
}

.css-1cy26px {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.css-1cy26px img {
    height: 44px;
    width: auto;
}

/* ── Hero Section ─────────────────────────── */
.css-1yiz2lt {
    background: var(--color-hero-bg);
    background-image:
        linear-gradient(135deg, rgba(27,111,232,0.15) 0%, transparent 60%),
        linear-gradient(var(--color-hero-overlay), var(--color-hero-overlay));
    background-size: cover;
    background-position: center;
    padding: 56px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Hero uses the per-vertical CSS bg-image override */
.css-1rjjzwh {
    position: relative;
    z-index: 1;
}

/* Hero headline */
.css-1dwt8re {
    font-family: Georgia, "Times New Roman", serif;
    font-size: var(--text-4xl);
    font-weight: 400;   /* DM Serif is display weight inherently */
    color: #FFFFFF;
    margin: 0 0 var(--space-md);
    line-height: 1.15;
    letter-spacing: -0.5px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* "Today" urgency accent span */
.css-5fvaaz {
    color: var(--color-accent);
    font-style: italic;
}

/* ── ZIP Code Form Section ────────────────── */
.css-6gnqd {
    background: var(--color-bg-card);
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--color-border);
}

.css-7rlina {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: var(--max-width-form);
    margin: 0 auto;
}

/* "get your FREE quote today!" label */
.css-1g6d40w {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0 0 var(--space-sm);
}

/* FREE accent */
.css-1bcnyal {
    color: var(--color-brand);
}

/* "What is your zip code?" label */
.css-mfd8fj {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-md);
    letter-spacing: -0.3px;
}

/* Form element */
.css-wa1jsi {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Input wrapper with location icon */
.css-1ap9aj7 {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 360px;
    background: var(--color-bg-card);
    border: 2px solid var(--color-form-border);
    border-radius: var(--input-radius);
    padding: 0 var(--space-md);
    height: var(--input-height);
    box-shadow: var(--input-shadow);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    margin-bottom: var(--space-md);
}

.css-1ap9aj7:focus-within {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(27,111,232,0.15);
}

/* Location icon span */
.css-15wtdb2 {
    display: flex;
    align-items: center;
    margin-right: var(--space-sm);
    flex-shrink: 0;
    opacity: 0.5;
}

/* MUI TextField outer wrapper */
.css-5pk698 {
    flex: 1;
}

/* MUI InputBase root */
.css-1v4ccyo {
    width: 100%;
}

/* The actual ZIP input */
.css-1x5jdmq {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-primary);
    font-size: var(--input-font-size);
    font-weight: 600;
    color: var(--color-text-primary);
    padding: 0;
    letter-spacing: 1px;
}

.css-1x5jdmq::placeholder {
    color: var(--color-text-muted);
    font-weight: 400;
    letter-spacing: 0;
}

/* MUI notchedOutline — hidden, we use wrapper border */
.css-igs3ac {
    display: none;
}

.css-ihdtdm {
    display: none;
}

/* ── Primary CTA Button ───────────────────── */
.css-2i2sy2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    height: var(--btn-height);
    background: var(--color-accent);
    color: var(--color-text-inverse);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: var(--btn-font-weight);
    letter-spacing: 0.2px;
    border: none;
    border-radius: var(--btn-radius);
    cursor: pointer;
    padding: 0 var(--btn-padding-x);
    position: relative;
    overflow: hidden;
    transition: background var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
    box-shadow: 0 4px 14px rgba(255,107,43,0.35);
    text-decoration: none;
    white-space: nowrap;
}

.css-2i2sy2:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255,107,43,0.4);
}

.css-2i2sy2:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255,107,43,0.3);
}

/* Border-reveal animation on the submit button */
.css-2i2sy2.btn-border-reveal::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--btn-radius);
    border: 2px solid rgba(255,255,255,0.4);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.css-2i2sy2.btn-border-reveal:hover::after {
    opacity: 1;
}

/* Body-section button variant (slightly smaller) */
.css-2i2sy2.body-button {
    max-width: 280px;
    height: var(--btn-height-sm);
    font-size: var(--text-base);
    box-shadow: none;
}

.css-2i2sy2.body-button:hover {
    box-shadow: 0 4px 14px rgba(255,107,43,0.3);
}

/* ── Value Proposition Icon Strip ─────────── */
.css-1dlmw6c {
    background: var(--color-bg-card);
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--color-border);
}

.css-ujx85t {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0 var(--space-md);
    text-align: center;
}

.css-15la3i8 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.css-15la3i8 .top-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.css-121qlen {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* ── Two-Column Feature Section ───────────── */
.css-1nrqn4x {
    padding: var(--space-xl) 0;
}

.css-1nrqn4x:nth-child(even) {
    background: var(--color-bg-section-alt);
}

/* Two-column row */
.css-1narzhh {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Reverse column order for alternating sections */
.css-1narzhh.zhh1 {
    /* Default: text left, image right */
}

.css-1narzhh.zhh2 {
    /* Reversed: image left, text right */
    direction: rtl;
}
.css-1narzhh.zhh2 > * {
    direction: ltr;
}

/* Column cell */
.css-t2u2j9 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Text cell inner wrapper */
.css-i17md {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Feature section heading */
.css-yftsim {
    font-family: Georgia, "Times New Roman", serif;
    font-size: var(--text-3xl);
    font-weight: 400;
    color: var(--color-text-primary);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

/* Feature section body copy */
.css-1jipycp {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.75;
}

/* Feature section supporting copy (slightly smaller) */
.css-8weeu1 {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.75;
}

/* Feature image wrapper */
.css-hb5itp img {
    width: 100%;
    max-width: 460px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ── FAQ / Info Grid Section ──────────────── */
.css-mrshpo {
    background: var(--color-bg-section-alt);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

/* Grid of FAQ items — 2 columns */
.css-fkxj74 .gridset {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg) var(--space-xl);
    width: 100%;
    max-width: var(--max-width-content);
    padding: 0 var(--space-md);
}

/* FAQ item heading */
.css-nnw3yv {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    line-height: 1.3;
}

.css-nnw3yv .check-bdy {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* FAQ item body */
.css-1brv6lg {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.70;
}

/* ── Footer ───────────────────────────────── */
.css-1cmkecm {
    background: #111827;
    padding: var(--space-lg) 0;
    margin-top: var(--space-lg);
}

.css-iy59af {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
    padding: 0 var(--space-md);
}

/* Footer nav list */
.css-17rn7m {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.css-ci3sp7 {
    padding: 0;
    margin: 0;
}

.css-huzvfi {
    padding: 0;
    margin: 0;
}

/* Pipe dividers */
.css-1aaf32z {
    color: #6B7280;
    padding: 0 var(--space-sm);
    font-size: var(--text-sm);
}

/* Footer links */
.css-1tcjpox {
    color: #D1D5DB;
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    padding: 4px var(--space-sm);
    transition: color var(--transition-fast);
}

.css-1tcjpox:hover {
    color: #FFFFFF;
}

/* Footer copyright */
.css-10kn7d2 {
    font-size: var(--text-xs);
    color: #9CA3AF;
    margin: 0;
}

/* ── Social Proof (multi-category pages) ──── */
.social-proof-strip {
    display: none;  /* shown by JS on valid ZIP */
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-green-bg);
    border: 1px solid #A7F3D0;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-green-text);
    animation: fadeInUp 0.3s ease;
}

.social-proof-strip.visible {
    display: flex;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── MUI Loading Spinner (ui.min.js compat) ─ */
.lds-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-2xl) 0;
}

.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 64px;
    height: 64px;
}

.lds-ellipsis div {
    position: absolute;
    top: 26px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-brand);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) { left: 6px;  animation: lds-ellipsis1 0.6s infinite; }
.lds-ellipsis div:nth-child(2) { left: 6px;  animation: lds-ellipsis2 0.6s infinite; }
.lds-ellipsis div:nth-child(3) { left: 26px; animation: lds-ellipsis2 0.6s infinite; }
.lds-ellipsis div:nth-child(4) { left: 46px; animation: lds-ellipsis3 0.6s infinite; }

@keyframes lds-ellipsis1 {
    0%   { transform: scale(0); }
    100% { transform: scale(1); }
}
@keyframes lds-ellipsis2 {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(20px, 0); }
}
@keyframes lds-ellipsis3 {
    0%   { transform: scale(1); }
    100% { transform: scale(0); }
}

/* ── Scroll FAB (results page) ────────────── */
.scroll-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--color-brand);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 50;
    opacity: 0.85;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.scroll-fab:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 860px) {
    .css-ujx85t {
        grid-template-columns: repeat(2, 1fr);
    }

    .css-1narzhh {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .css-1narzhh.zhh2 {
        direction: ltr;
    }

    .css-fkxj74 .gridset {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .css-1dwt8re {
        font-size: var(--text-3xl);
    }

    .css-yftsim {
        font-size: var(--text-2xl);
    }

    .css-ujx85t {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .css-1yiz2lt {
        padding: var(--space-xl) 0 var(--space-lg);
    }
}

.hero-card-label {
    font-family: Georgia, "Times New Roman", serif;
}

.hero-badge {
    color: var(--color-text-primary);
    font-size: var(--text-sm);
    padding: 6px 14px;
}
