/* =====================================================================
   HOME-POLISH.CSS — Homepage visual upgrades
   Loaded LAST — after home.css
   Adds: icons to Why Us, star ratings to reviews, dark CTA,
         gallery hover effects, sticky mobile CTA bar
   ===================================================================== */

/* ─────────────────────────────────────────────────────────────────────
   ALTERNATING SECTION BACKGROUNDS — reduce all-white glare
   ───────────────────────────────────────────────────────────────────── */
#homepage .section-services  { background: #ffffff; }
#homepage .section-why       { background: #f5f6fa; }
#homepage .section-areas:not(.section-showcase) { background: #ffffff; }
#homepage .section-showcase   { /* background handled by showcase.css gradient */ }
#homepage .section-gallery   { background: #ffffff; }
#homepage .section-faq       { background: #f5f6fa; }
#homepage .section-reviews   { background: #ffffff; }

/* ─────────────────────────────────────────────────────────────────────
   0. HERO — Left-aligned title, bigger quote box, photo background
   ───────────────────────────────────────────────────────────────────── */
#homepage #hero-heading {
    text-align: left !important;
}

#homepage .hero-lead {
    text-align: left !important;
}

#homepage .hero-cta {
    justify-content: flex-start !important;
}

#homepage .hero-trust {
    justify-content: flex-start !important;
}

/* Hero background image with dark overlay */
#homepage .section-hero {
    background: url('../images/heroes/glass-prep-live-oaks.jpg') center 30% / cover no-repeat var(--color-brand-blue-dark, #0f1e4a) !important;
    position: relative !important;
}

/* Dark overlay so text remains readable over the photo */
#homepage .section-hero::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(135deg, rgba(15, 30, 74, 0.82) 0%, rgba(24, 48, 117, 0.72) 50%, rgba(15, 30, 74, 0.82) 100%) !important;
    z-index: 1 !important;
    pointer-events: none;
}

#homepage .section-hero .container {
    position: relative;
    z-index: 2;
}

/* Quote form card — tight, compact, action-focused */
#homepage .form-card {
    padding: 1rem 1.25rem !important;
}

#homepage .form-heading {
    font-size: 1.2rem !important;
    margin-bottom: 0.2rem !important;
}

#homepage .form-subhead {
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
}

#homepage .form-group label {
    font-size: 0.85rem !important;
    margin-bottom: 0.35rem !important;
}

#homepage .quote-form input:not([type="hidden"]),
#homepage .quote-form select,
#homepage .form-card input,
#homepage .form-card select {
    padding: 0.6rem 0.75rem !important;
    font-size: 0.95rem !important;
}

#homepage .quote-form .btn,
#homepage .form-card .btn {
    padding: 0.75rem 1.25rem !important;
    font-size: 1rem !important;
}

#homepage .form-disclaimer {
    font-size: 0.85rem !important;
    margin-top: 0.75rem !important;
}

#homepage .hero-trust-badges {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ─────────────────────────────────────────────────────────────────────
   0b. HERO OBJECTION INTERCEPT — Readable expanded content
   ───────────────────────────────────────────────────────────────────── */
#homepage .hero-objection .intercept-content {
    background: white !important;
    color: var(--color-neutral-700, #374151) !important;
    border-radius: 0 0 8px 8px;
}

#homepage .hero-objection .intercept-content p,
#homepage .hero-objection .intercept-content li {
    color: var(--color-neutral-700, #374151) !important;
}

#homepage .hero-objection .intercept-content strong {
    color: var(--color-brand-blue-dark, #0f1e4a) !important;
}

/* ─────────────────────────────────────────────────────────────────────
   1. WHY US — SVG icons before each title
   ───────────────────────────────────────────────────────────────────── */
#homepage .why-item {
    position: relative;
    padding-left: calc(var(--space-5) + 3rem);
}

#homepage .why-icon {
    position: absolute;
    left: var(--space-5);
    top: var(--space-5);
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(24, 48, 117, 0.08);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-brand-blue, #183075);
}

#homepage .why-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ─────────────────────────────────────────────────────────────────────
   2. REVIEWS — Carousel card polish
   ───────────────────────────────────────────────────────────────────── */
#homepage .testimonial-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-brand-blue, #183075);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#homepage .review-slide cite {
    display: block;
    margin-top: var(--space-3);
    font-size: 0.9rem;
}

/* ─────────────────────────────────────────────────────────────────────
   3. GALLERY — Hover effects + grid polish
   ───────────────────────────────────────────────────────────────────── */
#homepage .work-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-6);
}

#homepage .work-gallery img {
    border-radius: var(--radius-lg, 12px);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#homepage .work-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

@media (max-width: 768px) {
    #homepage .work-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    #homepage .work-gallery {
        grid-template-columns: 1fr;
    }
}

/* ─────────────────────────────────────────────────────────────────────
   MOBILE FIXES — Reduce padding/layout for narrow viewports
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    /* Why-us: reduce icon placeholder padding on mobile */
    #homepage .why-item {
        padding-left: var(--space-5);
    }
    #homepage .why-icon {
        display: none;
    }

    /* Reviews: center photo on mobile */
    #homepage .review-slide.has-photo .testimonial-img {
        margin: 0 auto;
    }

    /* Form card: tighter padding on small screens */
    #homepage .form-card {
        padding: 1rem !important;
    }
    #homepage .form-heading {
        font-size: 1.15rem !important;
    }
    #homepage .quote-form input,
    #homepage .quote-form select {
        padding: 0.65rem 0.75rem !important;
        font-size: 0.95rem !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────
   4. CTA SECTION — Dark navy like the SC law page
   ───────────────────────────────────────────────────────────────────── */
/* Homepage prefooter: white, left-aligned, polished */
#homepage .prefooter-cta {
    background: white !important;
    color: var(--color-brand-blue-dark, #0f1e4a) !important;
    border-top: 1px solid rgba(24, 48, 117, 0.08);
    padding: clamp(2.5rem, 5vw, 4rem) 0 !important;
}

#homepage .prefooter-inner {
    display: flex !important;
    flex-direction: row !important;
    text-align: left !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: none !important;
    gap: var(--space-6);
}

#homepage .prefooter-title {
    color: var(--color-brand-blue, #183075) !important;
    font-size: clamp(1.25rem, 3vw, 1.6rem) !important;
    line-height: 1.3;
    text-align: left !important;
}

#homepage .prefooter-text {
    color: var(--color-brand-blue-dark, #0f1e4a) !important;
    opacity: 0.65;
    font-size: 0.95rem !important;
    max-width: 50ch;
}

#homepage .prefooter-actions {
    align-items: center;
    flex-shrink: 0;
}

#homepage .prefooter-cta .btn-phone {
    background: var(--color-brand-blue, #183075) !important;
    color: white !important;
    border-color: var(--color-brand-blue, #183075) !important;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    padding: 0.7rem 1.5rem;
}

#homepage .prefooter-cta .btn-phone:hover {
    background: var(--color-brand-blue-dark, #0f1e4a) !important;
    color: white !important;
    border-color: var(--color-brand-blue-dark, #0f1e4a) !important;
}

#homepage .prefooter-cta .btn-primary {
    background: var(--color-brand-red, #EC1C24) !important;
    color: white !important;
    border-color: var(--color-brand-red, #EC1C24) !important;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    padding: 0.7rem 1.5rem;
}

#homepage .prefooter-cta .btn-primary:hover {
    background: #c9171e !important;
    color: white !important;
    border-color: #c9171e !important;
}

@media (max-width: 767px) {
    #homepage .prefooter-inner {
        text-align: center !important;
    }
    #homepage .prefooter-text {
        max-width: none;
    }
    #homepage .prefooter-actions {
        justify-content: center;
        width: 100%;
    }
}


/* ─────────────────────────────────────────────────────────────────────
   5. SERVICE CARDS — Image polish
   ───────────────────────────────────────────────────────────────────── */
#homepage .service-card-img {
    border-radius: 0;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
    display: block;
}

/* ─────────────────────────────────────────────────────────────────────
   6. STICKY MOBILE CTA BAR — Enhanced 3-button layout
   ───────────────────────────────────────────────────────────────────── */
.sticky-cta .sticky-cta-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 0.65rem 0.5rem;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    white-space: nowrap;
    flex: 1;
}
