:root {
  --bg: #ffffff;
  --bg-alt: #f3f4f6;
  --text: #111827;
  --muted: #4b5563;
  --border: #e5e7eb;
  --cta: #5d99b5;
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

/* Sticky footer */
html, body { height: 100%; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }

a:hover { text-decoration: underline; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Acessibilidade */
.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  min-height: 72px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  min-height: 78px;
}

.logo { font-weight: 700; }

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 62px;     /* evita variação de layout enquanto carrega */
  width: auto;
  display: block;
}

.logo-text { font-weight: 700; }

.nav-desktop {
  display: none;
  gap: 16px;
  align-items: center;
}

.nav-desktop a {
   color: var(--muted); 
   font-weight: 500;
  }

.nav-desktop a:hover {
  color: var(--cta);
  text-decoration: none;
}

/* UNDERLINE animado */
.nav-desktop > a,
.nav-desktop .nav-link{
  position: relative;
}

.nav-desktop > a::after,
.nav-desktop .nav-link::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-8px;
  width: calc(100% - 6px);
  height:2px;
  background: currentColor;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
  opacity: .9;
}

.nav-desktop > a:hover::after,
.nav-desktop .nav-link:hover::after,
.nav-desktop > a:focus-visible::after,
.nav-desktop .nav-link:focus-visible::after{
  transform: translateX(-50%) scaleX(1);
}

.nav-mobile-btn {
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 15px 17px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
}

.nav-mobile {
  border-top: 1px solid var(--border);
  padding: 12px 0;
  display: none;
  background: var(--bg);
}

.nav-mobile.is-open { display: block; }

.nav-mobile a {
  display: block;
  padding: 10px 16px;
  color: var(--muted);
}

/* Dropdown (hover) */
.nav-item.has-dropdown { position: relative; }

.nav-item.has-dropdown .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* bridge to avoid hover gap */
.nav-item.has-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(860px, 90vw);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  z-index: 50;
}

.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown {
  display: block;
}

/* grids */
.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* seu header usa dropdown-grid-3 e agora 4 */
.dropdown-grid-3{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

/* ===== MEGA MENU (reset limpo e estável) ===== */

.caret{
  font-size: 18px;
  transform: translateY(-1px);
  opacity: .9;
}

/* painel */
.dropdown-mega{
  width: min(980px, calc(100vw - 28px));
  padding: 16px;
  border-radius: 18px;
  max-height: 72vh;
  overflow: auto;

  left: 50%;
  transform: translateX(-60%);
}

@media (max-width: 1100px){
  .dropdown-mega{ transform: translateX(-52%); }
}

/* grid com áreas (não quebra) */
.mega-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 10px;
  row-gap: 5px;
  align-items: start;

  grid-template-areas:
    "hcomp hmods hmods hmods"
    "comp  m1    m2    m3";
}

/* cabeçalhos */
.mega-head{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 2px;
  margin-bottom: 6px;
}

.mega-head-title{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.15px;
  white-space: nowrap;
}

.mega-head-title .ico{ font-size: 16px; }

.mega-head-line{
  flex: 1;
  height: 1px;
  background: var(--border);
  transform: translateY(1px);
}

/* áreas */
.mega-head--completos{ grid-area: hcomp; }
.mega-head--modulos{ grid-area: hmods; }

.mega-col--completos{ grid-area: comp; }
.mega-col--m1{ grid-area: m1; }
.mega-col--m2{ grid-area: m2; }
.mega-col--m3{ grid-area: m3; }

/* colunas */
.mega-col{
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* links */
.dropdown-mega a{
  padding: 7px 9px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.15;
  transition: background .15s ease, transform .15s ease;
}

.dropdown-mega a:hover{
  background: var(--bg-alt);
  color: var(--text);
  text-decoration: none;
  transform: translateX(2px);
}


/* Breadcrumb (global) */
.breadcrumb {
  display: flex;
  margin-top: 14px;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  min-height: 20px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--text);
  text-decoration: underline;
}

.crumb-sep { color: var(--muted); }

.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

.hero{
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
}

.hero h1{
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.3px;
}

.hero p{
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
}

.site-footer{
  margin-top: auto;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  min-height: 120px;
}

.footer-band{
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.footer-grid.footer-grid-3{
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr;
  gap: 34px;
  padding: 26px 18px 18px;
  align-items: start;
}

/* Marca */
.footer-brand{
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  text-align: center;
}

.footer-logo-img{
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 12px;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.08));
}

.footer-muted{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  padding: 0 0 5px;
}

/* Colunas de links */
.footer-col{
  border-left: 1px solid rgba(0,0,0,.06);
  padding-left: 18px;
}

.footer-title{
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
  font-size: 18px;
}

.footer-link{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--muted);
  text-decoration: none;
  border-radius: 10px;
  transition: transform .14s ease, color .14s ease;
}

.footer-link:hover{
  color: var(--text);
  text-decoration: none;
  transform: translateX(2px);
}

/* Linha inferior */
.footer-bottom-row{
  /*border-top: 1px solid var(--border);*/
  padding: 14px 0 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Responsivo */
@media (max-width: 900px){
  .footer-grid.footer-grid-3{
    grid-template-columns: 1fr;
    text-align: center;
    gap: 18px;
    padding: 22px 14px 14px;
  }

  .footer-brand{
    padding-right: 0;
  }

  .footer-logo-img{
    margin-left: auto;
    margin-right: auto;
  }

  .footer-col{
    border-left: none;
    padding-left: 0;
  }

  .footer-bottom-row{
    display: block;
    text-align: center;
  }

  .footer-link{
    justify-content: center;
  }
}

/* Shared UI */
.badge {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.btn {
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cta);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--cta);
  font-weight: 500;
}

.btn-cta:hover { text-decoration: none; opacity: 0.95; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.btn-ghost:hover { text-decoration: none; color: var(--text); }

.note {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}

.card p { margin: 0; color: var(--muted); }

/* Bands */
.band { width: 100%; padding: 60px 0; }
.band--base { background: var(--bg); }
.band--alt { background: var(--bg-alt); }

.center { text-align: center; }

.section-head.center {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.3px;
}

.section-head p { margin: 0; color: var(--muted); }

/* =========================
   MOBILE MENU – MAIS BONITO
   ========================= */
.nav-mobile a{ border-bottom: 1px solid var(--border); }

.mobile-courses{ border-bottom: 1px solid var(--border); }

.mobile-courses summary{
  cursor:pointer;
  padding: 14px 16px;
  font-weight: 800;
  background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 140%);
  list-style:none;
}

.mobile-courses summary::-webkit-details-marker{ display:none; }

.mobile-courses-list{
  padding: 10px 12px 14px;
  display:grid;
  gap: 6px;
}

.mobile-courses-list a{
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}

.mobile-courses-list a:hover{
  background: var(--bg-alt);
  text-decoration: none;
}

.mobile-courses-all{
  background: var(--bg-alt) !important;
  font-weight: 800;
}

.mobile-courses-title{
  margin: 14px 2px 6px;
  font-weight: 900;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-left: 3px solid var(--cta);
  padding-left: 10px;
}

/* Responsive layout */
@media (max-width: 899px) {
  .container {
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (min-width: 900px) {
  .container { padding: 0 24px; }
  .nav-desktop { display: flex; }
  .nav-mobile-btn { display: none; }
  .nav-mobile { display: none !important; }
}


/* ===== Anti-CLS: reserva espaço para header/footer injetados (layout-loader) ===== */
#siteHeader { min-height: 84px; }
#siteFooter { min-height: 140px; }

@media (max-width: 900px){
  #siteHeader { min-height: 72px; }
  #siteFooter { min-height: 160px; }
}

/* ===== Vimeo (placeholder + iframe responsivo) ===== */
.vimeo-wrapper{ max-width: 100%; }

.vimeo-poster{
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.vimeo-play{
  font-size: 56px;
  line-height: 1;
  padding: 14px 20px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff;
}

.vimeo-title{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  color: rgba(255,255,255,.92);
  font-weight: 600;
  text-align: left;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

.vimeo-caption{
  margin-top: 8px;
  font-size: 0.95rem;
  color: #444;
}