/* =============================================================================
 * styles.css — Estilo da landing page (pasta independente).
 * ARQUIVO COMPARTILHADO: idêntico nas quatro pastas (e na página-raiz).
 * Alterações visuais aqui devem ser replicadas nas outras três pastas.
 * Identidade Ka Solution inspirada (não copiada) na página de treinamento AWS.
 * =========================================================================== */

/* ----------------------------- VARIÁVEIS --------------------------------- */
:root {
  --color-navy: #182230;
  --color-navy-dark: #111827;
  --color-blue: #2563eb;
  --color-cyan: #0ea5a4;
  --color-cyan-soft: #dff8f4;
  --color-orange: #f59e0b;
  --color-white: #ffffff;
  --color-background: #ffffff;
  --color-surface: #f7f8fa;
  --color-text: #111827;
  --color-muted: #5f6b7a;
  --color-border: #d5dae1;
  --color-success: #087f5b;
  --color-danger: #b42318;
  --color-disabled: #9ca3af;

  --font-base: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1160px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 16px 40px rgba(17, 24, 39, 0.12);

  --transition: 170ms ease;
}

/* ------------------------------- BASE ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-base); color: var(--color-text); background: var(--color-background); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-blue); }
h1, h2, h3, h4 { line-height: 1.15; color: var(--color-navy); margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--color-blue); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--color-navy); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ------------------------------ LAYOUT ----------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; }
.section { padding: clamp(40px, 5vw, 64px) 0; }
.section-alt { background: var(--color-surface); }
.section-title { font-size: clamp(1.6rem, 2.8vw, 2.15rem); font-weight: 800; }
.section-title.center { text-align: center; }
.section-subtitle { color: var(--color-muted); font-size: 1.02rem; margin: -0.2em 0 1.8em; }
.section-subtitle.center { text-align: center; margin-left: auto; margin-right: auto; max-width: 620px; }

/* ------------------------------ BOTÕES ----------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1; padding: 13px 24px; border-radius: var(--radius-pill); border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--color-navy); color: #fff; }
.btn-primary:hover { background: var(--color-navy-dark); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--color-navy); border-color: var(--color-navy); }
.btn-outline:hover { background: var(--color-navy); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 0.92rem; }
.btn-lg { padding: 16px 28px; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--color-disabled); border-color: var(--color-disabled); color: #fff; cursor: not-allowed; pointer-events: none; transform: none; box-shadow: none; }
.btn-outline:disabled, .btn-outline[aria-disabled="true"] { background: transparent; color: var(--color-disabled); border-color: var(--color-disabled); }

/* ------------------------------ HEADER ----------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 66px; padding-top: 9px; padding-bottom: 9px; }
.brand-logo { height: 40px; width: auto; }
.header-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.partner-label { font-size: 0.8rem; font-weight: 600; color: var(--color-navy); max-width: 200px; line-height: 1.25; }
.partner-seal { height: 38px; width: auto; }

/* ------------------------------- HERO ------------------------------------ */
.hero { background: radial-gradient(900px 460px at 8% -10%, var(--color-cyan-soft), transparent 60%), radial-gradient(820px 460px at 100% 0%, #eef4ff, transparent 55%), var(--color-background); padding: clamp(36px, 5vw, 64px) 0 clamp(32px, 4vw, 56px); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 52px); align-items: center; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-cyan); background: var(--color-cyan-soft); padding: 6px 13px; border-radius: var(--radius-pill); margin-bottom: 14px; }
.hero-title { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; }
.hero-title-1 { display: block; color: var(--color-navy); }
.hero-title-2 { display: block; color: var(--color-blue); }
.hero-headline { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 600; color: var(--color-navy); max-width: 34ch; }
.hero-description { color: var(--color-muted); font-size: 1.02rem; max-width: 48ch; }
.hero-cta-note { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--color-navy); background: #eef4ff; border: 1px solid #cfe0ff; padding: 9px 16px; border-radius: var(--radius-pill); margin: 2px 0 20px; }
.hero-cta-note-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-blue); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media { position: relative; display: flex; justify-content: center; }
.hero-image { width: 100%; max-width: 520px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--color-surface); }
.hero-badge { position: absolute; left: 0; bottom: -16px; width: clamp(84px, 12vw, 128px); height: auto; filter: drop-shadow(var(--shadow-md)); }

/* -------------------------- INFO RÁPIDAS (4) ----------------------------- */
.quick-info { background: var(--color-navy); color: #fff; padding: 18px 0; }
.quick-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-item { display: flex; gap: 11px; align-items: center; }
.quick-item .qi-icon { flex: 0 0 auto; color: var(--color-cyan); }
.quick-item .qi-body { display: flex; flex-direction: column; }
.quick-item .qi-label { font-size: 0.72rem; color: #9fb0c3; text-transform: uppercase; letter-spacing: 0.05em; }
.quick-item .qi-value { font-weight: 700; font-size: 0.98rem; }

/* --------------------------- SOBRE O CURSO ------------------------------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.about-text p { color: var(--color-muted); font-size: 1.02rem; }
.about-side { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.about-side h3 { font-size: 1.1rem; margin-bottom: 12px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.check-list li { position: relative; padding-left: 28px; color: var(--color-text); font-size: 0.98rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--color-cyan-soft); border: 2px solid var(--color-cyan); }
.check-list li::after { content: ""; position: absolute; left: 5.5px; top: 6.5px; width: 5px; height: 9px; border: solid var(--color-cyan); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.about-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
.about-extra h3 { font-size: 1rem; margin-bottom: 8px; }
.about-extra ul { margin: 0; padding-left: 18px; color: var(--color-muted); }
.about-extra li { margin-bottom: 5px; }

/* ==================== BLOCO ÚNICO DE INSCRIÇÃO ========================== */
.enroll { background: var(--color-surface); }
.enroll-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(22px, 3.5vw, 40px); margin-top: 8px; }
.step { border-top: 1px solid var(--color-border); padding-top: 26px; margin-top: 26px; }
.step:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step-num { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--color-blue); color: #fff; font-weight: 800; font-size: 1rem; }
.step-title { font-size: 1.2rem; font-weight: 800; margin: 0; }

/* Passo 1 — cards de turma */
.classes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.class-card { position: relative; background: var(--color-white); border: 2px solid var(--color-border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: border-color var(--transition), box-shadow var(--transition); }
.class-card:hover { box-shadow: var(--shadow-md); }
.class-card.is-selected { border-color: var(--color-blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), var(--shadow-md); }
.class-card.is-full { background: #f3f4f6; opacity: 0.92; }
.class-status { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; font-size: 0.78rem; font-weight: 700; padding: 5px 11px; border-radius: var(--radius-pill); margin-bottom: 12px; }
.class-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-available { color: var(--color-success); background: #e7f7f0; }
.status-full { color: var(--color-danger); background: #fbeae8; }
.class-title { font-size: 1.1rem; font-weight: 800; margin: 0 0 4px; }
.class-date { font-weight: 700; color: var(--color-navy); margin: 0 0 12px; font-size: 1rem; }
.class-meta { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 7px; }
.class-meta li { display: flex; gap: 10px; align-items: baseline; font-size: 0.92rem; }
.class-meta .cm-label { color: var(--color-muted); min-width: 84px; flex: 0 0 auto; font-size: 0.82rem; }
.class-seats { font-weight: 700; }
.class-card .btn { margin-top: auto; }

/* Passo 2 — formulário */
.selected-summary { background: var(--color-cyan-soft); border: 1px solid #b8e6e2; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; color: var(--color-navy); }
.select-hint { background: #fff8ec; border: 1px solid #f3dcae; color: #92610a; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; font-weight: 600; }
.form-alert { border-radius: var(--radius); padding: 13px 16px; margin-bottom: 18px; font-weight: 600; }
.form-alert.is-error { background: #fbeae8; border: 1px solid #f2c4be; color: var(--color-danger); }

/* Grade do formulário: coluna única; apenas Telefone|CPF em duas colunas. */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.94rem; color: var(--color-navy); }
.field .req { color: var(--color-danger); }
.field input, .field select { font-family: inherit; font-size: 1rem; padding: 11px 13px; border: 1.5px solid var(--color-border); border-radius: 10px; background: var(--color-white); color: var(--color-text); width: 100%; transition: border-color var(--transition), box-shadow var(--transition); }
.field input:focus, .field select:focus { border-color: var(--color-blue); outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--color-danger); box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.15); }
.field-error { color: var(--color-danger); font-size: 0.85rem; min-height: 1em; font-weight: 600; }
.field-check { margin-top: 4px; }
.check { display: flex; gap: 11px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--color-blue); cursor: pointer; }
.check span { color: var(--color-text); font-size: 0.96rem; }
.inline-link { color: var(--color-blue); text-decoration: underline; }

/* Área de integração do CAPTCHA (placeholder — sem proteção real ainda) */
.captcha-slot { margin-top: 18px; border: 2px dashed var(--color-border); border-radius: var(--radius); padding: 18px; text-align: center; color: var(--color-muted); background: var(--color-surface); font-size: 0.95rem; }
.captcha-slot strong { display: block; color: var(--color-navy); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }

#registration-form .btn-block { margin-top: 22px; }

/* Confirmação */
.confirmation { text-align: center; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.confirmation-check { width: 62px; height: 62px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; color: #fff; background: var(--color-success); border-radius: 50%; }
.confirmation h3 { font-size: 1.5rem; }
.confirmation-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; text-align: left; max-width: 560px; margin: 20px auto; }
.confirmation-details div { background: var(--color-surface); border-radius: var(--radius); padding: 12px 14px; }
.confirmation-details dt { font-size: 0.76rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.confirmation-details dd { margin: 4px 0 0; font-weight: 700; color: var(--color-navy); }
.confirmation-msg { color: var(--color-muted); }

/* ------------------------------- FAQ ------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-white); overflow: hidden; }
.faq-question { width: 100%; text-align: left; font-family: inherit; font-size: 1.02rem; font-weight: 700; color: var(--color-navy); background: transparent; border: 0; padding: 17px 52px 17px 20px; cursor: pointer; position: relative; }
.faq-question::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--color-blue); transition: transform var(--transition); }
.faq-question[aria-expanded="true"]::after { content: "−"; }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; color: var(--color-muted); transition: max-height var(--transition), padding var(--transition); }
.faq-answer.is-open { padding: 0 20px 18px; max-height: 400px; }

.institution-line { text-align: center; color: var(--color-muted); font-size: 0.98rem; padding: 8px 0 0; }

/* ------------------------------ RODAPÉ ----------------------------------- */
.site-footer { background: var(--color-navy); color: #cbd5e1; padding: 44px 0 26px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-brand img { height: 40px; width: auto; background: #fff; padding: 7px 11px; border-radius: 9px; margin-bottom: 12px; }
.footer-brand .footer-legal-name { margin: 3px 0 6px; font-weight: 700; color: #fff; font-size: 0.95rem; }
.footer-phones { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.footer-phones li { font-size: 0.9rem; }
.footer-phones .fp-label { color: #9fb0c3; }
.footer-phones a { color: #cbd5e1; text-decoration: none; }
.footer-phones a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: #93b4ff; }
.footer-legal { padding-top: 20px; }
.trademark-note { font-size: 0.8rem; color: #9fb0c3; max-width: 820px; }
.copyright { font-size: 0.84rem; color: #9fb0c3; margin: 8px 0 0; }

/* ===================== PÁGINA-RAIZ DE NAVEGAÇÃO ========================= */
.nav-page { background: var(--color-surface); min-height: 100vh; }
.nav-hero { padding: clamp(40px, 6vw, 72px) 0 24px; text-align: center; }
.nav-hero .eyebrow { margin-bottom: 16px; }
.nav-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.nav-hero p { color: var(--color-muted); max-width: 620px; margin: 0 auto; }
.nav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; padding-bottom: 56px; }
.nav-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform var(--transition), box-shadow var(--transition); }
.nav-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.nav-card .nav-tag { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-cyan); }
.nav-card h2 { font-size: 1.2rem; margin: 8px 0 10px; }
.nav-card .nav-meta { color: var(--color-muted); font-size: 0.92rem; margin-bottom: 18px; }
.nav-card .btn { margin-top: auto; }
.nav-foot { text-align: center; color: var(--color-muted); font-size: 0.82rem; padding-bottom: 32px; }

/* ---------------------------- RESPONSIVO --------------------------------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; min-height: auto; }
  .header-right { width: 100%; justify-content: space-between; }
  .partner-label { max-width: none; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .about-extra { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .partner-seal { display: none; }
  .hero-actions .btn { width: 100%; }
  .quick-grid { grid-template-columns: 1fr; }
}

/* ------------------------- MOVIMENTO REDUZIDO ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .btn:hover, .nav-card:hover, .class-card:hover { transform: none; }
}
