/* ================================================================
   BOX EXPRESS — HOME V3 | FASE 1
   Mensagem fixa do Hero + 3 caminhos do visitante.
   CSS isolado: mantém style.css e os carrosséis existentes.
   ================================================================ */

/* O H1 existe e é legível mesmo antes do Typewriter começar. */
.hero-sequence .home-v3-hero__headline {
    max-width: 820px;
    margin: 0 0 18px;
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(2rem, 3.6vw, 3.85rem);
    line-height: 1.13;
    font-weight: 700;
    letter-spacing: -.032em;
    text-shadow: 0 4px 22px rgba(0, 0, 0, .35);
    text-wrap: balance;
}

/* O Typewriter continua ativo, mas ocupa um papel secundário. */
.hero-sequence .home-v3-hero__typewriter {
    display: block;
    min-height: 2.25em;
    max-width: 800px;
    margin: 0 0 17px !important;
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(1.35rem, 2.25vw, 2.3rem);
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -.015em;
    text-shadow: 0 4px 16px rgba(0, 0, 0, .36);
}

.hero-sequence .home-v3-hero__typewriter .typewriter-white {
    color: #fff;
}
.hero-sequence .home-v3-hero__typewriter .typewriter-yellow {
    color: #f3cc1f;
}
.hero-sequence .home-v3-hero__typewriter::after {
    width: 62px;
    height: 3px;
    margin-top: 12px;
}

/* Nova secção: orientação rápida do visitante. */
.home-v3-paths {
    padding: clamp(40px, 5.5vw, 80px) 0;
    position: relative;
    isolation: isolate;
}
.home-v3-paths__heading {
    max-width: 760px;
    margin: 0 auto clamp(25px, 3vw, 38px);
    text-align: center;
}
.home-v3-paths__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #a77900;
    font-size: .76rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.home-v3-paths__heading h2 {
    margin: 0 0 12px;
    color: #1b3563;
    font-size: clamp(1.75rem, 2.9vw, 2.75rem);
    line-height: 1.18;
    letter-spacing: -.025em;
}
.home-v3-paths__heading p {
    margin: 0 auto;
    max-width: 650px;
    color: #52637c;
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(.94rem, 1.2vw, 1.04rem);
    line-height: 1.7;
    font-weight: 400;
}
.home-v3-paths__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
}
.home-v3-path-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    min-height: 272px;
    overflow: hidden;
    padding: clamp(23px, 2.4vw, 33px);
    color: #1b3563;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e2e9f3;
    border-radius: 19px;
    box-shadow: 0 12px 34px rgba(27, 53, 99, .065);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.home-v3-path-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #1b3563, #f3cc1f);
}
.home-v3-path-card--quote {
    background: linear-gradient(150deg, #fff 65%, #fffbee 100%);
}
.home-v3-path-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    margin-bottom: 21px;
    border-radius: 15px;
    font-size: 1.4rem;
    color: #1b3563;
    background: #f1f5fb;
}
.home-v3-path-card--quote .home-v3-path-card__icon {
    background: #fff0b8;
}
.home-v3-path-card--track .home-v3-path-card__icon {
    background: #eaf3fc;
}
.home-v3-path-card h3 {
    margin: 0 0 11px;
    font-family: 'Quicksand', sans-serif;
    color: #1b3563;
    font-size: clamp(1.14rem, 1.5vw, 1.35rem);
    font-weight: 700;
    line-height: 1.3;
}
.home-v3-path-card p {
    margin: 0 0 22px;
    font-family: 'Open Sans', sans-serif;
    font-size: .89rem;
    font-weight: 400;
    line-height: 1.7;
    color: #53647c;
}
.home-v3-path-card__action {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: auto;
    font-family: 'Quicksand', sans-serif;
    font-size: .93rem;
    font-weight: 700;
    color: #1b3563;
}
.home-v3-path-card__action i {
    color: #c59200;
    transition: transform .22s ease;
}
.home-v3-path-card:hover {
    color: #1b3563;
    text-decoration: none;
    transform: translateY(-5px);
    border-color: #c3d0e2;
    box-shadow: 0 20px 44px rgba(27, 53, 99, .12);
}
.home-v3-path-card:hover .home-v3-path-card__action i {
    transform: translateX(4px);
}
.home-v3-path-card:focus-visible {
    outline: 3px solid #e6ba18;
    outline-offset: 4px;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .home-v3-paths__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-v3-path-card:last-child {
        grid-column: 1 / -1;
    }
    .hero-sequence .home-v3-hero__headline {
        font-size: clamp(1.8rem, 4.2vw, 2.8rem);
    }
}

@media (max-width: 575.98px) {
    .hero-sequence .home-v3-hero__headline {
        margin-bottom: 12px;
        font-size: clamp(1.55rem, 6.2vw, 2.1rem);
        line-height: 1.2;
    }
    .hero-sequence .home-v3-hero__typewriter {
        min-height: 2.5em;
        margin-bottom: 12px !important;
        font-size: clamp(1.12rem, 4.6vw, 1.55rem);
    }
    .hero-sequence .home-v3-hero__typewriter .typewriter-white,
    .hero-sequence .home-v3-hero__typewriter .typewriter-yellow {
        display: inline;
    }
    .home-v3-paths {
        padding: 45px 0 53px;
    }
    .home-v3-paths__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .home-v3-path-card,
    .home-v3-path-card:last-child {
        grid-column: auto;
        min-height: 0;
        padding: 24px 22px;
        border-radius: 16px;
    }
    .home-v3-path-card__icon {
        width: 52px;
        height: 52px;
        margin-bottom: 16px;
    }
    .home-v3-path-card p {
        margin-bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-v3-path-card,
    .home-v3-path-card__action i {
        transition: none;
    }
    .home-v3-path-card:hover {
        transform: none;
    }
}