/* Hero Outubro Rosa — Master Carousel
   MESMO DESENHO do slide Trabalhe Conosco (hero_trabalhe_conosco/css/style.css):
   cantos recortados por clip-path, título em caixa alta, chips, botão de vidro,
   painel lateral e malha de fundo. Só a paleta muda: o ciano/laranja da casa vira o
   rosa da campanha, declarado uma vez nas variáveis abaixo. Se o slide de referência
   mudar de forma, este acompanha; não criar forma própria aqui.
   As regras de altura do mobile que o wrapper aplica aos outros slides estão
   replicadas no fim deste arquivo, para não mexer no wrapper compartilhado. */

.hor-section {
    --hor-rosa: #ff4f9a;
    --hor-rosa-claro: #ff8cc0;
    --hor-rosa-borda: rgba(255, 79, 154, 0.45);
    --hor-vidro-bg: linear-gradient(135deg, rgba(255, 79, 154, 0.24), rgba(216, 27, 115, 0.24));
    --hor-vidro-bg-hover: linear-gradient(135deg, rgba(255, 79, 154, 0.36), rgba(216, 27, 115, 0.36));
    --hor-vidro-brilho: 0 0 20px rgba(255, 79, 154, 0.22);
    --hor-vidro-brilho-hover: 0 0 28px rgba(255, 79, 154, 0.42);
    --hor-texto-brilho: 0 0 8px rgba(255, 79, 154, 0.8);

    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    align-items: safe center;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background-color: #050b14;
    border-bottom: 1px solid #1a2634;
    /* Folga para a barra de controles do carrossel (44px a 12px da base). */
    padding-bottom: 56px;
}

/* Foto da campanha (<picture> no template) e véu de leitura por cima dela. */
.hor-fundo,
.hor-veu {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hor-fundo {
    z-index: 0;
    display: block;
}

.hor-fundo__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.hor-veu {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(5, 11, 20, 0.92) 0%, rgba(5, 11, 20, 0.62) 40%, rgba(5, 11, 20, 0.12) 70%, rgba(5, 11, 20, 0.3) 100%),
        linear-gradient(180deg, rgba(5, 11, 20, 0.06) 0%, rgba(5, 11, 20, 0.12) 52%, rgba(5, 11, 20, 0.56) 100%);
}

.hor-section,
.hor-section p,
.hor-section li,
.hor-section span,
.hor-section strong {
    color: #fff !important;
}

/* Malha do tema (a mesma do wrapper) em rosa + faixa diagonal do rodapé. */
.hor-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 50% 50%, transparent 20%, #000 120%),
        linear-gradient(90deg, rgba(255, 79, 154, 0.035) 1px, transparent 1px),
        linear-gradient(rgba(255, 79, 154, 0.035) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    opacity: 0.45;
    pointer-events: none;
    z-index: 2;
}

.hor-section::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    background:
        linear-gradient(180deg, transparent 0%, rgba(255, 79, 154, 0.08) 72%, rgba(255, 140, 192, 0.08) 100%),
        repeating-linear-gradient(115deg, transparent 0 18px, rgba(255, 255, 255, 0.045) 19px 20px);
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
}

/* Rolagem de emergência (padrão do hero_essencial): com fonte ou espaçamento de texto
   maiores (WCAG 1.4.4 / 1.4.12), quem rola é o conteúdo, e preço e botões continuam
   alcançáveis em vez de sumirem atrás do overflow: hidden da seção. */
.hor-conteudo {
    position: relative;
    z-index: 4;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: clip;
}

.hor-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin: 0 0 16px;
    color: var(--hor-rosa-claro) !important;
    border: 1px solid var(--hor-rosa-borda);
    background: rgba(5, 11, 20, 0.72);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    box-shadow: 0 0 18px rgba(255, 79, 154, 0.16);
}

.hor-eyebrow i {
    color: var(--hor-rosa);
}

.hor-section .hor-eyebrow__rotulo {
    padding: 3px 7px;
    color: #050b14 !important;
    background: var(--hor-rosa);
    font-size: 0.75rem; /* 12px: piso de texto do carrossel (era 10,6px) */
    line-height: 1;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.hor-titulo {
    max-width: 680px;
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
}

.hor-section .hor-titulo__destaque {
    color: var(--hor-rosa-claro) !important;
    text-shadow: 0 0 18px rgba(255, 79, 154, 0.45);
}

.hor-descricao {
    max-width: 620px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 1.04rem;
    line-height: 1.6;
}

.hor-itens {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 230px));
    gap: 10px;
    max-width: 540px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.hor-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.15;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    backdrop-filter: blur(10px);
}

.hor-item i {
    flex: 0 0 auto;
    color: var(--hor-rosa);
    font-size: 1rem;
}

.hor-acao {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
}

.hor-preco__rotulo {
    display: block;
    color: rgba(255, 255, 255, 0.76) !important;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hor-preco__valor {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 2px 0 0;
    line-height: 1;
}

.hor-preco__valor strong {
    font-size: clamp(2.2rem, 3.6vw, 3rem);
    font-weight: 900;
}

.hor-section .hor-preco__cifra,
.hor-section .hor-preco__mes {
    color: var(--hor-rosa-claro) !important;
    font-size: 1rem;
    font-weight: 800;
}

.hor-preco__valor--consulta {
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hor-botoes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.hor-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 15px 26px;
    border-radius: 0;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    line-height: 1;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

/* Anel de foco POR DENTRO: o clip-path do botão corta o outline externo. */
.hor-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -6px;
}

.hor-btn--primario {
    color: #fff !important;
    background: var(--hor-vidro-bg);
    border: 1px solid var(--hor-rosa);
    box-shadow: var(--hor-vidro-brilho);
    text-shadow: var(--hor-texto-brilho);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hor-btn--primario:hover,
.hor-btn--primario:focus-visible {
    transform: translateY(-3px);
    color: #fff !important;
    background: var(--hor-vidro-bg-hover);
    box-shadow: var(--hor-vidro-brilho-hover);
}

/* Ícone num círculo branco, como no botão de vidro dos outros slides. */
.hor-btn--primario > i:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #d81b73;
    font-size: 0.74rem;
    line-height: 1;
    text-shadow: none;
    box-shadow: 0 6px 14px rgba(150, 20, 80, 0.2);
}

.hor-btn--secundario {
    color: #fff !important;
    border: 1px solid var(--hor-rosa-borda);
    background: rgba(5, 11, 20, 0.58);
    box-shadow: inset 0 0 18px rgba(255, 79, 154, 0.08);
}

.hor-btn--secundario:hover,
.hor-btn--secundario:focus-visible {
    transform: translateY(-3px);
    border-color: var(--hor-rosa);
    background: rgba(255, 79, 154, 0.12);
}

/* Painel lateral (desktop), o mesmo cartão recortado do Trabalhe Conosco. */
.hor-painel {
    position: relative;
    min-height: 440px;
}

.hor-painel__card {
    position: absolute;
    right: 0;
    bottom: 4%;
    width: min(320px, 82%);
    padding: 18px 20px;
    background: rgba(5, 11, 20, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
}

.hor-section .hor-painel__card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--hor-rosa-claro) !important;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hor-section .hor-painel__card span {
    display: block;
    color: rgba(255, 255, 255, 0.76) !important;
    font-size: 0.9rem;
}

/* Entrada: o mesmo deslize dos outros slides, disparado pela classe que o Swiper põe
   no slide ativo (o wrapper só anima os slides da lista dele). É animação, não estado
   inicial escondido: se o JavaScript do carrossel não carregar, o conteúdo continua
   visível em vez de ficar com opacity 0. */
@keyframes hor-entra-esquerda {
    from { opacity: 0; transform: translateX(-48px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes hor-entra-direita {
    from { opacity: 0; transform: translateX(42px); }
    to { opacity: 1; transform: translateX(0); }
}

.swiper-slide-active .hor-section .hor-eyebrow,
.swiper-slide-active .hor-section .hor-titulo,
.swiper-slide-active .hor-section .hor-descricao,
.swiper-slide-active .hor-section .hor-itens,
.swiper-slide-active .hor-section .hor-acao {
    animation: hor-entra-esquerda 0.5s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.swiper-slide-active .hor-section .hor-painel {
    animation: hor-entra-direita 0.55s cubic-bezier(0.25, 1, 0.5, 1) 0.22s both;
}

.swiper-slide-active .hor-section .hor-titulo { animation-delay: 0.08s; }
.swiper-slide-active .hor-section .hor-descricao { animation-delay: 0.16s; }
.swiper-slide-active .hor-section .hor-itens { animation-delay: 0.24s; }
.swiper-slide-active .hor-section .hor-acao { animation-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
    .swiper-slide-active .hor-section * {
        animation: none !important;
    }

    .hor-btn {
        transition: none;
    }
}

/* Desktop estreito (container de 1140px): o 5vw do título passava de ~68px entre 1370 e
   1399px de largura, "FICA A UM TOQUE" quebrava em duas linhas e o botão do WhatsApp
   encostava na barra de controles (folga de 1px em 1399x800). Teto de 4.2rem nessa faixa;
   em 1366 o título fica praticamente igual (68 para 67px). */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .hor-titulo {
        font-size: clamp(2.5rem, 5vw, 4.2rem);
    }
}

/* Mobile: replica o que o wrapper aplica ao Trabalhe Conosco (altura cheia,
   conteúdo no topo, folga para os bullets) e as medidas mobile daquele slide.
   overflow-y: auto é a rolagem de emergência para tela baixa ou zoom 200%. */
@media (max-width: 991.98px) {
    #master-hero-carousel .hor-section {
        height: 100%;
        min-height: 100%;
        align-items: flex-start;
        text-align: center;
        /* Reserva embaixo para a barra de controles do carrossel (44px a 12px da
           base); com menos, ela cobria o "Saiba mais". */
        padding: clamp(8px, 1.6svh, 16px) 0 calc(66px + env(safe-area-inset-bottom, 0px));
        overflow: hidden;
        border: none;
    }

    .hor-fundo__img {
        object-position: 60% center;
    }

    .hor-veu {
        background: linear-gradient(180deg, rgba(5, 11, 20, 0.86) 0%, rgba(5, 11, 20, 0.72) 40%, rgba(5, 11, 20, 0.62) 62%, rgba(5, 11, 20, 0.92) 100%);
    }

    .hor-conteudo {
        padding-top: clamp(18px, 4svh, 36px);
    }

    .hor-titulo {
        max-width: 620px;
        margin-inline: auto;
        font-size: clamp(1.9rem, 7vw, 3.1rem);
        line-height: 1;
    }

    /* Texto de conteúdo a 16px no celular e no tablet (regra 3 do plano), o mesmo
       corpo da descrição dos slides .mc-*. */
    .hor-descricao {
        max-width: 620px;
        margin-inline: auto;
        font-size: 1rem;
        line-height: 1.45;
    }

    .hor-itens {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin-inline: auto;
        gap: 8px;
    }

    .hor-item {
        justify-content: center;
        min-height: 40px;
        font-size: 1rem;
        padding: 8px 10px;
    }

    .hor-acao {
        flex-direction: column;
        align-items: center;
    }

    .hor-preco__valor {
        justify-content: center;
    }

    .hor-botoes {
        justify-content: center;
    }

    .hor-btn {
        min-height: 50px;
        padding: 14px 20px;
        font-size: 0.9rem;
    }
}

/* Tablet em pé: sobra altura, então o bloco fica no meio (igual aos slides .mc-*). */
@media (min-width: 576px) and (max-width: 991.98px) {
    #master-hero-carousel .hor-section {
        align-items: center;
        align-items: safe center;
    }
}

@media (max-width: 575px) {
    .hor-conteudo {
        padding-top: 18px;
    }

    .hor-eyebrow {
        font-size: 0.75rem;
        padding: 7px 10px;
        margin-bottom: 12px;
    }

    .hor-titulo {
        font-size: clamp(1.72rem, 8vw, 2.45rem);
        margin-bottom: 12px;
    }

    .hor-descricao {
        margin-bottom: 14px;
    }

    .hor-itens {
        margin-bottom: 16px;
    }

    .hor-item {
        gap: 6px;
        min-height: 38px;
    }

    .hor-acao {
        gap: 12px;
    }

    .hor-botoes {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 360px;
        gap: 10px;
    }

    .hor-btn {
        width: 100%;
        min-height: 48px;
        font-size: 0.9rem;
    }
}

/* Celulares baixos (iPhone SE/8, 360x640): menos texto para preço e botões caberem. */
@media (max-width: 991.98px) and (max-height: 760px) {
    .hor-conteudo {
        padding-top: 10px;
    }

    .hor-eyebrow {
        margin-bottom: 10px;
    }

    .hor-titulo {
        font-size: clamp(1.55rem, 7.2vw, 2.1rem);
        margin-bottom: 10px;
    }

    .hor-descricao {
        display: none;
    }

    .hor-itens {
        margin-bottom: 12px;
        gap: 6px;
    }

    .hor-item {
        min-height: 34px;
        padding: 7px 10px;
    }

    .hor-preco__valor strong {
        font-size: 2rem;
    }

    .hor-btn {
        min-height: 46px;
        padding: 12px 18px;
    }
}

@media (max-height: 690px) and (max-width: 575px) {
    .hor-titulo {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .hor-itens {
        display: none;
    }
}
