/* ============================================================
   MYSIMTRAVEL - HOMEPAGE
   Hero compacto → cards de destino (configuração rápida) → dúvidas da compra.
   Celular: destinos em lista compacta que abre o card; tablet: 2 colunas;
   desktop: 4 colunas com a configuração visível.
   ============================================================ */

.mst-home {
    --home-text: #1A1A1C;
    --home-text-2: #3F3F43;
    --home-muted: #616166;
    --home-border: #E4E4E8;
    --home-soft: #F7F7F9;
    --home-brand-soft: #FFF1EB;
    --home-brand-ink: #A33600;
    --home-cta: #D04500;
    --home-cta-hover: #B23B00;
    --home-focus: #D04500;
    --home-error: #B42318;
    --home-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.06);
    background: #fff;
    color: var(--home-text-2);
}
.mst-home a:focus-visible,
.mst-home button:focus-visible,
.mst-home select:focus-visible { outline: 3px solid var(--home-focus); outline-offset: 2px; }

/* ── Banner ── */
/* Foto em largura total com a sobreposição da marca; no desktop e tablet os cards de
   destino sobem sobre a base do banner (ver .mst-dests). */
.mst-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 220px;
    background: #1A1A1C;
    color: #fff;
}
.mst-hero__bg { position: absolute; inset: 0; z-index: 0; }
.mst-hero__bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% 28%; }
.mst-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(800px 500px at 88% 8%, rgba(255, 80, 0, 0.28), transparent 65%),
        linear-gradient(100deg, rgba(15, 15, 17, 0.94) 0%, rgba(20, 20, 22, 0.84) 40%, rgba(30, 30, 32, 0.5) 72%, rgba(30, 30, 32, 0.28) 100%),
        linear-gradient(180deg, rgba(15, 15, 17, 0) 40%, rgba(15, 15, 17, 0.88) 100%);
}
.mst-hero__inner { position: relative; z-index: 1; }
.mst-hero__copy { max-width: 780px; }
/* Largura em em (e não ch): o título quebra igual com a fonte provisória e com a do site,
   sem o salto de layout quando a Plus Jakarta Sans termina de carregar. */
.mst-hero__title {
    max-width: 16em;
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: clamp(1.625rem, 1.1rem + 2.4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #fff;
}
/* Segunda linha fixa: a quebra não muda quando a fonte do site termina de carregar */
.mst-hero__title span {
    display: block;
    background: linear-gradient(120deg, #FF5000 0%, #FF7A1A 50%, #FFB793 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mst-hero__text {
    max-width: 34em;
    margin: 0 0 28px;
    font-size: 1.1875rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
}
.mst-hero__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.mst-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.mst-hero__link:hover { color: #FFB793; }
.mst-hero__link--strong {
    padding: 0 18px;
    background: #fff;
    border-radius: 999px;
    color: var(--home-text);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.mst-hero__link--strong i { color: var(--home-cta); }
.mst-hero__link--strong:hover { background: #FFF1EB; color: var(--home-text); }
.mst-hero a:focus-visible { outline-color: #fff; }

/* ── Destinos ── */
/* Cabeçalho dos destinos sobre a base escura do banner; os cards começam por cima dele */
.mst-dests { position: relative; z-index: 1; margin-top: -150px; padding: 0 0 64px; }
.mst-dests__head .mst-dests__title,
.mst-dests__head .mst-dests__all { color: #fff; }
.mst-dests__head .mst-dests__all:hover { color: #FFB793; }
.mst-dests__head .mst-dests__all:focus-visible { outline-color: #fff; }
.mst-dests__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    margin-bottom: 28px;
}
.mst-dests__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--home-text);
}
.mst-dests__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    flex-shrink: 0;
    font-weight: 700;
    color: var(--home-text);
    text-decoration: underline;
    text-underline-offset: 4px;
    white-space: nowrap;
}
.mst-dests__all:hover { color: var(--home-cta-hover); }
.mst-dests__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

.mst-dest {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 20px;
    box-shadow: var(--home-shadow);
}
.mst-dest__head {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas: "icon id" "price price";
    gap: 0 14px;
    padding: 24px 24px 0;
}
.mst-dest__icon {
    grid-area: icon;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--home-brand-soft);
    color: var(--home-cta);
    font-size: 1.5rem;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.mst-dest__icon svg { display: block; width: 100%; height: 100%; }
.mst-dest__id { grid-area: id; align-self: center; min-width: 0; }
.mst-dest__name { margin: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; line-height: 1.2; color: var(--home-text); }
.mst-dest__toggle {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.mst-dest__toggle:disabled { color: inherit; opacity: 1; cursor: default; }
/* Duas linhas reservadas: os preços "a partir de" ficam alinhados entre os cards */
.mst-dest__coverage { min-height: 2.7em; margin: 2px 0 0; font-size: 0.875rem; line-height: 1.35; color: var(--home-muted); }
.mst-dest__price {
    grid-area: price;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--home-border);
}
.mst-dest__price-label { font-size: 0.8125rem; font-weight: 600; color: var(--home-muted); }
.mst-dest__price-value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; line-height: 1.1; color: var(--home-text); }
.mst-dest__price.is-unavailable .mst-dest__price-value { color: #9A9AA0; text-decoration: line-through; }
.mst-dest__chevron { display: none; }

.mst-dest__panel { display: flex; flex: 1; flex-direction: column; padding: 20px 24px 24px; }
.mst-dest__form { display: flex; flex: 1; flex-direction: column; gap: 18px; }
.mst-dest__field { min-width: 0; margin: 0; padding: 0; border: 0; }
.mst-dest__label { display: block; margin: 0 0 8px; padding: 0; font-size: 0.8125rem; font-weight: 600; color: var(--home-muted); }

/* Seletor segmentado (formato e internet por dia): rádios reais, acessíveis por teclado */
.mst-seg {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 4px;
    padding: 4px;
    background: #F1F1F4;
    border-radius: 12px;
}
.mst-seg__opt { position: relative; display: block; margin: 0; }
.mst-seg__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mst-seg__opt span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 6px;
    border-radius: 9px;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--home-text-2);
    text-align: center;
    transition: background-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.mst-seg__opt:hover span { color: var(--home-text); }
.mst-seg__opt input:checked + span { background: #fff; color: var(--home-text); box-shadow: 0 1px 3px rgba(16, 24, 40, 0.14), inset 0 0 0 2px var(--color-primary); }
.mst-seg__opt input:focus-visible + span { outline: 3px solid var(--home-focus); outline-offset: 1px; }
.mst-seg__opt.is-unavailable span { color: #9A9AA0; text-decoration: line-through; }

.mst-dest__select {
    width: 100%;
    min-height: 44px;
    padding: 0 40px 0 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--home-text);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%233F3F43' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
    border: 1px solid #C4C4CA;
    border-radius: 12px;
    appearance: none;
    cursor: pointer;
}
.mst-dest__select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(255, 80, 0, 0.25); outline: none; }

.mst-dest__error { margin: 0; font-size: 0.8125rem; font-weight: 600; color: var(--home-error); }

.mst-dest__buy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin-top: auto;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: var(--home-cta);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(208, 69, 0, 0.22);
    transition: background-color 0.15s, box-shadow 0.15s;
}
.mst-dest__buy:hover { background: var(--home-cta-hover); }
.mst-dest__buy:disabled { background: #C4C4CA; box-shadow: none; cursor: not-allowed; }
.mst-dest__form.is-submitting .mst-dest__buy { cursor: progress; opacity: 0.85; }
.mst-dest__details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: -6px 0 -10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--home-text-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.mst-dest__details:hover { color: var(--home-cta-hover); }

/* Outros destinos */
.mst-other {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 14px 28px;
    align-items: center;
    margin-top: 40px;
    padding: 22px 24px;
    background: var(--home-soft);
    border: 1px solid var(--home-border);
    border-radius: 20px;
}
.mst-other__title { margin: 0; font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; color: var(--home-text); }
.mst-other__text { margin: 2px 0 0; font-size: 0.9375rem; color: var(--home-muted); }
.mst-other__form { display: flex; gap: 10px; align-items: stretch; }
.mst-other__form .plan-finder__control { flex: 1; min-width: 0; }
.mst-other__form .plan-finder__control-shell { min-height: 54px; background: #fff; border-color: #C4C4CA; border-radius: 14px; }
.mst-other__form .plan-finder__control-input { font-size: 1rem; }
.mst-other__form .plan-finder__dropdown { z-index: 30; }
.mst-other__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 54px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    background: var(--home-text);
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}
.mst-other__btn:hover { background: #3D3D3F; }
.mst-other__links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mst-other__links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--home-text-2);
}
.mst-other__links a:hover { border-color: var(--color-primary); color: var(--home-text); }
.mst-other__links .mst-other__all { border-color: transparent; background: transparent; color: var(--home-text); text-decoration: underline; text-underline-offset: 3px; }

/* ── Seções de dúvidas ── */
.mst-section { padding: 56px 0; }
.mst-section__title {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--home-text);
    text-align: center;
}
.mst-section__text { max-width: 62ch; margin: 0 auto 28px; font-size: 1rem; color: var(--home-muted); text-align: center; }

.mst-how { background: var(--home-soft); }
.mst-how__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 28px 0 0; padding: 0; list-style: none; }
.mst-how__step { padding: 24px; background: #fff; border: 1px solid var(--home-border); border-radius: 20px; }
.mst-how__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
}
.mst-how__step h3,
.mst-format h3,
.mst-why__item h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; color: var(--home-text); }
.mst-how__step p,
.mst-why__item p { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--home-text-2); }

.mst-formats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 920px; margin: 0 auto; }
.mst-format { display: flex; flex-direction: column; padding: 24px; background: #fff; border: 1px solid var(--home-border); border-radius: 20px; box-shadow: var(--home-shadow); }
.mst-format__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: var(--home-brand-soft);
    color: var(--home-cta);
    font-size: 1.375rem;
}
.mst-format ul { display: grid; gap: 8px; margin: 6px 0 18px; padding: 0; list-style: none; }
.mst-format li { position: relative; padding-left: 26px; font-size: 0.9375rem; line-height: 1.5; color: var(--home-text-2); }
.mst-format li::before {
    content: "\f00c";
    position: absolute;
    top: 1px;
    left: 0;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.875rem;
    color: #067647;
}
.mst-format__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: auto;
    font-weight: 700;
    color: var(--home-text);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.mst-format__cta:hover { color: var(--home-cta-hover); }

.mst-why { background: var(--home-soft); }
.mst-why__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.mst-why__item { padding: 22px; background: #fff; border: 1px solid var(--home-border); border-radius: 18px; }
.mst-why__item > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: var(--home-brand-soft);
    color: var(--home-cta);
    font-size: 1.25rem;
}
.mst-why__item > i.fa-whatsapp { background: #E7F7EE; color: #128C4A; }

/* Seções reaproveitadas do tema: menos espaço vazio */
.mst-home .faq { padding: 56px 0; }
.mst-home .faq .section-header { margin-bottom: 24px; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1199px) {
    .mst-dests__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mst-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 959px) {
    .mst-hero { padding: 64px 0 204px; }
    .mst-hero__text { font-size: 1rem; margin-bottom: 10px; }
    .mst-other { grid-template-columns: minmax(0, 1fr); }
    .mst-how__steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .mst-how__step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0 14px; padding: 18px; }
    .mst-how__num { grid-row: 1 / span 2; margin: 0; }
}

@media (max-width: 767px) {
    /* Topo enxuto: os quatro destinos cabem na primeira tela, acima do botão do WhatsApp */
    .mst-hero__title { margin-bottom: 10px; }
    .mst-hero__links { gap: 4px 16px; }
    .mst-hero__link { font-size: 0.875rem; }
    .mst-hero__link--strong { padding: 0 14px; }
    /* Celular: banner só atrás do texto (sem sobreposição) para os quatro destinos caberem na primeira tela */
    .mst-hero { padding: 28px 0 26px; }
    .mst-hero__text { margin-bottom: 18px; }
    .mst-hero__text-lead { display: none; }
    .mst-hero__title span { display: inline; }
    .mst-hero__bg img { object-position: 45% 25%; }
    .mst-hero__bg::after {
        background:
            radial-gradient(400px 260px at 100% 0%, rgba(255, 80, 0, 0.3), transparent 65%),
            linear-gradient(180deg, rgba(15, 15, 17, 0.8) 0%, rgba(15, 15, 17, 0.9) 100%);
    }
    .mst-dests { margin-top: 0; padding: 16px 0 40px; }
    .mst-dests__head .mst-dests__title,
    .mst-dests__head .mst-dests__all { color: var(--home-text); }
    .mst-dests__head .mst-dests__all:hover { color: var(--home-cta-hover); }
    .mst-dests__head .mst-dests__all:focus-visible { outline-color: var(--home-focus); }
    .mst-dests__head { align-items: center; margin-bottom: 12px; }
    .mst-dests__title { font-size: 1.375rem; }
    .mst-dests__all-long { display: none; }
    .mst-dests__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .mst-formats__grid { grid-template-columns: minmax(0, 1fr); }
    .mst-section { padding: 40px 0; }
    .mst-why__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .mst-other { padding: 18px 16px; }
    .mst-other__form { flex-direction: column; }

    /* Lista compacta: cada destino abre a configuração (só com JS; sem JS os cards ficam abertos) */
    .mst-home-js .mst-dest__head {
        grid-template-columns: 40px minmax(0, 1fr) auto 14px;
        grid-template-areas: "icon id price chev";
        align-items: center;
        gap: 0 12px;
        padding: 12px 14px;
        min-height: 72px;
    }
    .mst-home-js .mst-dest__icon { width: 40px; height: 40px; font-size: 1.25rem; }
    .mst-home-js .mst-dest__name { font-size: 1.0625rem; }
    .mst-home-js .mst-dest__coverage { min-height: 0; overflow: hidden; font-size: 0.8125rem; text-overflow: ellipsis; white-space: nowrap; }
    .mst-home-js .mst-dest__price { align-items: flex-end; gap: 0; margin: 0; padding: 0; border: 0; }
    .mst-home-js .mst-dest__price-label { font-size: 0.75rem; font-weight: 400; }
    .mst-home-js .mst-dest__price-value { font-size: 1.0625rem; }
    .mst-home-js .mst-dest__chevron { display: block; grid-area: chev; color: var(--home-muted); font-size: 0.8125rem; transition: transform 0.2s; }
    .mst-home-js .mst-dest.is-open .mst-dest__chevron { transform: rotate(180deg); }
    .mst-home-js .mst-dest__toggle::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
    .mst-home-js .mst-dest__toggle:focus-visible { outline: none; }
    .mst-home-js .mst-dest__head:has(.mst-dest__toggle:focus-visible) { outline: 3px solid var(--home-focus); outline-offset: -3px; border-radius: 20px; }
    .mst-home-js .mst-dest:not(.is-open) .mst-dest__panel { display: none; }
    .mst-home-js .mst-dest.is-open { border-color: #FFC9AE; box-shadow: 0 8px 24px rgba(16, 24, 40, 0.1); }
    .mst-home-js .mst-dest__panel { padding: 16px 14px 18px; border-top: 1px solid #EFEFF2; }
    .mst-home-js .mst-dest__form { gap: 16px; }
}

/* Telas pequenas (até 389px): tudo numa linha para os quatro destinos caberem na primeira tela */
@media (max-width: 389px) {
    .mst-hero__text { font-size: 0.9375rem; }
    .mst-hero__links { gap: 4px 12px; }
    .mst-hero__link { font-size: 0.8125rem; }
    .mst-hero__link--strong { padding: 0 12px; }
    .mst-dests__title { font-size: 1.25rem; }
    .mst-home-js .mst-dest__head { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "icon id price"; padding: 12px; }
    .mst-home-js .mst-dest__name { font-size: 1rem; }
    .mst-home-js .mst-dest__price-value { font-size: 1rem; }
    .mst-home-js .mst-dest__chevron { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .mst-home *,
    .mst-home *::before,
    .mst-home *::after { transition-duration: 0.01ms !important; }
}
