/* ============================================
   homepage.css — QuoteHomePros
   Homepage-only styles. Requires config.pa.css
   and style.service.css to be loaded first.
   Do not redeclare vars/classes from those files.
============================================ */

/* ── Verified Badge (homepage copy) ────────
   .verified-badge defined in vertical CSS;
   replicated here since homepage doesn't load
   any per-vertical stylesheet.
─────────────────────────────────────────── */
.verified-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-brand);
    background: var(--color-brand-light);
    padding: 6px 12px;
    border-radius: 20px;
}
.verified-badge svg { flex-shrink: 0; }

/* Desktop: logo left, badge + nav right */
.css-11eyuz6 { justify-content: space-between; }

@media (max-width: 768px) {
    .verified-badge { display: none; }
    .css-11eyuz6 { justify-content: center; text-align: center; width: 100%; }
}

/* ── Site Nav ────────────────────────────── */
.site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-left: auto;
}
.site-nav a {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.site-nav a:hover {
    color: var(--color-text-primary);
}
.site-nav .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--btn-height-sm);
    background: var(--color-accent);
    color: var(--color-text-inverse);
    font-size: var(--text-sm);
    font-weight: var(--btn-font-weight);
    border-radius: var(--btn-radius);
    cursor: pointer;
    padding: 0 var(--space-lg);
    text-decoration: none;
    transition: background var(--transition-base);
}
.site-nav .nav-cta:hover {
    background: var(--color-accent-dark);
    color: #fff;
}
@media (max-width: 768px) {
    .site-nav { display: none; }
}

/* ── HERO SLIDER ─────────────────────────── */
.hero-section {
    height: 100vh;
    max-height: 600px;
    min-height: 520px;
    position: relative;
    overflow: hidden;
    padding-top: 68px;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
}
.hero-slide.active {
    opacity: 1;
}
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-hero-overlay);
}

/* ── HERO CONTENT LAYOUT ─────────────────── */
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 64px;
    align-items: center;
    max-width: var(--max-width);
    margin: auto;
    padding: 60px var(--space-md) 80px;
    position: relative;
    z-index: 2;
    height: calc(100% - 68px);
}
.hero-text {
    color: #fff;
}
.hero-headline {
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-md);
}
.hero-headline .accent {
    color: var(--color-accent);
}
.hero-subline {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.85);
    max-width: 480px;
    margin: 0 0 var(--space-xl);
    line-height: 1.65;
}
.hero-geo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-accent);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}
.hero-trust-row {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-top: var(--space-md);
}
.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255,255,255,0.82);
}
.hero-trust-item svg {
    color: #4ADE80;
    flex-shrink: 0;
}

/* ── SEARCH CARD ─────────────────────────── */
.search-card {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    box-shadow: var(--shadow-xl);
}
.search-card-eyebrow {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin: 0 0 var(--space-sm);
}
.search-card h2 {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0 0 4px;
}
.search-card-sub {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-lg);
}
.search-field-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}
.search-field-wrap {
    position: relative;
}
.search-field-wrap svg.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-accent);
    pointer-events: none;
    z-index: 1;
}
.search-field-wrap input {
    width: 100%;
    height: var(--input-height);
    border: var(--input-border);
    border-radius: var(--input-radius);
    padding: 0 14px 0 44px;
    font-size: var(--input-font-size);
    color: var(--color-text-primary);
    background: #fff;
    outline: none;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    font-family: inherit;
    -webkit-appearance: none;
}
.search-field-wrap input:focus {
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 3px rgba(27,111,232,0.12);
}
.search-field-wrap input::placeholder {
    color: var(--color-text-muted);
}

/* ── AUTOCOMPLETE ────────────────────────── */
.autocomplete-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    max-height: 260px;
    overflow-y: auto;
    display: none;
}
.autocomplete-list.visible {
    display: block;
}
.autocomplete-item {
    padding: 11px 16px;
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-bottom: 1px solid var(--color-bg-page);
    transition: background var(--transition-fast);
}
.autocomplete-item:last-child {
    border-bottom: none;
}
.autocomplete-item:hover,
.autocomplete-item.highlighted {
    background: var(--color-brand-light);
}
.autocomplete-item .item-name {
    font-weight: 600;
}
.autocomplete-item .item-vertical {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}
.search-error {
    font-size: var(--text-xs);
    color: #DC2626;
    margin-top: 4px;
    display: none;
    padding-left: 4px;
}
.search-error.visible {
    display: block;
}

/* ── SEARCH BUTTON ───────────────────────── */
/* .css-2i2sy2 base from style.service.css;
   override max-width only */
.search-btn {
    width: 100%;
    max-width: none;
    gap: var(--space-sm);
}

/* ── SEARCH CARD TRUST ───────────────────── */
.search-card-trust {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-md);
    flex-wrap: wrap;
}
.sct-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
}
.sct-item svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

/* ── TRUST BAR ───────────────────────────── */
.trust-bar {
    background: var(--color-bg-section-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-xl) var(--space-md);
}
.trust-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    max-width: var(--max-width);
    margin: 0 auto;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.trust-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-brand);
}
.trust-item-text strong {
    display: block;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 2px;
}
.trust-item-text span {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ── SERVICES GRID SECTION ───────────────── */
.services-section {
    padding: var(--space-2xl) var(--space-md);
    background: var(--color-bg-card);
}
.services-section-head {
    max-width: var(--max-width);
    margin: 0 auto var(--space-xl);
    text-align: center;
}
.section-eyebrow {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}
.section-title {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-sm);
}
.section-subtitle {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}
.services-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}
.service-card {
    background: var(--color-bg-card);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}
.service-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-brand);
    transform: translateY(-2px);
    color: inherit;
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-card-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--color-bg-section-alt);
    display: block;
}
.service-card-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}
.service-card-desc {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}
.service-card-arrow {
    margin-top: auto;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity var(--transition-base);
}
.service-card:hover .service-card-arrow {
    opacity: 1;
}

/* ── HOW IT WORKS ────────────────────────── */
.how-section {
    padding: var(--space-2xl) var(--space-md);
    background: var(--color-bg-section-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.how-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}
.how-head {
    text-align: center;
    margin-bottom: var(--space-2xl);
}
.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    position: relative;
}
.how-steps::before {
    content: '';
    position: absolute;
    top: 32px;
    left: calc(16.66% + 32px);
    right: calc(16.66% + 32px);
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
}
.how-step {
    text-align: center;
}
.how-step-num {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--color-accent);
    color: #fff;
    font-size: var(--text-xl);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(255,107,43,0.30);
}
.how-step h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm);
}
.how-step p {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ── FAQ ACCORDION ───────────────────────── */
/* Outer wrapper reuses .css-mrshpo from
   style.service.css; these are inner classes */
.faq-head {
    text-align: center;
    margin-bottom: var(--space-xl);
    max-width: var(--max-width-content);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--space-md);
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.faq-item {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    transition: background var(--transition-fast);
    font-family: inherit;
}
.faq-question:hover {
    background: var(--color-bg-section-alt);
}
.faq-question svg {
    flex-shrink: 0;
    transition: transform var(--transition-base);
    color: var(--color-accent);
}
.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 var(--space-lg);
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.7;
}
.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 var(--space-lg) var(--space-md);
}

/* ── CTA BANNER ──────────────────────────── */
.cta-banner {
    padding: var(--space-2xl) var(--space-md);
    background: var(--color-hero-bg);
    text-align: center;
}
.cta-banner-inner {
    max-width: 640px;
    margin: 0 auto;
}
.cta-banner h2 {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: #fff;
    margin: 0 0 var(--space-md);
    line-height: 1.2;
}
.cta-banner p {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.70);
    margin: 0 0 var(--space-xl);
    line-height: 1.65;
}
/* Override max-width/width from .css-2i2sy2 */
.cta-btn {
    display: inline-flex;
    width: auto;
    max-width: none;
    padding: 0 var(--btn-padding-x);
    font-size: var(--text-lg);
    gap: var(--space-sm);
}

/* ── FOOTER EXTENDED ─────────────────────── */
.footer-extended {
    background: #0F1623;
    padding: var(--space-2xl) var(--space-md) var(--space-xl);
}
.footer-top {
    display: grid;
    grid-template-columns: 260px 1fr 1fr 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: var(--space-xl);
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}
.footer-brand img {
    width: 100%;
    height: auto;
    margin-bottom: var(--space-md);
    display: block;
}
.footer-brand p {
    font-size: var(--text-sm);
    color: #64748B;
    line-height: 1.65;
    margin: 0;
}
.footer-col h4 {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #CBD5E1;
    margin: 0 0 var(--space-md);
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.footer-col ul li a {
    font-size: var(--text-sm);
    color: #64748B;
    text-decoration: none;
    transition: color var(--transition-fast);
}
.footer-col ul li a:hover {
    color: #fff;
}
.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: var(--text-xs);
    color: #475569;
}
.footer-disclaimer {
    font-size: var(--text-xs);
    color: #334155;
    max-width: var(--max-width);
    margin: var(--space-md) auto 0;
    line-height: 1.6;
    text-align: center;
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        height: auto;
        padding-top: 48px;
        padding-bottom: 48px;
    }
    .hero-text { text-align: center; }
    .hero-subline { max-width: 100%; }
    .hero-trust-row { justify-content: center; }
    .hero-geo-badge {
        margin-left: auto;
        margin-right: auto;
        display: flex;
        width: fit-content;
    }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .trust-bar-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .hero-section { height: auto; min-height: auto; max-height: none; }
    .hero-inner { padding-top: 24px; padding-bottom: 32px; gap: var(--space-lg); }
    .search-card { order: -1; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card-img { height: 100px; }
    .how-steps { grid-template-columns: 1fr; }
    .how-steps::before { display: none; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
