/* ===================================================================
   Bächtold Educação — Landing Page (TEMA "PAPEL E GIZ")
   Identidade: fundo creme quente + terracota de acento + navy de marca
   =================================================================== */

:root {
  /* Navy de marca — usado no "carimbo" da marca e em superfícies escuras pontuais (nomes de token mantidos) */
  --navy-900: #1e2a3a;  /* navy mais profundo (placeholder de vídeo) */
  --navy-800: #24344a;  /* navy médio (referência) */
  --navy: #2e4258;      /* navy mais claro (referência) */

  /* Terracota — acento principal / CTA / marca */
  --blue-700: #c4501f;  /* CTA / botões / marca */
  --blue-600: #9a3d18;  /* acento de texto (.accent, eyebrow, ênfase) — mais escuro p/ contraste no claro */
  --blue-500: #d97142;  /* anel de foco / hover claro dos botões */
  --blue-100: rgba(196, 80, 31, .14); /* pill translúcida / brilho de foco */

  /* Neutros (tema claro) */
  --ink: #23303f;       /* texto principal — grafite-marinho */
  --muted: #6e6a61;     /* texto secundário — cinza quente */
  --line: rgba(35, 48, 63, .16); /* bordas/linhas translúcidas */
  --grid-line: rgba(35, 48, 63, .06); /* linhas do fundo quadriculado (papel de caderno) */
  --bg: #faf3e7;        /* creme — fundo da página */
  --bg-soft: #f1e7d4;   /* seções alternadas — bege mais profundo */
  --bg-navy: #24344a;

  --green: #25d366;     /* WhatsApp */
  --green-700: #2e7a4c; /* verde floresta p/ check no claro */

  /* Superfícies reutilizáveis */
  --surface: #fffdf8;   /* branco quente — cards */
  --surface-2: #fff7ea; /* bege claro — inputs / elevado */
  --header-bg: rgba(250, 243, 231, .86);
  --nav-mobile-bg: #fffdf8;
  --on-accent: #ffffff;

  --maxw: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(35, 26, 15, .10);
  --shadow: 0 12px 28px rgba(35, 26, 15, .12);
  --shadow-lg: 0 24px 56px rgba(35, 26, 15, .16);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 88px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

/* ===================== Tipografia ===================== */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.accent { color: var(--blue-600); }

/* ===================== Botões ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

.btn-primary {
  background: var(--blue-700);
  color: var(--on-accent);
  box-shadow: 0 0 0 1px rgba(196, 80, 31, .18), 0 10px 22px rgba(196, 80, 31, .22);
}
.btn-primary:hover { background: var(--blue-500); color: var(--ink); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--blue-600); border-color: var(--blue-700); }
.btn-outline:hover { background: var(--blue-700); color: var(--on-accent); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-600); transform: translateY(-2px); }

.btn-whats {
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .35);
}
.btn-whats:hover { background: #1ebe5b; transform: translateY(-2px); }

/* ===================== Header ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 42px; height: 42px;
  flex: none;
  object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.brand-sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; gap: 26px; }
.nav a { font-weight: 500; font-size: .95rem; color: var(--ink); position: relative; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--blue-600); transition: width .2s ease;
}
.nav a:hover { color: var(--blue-600); }
.nav a:hover::after { width: 100%; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== Hero (dark, centralizado) ===================== */
.hero {
  position: relative;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 560px at 80% -10%, rgba(196, 80, 31, .14), transparent 60%),
    radial-gradient(760px 420px at 12% 0%, rgba(196, 80, 31, .07), transparent 55%),
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px),
    linear-gradient(180deg, var(--bg-soft), var(--bg) 72%);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
  background-attachment: fixed, fixed, fixed, fixed, scroll;
  background-position: center;
  padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.hero-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.hero-inner h1 { margin-top: 6px; }
.hero-inner .lead {
  font-size: 1.18rem;
  color: var(--muted);
  margin: 22px auto 32px;
  max-width: 620px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 30px; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--muted); }
.hero-trust li::before { content: "✓"; color: var(--green-700); font-weight: 700; }

/* ===================== Seções genéricas ===================== */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt {
  background-color: var(--bg-soft);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  background-attachment: fixed;
}
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: 10px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===================== Texto corrido (seção Problema) ===================== */
.prose { max-width: 640px; margin: 0 auto; }
.prose p { margin: 0 0 16px; color: var(--ink); font-size: 1.08rem; line-height: 1.75; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--blue-600); }

/* ===================== Listas com check ===================== */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; font-size: .98rem; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green-700); font-weight: 700;
}
.check-list-lg { max-width: 560px; margin: 0 auto; gap: 14px; }
.check-list-lg li { font-size: 1.08rem; }

/* ===================== Método: passos + ações ===================== */
.feature { text-align: center; padding: 20px 14px; }
.feature-icon {
  width: 58px; height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--surface);
  color: var(--blue-600);
  border: 1px solid rgba(196, 80, 31, .35);
  box-shadow: var(--shadow-sm);
}
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .94rem; }
.method-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 40px; }

/* ===================== Depoimentos (vídeo) ===================== */
.video-testimonial {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.video-testimonial video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: var(--navy-900);
}
.video-testimonial figcaption {
  padding: 14px 18px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
}
.testimonial-note {
  text-align: center;
  margin-top: 24px;
  font-size: .88rem;
  color: var(--muted);
}
.testimonial-note a { color: var(--blue-600); text-decoration: underline; }

/* ===================== Preços ===================== */
.price-group + .price-group { margin-top: clamp(44px, 6vw, 68px); }
.price-group-head { text-align: center; margin-bottom: 26px; }
.price-group-head h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.price-group-head p { color: var(--muted); font-size: .98rem; margin-top: 6px; }
.price-group--narrow .grid { max-width: 760px; margin-left: auto; margin-right: auto; }

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 34px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card-highlight {
  background: var(--surface-2);
  border-color: var(--blue-700);
  box-shadow: 0 0 0 1px rgba(196, 80, 31, .35), var(--shadow);
}
.price-card h4 { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; color: var(--ink); margin-top: 2px; }

.tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--blue-100);
  color: var(--blue-600);
  border: 1px solid rgba(196, 80, 31, .28);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.tag-amber { background: var(--blue-700); color: var(--on-accent); border-color: var(--blue-700); }

.price { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 4px; }
.price-value { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; color: var(--ink); line-height: 1.1; }
.price-cents { font-size: .5em; vertical-align: super; color: var(--muted); }
.price-period { font-size: .92rem; color: var(--muted); }
.price-alt { font-size: .95rem; color: var(--muted); margin-top: 6px; }
.price-alt strong { color: var(--blue-600); font-weight: 700; }
.price-contract { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.price-card .btn { margin-top: auto; align-self: flex-start; white-space: normal; text-align: center; }

.price-note { text-align: center; margin-top: 20px; font-size: .85rem; color: var(--muted); font-style: italic; }

/* ===================== Cadastro / Formulário ===================== */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field .req { color: var(--blue-600); margin-left: 2px; }
.field .opt { color: var(--muted); font-weight: 400; font-size: .85rem; }

.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(110, 106, 97, .55); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-100);
}
.field input:user-invalid, .field select:user-invalid { border-color: #e2574f; }
.field textarea { resize: vertical; min-height: 84px; }

.consent { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; }
.consent input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--blue-700); }
.consent label, .req-legend { font-weight: 400; font-size: .85rem; color: var(--muted); }
.req-legend { margin-top: 14px; }
.req-legend .req { color: var(--blue-600); }

.form-card .btn-whats { width: 100%; margin-top: 18px; }
.form-note, .form-fallback { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 12px; }
.form-fallback a { color: var(--green-700); text-decoration: underline; }

/* ===================== FAQ ===================== */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--blue-600); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 18px; }
.faq details p a { color: var(--blue-600); text-decoration: underline; }

/* ===================== Footer ===================== */
.site-footer { background: var(--surface); color: var(--muted); padding: 48px 0 32px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px 40px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { color: var(--ink); font-size: 1.1rem; display: block; }
.footer-brand p { font-size: .88rem; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-end; }
.footer-nav a { font-size: .92rem; color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }
.footer-copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: .85rem; color: var(--muted); }
.footer-signature { font-family: var(--font-head); font-size: 1.02rem; color: var(--ink); margin-bottom: 6px; letter-spacing: .01em; }
.footer-signature a { color: var(--blue-600); font-weight: 600; }
.footer-signature a:hover { text-decoration: underline; }
.footer-legal { font-size: .85rem; color: var(--muted); }

/* ===================== WhatsApp flutuante ===================== */
.whats-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
  transition: transform .2s ease;
  animation: floatPulse 2.6s ease-in-out infinite;
}
.whats-float:hover { transform: scale(1.08); }
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(37, 211, 102, .45); }
  50% { box-shadow: 0 10px 34px rgba(37, 211, 102, .7); }
}

/* ===================== Responsivo ===================== */
@media (max-width: 940px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Header colapsa no menu hambúrguer no mobile */
@media (max-width: 900px) {
  .nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--nav-mobile-bg);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
  .site-footer { padding-bottom: 100px; }
}

@media (max-width: 420px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-actions .btn,
  .method-actions .btn,
  .diagnostic-band .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
}


/* ===================== Cursos + Depoimentos (iframe) ===================== */
/* Depoimentos: iframe do VideoPress em 16:9, igual aos vídeos nativos */
.video-testimonial iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* Cursos: faixa da Avaliação Diagnóstica */
.diagnostic-band {
  margin-top: 40px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid rgba(196, 80, 31, 0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.diagnostic-band__text { flex: 1 1 340px; }
.diagnostic-band__text h3 { margin: 6px 0 10px; }
.diagnostic-band__text p { margin: 0; color: var(--muted); }
.diagnostic-band .btn { flex-shrink: 0; }
