/* ============================================================
   Home hero (index.html only) - landing-page brief v1.1, batch D

   The carousel keeps rotating every 5 seconds with the same crossfade
   (js/main.js toggles .active on .hero-slide; hero-speed.css fades its
   opacity). This file only lays the hero out so that nothing overlaps
   on any slide, keeps the slide text still, and styles the buttons and
   proof labels, which sit once, outside the slides.

   Linked on index.html only. Nothing here changes another page.
   ============================================================ */

/* --- Photos as <picture> ------------------------------------------------ */
.hero .hero-image > picture {
    position: absolute;
    inset: 0;
    display: block;
}
.hero .hero-image > picture > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* --- Slide text visible and still ----------------------------------------- */
/* js/main.js fades each slide's title and subtitle in on load and on every
   slide change. The slides themselves still crossfade (their own opacity);
   the text inside them no longer fades or slides on top of that, and the
   first headline is visible from the first frame. */
.hero .hero-slide .hero-title,
.hero .hero-slide .hero-subtitle {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* --- Layout --------------------------------------------------------------- */
/* The hero becomes a one-column grid: the slides, then the buttons and
   labels, then (on phones) the arrows and dots. All three slides share one
   grid cell, so that row is as tall as the longest slide text and the
   buttons below never move when the slide changes. The slider and slides
   are no longer positioned, so each slide's photo and overlay (absolutely
   positioned) still cover the whole hero. */
section.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    height: auto;
    min-height: 100vh;
    padding: 130px 0 90px;
    box-sizing: border-box;
}
section.hero .hero-slider {
    position: static;
    display: grid;
    height: auto;
    grid-row: 1;
    grid-column: 1;
}
section.hero .hero-slide {
    position: static;
    grid-area: 1 / 1;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
section.hero .hero-slide .hero-content {
    height: auto;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 90px;
    box-sizing: border-box;
}
section.hero .hero-actions {
    position: relative;
    z-index: 3;
    grid-row: 2;
    grid-column: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 90px;
    box-sizing: border-box;
}

/* --- Buttons (same look as the other landing pages) ---------------------- */
section.hero .hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}
section.hero .hero-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-decoration: none;
    text-shadow: none;
    box-sizing: border-box;
    transition: background-color 0.2s ease, color 0.2s ease;
}
section.hero .hero-cta__btn--wa {
    background-color: #A23629;
    color: #FFFFFF;
    border: 2px solid #A23629;
}
section.hero .hero-cta__btn--wa:hover {
    background-color: #8A2C21;
    border-color: #8A2C21;
    color: #FFFFFF;
}
section.hero .hero-cta__btn--call {
    background-color: #FFFFFF;
    color: #2F2F2F;
    border: 2px solid #FFFFFF;
}
section.hero .hero-cta__btn--call:hover {
    background-color: #F1F1F1;
    border-color: #F1F1F1;
    color: #2F2F2F;
}
section.hero .hero-cta__btn:focus-visible {
    outline: 3px solid #FFFFFF;
    outline-offset: 3px;
}
section.hero .hero-cta__icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}
/* css/icons-modern.css draws every [class*="btn"] svg as an outline; keep the
   WhatsApp glyph filled, exactly as the floating button draws it. */
section.hero .hero-cta__btn--wa .hero-cta__icon {
    fill: currentColor;
    stroke: none;
}

/* --- Proof labels --------------------------------------------------------- */
section.hero .hero-proof {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
section.hero .hero-proof li {
    margin: 0;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

/* --- Phones ------------------------------------------------------------- */
@media (max-width: 767px) {
    /* The hero grows with its content instead of style.css's fixed 70vh/60vh. */
    section.hero {
        min-height: 0;
        padding: 112px 0 20px;
    }
    section.hero .hero-slide .hero-content,
    section.hero .hero-actions {
        padding: 0 20px;
    }
    section.hero .hero-cta {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }
    section.hero .hero-cta__btn {
        width: 100%;
        max-width: 360px;
    }

    /* Arrows and dots in one row under the labels, instead of over the text:
       the arrows at the ends of the row, the dots between them. */
    section.hero .hero-controls,
    section.hero .hero-indicators {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        transform: none;
        grid-row: 3;
        grid-column: 1;
        justify-self: center;
        align-self: center;
        margin-top: 16px;
    }
    section.hero .hero-controls {
        width: 220px;
        padding: 0;
        justify-content: space-between;
    }
}
