/* hp-imagery.css -- Item #70 imagery component styling.
   Brand: gold #EEB211, dark #212221, gray #B2B3B2; Poppins is loaded
   site-wide by the Elementor kit, so it is referenced, not imported.
   Mobile-first-ish; no !important; image dimensions/aspect-ratio set to
   avoid layout shift (CLS). ASCII-only. */

/* ============================================================
   HERO OVERLAY
   The <picture> cover image and the content layer are positioned
   inline by the build scripts (image z-index auto, content z-index 2).
   This owns the dark overlay that sits between them for legibility.
   ============================================================ */
.hp-hero {
    position: relative;
    overflow: hidden;
    /* Unified hero height (Gate 5b): replaces per-page min-height drift.
       Flex-centers the content layer; absolutely-positioned image/overlay are
       out of flow and unaffected. min-height (not height) means tall content
       (e.g. the /buy search widget) can grow the hero rather than clip. */
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
@media (max-width: 768px) {
    .hp-hero { min-height: 60vh; }
}
.hp-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(33, 34, 33, 0.30) 0%,
        rgba(33, 34, 33, 0.55) 55%,
        rgba(33, 34, 33, 0.82) 100%
    );
}
/* Market keeps its navy tint (Decision A); modifier beats the base rule
   on specificity, no !important needed. */
.hp-hero--market .hp-hero-overlay {
    background: rgba(6, 36, 61, 0.50);
}

/* ============================================================
   STAT STRIP -- gold-on-charcoal confidence band
   ============================================================ */
.hp-stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    background: #212221;
    padding: 72px 24px;
    font-family: Poppins, sans-serif;
}
.hp-stat {
    text-align: center;
    padding: 8px 12px;
}
.hp-stat__number {
    display: block;
    font-size: 58px;
    font-weight: 700;
    line-height: 1;
    color: #EEB211;
}
.hp-stat__label {
    display: block;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #B2B3B2;
    line-height: 1.4;
}
@media (max-width: 768px) {
    .hp-stat-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 16px;
        padding: 52px 20px;
    }
    .hp-stat__number { font-size: 46px; }
}
@media (max-width: 480px) {
    .hp-stat__number { font-size: 40px; }
    .hp-stat__label { font-size: 12px; letter-spacing: 1px; }
}

/* ============================================================
   FEATURE ROW -- alternating two-column image + text
   ============================================================ */
.hp-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 76px 24px;
    font-family: Poppins, sans-serif;
}
/* --left: image left, text right (source order, default).
   --right: image right, text left (swap via order). */
.hp-feature-row--right .hp-feature-row__media { order: 2; }
.hp-feature-row--right .hp-feature-row__content { order: 1; }

.hp-feature-row__media { min-width: 0; }
.hp-feature-row__img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 10px;
    border-bottom: 4px solid #EEB211;
}
.hp-feature-row__content { min-width: 0; }
.hp-feature-row__eyebrow {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #EEB211;
}
.hp-feature-row__headline {
    margin: 0 0 18px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.22;
    color: #212221;
}
.hp-feature-row__body {
    margin: 0 0 26px;
    font-size: 17px;
    line-height: 1.7;
    color: #3C3C3C;
    max-width: 58ch;
}
.hp-feature-row__cta {
    display: inline-block;
    background: #EEB211;
    color: #212221;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 6px;
    transition: background 0.15s ease;
}
.hp-feature-row__cta:hover,
.hp-feature-row__cta:focus-visible {
    background: #D89F0F;
    outline: none;
    color: #212221;
}
@media (max-width: 768px) {
    .hp-feature-row {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 52px 20px;
    }
    /* Stack with image on top regardless of side. Same specificity as the
       desktop --right rules, declared later, so it wins without !important. */
    .hp-feature-row--right .hp-feature-row__media { order: 0; }
    .hp-feature-row--right .hp-feature-row__content { order: 0; }
    .hp-feature-row__headline { font-size: 26px; }
    .hp-feature-row__body { font-size: 16px; }
}

/* ============================================================
   IMAGE BAND -- cinematic full-bleed divider with statement
   Container (position/min-height/flex centering), cover image, and content
   wrapper are positioned inline by the helper; this owns overlay + type.
   ============================================================ */
.hp-image-band {
    font-family: Poppins, sans-serif;
}
.hp-band-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(33, 34, 33, 0.45) 0%,
        rgba(33, 34, 33, 0.62) 100%
    );
}
.hp-image-band__content {
    max-width: 880px;
}
.hp-image-band__statement {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
}
.hp-image-band__sub {
    margin: 16px 0 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}
@media (max-width: 768px) {
    .hp-image-band__statement { font-size: 28px; }
    .hp-image-band__sub { font-size: 16px; }
}

/* ============================================================
   HOMEPAGE HERO -- full-hero rotator + static headline (FIX 1/2/3/4)
   LAYER 1 (z:0): .hp-rotator fills .hp-hero; each slide is full-hero so its
   <picture> covers edge-to-edge (fixes the prior top dark-bar where the image
   was centered on the small low rotator block).
   LAYER 2 (z:1): .hp-hero-overlay dims the image.
   LAYER 3 (z:2): .hp-home-stage holds ONLY the static headline.
   Slide content (subhead+CTA) is z:3 -- ABOVE the overlay so text isn't dimmed.
   Differential fade: image 700ms, content 400ms (text reads before image settles).
   ============================================================ */
.hp-hero--home {
    isolation: isolate;
}
/* Homepage-scoped overlay: with FIX A the text sits ABOVE the overlay, so the
   overlay only sets image mood. Darker at top (headline legibility), lighter at
   the bottom to remove the heavy dark band. Other .hp-hero pages keep the base
   overlay (dark bottom) for their lower-placed content + CTAs. */
.hp-hero--home .hp-hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(33, 34, 33, 0.50) 0%,
        rgba(33, 34, 33, 0.35) 55%,
        rgba(33, 34, 33, 0.22) 100%
    );
}
.hp-home-stage {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 24px;
    box-sizing: border-box;
    text-align: center;
    pointer-events: none;
}
.hp-home-headline {
    pointer-events: auto;
    font-family: Poppins, sans-serif;
    font-weight: 700;
    color: #ffffff;
    font-size: 48px;
    line-height: 1.15;
    text-align: center;
    margin: 0 0 56px;
    max-width: 26ch;
}
.hp-rotator {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hp-rotator__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
}
.hp-rotator__slide[data-active="true"] {
    opacity: 1;
}
/* Per-slide image fills the entire hero (containing block is the full-hero slide). */
.hp-rotator__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 700ms ease;
}
.hp-rotator__slide[data-active="true"] .hp-rotator__img {
    opacity: 1;
}
.hp-rotator__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Per-slide content lands below the headline; above the overlay so text isn't dimmed. */
.hp-rotator__content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, 100px);
    width: 100%;
    max-width: 900px;
    padding: 0 24px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    z-index: 3;
    opacity: 0;
    transition: opacity 400ms ease;
    pointer-events: none;
}
.hp-rotator__slide[data-active="true"] .hp-rotator__content {
    opacity: 1;
}
.hp-rotator__subhead {
    font-family: Poppins, sans-serif;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.97);
    margin: 0 0 8px;
    max-width: 30ch;
    text-align: center;
}
.hp-rotator__cta {
    display: inline-block;
    background: #EEB211;
    color: #212221;
    font-family: Poppins, sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 6px;
    transition: background 0.15s ease;
    pointer-events: auto;
}
.hp-rotator__cta:hover,
.hp-rotator__cta:focus-visible {
    background: #D89F0F;
    outline: none;
    color: #212221;
}
@media (max-width: 768px) {
    .hp-home-headline { font-size: 32px; max-width: 24ch; margin-bottom: 44px; }
    .hp-rotator__subhead { font-size: 20px; }
    .hp-rotator__content { transform: translate(-50%, 72px); gap: 26px; }
}
@media (max-width: 480px) {
    .hp-home-headline { font-size: 26px; margin-bottom: 36px; max-width: 22ch; }
    .hp-rotator__subhead { font-size: 17px; }
    .hp-rotator__content { transform: translate(-50%, 56px); gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .hp-rotator__img,
    .hp-rotator__content { transition: none; }
}
