/* ==========================================================================
   LP SESI Escola — Matrículas 2027
   Identidade visual baseada no outdoor (Figma: "Desktop – Matrículas 2027")
   ========================================================================== */

@font-face {
    font-family: "Neo Sans Pro";
    src: url(../fonts/NeoSansPro-Medium.woff2) format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Neo Sans Pro";
    src: url(../fonts/NeoSansPro-Bold.woff2) format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Tokens — espelham a coleção de variáveis "LP27 – Cores" do Figma */
:root {
    --verde: #007F3A;
    --verde-escuro: #005C27;
    --verde-lima: #20CF20;
    --vermelho: #F13327;
    --amarelo: #FFB600;
    --azul: #009DB6;
    --branco: #FFFFFF;
    --cinza: #6A6A6A;

    --fonte: "Neo Sans Pro", "Trebuchet MS", Arial, sans-serif;

    --container: 1200px;
    --gutter: 24px;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--verde);
    color: var(--branco);
    font-family: var(--fonte);
    font-weight: 500;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

h1, h2, h3, p, ul {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--amarelo);
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Layout */
.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.main {
    flex: 1 0 auto;
}

/* Divisória verde-limão usada entre as seções (como no outdoor) */
.divisoria {
    border-top: 5px solid var(--verde-lima);
}

.icone {
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
}

/* Botões do header: contorno branco (secundário) e vermelho (principal) */
.botoes {
    display: flex;
    align-items: center;
    gap: 14px;
}

.botao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 2px solid var(--branco);
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color .2s, border-color .2s, color .2s;
}

.botao--contorno:hover {
    background: var(--branco);
    color: var(--verde);
}

.botao--destaque {
    border-color: var(--vermelho);
    background: var(--vermelho);
}

.botao--destaque:hover {
    border-color: #D82418;
    background: #D82418;
}

/* Listas de contato compartilhadas por header e rodapé */

.contatos {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.contatos a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color .2s;
}

.contatos a:hover {
    color: var(--amarelo);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    background: var(--verde);
    border-bottom: 4px solid var(--verde-lima);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 106px;
}

.logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Correção óptica: o "ESCOLA" embaixo faz o "SESI" parecer alto demais.
   Desce a logo ~16% da própria altura para alinhar "SESI" com "FIERN"
   (centro das letras: SESI ≈ 20/56px, FIERN ≈ 29/57px). */
.logos__sesi {
    width: 111px;
    transform: translateY(16%);
}

.logos__fiern {
    width: 177px;
}

/* ==========================================================================
   Hero (outdoor)
   ========================================================================== */
.hero__img {
    width: 100%;
    height: auto;
}

.hero__mobile {
    display: none;
}

/* ==========================================================================
   Tag — tarja colorida com contorno deslocado (componente LP27/Tag do Figma)
   ========================================================================== */
.tag {
    --tag-cor: var(--vermelho);
    --tag-contorno: var(--branco);
    --tag-deslocamento: 10px;

    position: relative;
    isolation: isolate;
    display: inline-block;
    padding: .125em .5em .17em;
    color: var(--branco);
    font-weight: 700;
    line-height: 1.2;
}

.tag::before,
.tag::after {
    content: "";
    position: absolute;
    inset: 0;
}

.tag::before {
    z-index: -1;
    background: var(--tag-cor);
}

.tag::after {
    z-index: -2;
    border: 2px solid var(--tag-contorno);
    transform: translate(calc(var(--tag-deslocamento) * -1), calc(var(--tag-deslocamento) * -1));
}

.tag--vermelho {
    --tag-cor: var(--vermelho);
}

.tag--amarelo {
    --tag-cor: var(--amarelo);
}

/* ==========================================================================
   Seção de matrícula
   ========================================================================== */
.matricula {
    position: relative;
    overflow: hidden;
    padding: 120px 0 130px;
}

.matricula__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 560px 520px;
    justify-content: space-between;
    align-items: center;
    gap: 64px 120px;
}

.matricula__form {
    scroll-margin-top: 32px;
}

.matricula__decor {
    position: absolute;
    pointer-events: none;
}

.matricula__decor--a {
    left: 0;
    top: 90px;
    width: 198px;
}

.matricula__decor--b {
    right: 0;
    bottom: 40px;
    width: 214px;
}

/* Chamada */
.chamada {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.chamada__titulo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 10px 0 0 10px;
    font-size: 48px;
}

.chamada__titulo .tag--amarelo {
    font-size: 36px;
}

.chamada__texto {
    max-width: 540px;
    font-size: 20px;
    line-height: 1.5;
}

/* Vídeo com contorno amarelo deslocado */
.video {
    position: relative;
    isolation: isolate;
    margin: 14px 0 0 14px;
}

.video::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border: 3px solid var(--amarelo);
    transform: translate(-14px, -14px);
}

.video__player {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--verde-escuro);
}

.video__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    padding: 0;
    border: 0;
    background: rgba(0, 51, 20, .25);
    color: var(--branco);
    cursor: pointer;
}

.video__play[hidden] {
    display: none;
}

.video__play::before {
    content: "";
    position: absolute;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: var(--vermelho);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
    transition: transform .2s;
}

.video__play svg {
    position: relative;
    width: 34px;
    height: 40px;
    margin-left: 6px;
}

.video__play:hover::before,
.video__play:focus-visible::before {
    transform: scale(1.08);
}

/* ==========================================================================
   Formulário (Livewire LeadForm)
   ========================================================================== */
[x-cloak] {
    display: none !important;
}

.form__titulo {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.form__subtitulo {
    margin-top: 12px;
    font-size: 17px;
    opacity: .85;
}

.form__campos {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 26px;
}

.campo {
    position: relative;
}

.campo__controle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    height: 58px;
    padding: 0 22px;
    border: 2px solid transparent;
    border-radius: 4px;
    background: var(--branco);
    color: #333;
    font-size: 17px;
    text-align: left;
    transition: border-color .2s, box-shadow .2s;
}

.campo__controle::placeholder,
.campo__controle.is-placeholder {
    color: var(--cinza);
    opacity: 1;
}

.campo__controle:focus-visible {
    outline: none;
    border-color: var(--amarelo);
    box-shadow: 0 0 0 3px rgba(255, 182, 0, .45);
}

.campo__controle.is-invalid {
    border-color: var(--vermelho);
}

/* Seta verde: botão customizado (svg) e select nativo (background) */
.campo__seletor {
    cursor: pointer;
}

.campo__seta {
    width: 14px;
    height: 9px;
    fill: none;
    stroke: var(--verde);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s;
}

select.campo__seletor {
    appearance: none;
    padding-right: 52px;
    background: var(--branco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5l5.5 5.5 5.5-5.5' fill='none' stroke='%23007F3A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 22px center / 14px 9px;
}

select.campo__seletor option {
    color: #333;
}

select.campo__seletor:disabled {
    cursor: not-allowed;
    background-color: rgba(255, 255, 255, .7);
}

.campo__erro {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 10px;
    background: var(--vermelho);
    color: var(--branco);
    font-size: 15px;
    font-weight: 700;
}

/* Dropdown de unidade — estado aberto do LP27/Select Unidade */
.unidade:has(.is-aberto) {
    z-index: 10;
}

.campo__seletor.is-aberto {
    border-radius: 4px 4px 0 0;
    border-bottom: 3px solid var(--verde-lima);
}

.campo__seletor.is-aberto .campo__seta {
    transform: rotate(180deg);
}

.unidade__lista {
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    padding-bottom: 8px;
    border-radius: 0 0 4px 4px;
    background: var(--branco);
    box-shadow: 0 10px 28px rgba(0, 38, 13, .28);
}

.unidade__lista:focus {
    outline: none;
}

.unidade__opcao {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 16px 22px 16px 40px;
    color: var(--cinza);
    font-size: 15px;
    line-height: 1.4;
    cursor: pointer;
}

.unidade__opcao + .unidade__opcao {
    border-top: 1px solid #E4E4E4;
}

.unidade__opcao::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 16px;
    bottom: 16px;
    width: 4px;
    background: transparent;
}

.unidade__opcao.is-ativo,
.unidade__opcao[aria-selected="true"] {
    background: #EAF5EE;
}

.unidade__opcao.is-ativo::before,
.unidade__opcao[aria-selected="true"]::before {
    background: var(--amarelo);
}

.unidade__nome {
    margin-bottom: 2px;
    color: var(--verde);
    font-size: 16px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Botão: tarja vermelha com contorno branco deslocado */
.form__botao {
    --tag-deslocamento: 8px;

    width: 100%;
    margin-top: 20px;
    padding: 20px;
    border: 0;
    background: none;
    font-size: 20px;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
}

.form__botao::before {
    transition: background-color .2s;
}

.form__botao:hover::before {
    background: #D82418;
}

.form__botao:disabled {
    cursor: wait;
    opacity: .8;
}

/* ==========================================================================
   Página de obrigado
   ========================================================================== */
.obrigado {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 110px - 150px);
    padding: 100px 0;
    overflow: hidden;
}

.obrigado__conteudo {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.obrigado__titulo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 10px 0 0 10px;
    font-size: 56px;
}

.obrigado__titulo .tag--amarelo {
    font-size: 40px;
}

.obrigado__texto {
    max-width: 640px;
    text-wrap: balance;
    margin-top: 40px;
    font-size: 24px;
    line-height: 1.4;
}

.obrigado__whatsapp {
    margin-top: 12px;
    font-size: 18px;
    opacity: .9;
}

.obrigado__whatsapp a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.obrigado__whatsapp a:hover {
    color: var(--amarelo);
}

.obrigado__voltar {
    --tag-deslocamento: 8px;

    margin-top: 48px;
    padding: 16px 40px;
    font-size: 18px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.obrigado__voltar::before {
    transition: background-color .2s;
}

.obrigado__voltar:hover::before {
    background: #D82418;
}

.obrigado__decor {
    position: absolute;
    pointer-events: none;
}

.obrigado__decor--a {
    left: 0;
    top: 60px;
    width: 198px;
}

.obrigado__decor--b {
    right: 0;
    bottom: 40px;
    width: 214px;
}

@media (max-width: 767px) {
    .obrigado {
        min-height: 0;
        padding: 160px 0 190px;
    }

    .obrigado__titulo {
        gap: 16px;
        font-size: 34px;
    }

    .obrigado__titulo .tag {
        --tag-deslocamento: 7px;
    }

    .obrigado__titulo .tag--amarelo {
        font-size: 26px;
    }

    .obrigado__texto {
        margin-top: 32px;
        font-size: 19px;
    }

    .obrigado__whatsapp {
        font-size: 16px;
    }

    .obrigado__whatsapp a {
        white-space: normal;
    }

    .obrigado__voltar {
        margin-top: 40px;
        font-size: 16px;
    }

    .obrigado__decor--a {
        top: auto;
        bottom: -30px;
        width: 99px;
    }

    .obrigado__decor--b {
        top: 12px;
        right: -36px;
        bottom: auto;
        width: 110px;
    }
}

/* ==========================================================================
   Rodapé
   ========================================================================== */
.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    min-height: 146px;
}

.footer__logo {
    width: 298px;
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
/* Abaixo de 1600px a margem lateral não comporta os vetores ao lado do conteúdo:
   eles vão para os cantos (superior direito / inferior esquerdo). */
@media (max-width: 1599px) {
    .matricula {
        padding-bottom: 200px;
    }

    .matricula__decor--a {
        top: auto;
        bottom: -30px;
        width: 120px;
    }

    .matricula__decor--b {
        top: 20px;
        right: -40px;
        bottom: auto;
        width: 150px;
    }
}

/* Abaixo de 1280px os botões não cabem entre logos e contatos: vão para uma 2ª linha. */
@media (max-width: 1279px) {
    .header__inner {
        flex-wrap: wrap;
        padding-top: 16px;
        padding-bottom: 18px;
        row-gap: 14px;
        min-height: 0;
    }

    .header__botoes {
        order: 3;
        flex-basis: 100%;
        justify-content: center;
    }
}

@media (max-width: 1199px) {
    .footer__inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 32px var(--gutter);
    }

    .matricula__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 64px 56px;
    }

    .chamada__titulo {
        font-size: 40px;
    }

    .chamada__titulo .tag--amarelo {
        font-size: 30px;
    }
}

@media (max-width: 991px) {
    .matricula__grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: calc(560px + var(--gutter) * 2);
    }
}

@media (max-width: 767px) {
    .header__inner {
        justify-content: center;
        row-gap: 20px;
    }

    .header__contatos {
        display: none;
    }

    .botao {
        padding: 11px 16px;
        font-size: 13px;
        letter-spacing: .04em;
    }

    .header__botoes {
        gap: 10px;
    }

    .logos__sesi {
        width: 89px;
    }

    .logos__fiern {
        width: 142px;
    }

    .hero__mobile {
        display: block;
        border-top: 5px solid var(--verde-lima);
    }

    .matricula {
        padding: 64px 0 200px;
    }

    .matricula__grid {
        gap: 56px;
    }

    .chamada {
        gap: 28px;
    }

    .chamada__titulo {
        gap: 16px;
        font-size: 30px;
    }

    .chamada__titulo .tag {
        --tag-deslocamento: 7px;
    }

    .chamada__titulo .tag--amarelo {
        font-size: 22px;
    }

    .chamada__texto {
        font-size: 16px;
    }

    .form__titulo {
        font-size: 24px;
    }

    .form__subtitulo {
        font-size: 15px;
    }

    .form__botao {
        font-size: 18px;
    }

    .video {
        margin: 10px 0 0 10px;
    }

    .video::before {
        transform: translate(-10px, -10px);
    }

    .video__play::before {
        width: 72px;
        height: 72px;
    }

    .video__play svg {
        width: 24px;
        height: 28px;
        margin-left: 4px;
    }

    .matricula__decor--a {
        top: auto;
        bottom: -30px;
        left: 0;
        width: 99px;
    }

    .matricula__decor--b {
        top: 16px;
        right: -40px;
        bottom: auto;
        width: 133px;
    }

    .footer__inner {
        flex-direction: column;
        gap: 26px;
        padding: 44px var(--gutter) 48px;
    }

    .footer__logo {
        max-width: 238px;
    }

    .footer__contatos {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}
