/* =====================================================================
   B2B Tecno — estilos compartilhados das páginas de curso
   Tokens do B2B Tecno Design System. Mobile-first.
   ===================================================================== */

/* ---------- Fontes (auto-hospedadas, subset latino) ---------- */
@font-face { font-family: "Homenaje"; src: url("../fonts/homenaje-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/noto-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/noto-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/noto-sans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --b2b-blue: #4285f4;
  --b2b-blue-mid: #2f6fea;
  --b2b-blue-deep: #0f2e5f;
  --b2b-navy: #0a1a3a;
  --b2b-green: #27c93f;
  --b2b-teal: #1f8a70;
  --gray-50: #f7f8fa;
  --gray-100: #eef0f3;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #3f444c;
  --gray-900: #2b2b2b;
  --font-display: "Homenaje", "Noto Sans", system-ui, sans-serif;
  --font-body: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --shadow-2: 0 2px 6px rgba(15, 46, 95, 0.08), 0 1px 2px rgba(15, 46, 95, 0.04);
  --shadow-4: 0 22px 48px rgba(15, 46, 95, 0.16), 0 6px 12px rgba(15, 46, 95, 0.08);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --container: 1120px;
  --gutter: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--gray-900);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
p { margin: 0; }
a { color: var(--b2b-blue-mid); }
a:hover { color: var(--b2b-blue-deep); }
:focus-visible { outline: 2px solid var(--b2b-blue); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 56px 0; }
.section > .wrap { display: flex; flex-direction: column; gap: 22px; }
.bg-white { background: #fff; }
.bg-soft { background: var(--gray-50); }
.bg-navy { background: var(--b2b-navy); color: #fff; }
.bg-hero, .bg-deep { background-color: var(--b2b-blue-deep); background-size: cover; background-position: center top; color: #fff; }
.bg-hero { background-image: url("../img/fundo-hero-mobile.jpg"); }
.bg-deep { background-image: url("../img/fundo-secao-escura.jpg"); background-position: center; }
@media (min-width: 900px) {
  .bg-hero { background-image: url("../img/fundo-hero-desktop.jpg"); }
  .section { padding: 88px 0; }
}

/* ---------- Tipografia ---------- */
.overline { font-family: var(--font-display); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--b2b-teal); }
.on-dark .overline, .overline.on-dark { color: var(--b2b-green); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; margin: 0; }
.h1 { font-size: 50px; line-height: .98; letter-spacing: .02em; }
.h2 { font-size: 38px; line-height: 1.02; letter-spacing: .03em; color: var(--b2b-blue-deep); }
.h3 { font-size: 24px; line-height: 1.1; letter-spacing: .04em; color: var(--b2b-blue-deep); }
.on-dark .h2, .on-dark .h3 { color: #fff; }
.lead { font-size: 17px; }
.muted { color: var(--gray-500); }
.text { color: var(--gray-700); }
.on-dark .text { color: rgba(255,255,255,.85); }
.small { font-size: 13px; }
.num { font-family: var(--font-display); font-size: 20px; letter-spacing: .08em; color: var(--b2b-blue-mid); flex-shrink: 0; }
.emph { font-size: 18px; font-weight: 600; color: var(--b2b-blue-deep); }
@media (min-width: 900px) {
  .h1 { font-size: 76px; }
  .h2 { font-size: 52px; }
  .h3 { font-size: 26px; }
  .lead { font-size: 19px; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 28px; width: 100%;
  font-family: var(--font-display); font-size: 21px; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; border: 0; border-radius: var(--radius-md); cursor: pointer;
  transition: transform .15s var(--ease-out), background-color .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-primary { background: var(--b2b-blue-mid); color: #fff; box-shadow: 0 8px 20px rgba(47,111,234,.35); }
.btn-primary:hover { background: var(--b2b-blue); color: #fff; }
.btn-buy { background: var(--b2b-green); color: var(--b2b-navy); box-shadow: 0 8px 20px rgba(39,201,63,.3); }
.btn-buy:hover { background: #2fd94a; color: var(--b2b-navy); }
@media (min-width: 900px) { .btn { width: auto; min-width: 360px; } }

/* ---------- Cartões e listas ---------- */
.stack { display: flex; flex-direction: column; gap: 14px; }
.grid-2, .grid-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.grid-2x2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .grid-2x2 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}
.card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-2); }
.card-top { border-top: 4px solid var(--b2b-blue); }
.card-top.green { border-top-color: var(--b2b-green); }
.card-soft { background: var(--gray-50); border-radius: var(--radius-lg); padding: 16px; display: flex; gap: 14px; align-items: flex-start; }
.card-glass { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.card-plain { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.card .text, .card-glass .text, .card-plain .text { font-size: 15px; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.list li { display: flex; gap: 10px; align-items: flex-start; }
.list .mark { font-weight: 700; color: var(--b2b-teal); flex-shrink: 0; }
.list.no .mark { color: var(--gray-700); }

/* ---------- Seções específicas ---------- */
.hero { padding: 28px 0 44px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: center; }
.hero-logo { width: 168px; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.hero-photo img { width: 100%; max-width: 460px; margin: 0 auto; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; }
.hero-note { color: rgba(255,255,255,.75); text-align: center; }
@media (min-width: 900px) {
  .hero { padding: 40px 0 88px; }
  .hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: 48px; }
  .hero-logo { grid-column: 1 / -1; margin-bottom: 24px; }
  .hero-note { text-align: left; }
}

.stats { padding: 22px 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; text-align: center; }
.stat-n { display: block; font-family: var(--font-display); font-size: 30px; line-height: 1.1; color: var(--b2b-green); }
.stat-l { display: block; font-size: 12px; line-height: 1.3; color: rgba(255,255,255,.75); }
@media (min-width: 900px) { .stat-n { font-size: 44px; } .stat-l { font-size: 14px; } }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--b2b-blue-deep); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.teacher .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center; }
.teacher-photo img { border-radius: var(--radius-lg); width: 100%; }
.teacher-copy { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .teacher .wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 56px; } }

.testimonials img { border-radius: var(--radius-lg); border: 1px solid var(--gray-200); }

.offer .wrap { align-items: center; }
.offer-card { width: 100%; max-width: 520px; background: #fff; color: var(--gray-900); border-radius: var(--radius-xl); padding: 28px 22px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 22px 48px rgba(0,0,0,.35); }
.offer-card .h2 { font-size: 32px; text-align: center; }
.offer-card .list { font-size: 15px; }
.price { border-top: 1px solid var(--gray-200); padding-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.price-big { font-family: var(--font-display); font-size: 64px; line-height: 1; color: var(--b2b-blue-deep); }
.offer-card .btn { width: 100%; min-width: 0; }

.guarantee .wrap { align-items: center; text-align: center; max-width: 640px; }
.seal { width: 112px; height: 112px; border-radius: 999px; border: 3px solid var(--b2b-green); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.seal b { font-family: var(--font-display); font-weight: 400; font-size: 46px; line-height: .9; color: var(--b2b-blue-deep); }

.faq .wrap { max-width: 760px; }
.faq details { background: #fff; border-radius: var(--radius-lg); padding: 0 18px; box-shadow: var(--shadow-2); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 28px 16px 0; font-weight: 700; color: var(--b2b-blue-deep); position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-family: var(--font-display); font-size: 26px; color: var(--b2b-blue-mid); transition: transform .2s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 16px; color: var(--gray-700); font-size: 15px; }

.final { padding-bottom: 28px; }
.footer { border-top: 1px solid rgba(255,255,255,.18); margin-top: 36px; padding-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: rgba(255,255,255,.6); font-size: 12px; }
.footer a { color: rgba(255,255,255,.75); }
.footer img { width: 140px; }

/* ---------- Barra de compra fixa (celular) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 26, 58, .96); border-top: 1px solid rgba(255,255,255,.14);
  transform: translateY(110%); transition: transform .32s var(--ease-out);
}
.sticky-cta.on { transform: translateY(0); }
.sticky-cta .p { color: #fff; font-size: 12px; line-height: 1.25; }
.sticky-cta .p b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.sticky-cta .btn { width: auto; min-width: 0; min-height: 44px; padding: 10px 18px; font-size: 18px; flex-shrink: 0; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Ajustes de contexto (precisam vir por último) */
.offer-card .h2 { color: var(--b2b-blue-deep); }
.teacher .wrap:has(.teacher-photo[hidden]) { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.hero .wrap:has(.hero-photo[hidden]) { grid-template-columns: minmax(0, 1fr); }

/* ---------- Grade completa (acordeão por curso) ---------- */
.curriculum .wrap { max-width: 860px; }
.curriculum details { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); overflow: hidden; }
.curriculum details[open] { border-top: 4px solid var(--b2b-blue); }
.curriculum summary {
  list-style: none; cursor: pointer; min-height: 56px; padding: 14px 44px 14px 18px; position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: baseline;
}
.curriculum summary::-webkit-details-marker { display: none; }
.curriculum summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-family: var(--font-display); font-size: 28px; color: var(--b2b-blue-mid); transition: transform .2s var(--ease-out); }
.curriculum details[open] summary::after { transform: rotate(45deg); }
.cur-n { font-family: var(--font-display); font-size: 17px; letter-spacing: .08em; text-transform: uppercase; color: var(--b2b-blue-mid); }
.cur-t { font-family: var(--font-display); font-size: 22px; line-height: 1.1; letter-spacing: .03em; text-transform: uppercase; color: var(--b2b-blue-deep); }
.cur-m { grid-column: 2; font-size: 13px; color: var(--gray-500); }
.cur-body { padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.cur-body .mod { font-family: var(--font-body); font-weight: 700; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--b2b-blue-deep); margin-top: 10px; }
.cur-body ul { margin: 0; padding: 0 0 0 18px; color: var(--gray-700); font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.cur-body li::marker { color: var(--b2b-teal); }
.curriculum .btn { align-self: center; }
@media (min-width: 900px) { .cur-t { font-size: 26px; } }
