/* ─────────────────────────────────────────────
   homepage.css — Homepage-specific styles.
   Hero: image-left fade-to-white (Stitch mock).
   All other sections use fcm-* design system components.
   ───────────────────────────────────────────── */

/* =============================================
   HERO — Image left, text right on white
   ============================================= */
.fcm-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: min(78vh, 620px);
    background: var(--color-background, #ffffff);
    overflow: hidden;
}

/* --- Image panel (left) --- */
.fcm-hero__image-wrap {
    position: relative;
    overflow: hidden;
}

.fcm-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

/* Brand-color gradient overlay on the image */
.fcm-hero__image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(33, 31, 84, 0.55) 0%,
        rgba(33, 31, 84, 0.35) 50%,
        rgba(33, 31, 84, 0.50) 100%
    );
    pointer-events: none;
}

/* --- Navbar: sticky block on homepage desktop only --- */
@media (min-width: 901px) {
    body.home .hero-navbar {
        position: sticky;
        top: 0;
        background: var(--color-primary-dark, #211F54);
    }
}

/* --- Text panel (right, white) --- */
.fcm-hero__content {
    display: flex;
    align-items: center;
    padding: clamp(28px, 3.5vw, 48px) clamp(32px, 4vw, 64px) clamp(28px, 3.5vw, 48px) clamp(40px, 4vw, 72px);
}

.fcm-hero__content-inner {
    max-width: 640px;
}

/* --- Eyebrow --- */
.fcm-hero__eyebrow {
    display: inline-block;
    font-family: var(--font-family-primary, 'Inter', sans-serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-light, #6E7191);
    margin-bottom: clamp(10px, 1.5vw, 16px);
    padding-left: 28px;
    position: relative;
}

.fcm-hero__eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 2px;
    background: var(--color-primary-dark, #211F54);
    border-radius: 1px;
}

/* --- Title --- */
.fcm-hero__title,
.fcm-hero__title h1 {
    font-family: var(--font-family-secondary, 'Libre Baskerville', Georgia, serif) !important;
    font-weight: 700 !important;
    font-size: clamp(2.2rem, 3.8vw, 3.8rem) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.015em;
    color: var(--color-text) !important;
    margin: 0 0 clamp(12px, 1.5vw, 20px);
    text-wrap: balance;
}

/* Span: brand color differentiation, no underline/background */
.fcm-hero__title span {
    color: var(--color-primary-dark, #211F54) !important;
    text-decoration: none;
    text-shadow: none !important;
}

/* Buttons: navy to match navbar/stat band */
.fcm-hero .fcm-btn {
    background: var(--color-primary-dark, #211F54);
    border-color: var(--color-primary-dark, #211F54);
    color: #fff;
}

.fcm-hero .fcm-btn:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.fcm-hero .fcm-btn--secondary {
    background: transparent;
    border-color: var(--color-primary-dark, #211F54);
    color: var(--color-primary-dark, #211F54);
}

.fcm-hero .fcm-btn--secondary:hover {
    background: var(--color-primary-dark, #211F54);
    color: #fff;
}

/* --- Subtitle --- */
.fcm-hero__subtitle {
    font-family: var(--font-family-primary, 'Inter', sans-serif);
    font-size: clamp(0.92rem, 1.3vw, 1.05rem);
    line-height: 1.7;
    color: var(--color-text-light, #6E7191);
    margin: 0 0 clamp(20px, 2.5vw, 32px);
    max-width: 52ch;
}

/* --- Buttons --- */
.fcm-hero .fcm-btn-group {
    margin-top: 0;
    gap: var(--spacing-md, 16px);
}

.fcm-hero__phone-icon {
    margin-right: 6px;
}

/* =============================================
   HERO — Mobile (stacked: image top, text below)
   ============================================= */
@media (max-width: 900px) {
    .fcm-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .fcm-hero__image-wrap {
        height: clamp(220px, 40vw, 340px);
    }

    .fcm-hero__image-wrap::after {
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(33, 31, 84, 0.55) !important;
    }

    .fcm-hero__content {
        padding: clamp(24px, 5vw, 40px) clamp(20px, 5vw, 32px) clamp(32px, 6vw, 48px);
    }

    .fcm-hero__content-inner {
        max-width: 100%;
    }

    .fcm-hero__title,
    .fcm-hero__title h1 {
        font-size: clamp(1.75rem, 6.5vw, 2.4rem) !important;
    }
}

@media (max-width: 480px) {
    .fcm-hero .fcm-btn-group {
        flex-direction: column;
    }

    .fcm-hero .fcm-btn-group .fcm-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}


/* =============================================
   CREDIBILITY ROW — with icons (per Stitch mock)
   ============================================= */
.fcm-home-credibility {
    padding: clamp(20px, 3.5vw, 36px) 0;
    background: var(--color-primary-dark, #211F54);
}

.fcm-home-credibility__row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.fcm-home-credibility__item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm, 8px);
    padding: var(--spacing-md, 16px) var(--spacing-lg, 24px);
    position: relative;
}

.fcm-home-credibility__item + .fcm-home-credibility__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.18);
}

.fcm-home-credibility__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.55);
}

.fcm-home-credibility__text {
    display: flex;
    flex-direction: column;
}

.fcm-home-credibility__number {
    font-family: var(--font-family-secondary, 'Libre Baskerville', Georgia, serif);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}

.fcm-home-credibility__plus {
    font-size: 0.65em;
    font-weight: 700;
    opacity: 0.7;
}

.fcm-home-credibility__label {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.3;
    margin-top: 2px;
}

@media (max-width: 600px) {
    .fcm-home-credibility__row {
        grid-template-columns: repeat(2, 1fr);
    }

    .fcm-home-credibility__item:nth-child(3)::before {
        display: none;
    }

    .fcm-home-credibility__item:nth-child(n+3) {
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }
}

/* =============================================
   HOMEPAGE SECTION SPACING
   ============================================= */
.fcm-home-section {
    padding: clamp(48px, 8vw, 80px) 0;
}

.fcm-home-section--faded {
    background: var(--color-background-light);
}

/* =============================================
   TESTIMONIALS — pagination dots cap
   ============================================= */
.fcm-home-testimonials .testimonials-enhanced__indicators {
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    .fcm-hero *,
    .fcm-hero *::before,
    .fcm-hero *::after,
    .fcm-home-credibility *,
    .fcm-home-section * {
        transition: none !important;
        animation: none !important;
    }
}
