/**
 * SFPI — Homepage-only overrides
 */

body.sfp-page-home {
    --sfp-home-section-y: clamp(3rem, 5.5vw, 5.25rem);
    --sfp-home-section-compact: clamp(2rem, 3.5vw, 3.5rem);
    --sfp-hero-photo-pos: 58% center;
}

body.sfp-page-home .sfp-section--home {
    padding-block: var(--sfp-home-section-y);
}

body.sfp-page-home .sfp-section--home.sfp-section--compact {
    padding-block: var(--sfp-home-section-compact);
}

body.sfp-page-home .sfp-section--light .sfp-text-gold,
body.sfp-page-home .sfp-section--tint .sfp-text-gold {
    color: var(--sfp-gold-600);
}

/* ==========================================================================
   HOMEPAGE HERO — single full-bleed image + gradient overlay
   ========================================================================== */
body.sfp-page-home .sfp-hero.sfp-home-hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: clamp(480px, 32vw, 520px);
    padding: 0;
    overflow: hidden;
    color: #f8fafc;
    background: #061f38;
    background-image: none;
}

body.sfp-page-home .sfp-hero.sfp-home-hero::before,
body.sfp-page-home .sfp-hero.sfp-home-hero::after {
    display: none;
    content: none;
}

body.sfp-page-home .sfp-hero.sfp-home-hero .sfp-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
    object-fit: cover;
    object-position: var(--sfp-hero-photo-pos);
}

body.sfp-page-home .sfp-hero.sfp-home-hero .sfp-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(4, 26, 48, 0.98) 0%,
        rgba(4, 26, 48, 0.95) 20%,
        rgba(4, 26, 48, 0.82) 34%,
        rgba(4, 26, 48, 0.48) 48%,
        rgba(4, 26, 48, 0.18) 62%,
        rgba(4, 26, 48, 0.04) 76%,
        rgba(4, 26, 48, 0) 88%
    );
}

body.sfp-page-home .sfp-home-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: inherit;
    display: flex;
    align-items: center;
    padding-block: clamp(1.15rem, 2vw, 1.5rem);
}

body.sfp-page-home .sfp-home-hero__copy,
body.sfp-page-home .sfp-hero__content {
    width: min(100%, 520px);
    max-width: 520px;
}

body.sfp-page-home .sfp-home-hero .sfp-hero__eyebrow {
    color: rgba(248, 250, 252, 0.88);
    letter-spacing: 0.14em;
    margin: 0 0 1rem;
    padding-left: 0.85rem;
    border-left: 3px solid var(--sfp-gold-500);
}

body.sfp-page-home .sfp-home-hero h1 {
    font-size: clamp(2.65rem, 3.6vw, 3.5rem);
    line-height: 1.03;
    letter-spacing: -0.025em;
    max-width: 14ch;
    margin: 0 0 1.25rem;
    color: #fff;
}

body.sfp-page-home .sfp-home-hero .sfp-hero__accent {
    color: var(--sfp-gold-500);
}

body.sfp-page-home .sfp-home-hero .sfp-hero__tagline,
body.sfp-page-home .sfp-home-hero__support {
    display: block;
    font-size: 1.0625rem;
    font-weight: 500;
    color: rgba(248, 250, 252, 0.9);
    max-width: 500px;
    line-height: 1.6;
    margin: 0 0 1.75rem;
}

body.sfp-page-home .sfp-home-hero__actions {
    margin: 0;
    gap: 0.75rem;
}

body.sfp-page-home .sfp-btn--hero.sfp-btn--gold {
    font-weight: 800;
    border-radius: 6px;
    box-shadow: none;
    min-height: 48px;
    padding-inline: 1.25rem;
    color: var(--sfp-navy-950);
}

body.sfp-page-home .sfp-btn--hero.sfp-btn--hero-light {
    border-radius: 6px;
    min-height: 48px;
    padding-inline: 1.15rem;
    border-color: rgba(248, 250, 252, 0.35);
    color: #f8fafc;
}

body.sfp-page-home .sfp-trust-strip--home {
    background: #f7f9fc;
    padding: clamp(1rem, 2vw, 1.35rem) 0;
    border-bottom: 1px solid var(--sfp-line);
}

body.sfp-page-home .sfp-trust-strip--home .sfp-trust-strip__grid--six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.75rem, 1.35vw, 1.1rem);
}

body.sfp-page-home .sfp-trust-strip--home .sfp-trust-strip__icon img {
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
}

body.sfp-page-home #home-services-heading {
    font-size: clamp(1.55rem, 2.2vw, 2rem);
}

body.sfp-page-home .sfp-head--center .sfp-eyebrow {
    color: var(--sfp-navy-700);
}

body.sfp-page-home .sfp-eyebrow--decor::before,
body.sfp-page-home .sfp-eyebrow--decor::after {
    content: '—';
    margin-inline: 0.35rem;
    color: var(--sfp-gold-600);
    font-weight: 700;
}

body.sfp-page-home .sfp-home-projects__lead {
    max-width: 42rem;
    margin-inline: auto;
    color: var(--sfp-text-muted);
}

body.sfp-page-home .sfp-home-projects__action {
    text-align: center;
    margin: clamp(1.5rem, 3vw, 2rem) 0 0;
}

body.sfp-page-home .sfp-proj-grid--home {
    grid-template-columns: repeat(var(--sfp-proj-cols, 4), minmax(0, 1fr));
    max-width: 100%;
    margin-inline: auto;
}

body.sfp-page-home .sfp-proj-card--home {
    border-radius: 12px;
    box-shadow: 0 10px 28px -22px rgba(15, 39, 68, 0.35);
}

body.sfp-page-home .sfp-proj-card--home:hover .sfp-proj-card__img img {
    transform: scale(1.025);
}

body.sfp-page-home .sfp-process__list--home strong {
    box-shadow: 0 4px 14px -8px rgba(15, 39, 68, 0.35);
}

body.sfp-page-home .sfp-cta-band {
    position: relative;
    isolation: isolate;
    width: 100%;
    background: linear-gradient(135deg, #031c32 0%, #052845 55%, #031c32 100%);
    padding: clamp(1.75rem, 3vw, 2.35rem) 0;
}

body.sfp-page-home .sfp-cta-band__tech {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background:
        radial-gradient(ellipse 70% 90% at 100% 50%, rgba(212, 160, 23, 0.14), transparent 55%),
        repeating-linear-gradient(
            -12deg,
            rgba(255, 255, 255, 0.03) 0,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 9px
        );
    pointer-events: none;
}

body.sfp-page-home .sfp-cta-band__inner h2 {
    color: #fff;
}

body.sfp-page-home .sfp-cta-band__inner p {
    color: rgba(248, 250, 252, 0.82);
}

body.sfp-page-home .sfp-cta-band .sfp-eyebrow--light {
    color: var(--sfp-gold-500);
}

@media (max-width: 1200px) {
    body.sfp-page-home {
        --sfp-hero-photo-pos: 62% center;
    }

    body.sfp-page-home .sfp-proj-grid--home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    body.sfp-page-home {
        --sfp-hero-photo-pos: 66% center;
    }

    body.sfp-page-home .sfp-home-hero__copy,
    body.sfp-page-home .sfp-hero__content {
        max-width: none;
    }

    body.sfp-page-home .sfp-trust-strip--home .sfp-trust-strip__grid--six {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body.sfp-page-home {
        --sfp-hero-photo-pos: 72% center;
    }

    body.sfp-page-home .sfp-hero.sfp-home-hero {
        min-height: clamp(440px, 48vh, 500px);
    }

    body.sfp-page-home .sfp-hero.sfp-home-hero .sfp-hero__overlay {
        background: linear-gradient(
            180deg,
            rgba(4, 26, 48, 0.96) 0%,
            rgba(4, 26, 48, 0.9) 44%,
            rgba(4, 26, 48, 0.55) 100%
        );
    }

    body.sfp-page-home .sfp-home-hero h1 {
        font-size: clamp(2.1rem, 7vw, 2.75rem);
    }

    body.sfp-page-home .sfp-home-hero h1,
    body.sfp-page-home .sfp-home-hero .sfp-hero__tagline,
    body.sfp-page-home .sfp-home-hero__support {
        max-width: none;
    }

    body.sfp-page-home .sfp-trust-strip--home .sfp-trust-strip__grid--six {
        grid-template-columns: 1fr;
    }

    body.sfp-page-home .sfp-proj-grid--home {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    body.sfp-page-home .sfp-home-hero__copy .sfp-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    body.sfp-page-home .sfp-home-hero__copy .sfp-btn--hero {
        width: 100%;
        justify-content: center;
    }
}
