/* ===================================================================
   RESET BÁSICO
   =================================================================== */

/* Remove margens/paddings padrão e ajusta box-sizing globalmente */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Rolagem suave ao clicar em âncoras do menu */
html {
    scroll-behavior: smooth;
}

/* Imagens sempre responsivas por padrão */
img {
    max-width: 100%;
    display: block;
}

/* Links sem sublinhado e herdando a cor do texto */
a {
    text-decoration: none;
    color: inherit;
}

/* Botões sem estilo nativo do navegador */
button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}


/* ===================================================================
   VARIÁVEIS DE TEMA — MODO CLARO (padrão)
   =================================================================== */

:root {
    /* Cores de fundo */
    --color-bg: #FDFCF0;
    /* fundo geral da página */
    --color-bg-alt: #F5F4E8;
    /* fundo de seções alternadas */
    --color-surface: #FFFFFF;
    /* fundo de cards */
    --color-card-bg: #FFFFFF;

    /* Cores de texto */
    --color-text: #1B1C15;
    /* texto padrão */
    --color-text-muted: #44474E;
    /* texto secundário */
    --color-heading: #002147;
    /* títulos (navy) */

    /* Bordas e sombras */
    --color-border: #E2E1D5;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.12);

    /* Cor de destaque (CTA) */
    --color-accent: #D97706;
    --color-accent-hover: #B96305;
    --color-accent-contrast: #FFFFFF;

    /* Cor secundária (links/outline) */
    --color-secondary: #005F73;

    /* Cor de sucesso (selo credenciado) */
    --color-success: #31A24C;

    /* Fundo do header (com transparência para o efeito de blur) */
    --color-header-bg: rgba(253, 252, 240, 0.9);

    /* Faixa de destaque escura (seção Benefícios) */
    --color-band-bg: #002147;
    --color-band-text: #FDFCF0;
    --color-band-text-muted: rgba(253, 252, 240, 0.8);

    /* Fundo/cor dos círculos de ícone nos cards */
    --color-icon-bg: #D6E3FF;
    --color-icon-color: #002147;

    /* Espaçamentos reutilizados */
    --gutter: 24px;
    --margin-mobile: 16px;
    --section-gap: 80px;
}


/* ===================================================================
   VARIÁVEIS DE TEMA — MODO ESCURO
   =================================================================== */

/* Aplicado quando o JS define data-theme="dark" na tag <html> */
html[data-theme="dark"] {
    --color-bg: #0E1524;
    --color-bg-alt: #131B2D;
    --color-surface: #182238;
    --color-card-bg: #182238;

    --color-text: #E7ECF5;
    --color-text-muted: #9AA6BA;
    --color-heading: #F5F7FA;

    --color-border: #2A3550;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.5);

    --color-accent: #F59E0B;
    --color-accent-hover: #FBBF24;
    --color-accent-contrast: #0E1524;

    --color-secondary: #4DD0E1;
    --color-success: #4ADE80;

    --color-header-bg: rgba(14, 21, 36, 0.85);

    --color-band-bg: #060A14;
    --color-band-text: #E7ECF5;
    --color-band-text-muted: rgba(231, 236, 245, 0.75);

    --color-icon-bg: rgba(245, 158, 11, 0.15);
    --color-icon-color: #F59E0B;
}


/* ===================================================================
   BASE / TIPOGRAFIA
   =================================================================== */

/* Corpo do site: fonte, cor de fundo e transição suave ao trocar de tema */
body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Título hero — maior da página */
.hero__eyebrow,
.section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid rgba(217, 119, 6, 0.28);
    color: var(--color-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.heading-xl {
    font-size: 2.5rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-heading);
    margin-bottom: 1.5rem;
}

/* Título de seção */
.heading-lg {
    font-size: 1.75rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-heading);
    margin-bottom: 1rem;
}

/* Título de card/benefício */
.heading-md {
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}

.card .heading-md,
.step .text-bold,
.step h4,
.benefit .text-bold,
.benefit h4 {
    color: var(--color-text);
}

/* Parágrafos maiores (destaque) */
.text-lg {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Texto secundário/esmaecido */
.text-muted {
    color: var(--color-text-muted);
}

/* Texto em negrito reutilizável */
.text-bold {
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 0.25rem;
}

/* Rótulos pequenos (badges, legendas) */
.text-label-md {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-heading);
}

.text-label-sm {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Telas maiores: aumenta o título hero e o de seção */
@media (min-width: 768px) {
    .heading-xl {
        font-size: 3rem;
        line-height: 1.1;
    }

    .heading-lg {
        font-size: 2rem;
    }
}


/* ===================================================================
   LAYOUT — CONTAINER E GRID
   =================================================================== */

/* Container central com largura máxima */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--margin-mobile);
}

/* Container mais estreito, usado no FAQ */
.container--narrow {
    max-width: 800px;
}

/* Aumenta o respiro lateral em telas maiores */
@media (min-width: 768px) {
    .container {
        padding: 0 var(--gutter);
    }
}

/* Espaçamento vertical padrão de cada seção */
.section {
    padding: 56px 0;
}

@media (min-width: 768px) {
    .section {
        padding: var(--section-gap) 0;
    }
}

/* Seção com fundo levemente diferente do padrão (zebra) */
.section--alt {
    background-color: var(--color-bg-alt);
}

/* Cabeçalho centralizado de seção (título + subtítulo) */
.section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem auto;
}

.section__header .heading-lg {
    margin-bottom: 0.85rem;
}

/* Grid reutilizável para cards/benefícios */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid--3 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ===================================================================
   BOTÕES
   =================================================================== */

/* Estrutura base compartilhada por todos os botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: box-shadow 0.2s ease, background-color 0.2s ease, transform 0.1s ease;
}

/* Botão principal (amber sólido) */
.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-accent-contrast);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    box-shadow: var(--shadow-md);
}

/* Botão secundário (contorno) */
.btn-outline {
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
}

.btn-outline:hover {
    background-color: rgba(0, 95, 115, 0.08);
}

/* Esconde o CTA de texto do header em telas pequenas (vira botão no menu mobile) */
.btn-desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .btn-desktop-only {
        display: inline-flex;
        padding: 0.6rem 0.9rem;
        font-size: 0.72rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
}


/* ===================================================================
   HEADER
   =================================================================== */

/* Cabeçalho fixo no topo, com efeito de vidro (blur) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background-color: var(--color-header-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s ease;
}

/* Linha interna do header: logo + nav + ações */
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

@media (min-width: 768px) {
    .header__inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 1.5rem;
    }
}

/* Logo (ícone + nome da marca) */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-heading);
}

.logo i {
    color: var(--color-accent);
}

@media (min-width: 768px) {
    .logo {
        font-size: 1.15rem;
        flex-shrink: 0;
    }
}

/* Navegação desktop — some em telas pequenas */
.nav-desktop {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex !important;
        width: 100%;
    }
}

/* Link de navegação padrão */
.nav-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
    color: var(--color-secondary);
}

/* Link ativo (página atual) */
.nav-link.active {
    color: var(--color-secondary);
    border-bottom-color: var(--color-accent);
}

@media (min-width: 768px) {
    .nav-link {
        font-size: 0.75rem;
    }
}

/* Agrupador das ações à direita do header */
.header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-left: auto;
}

/* Botão de alternância de tema */
.theme-toggle {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-heading);
    transition: background-color 0.2s ease;
}

.theme-toggle:hover {
    background-color: var(--color-bg-alt);
}

@media (min-width: 768px) {
    .theme-toggle {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }
}

/* Botão hambúrguer do menu mobile */
.mobile-menu-btn {
    display: flex;
    color: var(--color-heading);
    font-size: 1.25rem;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Painel do menu mobile (escondido por padrão) */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 0 var(--margin-mobile) 1.5rem var(--margin-mobile);
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

/* Classe adicionada via JS para exibir o menu mobile */
.mobile-menu.is-open {
    display: flex;
}

/* Link dentro do menu mobile */
.mobile-nav-link {
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 0.5rem 0;
}

/* CTA dentro do menu mobile */
.mobile-cta {
    margin-top: 0.5rem;
    width: 100%;
}


/* ===================================================================
   BOTÃO SCROLL TO TOP
   =================================================================== */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--color-accent);
    color: var(--color-accent-contrast);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 40;
    box-shadow: var(--shadow-md);
}

.scroll-to-top:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

/* Classe adicionada via JS quando o usuário faz scroll */
.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 640px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}


/* ===================================================================
   HERO
   =================================================================== */

/* Compensa a altura do header fixo */
.hero {
    padding-top: 120px;
}

/* Grid do hero: texto + imagem */
.hero__grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Botões do hero empilhados no mobile, lado a lado no desktop */
.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

@media (min-width: 480px) {
    .hero__actions {
        flex-direction: row;
    }
}

/* Selo de localização abaixo dos botões */
.hero__location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    background-color: rgba(0, 95, 115, 0.08);
    color: var(--color-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
}

/* Container da imagem principal do hero */
.hero__media {
    position: relative;
}

.hero__image-wrap {
    aspect-ratio: 4 / 3;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    background-color: var(--color-bg-alt);
}

.hero__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Card flutuante decorativo sobre a imagem */
.hero__badge {
    display: none;
    align-items: center;
    gap: 0.75rem;
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background-color: var(--color-surface);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.hero__badge i {
    font-size: 1.5rem;
    color: var(--color-success);
}

@media (min-width: 768px) {
    .hero__badge {
        display: flex;
    }
}


/* ===================================================================
   SEÇÃO SOBRE
   =================================================================== */

.about__grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Placeholder visual enquanto não há foto real do instrutor */
.about__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.about__image-wrap {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-alt);
    box-shadow: var(--shadow-md);
}

.about__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}


/* ===================================================================
   CARDS DE SERVIÇO
   =================================================================== */

/* Card individual de serviço */
.card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 1.6rem 1.4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.08);
    border-color: rgba(217, 119, 6, 0.28);
}

/* Círculo do ícone no topo do card */
.card__icon {
    width: 52px;
    height: 52px;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.16), rgba(0, 95, 115, 0.12));
    color: var(--color-accent);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
}

/* Aviso demonstrativo abaixo dos cards */
.notice-wrap {
    text-align: center;
    margin-top: 2rem;
}

.notice {
    display: inline-block;
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}


/* ===================================================================
   FAIXA DE BENEFÍCIOS (fundo escuro fixo, independe do tema)
   =================================================================== */

.band {
    background-color: var(--color-band-bg);
    color: var(--color-band-text);
}

.band__title {
    color: var(--color-band-text);
    text-align: center;
    margin-bottom: 3rem;
}

.band__text {
    color: var(--color-band-text-muted);
}

.band .text-bold,
.band h4 {
    color: var(--color-band-text);
}

.band .text-bold,
.band h4,
.band .text-lg {
    color: var(--color-band-text);
}

/* Item individual de benefício (ícone + texto) */
.benefit {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit__icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(217, 119, 6, 0.15);
    color: var(--color-accent);
    font-size: 1.1rem;
}


/* ===================================================================
   COMO FUNCIONA (passo a passo)
   =================================================================== */

.steps {
    display: grid;
    gap: 2.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Círculo numerado de cada etapa */
.step__number {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-heading);
    background-color: var(--color-bg-alt);
    border: 4px solid var(--color-bg);
}

/* Último passo recebe destaque em amber */
.step__number--accent {
    background-color: var(--color-accent);
    color: var(--color-accent-contrast);
    box-shadow: var(--shadow-md);
}


/* ===================================================================
   FAQ (accordion nativo via <details>/<summary>)
   =================================================================== */
.faq__title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Cada pergunta é um <details> estilizado como card */
.faq-item {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Cabeçalho clicável (pergunta) */
.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-heading);
    list-style: none;
}

/* Remove o marcador padrão do navegador (seta/triângulo) */
.faq-item summary::-webkit-details-marker {
    display: none;
}

/* Ícone de seta que gira ao abrir */
.faq-icon {
    transition: transform 0.2s ease;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

/* Corpo da resposta */
.faq-item p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
}


/* ===================================================================
   FOOTER
   =================================================================== */

.footer {
    background-color: var(--color-band-bg);
    color: var(--color-band-text);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Layout interno: marca à esquerda, links à direita */
.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer__inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Marca no rodapé */
.logo--footer {
    color: var(--color-band-text);
    justify-content: center;
}

.footer__muted {
    color: rgba(253, 252, 240, 0.7);
    margin-top: 0.5rem;
}

/* Links de redes sociais/institucionais */
.footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer__links a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(253, 252, 240, 0.85);
    transition: color 0.2s ease;
}

.footer__links a:hover {
    color: var(--color-accent);
}

.footer_copy a {
    transition: color 0.2s ease;
}

.footer_copy a:hover {
    color: var(--color-accent-hover);
}