/* =========================================================
   Bordalo Norte — Escolas de Condução
   Dark-first, brand laranja + mapa, estilo iOS, com movimento
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --brand:      #E96E1F;
  --brand-600:  #d65f12;
  --brand-400:  #ff8a3d;
  --brand-glow: rgba(233,110,31,.55);

  --radius:     22px;
  --radius-sm:  14px;
  --radius-lg:  30px;

  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Dark (default) */
:root,
[data-theme="dark"] {
  --bg:        #08080a;
  --bg-2:      #0e0e11;
  --card:      #131318;
  --card-2:    #17171d;
  --elev:      rgba(255,255,255,.04);
  --text:      #f4f4f6;
  --muted:     #9a9aa6;
  --faint:     #6c6c78;
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.14);
  --shadow:    0 18px 50px -20px rgba(0,0,0,.8);
  --shadow-sm: 0 8px 24px -14px rgba(0,0,0,.7);
  --glass:     rgba(12,12,15,.72);
  --map-opacity: .9;
  --map-blend: screen;
  color-scheme: dark;
}

/* Light */
[data-theme="light"] {
  --bg:        #f3f3f6;
  --bg-2:      #ffffff;
  --card:      #ffffff;
  --card-2:    #fbfbfd;
  --elev:      rgba(0,0,0,.02);
  --text:      #15151b;
  --muted:     #5a5a66;
  --faint:     #8a8a96;
  --line:      rgba(0,0,0,.08);
  --line-2:    rgba(0,0,0,.13);
  --shadow:    0 24px 60px -28px rgba(20,20,40,.28);
  --shadow-sm: 0 10px 30px -18px rgba(20,20,40,.25);
  --glass:     rgba(255,255,255,.78);
  --map-opacity: .5;
  --map-blend: multiply;
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .35s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

::selection { background: var(--brand); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }

/* ---------- Tipografia ---------- */
h1, h2, h3 { line-height: 1.08; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .95rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-400);
}
.eyebrow::before { display: none; }
.eyebrow--center { justify-content: center; }

.grad-text {
  background: linear-gradient(100deg, var(--brand-400), var(--brand) 55%, #ffb37a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Botões ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px; border-radius: 100px;
  font-weight: 700; font-size: .92rem; letter-spacing: -.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-400), var(--brand) 60%, var(--brand-600));
  box-shadow: 0 10px 26px -10px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,.3); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform .7s var(--ease);
}
.btn--primary:hover::after { transform: translateX(130%); }

.btn--ghost {
  color: var(--text);
  background: var(--elev);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand-400); }

.btn--lg { padding: 14px 26px; font-size: 1rem; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
/* degradê escuro no topo para o logo/links terem contraste sobre o mapa */
.nav::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,.25) 45%, transparent);
  transition: opacity .3s;
}
[data-theme="light"] .nav::before { background: linear-gradient(180deg, rgba(243,243,246,.92), rgba(243,243,246,.4) 45%, transparent); }
.nav.is-scrolled::before { opacity: 0; }
.nav.is-scrolled {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 12px clamp(18px, 4vw, 40px);
  display: flex; align-items: center; gap: 14px;
}
.nav__brand { position: relative; display: flex; align-items: center; flex-shrink: 0; margin-right: auto; }
.nav__logo { height: 88px; width: auto; transition: opacity .3s; }
[data-theme="light"] .nav__logo { height: 96px; }
[data-theme="dark"] .nav__logo--light { display: none; }
[data-theme="light"] .nav__logo--dark { display: none; }
/* sombra subtil para destacar do fundo */
[data-theme="dark"] .nav__logo--dark { filter: drop-shadow(0 2px 5px rgba(0,0,0,.65)); }
[data-theme="light"] .nav__logo--light { filter: drop-shadow(0 1px 3px rgba(0,0,0,.18)); }

.nav__links { display: flex; gap: 4px; }
.nav__links a {
  position: relative; padding: 8px 13px; border-radius: 100px;
  font-size: .9rem; font-weight: 600; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--text); background: var(--elev); }

.nav__theme {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 100px;
  color: var(--text); border: 1px solid var(--line-2); background: var(--elev);
  transition: transform .3s var(--ease), border-color .2s, color .2s;
}
.nav__theme:hover { transform: rotate(18deg); border-color: var(--brand); color: var(--brand-400); }
.nav__theme svg { width: 19px; height: 19px; }
[data-theme="dark"] .nav__theme-icon--sun { display: none; }
[data-theme="light"] .nav__theme-icon--moon { display: none; }

.nav__cta { display: inline-flex; }

.nav__burger { display: none; width: 40px; height: 40px; border-radius: 12px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; border: 1px solid var(--line-2); }
.nav__burger span { width: 19px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px clamp(18px,4vw,40px) 20px;
  background: var(--glass); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav__mobile a, .nav__mobile-theme { padding: 12px 14px; border-radius: 14px; font-weight: 600; color: var(--text); text-align: left; }
.nav__mobile a:hover, .nav__mobile-theme:hover { background: var(--elev); }
.nav__mobile .btn { margin-top: 6px; }
[data-theme="dark"] .nav__mobile-theme [data-dark-label] { display: none; }
[data-theme="light"] .nav__mobile-theme [data-light-label] { display: none; }

/* ---------- Fundo global ---------- */
.map-bg { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: var(--bg); }
.map-bg::before {
  content: ""; position: absolute; inset: -10%;
  background: url("images/fundo-mapa.jpg") center/cover no-repeat;
  opacity: calc(var(--map-opacity) * .2);
  mix-blend-mode: var(--map-blend);
}
.glow { position: fixed; border-radius: 50%; filter: blur(80px); z-index: -1; pointer-events: none; opacity: .5; }
.glow--1 { width: 520px; height: 520px; top: -160px; right: -120px; background: radial-gradient(circle, var(--brand-glow), transparent 70%); animation: drift1 18s ease-in-out infinite; }
.glow--2 { width: 460px; height: 460px; bottom: -180px; left: -140px; background: radial-gradient(circle, rgba(255,138,61,.4), transparent 70%); animation: drift2 22s ease-in-out infinite; }
[data-theme="light"] .glow { opacity: .3; }

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px,60px) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,-40px) scale(1.1); } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- Secções ---------- */
.section { padding: clamp(36px, 5vw, 67px) 0; position: relative; }
.section__head { max-width: 640px; margin-bottom: clamp(34px, 5vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h2 { margin-top: 14px; }
.section__sub { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: 120px; }
.hero__map {
  position: absolute; inset: 0; z-index: 0;
  background: url("images/fundo-porto.png") center/cover no-repeat;
  animation: heroZoom 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1.2); } }
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 80% at 70% 22%, transparent, var(--bg) 80%),
    linear-gradient(180deg, rgba(8,8,10,.5) 0%, rgba(8,8,10,.18) 35%, var(--bg) 96%);
}
[data-theme="light"] .hero__veil {
  background:
    radial-gradient(120% 80% at 70% 22%, rgba(243,243,246,.15), var(--bg) 82%),
    linear-gradient(180deg, rgba(243,243,246,.5) 0%, rgba(243,243,246,.3) 35%, var(--bg) 96%);
}
.hero__scan { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: overlay; opacity: .5;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(255,255,255,.025) 3px 4px); }

.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px,4vw,40px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 100px; font-size: .76rem; font-weight: 700; letter-spacing: .03em;
  background: var(--glass); border: 1px solid var(--line-2); backdrop-filter: blur(8px); color: var(--text);
}
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #36d399; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(54,211,153,.5); } 70% { box-shadow: 0 0 0 9px rgba(54,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(54,211,153,0); } }

.hero__title { font-size: clamp(2.7rem, 7vw, 5rem); font-weight: 800; margin: 22px 0 18px; }
.hero__sub { font-size: clamp(1rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 30px 0 26px; }

.hero__stats { display: flex; gap: 26px; flex-wrap: wrap; }
.hero__stat { display: flex; flex-direction: column; }
.hero__stat b { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.hero__stat span { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.hero__stat .stars { color: var(--brand); letter-spacing: 1px; }

.hero__art { display: grid; place-items: center; position: relative; }
.hero__compass { width: min(78%, 360px); aspect-ratio: 1; position: relative; }
.hero__compass img { width: 100%; filter: drop-shadow(0 20px 50px rgba(0,0,0,.6)); animation: spin 70s linear infinite; }
.hero__compass::before {
  content: ""; position: absolute; inset: -12%; border-radius: 50%;
  background: radial-gradient(circle, var(--brand-glow), transparent 62%); filter: blur(30px); z-index: -1;
  animation: breathe 6s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%,100% { transform: scale(1); opacity: .6; } 50% { transform: scale(1.12); opacity: .95; } }

.hero__scroll { display: inline-flex; align-items: center; gap: 10px; margin-left: 6px; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; transition: color .2s; }
.hero__scroll:hover { color: var(--brand-400); }
.hero__scroll .mouse { width: 22px; height: 36px; border: 2px solid var(--line-2); border-radius: 14px; position: relative; flex-shrink: 0; }
.hero__scroll .mouse::after { content: ""; position: absolute; top: 7px; left: 50%; width: 4px; height: 7px; background: var(--brand); border-radius: 3px; transform: translateX(-50%); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* =========================================================
   STATS band
   ========================================================= */
.stats { border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), transparent); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: clamp(19px,3vw,31px) 0; }
.stat { text-align: center; padding: 8px; position: relative; }
.stat__num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat__num .suffix { color: var(--brand); }
.stat__label { margin-top: 8px; color: var(--muted); font-size: .9rem; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 20%; height: 60%; width: 1px; background: var(--line); }

/* =========================================================
   SOBRE / features
   ========================================================= */
.sobre__lead { font-size: clamp(1.1rem, 1.8vw, 1.4rem); line-height: 1.55; max-width: 50ch; color: var(--text); margin-bottom: 40px; font-weight: 500; }
.sobre__lead strong { color: var(--brand-400); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  padding: 22px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.feature:hover { transform: translateY(-6px); border-color: var(--brand); box-shadow: var(--shadow); }
.feature__icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(233,110,31,.18), rgba(233,110,31,.05));
  border: 1px solid rgba(233,110,31,.25); color: var(--brand-400);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 7px; }
.feature p { color: var(--muted); font-size: .92rem; }

/* ---------- Serviços ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  padding: 26px 22px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.service:hover { transform: translateY(-6px); border-color: var(--brand); box-shadow: var(--shadow); }
.service__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--brand-400), var(--brand-600));
  box-shadow: 0 12px 26px -12px var(--brand-glow);
}
.service__icon svg { width: 26px; height: 26px; }
.service h3 { font-size: 1.02rem; font-weight: 800; }

/* =========================================================
   CATEGORIAS
   ========================================================= */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 24px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.cat::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 120% at 100% 0, rgba(233,110,31,.12), transparent 50%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.cat:hover { transform: translateY(-5px); border-color: var(--brand); box-shadow: var(--shadow); }
.cat:hover::after { opacity: 1; }

.cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; position: relative; }
.cat__icon {
  flex-shrink: 0; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand-400), var(--brand-600));
  box-shadow: 0 12px 26px -12px var(--brand-glow);
}
.cat__icon img { width: 82%; height: 82%; object-fit: contain; display: block; }
.cat__badge { font-size: 1.5rem; font-weight: 800; color: var(--brand-400); letter-spacing: -.02em; }
.cat__name { font-size: 1.08rem; font-weight: 800; margin-bottom: 6px; }
.cat__age { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .02em; color: var(--brand-400); margin-bottom: 12px; }
.cat__desc { color: var(--muted); font-size: .9rem; line-height: 1.55; }

/* =========================================================
   TESTES ONLINE
   ========================================================= */
.testes__card {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center;
  padding: clamp(28px, 4vw, 52px); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--card), var(--card-2));
  border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.testes__card::before { content: ""; position: absolute; width: 360px; height: 360px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, var(--brand-glow), transparent 70%); opacity: .4; }
.testes__copy { position: relative; z-index: 1; }
.testes__copy h2 { margin: 14px 0; }
.testes__copy p { color: var(--muted); margin-bottom: 24px; max-width: 38ch; }

.testes__mock { position: relative; z-index: 1; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); transform: rotate(1.5deg); transition: transform .5s var(--ease); }
.testes__card:hover .testes__mock { transform: rotate(0); }
.testes__mockBar { display: flex; gap: 6px; margin-bottom: 16px; }
.testes__mockBar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.testes__mockBar span:first-child { background: var(--brand); }
.testes__q { font-weight: 700; margin-bottom: 14px; }
.testes__opts { display: grid; gap: 9px; }
.testes__opt { padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: .9rem; transition: border-color .3s, background .3s; }
.testes__opt--ok { border-color: var(--brand); background: rgba(233,110,31,.12); color: var(--brand-400); font-weight: 700; animation: okPulse 2.6s ease-in-out infinite; }
@keyframes okPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(233,110,31,0); } 50% { box-shadow: 0 0 0 4px rgba(233,110,31,.14); } }

/* =========================================================
   AVALIAÇÕES (Google)
   ========================================================= */
.reviews { overflow: hidden; }
.reviews__badges { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 40px; }
.gbadge { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.gbadge__g { width: 28px; height: 28px; flex-shrink: 0; }
.gbadge__score { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.gbadge__meta { display: flex; flex-direction: column; gap: 3px; }
.gbadge__stars { color: var(--brand); font-size: .8rem; letter-spacing: 1px; }
.gbadge__label { font-size: .8rem; color: var(--muted); }

.marquee-wrap { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-wrap + .marquee-wrap { margin-top: 16px; }
.marquee { position: relative; display: flex; gap: 16px; width: max-content; animation: marquee 48s linear infinite; }
/* pausa-ao-passar-o-rato só em dispositivos com ponteiro real;
   em touch o estado :hover "cola" e congelava o carrossel para sempre */
@media (hover: hover) { .marquee:hover { animation-play-state: paused; } }
.marquee--rev { animation-direction: reverse; animation-duration: 56s; }
@keyframes marquee { to { transform: translateX(-50%); } }

.review {
  width: 340px; flex-shrink: 0; padding: 22px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 12px;
}
.review__stars { color: var(--brand); letter-spacing: 2px; font-size: .95rem; }
.review__text { font-size: .95rem; line-height: 1.55; color: var(--text); }
.review__who { display: flex; align-items: center; gap: 11px; margin-top: auto; }
.review__avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand-400), var(--brand-600)); flex-shrink: 0; }
.review__name { font-weight: 700; font-size: .9rem; }
.review__src { font-size: .76rem; color: var(--faint); }

/* =========================================================
   INSTAGRAM
   ========================================================= */
/* grelha escondida (a aguardar fotos novas) -> secção compacta, sem vazio */
.instagram { padding-top: clamp(30px, 4vw, 50px); padding-bottom: clamp(30px, 4vw, 50px); }
.instagram .section__head { margin-bottom: 0; }
.ig__handles { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.ig__handles--fb { margin-top: 10px; }
.ig__handle { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 100px; font-weight: 700; font-size: .9rem; background: var(--card); border: 1px solid var(--line-2); transition: transform .25s var(--ease), border-color .25s, color .25s; }
.ig__handle svg { width: 18px; height: 18px; color: var(--brand-400); }
.ig__handle:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand-400); }

.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.ig-tile {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ig-tile:hover img { transform: scale(1.08); }
.ig-tile__ov {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, rgba(233,110,31,.0), rgba(8,8,10,.55));
  opacity: 0; transition: opacity .35s var(--ease);
}
.ig-tile:hover .ig-tile__ov { opacity: 1; }
.ig-tile__ov svg { width: 30px; height: 30px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); transform: translateY(8px); transition: transform .35s var(--ease); }
.ig-tile:hover .ig-tile__ov svg { transform: none; }

@media (max-width: 860px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   MARCAÇÃO (form)
   ========================================================= */
.form { max-width: 760px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--wide { grid-column: 1 / -1; }
.field__label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: 13px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s, background .3s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(233,110,31,.18); }
.field.is-invalid input, .field.is-invalid select { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.15); }
.form__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form__hint { font-size: .88rem; }
.form__hint.is-success { color: #36d399; }
.form__hint.is-error { color: #ef4444; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 18px; font-size: .85rem; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--brand); cursor: pointer; }
.consent.is-invalid { color: #ef4444; }
.consent.is-invalid input { outline: 2px solid #ef4444; outline-offset: 2px; border-radius: 4px; }

/* =========================================================
   ESCOLAS
   ========================================================= */
.schools { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.school {
  position: relative; overflow: hidden; padding: 28px;
  border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.school::before { content: ""; position: absolute; inset: 0; background: url("images/fundo-mapa.jpg") center/cover; opacity: .06; z-index: 0; }
.school:hover { transform: translateY(-5px); border-color: var(--brand); box-shadow: var(--shadow); }
.school > * { position: relative; z-index: 1; }
.school__name { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 800; margin-bottom: 18px; }
.school__pin { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-400), var(--brand-600)); color: #fff; flex-shrink: 0; }
.school__pin svg { width: 16px; height: 16px; }
.school__contacts { display: grid; gap: 13px; margin-bottom: 18px; }
.school__contacts li { display: flex; gap: 11px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.school__contacts svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--brand-400); margin-top: 2px; }
.school__contacts a:hover { color: var(--brand-400); }
.school__social { display: flex; gap: 10px; margin-top: 18px; }
.school__social a, .footer__social a {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--muted); transition: transform .25s, color .25s, border-color .25s, background .25s;
}
.footer__social a:hover { transform: translateY(-3px); color: #fff; background: var(--brand); border-color: var(--brand); }
/* ícones sociais das escolas: preenchidos na cor de cada plataforma, ícone branco */
.school__social a { color: #fff; border-color: transparent; }
.school__social a:hover { transform: translateY(-3px); filter: brightness(1.1); }
.school__social a.school__social--wa { background: #25D366; }
.school__social a.school__social--fb { background: #1877F2; }
.school__social a.school__social--ig { background: linear-gradient(45deg, #feda75 5%, #fa7e1e 25%, #d62976 55%, #962fbf 80%, #4f5bd5 95%); }
.school__map { margin-top: 20px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line-2); line-height: 0; box-shadow: var(--shadow-sm); }
.school__map iframe { width: 100%; height: 220px; border: 0; display: block; }
[data-theme="dark"] .school__map iframe { filter: invert(0.92) hue-rotate(180deg) brightness(.95) contrast(.9); }
.school__social svg, .footer__social svg { width: 19px; height: 19px; }

/* =========================================================
   CTA final
   ========================================================= */
.cta__card {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(40px, 7vw, 80px) clamp(24px,4vw,40px); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  color: #fff; box-shadow: 0 30px 70px -28px var(--brand-glow);
}
.cta__card::before { content: ""; position: absolute; inset: 0; background: url("images/fundo-mapa.jpg") center/cover; opacity: .14; mix-blend-mode: overlay; }
.cta__card h2 { position: relative; color: #fff; margin-bottom: 14px; }
.cta__card p { position: relative; color: rgba(255,255,255,.9); max-width: 44ch; margin: 0 auto 28px; font-size: 1.05rem; }
.cta__card .btn--primary { background: #fff; color: var(--brand-600); }
.cta__card .btn--primary:hover { color: var(--brand-600); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { border-top: 1px solid var(--line); padding-top: 54px; background: var(--bg-2); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; padding-bottom: 36px; }
.footer__brand img { height: 38px; margin-bottom: 14px; }
.footer__brand p { color: var(--muted); font-size: .9rem; }
.footer__schools { display: grid; gap: 16px; margin-top: 18px; }
.footer__school strong { display: block; font-size: .85rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.footer__school > span { display: flex; align-items: flex-start; gap: 8px; font-size: .82rem; color: var(--muted); line-height: 1.45; margin-top: 4px; }
.footer__school svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--brand-400); margin-top: 2px; }
.footer__school a { transition: color .2s; }
.footer__school a:hover { color: var(--brand-400); }
.footer__nav { display: flex; flex-direction: column; gap: 9px; }
.footer__nav a { color: var(--muted); font-size: .92rem; font-weight: 600; transition: color .2s; }
.footer__nav a:hover { color: var(--brand-400); }
.footer__nav button { font-family: inherit; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; color: var(--muted); font-size: .92rem; font-weight: 600; transition: color .2s; }
.footer__nav button:hover { color: var(--brand-400); }
.footer__nav-legal { margin-top: 14px; }
.footer__social { display: flex; gap: 10px; }
.footer__bottom { border-top: 1px solid var(--line); max-width: var(--maxw); margin-inline: auto; padding: 18px clamp(18px,4vw,40px); color: var(--faint); font-size: .82rem; display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; justify-content: space-between; }
.footer__credit a { color: var(--muted); font-weight: 600; transition: color .2s; }
.footer__credit a:hover { color: var(--brand-400); }

/* ---------- Floating WhatsApp ---------- */
.wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; box-shadow: 0 14px 30px -8px rgba(37,211,102,.6);
  transition: transform .3s var(--ease);
  animation: waPop .5s var(--ease) both 1s;
}
.wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: waRing 2.4s ease-out infinite; }
.wa:hover { transform: scale(1.1) translateY(-2px); }
.wa img { width: 62%; height: 62%; object-fit: contain; filter: brightness(0) invert(1); }
@keyframes waRing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes waPop { from { transform: scale(0); } to { transform: scale(1); } }

/* =========================================================
   Seletor de escola (WhatsApp)
   ========================================================= */
.wa-choose { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.wa-choose[hidden] { display: none; }
.wa-choose__backdrop { position: absolute; inset: 0; background: rgba(4,4,6,.62); backdrop-filter: blur(6px); animation: fadeIn .25s var(--ease); }
.wa-choose__sheet {
  position: relative; width: min(420px, 100%);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 30px 26px 26px; text-align: center;
  animation: sheetIn .35s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }

.wa-choose__x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 100px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line-2); transition: color .2s, border-color .2s, transform .2s; }
.wa-choose__x:hover { color: var(--text); border-color: var(--brand); transform: rotate(90deg); }
.wa-choose__x svg { width: 16px; height: 16px; }

.wa-choose__wa { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: #25D366; box-shadow: 0 12px 26px -10px rgba(37,211,102,.5); }
.wa-choose__wa img { width: 60%; height: 60%; object-fit: contain; filter: brightness(0) invert(1); }
.wa-choose__sheet h3 { font-size: 1.3rem; margin-bottom: 6px; }
.wa-choose__sheet > p { color: var(--muted); font-size: .92rem; margin-bottom: 22px; }

.wa-choose__opts { display: grid; gap: 12px; }
.wa-choose__opt {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 14px 16px; border-radius: var(--radius); background: var(--bg-2);
  border: 1px solid var(--line-2); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s, background .25s;
}
.wa-choose__opt:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow-sm); }
.wa-choose__pin { flex-shrink: 0; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand-400), var(--brand-600)); }
.wa-choose__pin svg { width: 22px; height: 22px; }
.wa-choose__txt { display: flex; flex-direction: column; margin-right: auto; }
.wa-choose__txt b { font-weight: 700; font-size: 1rem; }
.wa-choose__txt small { color: var(--muted); font-size: .85rem; }
.wa-choose__arrow { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; }

body.wa-locked { overflow: hidden; }

/* Popup Política de Privacidade */
.privacy { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; }
.privacy[hidden] { display: none; }
.privacy__backdrop { position: absolute; inset: 0; background: rgba(4,4,6,.65); backdrop-filter: blur(6px); animation: fadeIn .25s var(--ease); }
.privacy__sheet { position: relative; width: min(700px, 100%); max-height: 86vh; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 16px clamp(20px,4vw,40px) clamp(22px,4vw,34px); animation: sheetIn .35s var(--ease); }
.privacy__x { align-self: flex-end; flex-shrink: 0; width: 36px; height: 36px; border-radius: 100px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line-2); background: var(--card); transition: color .2s, border-color .2s, transform .2s; }
.privacy__x:hover { color: var(--text); border-color: var(--brand); transform: rotate(90deg); }
.privacy__x svg { width: 16px; height: 16px; }
.privacy__content { overflow-y: auto; padding-right: 6px; }
.privacy__content h2 { font-size: clamp(1.3rem,3vw,1.6rem); margin-bottom: 4px; }
.privacy__sub { color: var(--brand-400); font-weight: 700; font-size: .9rem; margin-bottom: 18px; }
.privacy__content h3 { font-size: 1rem; font-weight: 800; margin: 20px 0 6px; color: var(--text); }
.privacy__content p { color: var(--muted); font-size: .92rem; line-height: 1.6; margin-bottom: 8px; }
.privacy__content ul { margin: 4px 0 10px; padding-left: 20px; }
.privacy__content li { list-style: disc; color: var(--muted); font-size: .92rem; line-height: 1.6; margin-bottom: 4px; }
.privacy__content a { color: var(--brand-400); }
.privacy__content strong { color: var(--text); }

/* Ícone WhatsApp (máscara CSS) — herda a cor (currentColor) e o tamanho de cada botão */
.wa-ico {
  display: inline-block; vertical-align: middle; background-color: currentColor;
  -webkit-mask: url("images/whatsapp-logo.png") center / contain no-repeat;
  mask: url("images/whatsapp-logo.png") center / contain no-repeat;
}
.btn .wa-ico { width: 18px; height: 18px; }
.school__social .wa-ico { width: 19px; height: 19px; }

/* =========================================================
   Aviso de cookies (minimalista)
   ========================================================= */
.cookies {
  position: fixed; left: 16px; bottom: 16px; z-index: 80;
  max-width: min(380px, calc(100% - 96px));
  display: flex; flex-direction: column; gap: 12px;
  padding: 15px 17px; border-radius: var(--radius-sm);
  background: var(--glass); backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
  animation: cookiesIn .45s var(--ease);
}
.cookies[hidden] { display: none; }
.cookies__txt { font-size: .82rem; line-height: 1.5; color: var(--muted); }
.cookies__actions { display: flex; gap: 8px; justify-content: flex-end; }
.cookies__btn { padding: 8px 16px; border-radius: 100px; font-weight: 700; font-size: .8rem; transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s; }
.cookies__btn:active { transform: translateY(1px); }
.cookies__btn--ghost { color: var(--muted); border: 1px solid var(--line-2); }
.cookies__btn--ghost:hover { color: var(--text); border-color: var(--text); }
.cookies__btn--accept { color: #fff; background: linear-gradient(135deg, var(--brand-400), var(--brand) 60%, var(--brand-600)); box-shadow: 0 8px 18px -8px var(--brand-glow); }
.cookies__btn--accept:hover { transform: translateY(-1px); }
@keyframes cookiesIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .stat + .stat::before { display: none; }
  .testes__card { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav.is-open .nav__mobile { display: flex; }
  .cats { grid-template-columns: 1fr; }
  .schools { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: center; text-align: center; }
}
@media (max-width: 460px) {
  .features { grid-template-columns: 1fr; }
  .hero__stats { gap: 18px; }
  .review { width: 280px; }
}

/* ---------- Acessibilidade ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto; }
  .hero__map { animation: none; }
  /* sem auto-scroll: o marquee ficaria congelado a meio -> torna-se um strip arrastável (swipe) */
  .marquee-wrap { overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; padding-inline: clamp(18px, 4vw, 40px); }
  .marquee-wrap::-webkit-scrollbar { display: none; }
  .marquee, .marquee--rev { transform: none !important; }
  .review { scroll-snap-align: start; }
}
