/* ============================================================
   Orgânica Educa — Stylesheet
   Fonte: Google Fonts (Fraunces + Inter)
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --c-bg:            #070806;
  --c-surface:       #11120E;
  --c-surface-2:     #181914;
  --c-accent:        #FCEE01;
  --c-accent-dark:   #D9CD00;
  --c-ivory:         #FAFFF3;
  --c-muted:         #AEB0A3;
  --c-line:          rgba(252,238,1,.12);
  --c-glow:          rgba(252,238,1,.22);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   24px;
  --r-pill: 999px;
  --shadow-card: 0 8px 30px rgba(0,0,0,.45);
  --shadow-glow: 0 0 0 1px var(--c-line), 0 10px 40px var(--c-glow);
  --sp: 8px;

  --header-h: 72px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  background: var(--c-bg);
  color: var(--c-ivory);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(60% 40% at 50% 0%, rgba(252,238,1,.06), transparent 70%);
  background-repeat: no-repeat;
  overflow-x: hidden;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
img   { max-width: 100%; display: block; }
a     { color: inherit; }

/* Foco visível — navegação por teclado */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link — acessibilidade de teclado */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--c-accent); color: var(--c-bg); font-weight: 600;
  padding: 12px 20px; border-radius: var(--r-pill); text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* ---------- BOTÕES ---------- */
.btn {
  font-family: var(--font-body); font-weight: 600; font-size: 16px; cursor: pointer;
  border-radius: var(--r-pill); padding: 14px 28px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; min-height: 48px; line-height: 1.2;
  text-align: center; text-wrap: balance;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary  { background: var(--c-accent); color: var(--c-bg); box-shadow: 0 8px 24px var(--c-glow); }
.btn-primary:hover  { background: var(--c-accent-dark); box-shadow: 0 12px 34px var(--c-glow); }
.btn-secondary { background: transparent; color: var(--c-accent); border-color: var(--c-accent); }
.btn-secondary:hover { box-shadow: 0 0 0 3px var(--c-glow); }
.btn-ghost { background: var(--c-surface); color: var(--c-ivory); border-color: var(--c-line); }
.btn-ghost:hover { border-color: var(--c-accent); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,8,6,.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
}
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 25px;
  letter-spacing: -.01em; text-decoration: none; color: var(--c-ivory);
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  font-style: normal;
}
.brand em { font-style: italic; color: var(--c-accent); font-weight: 700; }
.brand .dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--c-accent);
  box-shadow: 0 0 14px var(--c-glow); flex-shrink: 0;
}
/* Símbolo oficial da marca — substitui a antiga bolinha verde no header e no footer */
.brand-mark {
  height: 46px; width: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: inline-block;
  filter: drop-shadow(0 0 6px rgba(252,238,1,.25));
}
.site-footer .brand-mark { height: 39px; }
@media (max-width: 768px) {
  .brand-mark { height: 37px; }
  .site-footer .brand-mark { height: 34px; }
}

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--c-muted); font-size: 15px; font-weight: 500;
  transition: color .15s ease; white-space: nowrap;
}
.nav-links a:hover { color: var(--c-ivory); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 10px 20px; font-size: 14px; min-height: 44px; }

.nav-toggle {
  display: inline-flex; background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-md); width: 48px; height: 48px; cursor: pointer;
  color: var(--c-ivory); align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open  { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- SEÇÕES ---------- */
/* padding vertical calibrado: 52+52 = ~104px de folga entre conteúdos de seções vizinhas */
section { padding: 52px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(17,18,14,.6), transparent); }
@media (max-width: 960px) {
  section { padding: 48px 0; }
}
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--c-accent); border: 1px solid var(--c-line); border-radius: var(--r-pill);
  padding: 6px 16px; margin-bottom: 20px; font-weight: 600;
}
.sec-head { margin-bottom: 44px; max-width: 900px; }
.sec-head h2 {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(28px,4.4vw,40px);
  line-height: 1.15; letter-spacing: -.01em;
  text-wrap: balance;
}
.sec-head h2 em { font-style: italic; color: var(--c-accent); }
.sec-head p { color: #C7C9BC; font-size: 19px; margin-top: 18px; line-height: 1.7; max-width: 62ch; }
@media (max-width: 560px) {
  .sec-head p { font-size: 17px; line-height: 1.65; }
}

/* ---------- HERO ---------- */
.hero {
  min-height: calc(100dvh - var(--header-h));
  padding: clamp(48px,6vw,80px) 0;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; overflow: hidden;
  background: var(--c-bg);
}
.hero-media video,
.hero-media img.hero-poster {
  position: absolute; top: 50%; left: 50%;
  width: 100%; height: 100%; min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover; object-position: center;
}
/* Carrossel cinematográfico da hero — crossfade puro por opacidade */
.hero-media .hero-video {
  opacity: 0;
  transition: opacity .75s ease-in-out;
  will-change: opacity;
  pointer-events: none;
}
.hero-media .hero-video.is-active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7,8,6,.94) 0%, rgba(7,8,6,.80) 42%, rgba(7,8,6,.55) 100%),
    linear-gradient(180deg, rgba(7,8,6,.55) 0%, transparent 30%, rgba(7,8,6,.65) 100%),
    radial-gradient(60% 45% at 50% 0%, rgba(252,238,1,.08), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero .eyebrow { margin-bottom: 24px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(34px,5vw,60px); line-height: 1.05; letter-spacing: -.02em;
  max-width: 18ch;
}
.hero h1 em { font-style: italic; color: var(--c-accent); }
.hero p.lead {
  color: var(--c-muted); max-width: 600px; margin-top: 24px;
  font-size: clamp(16px,2.2vw,19px);
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

/* ---------- BARRA DE NÚMEROS ---------- */
.stats { border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); padding: 56px 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(5,1fr); gap: 24px; text-align: center;
}
.stat { padding: 8px 4px; }
.stat .num {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(30px,4vw,44px);
  color: var(--c-accent); line-height: 1; letter-spacing: -.01em;
}
.stat .label { color: var(--c-muted); font-size: 14px; margin-top: 12px; line-height: 1.4; }

/* ---------- CARDS ---------- */
.cards { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.card {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: 32px; transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.card .kicker {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-accent); margin-bottom: 14px; font-weight: 600;
}
.card h3 { font-family: var(--font-display); font-weight: 500; font-size: 24px; margin-bottom: 12px; line-height: 1.18; }
.card p { color: var(--c-muted); font-size: 15px; line-height: 1.6; }
.card .card-link {
  color: var(--c-accent); font-size: 15px; font-weight: 600; text-decoration: none;
  display: inline-flex; gap: 8px; align-items: center; margin-top: 24px;
  min-height: 44px; align-content: center; flex-wrap: wrap;
}
.card .card-link:hover { gap: 12px; transition: gap .15s ease; }
.card .feat-icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  background: var(--c-surface-2); border: 1px solid var(--c-line);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  color: var(--c-accent);
}
.card .feat-icon svg { width: 26px; height: 26px; }

/* ---------- IN COMPANY ---------- */
.incompany {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(252,238,1,.06), transparent 55%),
    linear-gradient(150deg, var(--c-surface), var(--c-surface-2));
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(36px,5.4vw,60px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.incompany h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px,3.6vw,36px); line-height: 1.12; letter-spacing: -.01em;
}
.incompany p { color: var(--c-muted); font-size: 17px; margin-top: 18px; max-width: 52ch; }
.incompany .incompany-cta { display: flex; justify-content: flex-end; }

/* ---------- LOGOS / PROVA SOCIAL ---------- */
.logos-note {
  border: 1px dashed var(--c-line); border-radius: var(--r-lg);
  padding: 48px 24px; text-align: center; color: var(--c-muted);
  background: var(--c-surface);
}
.logos-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
  gap: 20px; margin-top: 32px;
}
.logo-slot {
  height: 88px; border: 1px solid var(--c-line); border-radius: var(--r-md);
  background: var(--c-surface-2); display: flex; align-items: center; justify-content: center;
  color: var(--c-muted); font-size: 13px; letter-spacing: .04em;
}

/* ---------- CLIENTES — CARROSSEL INFINITO ---------- */
.clients-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
}
.clients-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: clients-scroll var(--clients-duration, 45s) linear infinite;
  will-change: transform;
}
@keyframes clients-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(var(--clients-shift, -50%), 0, 0); }
}
.client-logo {
  flex: 0 0 auto;
  width: 236px;
  height: 130px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  transition: border-color .2s ease, background .2s ease;
}
.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Logos com muito espaço transparente dentro do próprio arquivo —
   praticamente sem padding para que o conteúdo real da marca aproveite a área. */
.client-logo.logo-zoom { padding: 2px 4px; }

/* Normalização visual por marca — cada logo tem proporção e conteúdo diferentes;
   estes ajustes trazem todos ao mesmo peso visual sem distorcer. */
.client-logo[data-brand="orthop"]        { padding: 4px 6px; }   /* logo quadrada com borda extra no PNG — dá +área */
.client-logo[data-brand="santa-adelia"]  { padding: 10px 18px; } /* 2:1 muito horizontal — reduz o domínio visual */
.client-logo[data-brand="startup"]       { padding: 8px 14px; }  /* 1.5:1 alta e vibrante — reduz um pouco */
.client-logo[data-brand="bianco-azure"]  { padding: 8px 6px; }   /* traços finos do arquivo — dá área extra */
.client-logo[data-brand="alcolina"]      { padding: 4px 6px; }
.client-logo[data-brand="projete"]       { padding: 4px 6px; }
/* Pausa no hover apenas em dispositivos com hover real (desktop) */
@media (hover: hover) {
  .clients-marquee:hover .clients-track { animation-play-state: paused; }
  .client-logo:hover { border-color: var(--c-accent); background: var(--c-surface-2); }
}
/* Responsivo — cards menores em tablet/mobile */
@media (max-width: 960px) {
  .client-logo { width: 190px; height: 100px; padding: 12px 16px; }
  .client-logo.logo-zoom { padding: 4px 6px; }
  .clients-track { gap: 24px; }
}
@media (max-width: 560px) {
  .client-logo { width: 160px; height: 90px; padding: 10px 14px; }
  .client-logo.logo-zoom { padding: 3px 6px; }
  .clients-track { gap: 18px; }
  .clients-marquee {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  }
}
/* Acessibilidade — movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; width: 100%; flex-wrap: wrap; justify-content: center; }
  .clients-marquee { -webkit-mask-image: none; mask-image: none; overflow: visible; }
  .clients-marquee [aria-hidden="true"] { display: none; }
}

/* ---------- DEPOIMENTOS ---------- */
.card-testimonial {
  background: linear-gradient(150deg, var(--c-surface), var(--c-surface-2));
  padding: 40px 36px;
}
.card-testimonial .quote {
  font-family: var(--font-display); font-style: normal; font-weight: 500;
  font-size: 22px; line-height: 1.65; color: var(--c-ivory);
  margin-bottom: 28px;
  letter-spacing: -.005em;
}
.card-testimonial figcaption {
  font-size: 16px; color: var(--c-ivory); font-weight: 700; font-style: normal;
  letter-spacing: .02em;
  display: flex; flex-direction: column; gap: 4px;
}
.card-testimonial .testimonial-course {
  font-size: 14px; font-weight: 400; letter-spacing: 0;
  color: var(--c-muted); font-style: normal;
}
@media (max-width: 768px) {
  .card-testimonial { padding: 32px 26px; }
  .card-testimonial .quote { font-size: 20px; line-height: 1.6; }
}
.rating-note[href] {
  margin-top: 40px;
  border: 1px dashed var(--c-line);
  border-radius: var(--r-md);
  padding: 32px 40px;
  color: var(--c-ivory);
  font-size: 17px;
  text-align: center;
  background: var(--c-surface);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease, opacity .6s ease;
}
.rating-note:hover {
  border-color: var(--c-accent);
  background: var(--c-surface-2);
  transform: translateY(-2px);
}
.rating-note .stars { color: var(--c-accent); font-size: 28px; letter-spacing: 3px; }
.rating-note .rating-cta {
  color: var(--c-accent);
  font-weight: 600;
  font-size: 17px;
  padding: 6px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color .15s ease;
}
.rating-note:hover .rating-cta { color: var(--c-accent-dark); }
@media (max-width: 560px) {
  .rating-note { padding: 24px 22px; font-size: 15px; }
  .rating-note .stars { font-size: 24px; }
  .rating-note .rating-cta { font-size: 15px; }
}

/* ---------- GALERIA DO ESPAÇO FÍSICO (dentro da seção de Localização) ---------- */
.space-gallery { margin: 8px 0 clamp(40px, 5vw, 56px); }
.space-gallery-head { margin-bottom: 24px; }
.space-gallery-head h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 3vw, 28px); line-height: 1.2;
  color: var(--c-ivory);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.space-gallery-head p {
  color: var(--c-muted); font-size: 16px; line-height: 1.6;
  max-width: 62ch;
}
.space-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.space-photo {
  margin: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-surface);
  aspect-ratio: 16 / 10;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.space-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@media (hover: hover) {
  .space-photo:hover {
    transform: translateY(-3px);
    border-color: var(--c-accent);
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
  }
}
/* Mobile: rolagem horizontal com scroll-snap, sem carrossel JS */
@media (max-width: 768px) {
  .space-gallery-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 14px;
    padding-bottom: 6px;
    /* garante que o scroll fica só aqui, sem vazar pra página */
  }
  .space-gallery-grid::-webkit-scrollbar { display: none; }
  .space-photo {
    flex: 0 0 88%;
    scroll-snap-align: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .space-photo { transition: none; }
}

/* ---------- LOCALIZAÇÃO + FAQ ---------- */
.loc-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: start; }
.map-placeholder {
  border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--c-surface); min-height: 320px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 32px; color: var(--c-muted);
}
.map-placeholder svg { width: 44px; height: 44px; color: var(--c-accent); }
/* Iframe real do Google Maps — presença equilibrada com o FAQ */
.map-embed {
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-surface);
  min-height: 440px;
  aspect-ratio: 4 / 3;
  max-height: 500px;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
}
@media (max-width: 960px) {
  .map-embed { min-height: 340px; max-height: 400px; aspect-ratio: 4 / 3; }
  .map-embed iframe { min-height: 340px; }
}
@media (max-width: 560px) {
  .map-embed { min-height: 280px; max-height: 340px; }
  .map-embed iframe { min-height: 280px; }
}
.loc-info {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: 24px; margin-top: 20px;
}
.loc-info dt {
  font-size: 13px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--c-accent); font-weight: 600; margin-bottom: 4px;
}
.loc-info dd { color: var(--c-ivory); font-size: 16px; margin-bottom: 16px; }
.loc-info dd:last-child { margin-bottom: 0; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md);
  overflow: hidden; transition: border-color .2s ease;
}
.faq-item[open] { border-color: var(--c-accent); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px;
  font-weight: 600; font-size: 16px; color: var(--c-ivory);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev {
  width: 22px; height: 22px; flex-shrink: 0; color: var(--c-accent);
  transition: transform .2s ease;
}
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-answer { padding: 0 24px 20px; color: var(--c-muted); font-size: 15px; line-height: 1.7; }
.faq-item .faq-answer strong { color: var(--c-ivory); font-weight: 600; }
.faq-item .faq-answer em     { color: var(--c-ivory); font-style: italic; }

/* ---------- CTA FINAL ---------- */
.final-cta {
  text-align: center;
  background: linear-gradient(150deg, var(--c-surface), var(--c-surface-2));
  border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: clamp(48px,6.6vw,80px) clamp(28px,5.4vw,64px);
}
.final-cta h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px,4.6vw,44px); line-height: 1.08; letter-spacing: -.02em;
  max-width: 16ch; margin: 0 auto;
}
.final-cta p { color: #C7C9BC; font-size: 20px; margin: 24px auto 0; max-width: 600px; line-height: 1.55; }
.final-cta .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.final-cta .actions .btn { padding: 16px 34px; font-size: 17px; min-height: 52px; }
.final-cta .cta-note { color: var(--c-muted); font-size: 13px; font-style: italic; margin-top: 20px; }

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--c-line);
  padding: 72px 0 128px;
  color: #C7C9BC;
  font-size: 15px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
.site-footer .brand { margin-bottom: 20px; font-size: 23px; gap: 12px; }
.footer-addr { max-width: 32ch; line-height: 1.75; font-size: 15px; color: #C7C9BC; }
.footer-col h3 {
  color: var(--c-ivory); font-size: 15px; text-transform: uppercase;
  letter-spacing: .12em; margin-bottom: 22px; font-weight: 700;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.footer-col a {
  text-decoration: none; color: #C7C9BC; font-size: 15px;
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--c-accent); }
.footer-bottom {
  border-top: 1px solid var(--c-line); margin-top: 56px; padding-top: 32px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  color: var(--c-muted); font-size: 14px;
}
.footer-social { display: flex; gap: 16px; }
.footer-social a { display: inline-flex; align-items: center; gap: 6px; }

/* Links legais no rodapé */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  color: var(--c-muted);
  font-size: 13px;
}
.footer-legal a {
  color: var(--c-muted);
  text-decoration: none;
  transition: color .15s ease;
}
.footer-legal a:hover { color: var(--c-accent); }
.footer-legal .sep { color: var(--c-line); opacity: .6; }

/* ---------- LEGAL PAGES ---------- */
.legal-page { padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.legal-page .wrap { max-width: 860px; }
.legal-page h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(32px, 5vw, 48px); line-height: 1.1;
  letter-spacing: -.02em; margin-bottom: 12px;
}
.legal-page .updated-at {
  color: var(--c-muted); font-size: 14px;
  letter-spacing: .04em; display: inline-block;
  margin-bottom: 40px;
}
.legal-page .lead-p { font-size: 19px; color: var(--c-ivory); line-height: 1.7; margin-bottom: 8px; }
.legal-page h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 3vw, 28px); line-height: 1.25;
  margin-top: 48px; margin-bottom: 14px; color: var(--c-ivory);
}
.legal-page h3 {
  font-family: var(--font-body); font-weight: 700;
  font-size: 16px; letter-spacing: .01em;
  margin-top: 28px; margin-bottom: 8px; color: var(--c-ivory);
}
.legal-page p, .legal-page ul { color: #C7C9BC; font-size: 17px; line-height: 1.75; }
.legal-page p { margin-bottom: 18px; }
.legal-page ul { margin: 0 0 20px 22px; padding-left: 0; }
.legal-page ul li { margin-bottom: 8px; }
.legal-page a {
  color: var(--c-accent); text-decoration: none; font-weight: 600;
  transition: color .15s ease;
}
.legal-page a:hover { color: var(--c-accent-dark); text-decoration: underline; }
.legal-page strong { color: var(--c-ivory); font-weight: 600; }
@media (max-width: 560px) {
  .legal-page p, .legal-page ul { font-size: 16px; line-height: 1.7; }
  .legal-page .lead-p { font-size: 17px; }
}

/* ---------- WHATSAPP FLOAT ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  background: var(--c-accent); color: var(--c-bg); border-radius: var(--r-pill);
  padding: 14px 22px; font-weight: 600; font-size: 15px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  box-shadow: 0 10px 34px var(--c-glow); transition: transform .15s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 40px var(--c-glow); }
.wa-float svg { width: 22px; height: 22px; }

/* ---------- REVEAL ON SCROLL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- ACESSIBILIDADE / MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
  .hero-media video { display: none; }
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 1080px) {
  .nav-cta .btn-primary { display: none; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 14px; }
}
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(3,1fr); gap: 32px 16px; }
  .incompany { grid-template-columns: 1fr; gap: 28px; }
  .incompany .incompany-cta { justify-content: flex-start; }
  .loc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col.footer-brand { grid-column: 1 / -1; }
}
/* Menu desktop somente a partir de 1025px (evita sobreposição em tablet) */
@media (min-width: 1025px) {
  .nav-links  { display: flex !important; }
  .nav-toggle { display: none; }
}
/* Tablet + mobile: menu hambúrguer */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--c-bg); border-bottom: 1px solid var(--c-line);
    padding: 12px 24px 24px;
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a {
    display: block; width: 100%; padding: 14px 0; font-size: 17px;
    color: var(--c-ivory); border-bottom: 1px solid var(--c-line); min-height: 44px;
  }
  .nav-links.open li:last-child a { border-bottom: none; }
}
@media (max-width: 768px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 28px 16px; }
  section { padding: 44px 0; }
  /* Transição específica Clientes → Depoimentos mais próxima no mobile */
  .clients { padding-bottom: 20px; }
  [aria-labelledby="depo-title"] { padding-top: 32px; }
  .hero .actions .btn, .final-cta .actions .btn { width: 100%; }
  /* In Company mobile: título, descrição e botão centralizados */
  .incompany { text-align: center; }
  .incompany p { margin-left: auto; margin-right: auto; }
  .incompany .incompany-cta { justify-content: center; }
}
@media (max-height: 760px) {
  .hero { padding: 28px 0; }
  .hero h1 { font-size: clamp(28px,4vw,48px); }
  .hero p.lead { font-size: 16px; margin-top: 16px; }
  .hero .actions { margin-top: 24px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .wa-float span { display: none; }
  .wa-float { padding: 16px; border-radius: 50%; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand { font-size: 21px; }
}

/* ---------- SCROLL ANCHOR (header sticky) ---------- */
#quem-somos, #mentorias, #cursos, #in-company, #localizacao, #contato {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* ---------- SEC-HEAD MODIFIER ---------- */
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; max-width: 100%; }
@media (min-width: 900px) {
  /* Clientes e Depoimentos: força única linha em desktop, mesmo eixo dos demais H2 */
  .clients .sec-head h2,
  [aria-labelledby="depo-title"] .sec-head h2 { white-space: nowrap; }
}

/* ---------- CARDS DE CURSOS — reação sutil ---------- */
.card-course { transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease; }
.card-course:hover { border-color: var(--c-accent); box-shadow: var(--shadow-glow); }
.card-course .card-link svg,
.card-course .card-link span { transition: transform .18s ease; }
.card-course:hover .card-link { color: var(--c-accent-dark); }
.card-course:hover .card-link span { transform: translateX(6px); display: inline-block; }

/* Centraliza a segunda linha (2 cards restantes de um grid de 3) só quando há espaço */
#cursos .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
#cursos .cards > .card {
  flex: 0 0 calc((100% - 40px) / 3);
  max-width: calc((100% - 40px) / 3);
}
@media (max-width: 768px) {
  #cursos .cards > .card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ---------- DEPOIMENTOS — CARROSSEL INFINITO AUTOMÁTICO ---------- */
.testimonials { position: relative; }
.testimonials-viewport {
  position: relative;
  overflow: hidden;
  padding: 4px 0 8px;
  touch-action: pan-y; /* permite scroll vertical da página durante swipe horizontal */
}
.testimonials-viewport:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; border-radius: var(--r-md); }
.testimonials-track {
  display: flex;
  gap: 20px;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}
.testimonials-track > .card-testimonial {
  /* width/flex definidos via JS a partir da largura do viewport */
  min-height: 260px;
  display: flex;
  flex-direction: column;
  /* Centraliza verticalmente o bloco (quote + nome) — depoimentos curtos
     ganham equilíbrio visual; longos preenchem naturalmente o card. */
  justify-content: center;
}
.testimonials-controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
.testimonials-btn {
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  color: var(--c-ivory);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.testimonials-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.testimonials-btn:disabled { opacity: .35; cursor: default; }
.testimonials-btn:disabled:hover { border-color: var(--c-line); color: var(--c-ivory); }
.testimonials-btn svg { width: 20px; height: 20px; }
@media (max-width: 768px) {
  .testimonials-track > .card-testimonial { min-height: 240px; }
  .testimonials-controls { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .testimonials-viewport { overflow: visible; }
  .testimonials-track { flex-wrap: wrap; transform: none !important; }
  .testimonials-track > .card-testimonial {
    flex: 1 1 calc((100% - 20px) / 2) !important;
    width: calc((100% - 20px) / 2) !important;
    min-width: 260px;
  }
  .testimonials-track [aria-hidden="true"] { display: none; }
  .testimonials-controls { display: none; }
}

/* ---------- CLIENT LOGOS — dimensões finais (autoridade / +30% de presença) ---------- */
.client-logo { width: 236px; height: 130px; padding: 8px 12px; }
.client-logo.logo-zoom { padding: 2px 4px; }
@media (max-width: 960px) {
  .client-logo { width: 210px; height: 118px; padding: 8px 10px; }
  .client-logo.logo-zoom { padding: 2px 4px; }
}
@media (max-width: 560px) {
  /* Card principal ocupa ~85% do viewport, com peek discreto (~7% cada lado) */
  .client-logo { width: min(86vw, 340px); height: min(48vw, 190px); padding: 10px 16px; }
  .client-logo.logo-zoom { padding: 3px 6px; }
  .clients-track { gap: 16px; }
  /* Fade suave nas bordas (era 40px, gerava sensação de corte) */
  .clients-marquee {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
  }
}
