/* =========================================================================
   Migrando para BIM 2.0 — stylesheet
   Paleta extraída da marca oficial (logos/logo_migrando_bim_eletrica_2.svg)
   ========================================================================= */

:root {
  /* brand */
  --navy-950: #0a1826;
  --navy-900: #0f2439;
  --navy-800: #16324a;
  --navy-700: #1c3d59;
  --blue: #1481b8;
  --blue-light: #7fb8dc;
  --yellow: #ffd400;
  --yellow-dark: #e0b800;

  /* surfaces / text (dark theme) */
  --bg: var(--navy-950);
  --surface: #10233590;
  --surface-solid: #122a40;
  --surface-2: #16324a;
  --border: #24425e;
  --text: #eaf2f8;
  --text-muted: #a9c2d3;
  --text-dim: #7c93a5;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0,0,0,.55);
  --font-body: 'Inter', system-ui, sans-serif;
  --font-head: 'Sora', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
/* garante que [hidden] sempre vença, mesmo sobre regras de display específicas
   (ex.: .pricing-badge tem display:inline-block com a mesma especificidade) */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 820px; }

/* background texture */
body {
  background-image:
    radial-gradient(circle at 15% 0%, rgba(20,129,184,.18), transparent 45%),
    radial-gradient(circle at 90% 15%, rgba(255,212,0,.08), transparent 40%);
  background-attachment: fixed;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-head);
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-sm { padding: .55em 1.3em; font-size: .85rem; }
.btn-lg { padding: .95em 2em; font-size: 1.02rem; }
.btn-primary {
  background: var(--yellow);
  color: var(--navy-950);
  box-shadow: 0 10px 30px -10px rgba(255,212,0,.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(255,212,0,.65); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--blue-light); background: rgba(127,184,220,.08); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(10,24,38,.78);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { border-radius: 6px; }
.logo-text {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}
.logo-text strong { color: var(--blue-light); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .15s ease;
}
.nav a:hover { color: var(--yellow); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 90px; }
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 600px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(20,129,184,.35), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  font-weight: 800;
  color: var(--text);
}
.text-gradient { color: var(--yellow); }
.hero-sub { font-size: 1.08rem; color: var(--text-muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 24px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-trust li { font-size: .88rem; color: var(--text-dim); }

.hero-media .media-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--navy-900);
}

/* ---------- visualizador IFC (hero) ---------- */
.ifc-viewer {
  position: relative;
  aspect-ratio: 1880 / 1210;
}
.ifc-viewer canvas { display: block; }
.ifc-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ifc-load-btn {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: .8em 1.5em;
  border-radius: 999px;
  border: none;
  background: var(--yellow);
  color: var(--navy-950);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.55);
  transition: transform .15s ease, background .15s ease;
}
.ifc-load-btn:hover { background: var(--yellow-dark); transform: translateX(-50%) translateY(-2px); }
.ifc-load-icon { font-size: 1.1rem; line-height: 1; }
.ifc-progress {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(10,24,38,.72);
  color: var(--text);
  font-family: var(--font-head);
  font-size: .9rem;
  text-align: center;
  padding: 0 24px;
}
.ifc-progress-track {
  width: min(260px, 70%);
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.ifc-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--yellow);
  transition: width .2s ease;
}
.ifc-hint {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  background: rgba(10,24,38,.7);
  color: var(--text-muted);
  font-size: .78rem;
  padding: .4em 1em;
  border-radius: 999px;
  pointer-events: none;
}

/* ---------- prova social ---------- */
.social-proof {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(255,212,0,.07), rgba(20,129,184,.10));
}
.social-proof-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 34px 24px;
}
.social-proof-number {
  flex: 0 0 auto;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 4rem;
  line-height: 1;
  color: var(--yellow);
  text-shadow: 0 0 40px rgba(255,212,0,.35);
}
.social-proof-text {
  margin: 0;
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 62ch;
}
.social-proof-text strong { color: var(--text); }
.social-proof-highlight {
  display: block;
  margin-top: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--yellow);
}
.cta-final-sub { color: var(--text-muted); font-size: 1rem; margin-bottom: 26px; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.02) 15%, rgba(255,255,255,.02) 85%, transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { display: block; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
.section-lead { color: var(--text-muted); font-size: 1.02rem; }

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

/* highlight cards */
.highlight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: left;
}
.highlight-icon { font-size: 1.8rem; display: inline-block; margin-bottom: 14px; }
.highlight-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.highlight-card p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* ---------- curriculum accordion ---------- */
.curriculum { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.curriculum-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.curriculum-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
}
.curriculum-index {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 1px solid var(--blue);
  color: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
}
.curriculum-title { flex: 1; }
.curriculum-count { font-size: .78rem; font-weight: 500; color: var(--text-dim); white-space: nowrap; }
.curriculum-icon { color: var(--yellow); font-size: 1.2rem; transition: transform .2s ease; }
.curriculum-item.open .curriculum-icon { transform: rotate(45deg); }

.curriculum-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.curriculum-panel-inner { padding: 0 22px 20px 72px; }
.curriculum-panel ul { display: flex; flex-direction: column; gap: 8px; }
.curriculum-panel li {
  position: relative;
  padding-left: 18px;
  font-size: .93rem;
  color: var(--text-muted);
}
.curriculum-panel li::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-light);
}

/* módulos ainda em produção */
.curriculum-item.is-upcoming {
  background: transparent;
  border-style: dashed;
  border-color: #2c4a68;
}
.curriculum-item.is-upcoming .curriculum-index {
  background: transparent;
  border-color: var(--yellow-dark);
  color: var(--yellow);
}
.curriculum-item.is-upcoming .curriculum-title { color: var(--text-muted); }
.curriculum-count.is-upcoming {
  background: rgba(255, 212, 0, .12);
  border: 1px solid rgba(255, 212, 0, .38);
  color: var(--yellow);
  border-radius: 999px;
  padding: .25em .85em;
  font-weight: 700;
}

.curriculum-divider {
  text-align: center;
  margin: 26px auto 6px;
  max-width: 620px;
}
.curriculum-divider-label {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(255, 212, 0, .1);
  border: 1px solid rgba(255, 212, 0, .35);
  border-radius: 999px;
  padding: .45em 1.3em;
}
.curriculum-divider p {
  margin: 10px 0 0;
  font-size: .88rem;
  color: var(--text-dim);
}

/* ---------- tabs / media ---------- */
.tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 32px; }
.tab-btn {
  padding: .65em 1.4em;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 600;
  font-size: .9rem;
}
.tab-btn.active { background: var(--yellow); color: var(--navy-950); border-color: var(--yellow); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
/* só um vídeo por enquanto: preenche a largura do container, como um
   banner só — sem coluna vazia ao lado. */
#videoGrid { grid-template-columns: 1fr; }
#videoGrid .media-thumb { aspect-ratio: 16/9; }
.media-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  color: inherit;
  padding: 0;
  width: 100%;
}
.media-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,24,38,.35);
}
.media-play span {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--yellow); color: var(--navy-950);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.media-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(10,24,38,.75);
  border: 1px solid var(--border);
  color: var(--yellow);
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.media-body { padding: 16px 18px; }
.media-body h4 { font-size: .96rem; margin: 0; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ---------- plugin banner + fine print ---------- */
.plugin-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto 40px;
  background: linear-gradient(90deg, rgba(255,212,0,.14), rgba(20,129,184,.10));
  border: 1px solid var(--yellow);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
}
.plugin-banner-icon { font-size: 1.6rem; flex-shrink: 0; }
.plugin-banner p { margin: 0; color: var(--text); font-size: .98rem; }
.plugin-banner strong { color: var(--yellow); }
.fine-print { text-align: center; color: var(--text-dim); font-size: .78rem; margin: 22px 0 0; }

/* ---------- feature grid ---------- */
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-card .icon { font-size: 1.3rem; line-height: 1; }
.feature-card p { margin: 0; font-size: .93rem; color: var(--text-muted); }

/* ---------- pricing ---------- */
.pricing-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(180deg, var(--surface-2), var(--navy-900));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 40px;
  position: relative;
  box-shadow: var(--shadow);
}
.pricing-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy-950);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.price-box { margin: 26px 0; }
.price-old { display: block; color: var(--text-dim); text-decoration: line-through; font-size: .95rem; }
.price-new { display: block; font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; color: var(--yellow); margin: 4px 0; }
.price-cash { display: block; color: var(--text-muted); font-size: .95rem; }
.price-list { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; text-align: left; max-width: 320px; margin-left: auto; margin-right: auto; }
.price-list li { font-size: .92rem; color: var(--text-muted); }

/* ---------- barra de lançamento ---------- */
.promo-bar {
  background: linear-gradient(90deg, var(--yellow), var(--yellow-dark));
  color: var(--navy-950);
}
.promo-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: .9rem;
  font-weight: 600;
}
.promo-flag { font-family: var(--font-head); font-weight: 800; }
.promo-text strong { font-family: var(--font-head); font-weight: 800; }
.promo-code {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  background: var(--navy-950);
  color: var(--yellow);
  border: none;
  border-radius: 999px;
  padding: .4em 1em;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .06em;
  transition: background .15s ease, transform .15s ease;
}
.promo-code:hover { background: var(--navy-800); transform: translateY(-1px); }
.promo-copy {
  font-size: .64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--blue-light);
}
.promo-note { font-size: .82rem; opacity: .72; }

/* ---------- cupom no card de preço ---------- */
.price-off {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy-950);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3em .9em;
  border-radius: 999px;
  margin-top: 8px;
}
.coupon-box {
  margin: 24px 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.coupon-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.coupon-code {
  display: inline-flex;
  align-items: center;
  gap: .9em;
  background: rgba(255, 212, 0, .1);
  border: 1px dashed var(--yellow);
  color: var(--yellow);
  border-radius: 12px;
  padding: .65em 1.3em;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .08em;
  transition: background .15s ease;
}
.coupon-code:hover { background: rgba(255, 212, 0, .18); }
.coupon-copy {
  font-size: .64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-dim);
}
.coupon-hint { font-size: .85rem; color: var(--text-muted); max-width: 34ch; }

@media (max-width: 620px) {
  .promo-note { display: none; }
  .promo-bar-inner { font-size: .82rem; gap: 6px 10px; }
}

/* ---------- FAQ ---------- */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
}
.accordion-icon { color: var(--yellow); font-size: 1.3rem; transition: transform .2s ease; flex-shrink: 0; }
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.accordion-panel p { padding: 0 24px 20px; color: var(--text-muted); margin: 0; font-size: .95rem; }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 26px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: .9rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--yellow); }
.footer-copy { width: 100%; text-align: center; color: var(--text-dim); font-size: .82rem; margin: 24px 0 0; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,12,20,.82); backdrop-filter: blur(4px); }
.modal-dialog {
  position: relative;
  max-width: min(1400px, 92vw);
  margin: 5vh auto;
  padding: 0 20px;
}
.modal-dialog.is-doc { max-width: 96vw; }
.modal-close {
  position: absolute;
  top: -44px; right: 8px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1rem;
}
.modal-body {
  background: var(--navy-900);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
}
/* pranchas/PDFs: caixa bem maior, sem a proporção de vídeo */
.modal-body.is-doc { aspect-ratio: auto; height: 90vh; }
.modal-body iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .grid-3, .feature-grid, .gallery { grid-template-columns: repeat(2, 1fr); }
  .nav { position: fixed; top: 76px; left: 0; right: 0; background: var(--navy-950); flex-direction: column; align-items: flex-start; padding: 20px 24px; border-bottom: 1px solid var(--border); display: none; gap: 16px; }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
}
@media (max-width: 620px) {
  .social-proof-inner { flex-direction: column; text-align: center; gap: 12px; }
  .grid-3, .feature-grid, .gallery { grid-template-columns: 1fr; }
  .curriculum-panel-inner { padding-left: 22px; }
  .pricing-card { padding: 36px 24px; }
}
@media (max-width: 480px) {
  .logo-text-full { display: none; }
  .header-inner { height: 64px; }
}
