/*
 * Aeroclube de Goiás — estilos do site público (único arquivo de CSS do site).
 *
 * ORGANIZAÇÃO
 *   1. Variáveis de cor, fonte e arredondamento (:root) e temas visuais
 *   2. Base (tipografia, links, acessibilidade)
 *   3. Componentes, na ordem em que aparecem nas páginas: botões, cabeçalho,
 *      topo (hero), seções, cursos, rota, frota, turmas, checklist, estrutura,
 *      página do curso, documentos/contato, depoimentos, chamada final, rodapé
 *
 * RESPONSIVIDADE (do celular dobrável de 280px a monitores de 2560px)
 *   - Grades com auto-fit/minmax: o número de colunas se ajusta sozinho à largura.
 *   - Tamanhos de fonte e espaçamentos com clamp(): crescem e diminuem com a tela.
 *   - Pontos de quebra: 1240px (menu vira botão ☰), 960px, 900px, 760px e 640px (celular).
 *   - Áreas de toque de no mínimo 32px e textos de no mínimo 12px.
 *
 * Para mudar uma cor do site inteiro, altere a variável no :root (tema padrão)
 * ou no bloco do tema escolhido. Evite cores fixas fora das variáveis.
 */
/* Tema padrão "Noturno": azul-noite com âmbar (cores da marca) */
:root {
  --night: #0D0F2E;
  --night-2: #15184A;
  --line-dark: #262A66;
  --line-dark-2: #2C3075;
  --brand: #3E4095;
  --brand-soft: #7378C8;
  --on-dark: #FFFFFF;
  --on-dark-2: #CDD0EE;
  --on-dark-3: #A9ADDC;
  --accent: #F2A33A;
  --accent-ink: #A3560B;
  --ink: #15184A;
  --ink-2: #4E5274;
  --soft: #F3F3FA;
  --line: #E3E4F0;
  --ok: #3FD18A;
  --night-rgb: 13 15 46;          /* mesma cor de --night, em RGB, para transparências */
  --accent-hover: #F6B65C;
  --tint: #DADCF5;
  --tint-2: #B9BCEB;
  --muted-strong: #5A5E85;
  --ink-prose: #2E3158;
  --surface: #FFFFFF;
  --radius: 20px;
  --radius-sm: 12px;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

/* ==========================================================================
   TEMAS VISUAIS
   O tema é escolhido no painel (Aparência) e aplicado como <html data-theme="...">.
   Cada tema só redefine as variáveis de cor acima; o layout é o mesmo.
   Todas as combinações de texto e fundo foram conferidas para contraste mínimo
   de 4,5:1 (WCAG AA). Para criar um tema novo, copie um bloco, troque as cores
   e cadastre o nome em site_themes() no arquivo inc/bootstrap.php.
   ========================================================================== */
/* Céu Aberto: azul aviação com amarelo */
html[data-theme="ceu"] {
  --night: #0A2540;
  --night-2: #0F3358;
  --line-dark: #1C4A78;
  --line-dark-2: #245A8F;
  --brand: #1565C0;
  --brand-soft: #5E9BDB;
  --on-dark-2: #CFE2F7;
  --on-dark-3: #A6C8EC;
  --accent: #FFC233;
  --accent-hover: #FFD166;
  --accent-ink: #8A5A00;
  --ink: #0A2540;
  --ink-2: #3F5873;
  --soft: #EEF5FC;
  --line: #DCE7F3;
  --tint: #D3E5F8;
  --tint-2: #A9CBEF;
  --muted-strong: #4D6582;
  --ink-prose: #1F3A57;
  --night-rgb: 10 37 64;
}
/* Hangar: grafite com laranja de segurança */
html[data-theme="hangar"] {
  --night: #17191E;
  --night-2: #22252C;
  --line-dark: #33373F;
  --line-dark-2: #3D424B;
  --brand: #3A4250;
  --brand-soft: #8A93A3;
  --on-dark-2: #D6D9DE;
  --on-dark-3: #AEB4BE;
  --accent: #FF6B1A;
  --accent-hover: #FF8A47;
  --accent-ink: #B23E00;
  --ink: #17191E;
  --ink-2: #4F5562;
  --soft: #F2F3F5;
  --line: #E1E3E7;
  --tint: #E0E2E6;
  --tint-2: #C3C7CF;
  --muted-strong: #5B616D;
  --ink-prose: #2C3038;
  --night-rgb: 23 25 30;
  --radius: 10px;
  --radius-sm: 6px;
}
/* Cerrado: verde com dourado */
html[data-theme="cerrado"] {
  --night: #13261C;
  --night-2: #1B3427;
  --line-dark: #2A4A38;
  --line-dark-2: #325744;
  --brand: #2F6B4F;
  --brand-soft: #7FB397;
  --on-dark-2: #D4E6DA;
  --on-dark-3: #AACDB7;
  --accent: #E3B341;
  --accent-hover: #EBC468;
  --accent-ink: #7F5A00;
  --ink: #13261C;
  --ink-2: #455C4F;
  --soft: #F1F6F2;
  --line: #DFE9E2;
  --tint: #D5E8DC;
  --tint-2: #AFD3BC;
  --muted-strong: #526A5C;
  --ink-prose: #24382C;
  --night-rgb: 19 38 28;
}
/* Clássico: vinho com dourado */
html[data-theme="classico"] {
  --night: #2A0D14;
  --night-2: #3A1420;
  --line-dark: #55202F;
  --line-dark-2: #652838;
  --brand: #8C1C2B;
  --brand-soft: #C77A86;
  --on-dark-2: #F0D9DD;
  --on-dark-3: #DDB3BA;
  --accent: #D9B45A;
  --accent-hover: #E3C47D;
  --accent-ink: #7A5A10;
  --ink: #2A0D14;
  --ink-2: #5E4248;
  --soft: #FAF5F1;
  --line: #EDE3DE;
  --tint: #F1DCE0;
  --tint-2: #E2B9C0;
  --muted-strong: #6E525A;
  --ink-prose: #3E2329;
  --night-rgb: 42 13 20;
}
/* Alto contraste: preto, azul e amarelo, para leitura facilitada */
html[data-theme="contraste"] {
  --night: #000000;
  --night-2: #111111;
  --line-dark: #444444;
  --line-dark-2: #555555;
  --brand: #0033B3;
  --brand-soft: #8FA8FF;
  --on-dark-2: #FFFFFF;
  --on-dark-3: #E6E6E6;
  --accent: #FFD400;
  --accent-hover: #FFE24D;
  --accent-ink: #6B4E00;
  --ink: #000000;
  --ink-2: #2B2B2B;
  --soft: #F2F2F2;
  --line: #BDBDBD;
  --tint: #DDE5FF;
  --tint-2: #B8C7FF;
  --muted-strong: #3D3D3D;
  --ink-prose: #111111;
  --night-rgb: 0 0 0;
  --ok: #00C853;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--surface); line-height: 1.6; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
/* Títulos e textos longos quebram a linha em vez de vazar da caixa (vale para qualquer fonte) */
h1, h2, h3, h4, p, li, dd, dt, strong, a, span { overflow-wrap: break-word; }
h1, h2, h3 { hyphens: manual; }
a { color: var(--brand); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--night); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 16px; }
.mono, .mono-label { font-family: var(--mono); }
.mono-label { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.mono-label.accent { color: var(--accent); }
.mono-label.accent-dark { color: var(--accent-ink); }
.muted { color: var(--ink-2); }
.icon { flex-shrink: 0; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease; font-family: var(--body); }
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--night); }
.btn-accent:hover { background: var(--accent-hover); color: var(--night); }
.btn-dark { background: var(--night); color: #FFFFFF; }
.btn-dark:hover { background: var(--brand); color: #FFFFFF; }
.btn-ghost { border-color: var(--brand-soft); color: #FFFFFF; background: rgb(var(--night-rgb) / 0.25); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #FFFFFF; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #FFFFFF; }
.btn-outline-dark { border: 2px solid var(--night); color: var(--night); background: transparent; }
.btn-outline-dark:hover { background: var(--night); color: #FFFFFF; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--accent-ink); min-height: 44px; }
.link-arrow:hover { color: var(--ink); }
.link-arrow.light, .section-dark .link-arrow { color: var(--accent); }
.link-arrow.light:hover, .section-dark .link-arrow:hover { color: #FFFFFF; }

/* Cabeçalho */
.site-header { position: relative; z-index: 20; background: var(--night); }
.site-header.is-overlay { position: absolute; left: 0; right: 0; top: 0; background: transparent; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
/* Altura da logo: definida no painel (variáveis --logo-h e --logo-h-m, impressas no <head>) */
.brand { flex: 0 0 auto; }
.brand img { height: var(--logo-h, 84px); width: auto; transition: height .2s ease; }
/* Posição "centralizada": logo no meio e menu numa linha abaixo (só no computador) */
@media (min-width: 1241px) {
  .site-header.is-centered .header-row { flex-direction: column; justify-content: center; gap: 14px; padding-bottom: 14px; }
  .site-header.is-centered .main-nav { width: 100%; justify-content: center; flex-wrap: wrap; gap: 14px 28px; }
  .is-centered ~ main { --header-extra: 64px; }
  /* Logo grande (acima de 110px) à esquerda: o menu passa para uma linha abaixo dela */
  .site-header.logo-large .header-row { flex-wrap: wrap; row-gap: 12px; padding-bottom: 14px; }
  .site-header.logo-large .main-nav { width: 100%; justify-content: space-between; }
  .logo-large ~ main { --header-extra: 64px; }
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; padding: 0; }
.main-nav ul a { color: var(--on-dark-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav ul a:hover, .main-nav ul a[aria-current="page"] { color: #FFFFFF; border-bottom-color: var(--accent); }
.nav-actions { display: flex; gap: 10px; }
.nav-actions .btn, .main-nav ul a { white-space: nowrap; }
.nav-toggle { display: none; background: transparent; border: 1.5px solid var(--brand-soft); color: #FFFFFF; border-radius: 12px; width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle .when-open { display: none; }
.nav-toggle[aria-expanded="true"] .when-open { display: inline-flex; }
.nav-toggle[aria-expanded="true"] .when-closed { display: none; }

/* Menu recolhido (botão ☰) abaixo de 1240px */
@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 20px; padding: 16px 24px 28px; background: var(--night); border-top: 1px solid var(--line-dark); box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35); }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 17px; }
  .main-nav ul a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--line-dark); }
  .nav-actions { flex-direction: column; }
  .nav-actions .btn { width: 100%; }
}

/* Hero da página inicial */
.hero { position: relative; background: var(--night); color: #FFFFFF; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(var(--night-rgb) / 0.95) 0%, rgb(var(--night-rgb) / 0.8) 42%, rgb(var(--night-rgb) / 0.25) 100%), linear-gradient(0deg, rgb(var(--night-rgb) / 0.92) 0%, rgb(var(--night-rgb) / 0) 38%), linear-gradient(180deg, rgb(var(--night-rgb) / 0.7) 0%, rgb(var(--night-rgb) / 0) 22%); }
.hero-route { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent); opacity: 0.8; }
.hero-inner { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 56px; padding-top: calc(var(--logo-h, 84px) + 120px + var(--header-extra, 0px)); padding-bottom: 72px; }
.hero-copy { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-weight: 900; font-stretch: 112%; font-size: clamp(44px, 7vw, 86px); line-height: 0.95; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--on-dark-2); max-width: 600px; margin: 0; }
.pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--brand-soft); border-radius: 999px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-2); background: rgb(var(--night-rgb) / 0.5); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }

.boarding { flex: 1 1 320px; max-width: 400px; background: #FFFFFF; color: var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.boarding-top { background: var(--accent); padding: 14px 22px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--night); }
.boarding-body { padding: 22px; display: flex; flex-direction: column; gap: 18px; container-type: inline-size; }
/* Rota ALUNO → PILOTO: três colunas que encolhem; o tamanho da letra acompanha a largura do cartão (cqi),
   assim as palavras cabem com qualquer fonte escolhida no painel */
.boarding-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.boarding-route > div { min-width: 0; }
/* "ALUNO" e "PILOTO": o tamanho acompanha a largura do cartão (cqi), com folga para fontes largas */
.boarding-route strong { display: block; font-family: var(--display); font-weight: 900; font-stretch: 100%; font-size: clamp(15px, 7cqi, 28px); line-height: 1.05; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.boarding-route .icon { width: clamp(20px, 9cqi, 36px); height: auto; }
.boarding-route small { font-size: 12px; color: var(--ink-2); }
.boarding-route .right { text-align: right; }
.boarding-route .icon { color: var(--accent-ink); }
.boarding-data { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; font-family: var(--mono); }
.boarding-data dt { font-size: 12px; color: var(--ink-2); text-transform: uppercase; }
.boarding-data dd { margin: 0; font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.boarding-foot { border-top: 2px dashed var(--line); padding: 10px 22px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-2); }
.boarding-foot a { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }

.instruments { position: relative; border-top: 1px solid var(--line-dark); background: rgb(var(--night-rgb) / 0.85); }
.instruments-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.instrument { padding: 24px 20px; border-left: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 6px; }
.instrument:first-child { border-left: 0; padding-left: 0; }
.instrument .mono-label { color: var(--on-dark-3); }
.instrument strong { font-family: var(--display); font-weight: 900; font-size: 38px; line-height: 1; }

/* Hero das páginas internas */
.page-hero { position: relative; background: var(--night); color: #FFFFFF; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(var(--night-rgb) / 0.95) 0%, rgb(var(--night-rgb) / 0.6) 60%, rgb(var(--night-rgb) / 0.3) 100%); }
.page-hero-inner { position: relative; z-index: 1; padding-top: calc(var(--logo-h, 84px) + 110px + var(--header-extra, 0px)); padding-bottom: 72px; display: flex; flex-direction: column; gap: 18px; max-width: 880px; margin-left: 0; }
@media (min-width: 1240px) { .page-hero-inner { margin-left: calc((100% - 1240px) / 2); } }
.page-hero h1 { font-weight: 900; font-stretch: 110%; font-size: clamp(38px, 5.5vw, 66px); letter-spacing: -0.02em; }
.page-hero.is-404 { min-height: 70vh; display: flex; align-items: center; }
.crumbs { font-family: var(--mono); font-size: 13px; color: var(--on-dark-3); }
.crumbs a { color: var(--on-dark-2); display: inline-flex; align-items: center; min-height: 32px; }

/* Seções */
.section { padding: 104px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--night); color: #FFFFFF; }
.section-head { display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.section-head > div { max-width: 700px; display: flex; flex-direction: column; gap: 14px; }
.section-head h2, .h2 { font-weight: 900; font-stretch: 110%; font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -0.02em; }
.section-head p { color: var(--ink-2); max-width: 400px; margin: 0; font-size: 17px; }
.section-dark .section-head p { color: var(--on-dark-2); }
.h3 { font-size: 24px; font-weight: 800; margin: 36px 0 16px; }
.kicker { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.kicker-light { color: var(--accent); }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split .h2 { margin: 14px 0 24px; }
.split-media { align-items: center; }

/* Cursos */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.course-card { border-radius: var(--radius); overflow: hidden; background: var(--night); color: #FFFFFF; transition: transform .2s ease, box-shadow .2s ease; }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px rgb(var(--night-rgb) / 0.25); }
.course-card-link { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px; color: inherit; text-decoration: none; height: 100%; }
.course-card-link:hover { color: inherit; }
.course-card img { position: absolute; top: 0; left: 0; width: 100%; height: 60%; object-fit: cover; }
.course-code { position: absolute; z-index: 2; top: 18px; left: 18px; font-family: var(--mono); font-weight: 700; font-size: 13px; background: rgb(var(--night-rgb) / 0.75); border-radius: 8px; padding: 6px 10px; }
.course-card-body { position: relative; padding: 110px 28px 28px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(to top, var(--night) 62%, rgb(var(--night-rgb) / 0)); flex-grow: 0; }
.course-card h3 { font-size: 27px; font-weight: 800; }
.course-card p { color: var(--on-dark-2); font-size: 15px; margin: 0; }
.course-more { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; font-size: 15px; padding-top: 14px; border-top: 1px solid var(--line-dark-2); }
.tag { align-self: flex-start; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--night); background: var(--accent); border-radius: 999px; padding: 5px 12px; }
.help-strip { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; background: var(--accent); color: var(--night); border-radius: var(--radius); padding: 28px 32px; }
.help-strip div { flex: 1 1 280px; }
.help-strip strong { font-family: var(--display); font-size: 24px; font-weight: 900; }
.help-strip p { margin: 4px 0 0; }

/* Rota */
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px 24px; position: relative; }
.route::before { content: ""; position: absolute; left: 42px; right: 42px; top: 42px; border-top: 2px dashed var(--ink); }
.route li { position: relative; display: flex; flex-direction: column; gap: 14px; }
.waypoint { width: 84px; height: 84px; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; font-size: 18px; line-height: 1.1; }
.waypoint small { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.route h3 { font-size: 22px; font-weight: 800; }
.route p { color: var(--ink-2); font-size: 15px; margin: 0; }
@media (max-width: 960px) { .route::before { display: none; } }

/* Simuladores e frota */
.sim-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.sim-card { border: 1px solid var(--line-dark-2); border-radius: 18px; overflow: hidden; background: var(--night-2); }
.sim-card img, .sim-placeholder { width: 100%; height: 210px; object-fit: cover; }
.sim-placeholder { display: flex; align-items: center; justify-content: center; color: var(--brand-soft); background: radial-gradient(circle at 50% 120%, var(--brand) 0%, var(--night-2) 70%); }
.sim-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sim-body h3 { font-size: 26px; font-weight: 900; font-stretch: 110%; }
.sim-list { display: flex; flex-direction: column; gap: 24px; }
.sim-row { display: flex; flex-wrap: wrap; border: 1px solid var(--line-dark-2); border-radius: var(--radius); overflow: hidden; background: var(--night-2); }
.sim-row > img, .sim-row > .sim-placeholder { flex: 1 1 380px; width: 380px; min-width: 0; min-height: 300px; height: auto; align-self: stretch; object-fit: cover; }
.sim-row-body { flex: 1 1 420px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.sim-row-body h3 { font-size: 32px; font-weight: 900; font-stretch: 110%; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sim-row-body p { color: var(--on-dark-2); margin: 0; }
.fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 24px; }
.fleet-card img { height: 300px; }
.fleet-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #FFFFFF; display: flex; flex-direction: column; }
.fleet-card img { width: 100%; height: 240px; object-fit: cover; background: var(--soft); }
.fleet-body { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.fleet-body h3 { font-size: 26px; font-weight: 900; }
.fleet-body p { color: var(--ink-2); margin: 0; font-size: 15px; }
.fleet-body .regs { font-family: var(--mono); font-size: 14px; color: var(--ink); font-weight: 700; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.specs dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.specs dd { margin: 0; font-weight: 600; font-size: 14px; }

/* Turmas */
.board { background: var(--night); border-radius: var(--radius); padding: 12px; color: #FFFFFF; font-family: var(--mono); }
.board-row { display: grid; grid-template-columns: 2.4fr 1fr 1fr 1fr; gap: 16px; align-items: center; padding: 18px 20px; border-top: 1px solid var(--line-dark); font-size: 15px; }
.board.has-valor .board-row { grid-template-columns: 2.2fr 1fr 1fr 1.2fr 1fr; }
.board-head { border-top: 0; font-size: 12px; color: var(--on-dark-3); letter-spacing: 0.1em; text-transform: uppercase; padding-top: 12px; padding-bottom: 12px; }
.board-course { font-family: var(--display); font-weight: 700; font-size: 17px; }
.board-course small { display: block; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--on-dark-3); margin-top: 2px; }
.board-date { color: var(--accent); font-weight: 700; }
.board-label { display: none; }
.status { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 6px; padding: 5px 10px; color: var(--night); background: var(--ok); }
.status.is-last { background: var(--accent); }
.status.is-soon { background: var(--tint-2); }
.status.is-closed { background: var(--muted-strong); color: #FFFFFF; }
@media (max-width: 760px) {
  .board-head { display: none; }
  .board-row, .board.has-valor .board-row { grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .board-course { grid-column: 1 / -1; }
  .board-label { display: block; font-size: 12px; color: var(--on-dark-3); text-transform: uppercase; letter-spacing: 0.08em; }
}
.board-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; padding: 32px; border-radius: var(--radius); background: var(--night); color: #FFFFFF; }
.board-empty > div { flex: 1 1 300px; }
.board-empty strong { font-family: var(--display); font-size: 24px; font-weight: 900; }
.board-empty p { margin: 4px 0 0; color: var(--on-dark-2); }
.board-empty .icon { color: var(--accent); }
.note { margin-top: 20px; color: var(--ink-2); font-size: 14px; }

/* Checklist e FAQ */
.checklist { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--line-dark); }
.checklist li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.checklist .icon { color: var(--ok); margin-top: 2px; }
.checklist strong { display: block; font-size: 17px; }
.checklist span { color: var(--on-dark-2); font-size: 15px; }
.section-dark .mono-label { color: var(--on-dark-3); margin-bottom: 12px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--night-2); border: 1px solid var(--line-dark-2); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 17px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 22px; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--on-dark-2); font-size: 15px; padding-bottom: 20px; }

/* Estrutura */
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mosaic img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius); }
.mosaic img.tall { grid-row: span 2; height: 416px; }
.tiles { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tiles li { background: #FFFFFF; border-radius: 14px; padding: 16px 18px; font-weight: 600; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature { background: #FFFFFF; border-radius: var(--radius); overflow: hidden; }
.feature img { width: 100%; height: 200px; object-fit: cover; }
.feature div { padding: 22px; }
.feature h3 { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: 15px; }
.timeline-card, .aside-card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.section-soft .aside-card { background: #FFFFFF; }
.timeline-card strong { font-family: var(--display); font-size: 48px; font-weight: 900; letter-spacing: -0.02em; line-height: 1; }
.aside-card h3 { font-size: 26px; font-weight: 900; }
.aside-card dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.aside-card dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }
.aside-card dd { margin: 2px 0 0; font-weight: 600; }

/* Página do curso */
.course-layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.prose { flex: 999 1 520px; min-width: 0; font-size: 17px; }
.prose p { color: var(--ink-prose); }
.course-aside { flex: 1 1 320px; position: sticky; top: 24px; }
@media (max-width: 900px) { .course-aside { position: static; } }
.topic-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 24px; }
.topic-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.topic-list .icon { color: var(--accent-ink); margin-top: 4px; }
.topic-list.light li { color: var(--on-dark-2); font-size: 15px; }
.topic-list.light .icon { color: var(--ok); }
.plain-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* Documentos e contato */
.doc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.doc-list a { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); font-weight: 600; min-height: 64px; }
.doc-list a:hover { border-color: var(--brand); background: var(--soft); }
.doc-list span { flex: 1; }
.doc-list small { font-family: var(--mono); color: var(--ink-2); }
.doc-list .icon { color: var(--brand); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.contact-card { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 6vw, 32px); min-width: 0; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .15s ease; }
.contact-card:hover { transform: translateY(-3px); color: var(--ink); border-color: var(--brand); }
.contact-card .icon { color: var(--brand); }
.contact-card strong { font-family: var(--display); font-size: 30px; font-weight: 900; line-height: 1.1; }
.contact-card strong.small { font-size: 19px; font-family: var(--body); font-weight: 700; line-height: 1.4; word-break: break-word; }
.contact-card > span:last-child { color: var(--ink-2); font-size: 14px; }
.contact-card.is-primary { background: var(--night); color: #FFFFFF; border-color: var(--night); }
.contact-card.is-primary .icon { color: var(--ok); }
.contact-card.is-primary .mono-label, .contact-card.is-primary > span:last-child { color: var(--on-dark-2); }

/* Depoimentos */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.quote { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.quote blockquote { margin: 0; color: var(--ink-2); font-size: 16px; }
.quote figcaption { display: flex; gap: 14px; align-items: center; }
.quote figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.quote figcaption small { display: block; color: var(--accent-ink); font-family: var(--mono); font-size: 13px; }

/* CTA */
.cta-band { position: relative; background: var(--accent); overflow: hidden; color: var(--night); }
.cta-route { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.35; }
.cta-inner { position: relative; padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; justify-content: space-between; }
.cta-inner > div:first-child { flex: 1 1 460px; }
.cta-band h2 { font-weight: 900; font-stretch: 112%; font-size: clamp(40px, 5.5vw, 64px); line-height: 0.95; letter-spacing: -0.02em; margin-bottom: 14px; }
.cta-band p { font-size: 17px; max-width: 520px; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; }

/* Rodapé */
.site-footer { background: var(--night); color: var(--on-dark-2); padding: 72px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 40px; }
.footer-brand img { width: var(--logo-foot, 230px); max-width: 100%; height: auto; margin-bottom: 14px; }
/* Logo em destaque na página inicial (opcional, ativada no painel) */
.hero-logo { width: var(--logo-hero, 260px); max-width: 80%; height: auto; }
.footer-title { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-3); font-weight: 500; margin-bottom: 12px; }
.site-footer address { font-style: normal; margin-bottom: 8px; }
.site-footer a { color: var(--on-dark-2); overflow-wrap: anywhere; }
/* Links do rodapé com área de toque confortável no celular (mín. 32px de altura) */
.footer-list a, .footer-map { display: inline-flex; align-items: center; min-height: 32px; }
.site-footer a:hover { color: #FFFFFF; }
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 44px; height: 44px; border: 1px solid var(--line-dark-2); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 14px; }
.footer-bottom .mono { color: var(--on-dark-3); }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }
.wa-float:hover { color: #FFFFFF; transform: scale(1.05); }

@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; } /* só as laterais: não zera o espaçamento de cima/baixo dos blocos */
  .section { padding: 72px 0; }
  .hero-inner { padding-top: 140px; gap: 36px; }
  .page-hero-inner { padding-top: 140px; padding-bottom: 56px; }
  .instrument { padding: 18px 12px; }
  .instrument:nth-child(odd) { border-left: 0; padding-left: 0; }
  .instruments-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .instrument strong { font-size: 30px; }
  .course-grid, .fleet { grid-template-columns: 1fr; }
  .mosaic img.tall { height: 300px; }
  .mosaic img { height: 142px; }
  .tiles { grid-template-columns: 1fr; }
  .sim-row-body { padding: 24px; }
  .cta-actions { width: 100%; }
}
.site-header.menu-open { background: var(--night); }
.section-tight { padding: 40px 0 0; }
.compliance { margin: 0; padding: 16px 20px; border-left: 4px solid var(--brand); background: var(--soft); border-radius: 8px; color: var(--ink-2); font-size: 15px; }
.aside-note { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.footer-cert { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--on-dark-3); }
.tag-free { background: var(--tint); }
.section-map { padding: 0 0 72px; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 12px; background: var(--soft); }
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }
@media (max-width: 640px) { .map-frame iframe { height: 320px; } }

/* Página de requisitos e licenças (pages/requisitos.php) */
.chip-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 15px; background: var(--surface); }
.chip-nav a:hover { border-color: var(--brand); color: var(--brand); }
.chip-nav strong { font-family: var(--mono); color: var(--brand); }
.req-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.req-grid li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border-radius: var(--radius-sm); padding: 20px; }
.req-grid .icon { color: var(--brand); flex: 0 0 auto; margin-top: 2px; }
.req-grid strong { display: block; font-size: 17px; margin-bottom: 4px; }
.req-grid span { color: var(--ink-2); font-size: 15px; }
.license-list { display: flex; flex-direction: column; gap: 28px; }
.license { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); scroll-margin-top: 24px; background: var(--surface); }
.license-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.license-head h2 { margin: 0; }
.license-code { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; padding: 8px 12px; border-radius: 10px; background: var(--night); color: var(--accent); font-family: var(--mono); font-weight: 700; font-size: 18px; letter-spacing: 0.04em; }
.license-code.sm { min-width: 0; padding: 3px 8px; font-size: 13px; border-radius: 6px; }
.license-summary { color: var(--ink-2); font-size: 17px; max-width: 820px; margin: 0 0 20px; }
.license-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px 32px; }
.license-col h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0 0 10px; color: var(--brand); text-transform: uppercase; letter-spacing: 0.04em; font-family: var(--mono); }
.license-col .plain-list li { font-size: 15px; }
.license-courses { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; }
.license-courses span { color: var(--ink-2); font-weight: 600; }
.license-courses a { font-weight: 700; min-height: 32px; display: inline-flex; align-items: center; }
.license-source h2 { margin-top: 0; }
.link-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 6px 24px; }
.link-list a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 600; overflow-wrap: anywhere; }

/* Página do curso: requisitos da ANAC para a licença */
.anac-box { margin-top: 32px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius-sm); padding: 20px 22px; background: var(--soft); }
.anac-box h2 { margin-top: 0; }
.muted-small { color: var(--ink-2); font-size: 15px; margin: 0 0 12px; }
.anac-box details { border-top: 1px solid var(--line); padding: 10px 0; }
.anac-box summary { cursor: pointer; font-weight: 700; min-height: 40px; display: flex; align-items: center; gap: 10px; }
.anac-box .plain-list li { font-size: 15px; }
.anac-exp { font-size: 15px; margin: 8px 0; }
.btn-row-site { display: flex; flex-wrap: wrap; gap: 12px; }

/* Flyer de promoção (janela ao abrir o site; painel > Promoções) */
.promo { padding: 0; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink); width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; box-shadow: 0 30px 80px rgb(0 0 0 / 0.45); }
.promo::backdrop { background: rgb(var(--night-rgb) / 0.72); }
.promo[open] { animation: promo-in .25s ease-out; }
@keyframes promo-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .promo[open] { animation: none; } }
.promo-close-form { position: sticky; top: 0; height: 0; z-index: 2; }
.promo-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(var(--night-rgb) / 0.75); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.promo-close:hover, .promo-close:focus-visible { background: var(--night); }
.promo-img { display: block; }
.promo-img img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 200px); object-fit: contain; background: var(--soft); }
.promo-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.promo-body p { margin: 0; color: var(--ink-2); font-size: 16px; }
