/* ===================================================================
   Prof. André Pereira — Landing Page
   Estilo: Moderno Educacional | HTML/CSS/JS puro
   =================================================================== */

:root {
  /* Paleta */
  --indigo-900: #1e1b4b;
  --indigo-700: #4338ca;
  --indigo-600: #4f46e5;
  --indigo-500: #6366f1;
  --indigo-50:  #eef2ff;

  --amber-500: #f59e0b;
  --amber-400: #fbbf24;

  --wa-green: #25d366;
  --wa-green-dark: #128c4a;

  --ink:    #111827;
  --body:   #374151;
  --muted:  #6b7280;
  --line:   #e5e7eb;
  --bg:     #ffffff;
  --bg-alt: #f7f8fc;
  --bg-soft: #f1f3fb;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(17,24,39,.06), 0 1px 3px rgba(17,24,39,.08);
  --shadow-md: 0 8px 24px rgba(31,27,75,.10);
  --shadow-lg: 0 24px 60px rgba(31,27,75,.16);

  --container: 1140px;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--indigo-600); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: inherit; font-weight: 700; font-size: 16px;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-lg { padding: 16px 30px; font-size: 17px; }

.btn-primary { background: var(--wa-green); color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.35); }
.btn-primary:hover { background: var(--wa-green-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37,211,102,.42); }

.btn-ghost { background: rgba(79,70,229,.08); color: var(--indigo-700); }
.btn-ghost:hover { background: rgba(79,70,229,.15); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--indigo-700); box-shadow: var(--shadow-md); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.wa-ico { font-size: 1.05em; transform: translateY(1px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 70px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--indigo-600), var(--indigo-500));
  color: #fff; font-weight: 800; font-size: 22px; border-radius: 12px;
  box-shadow: 0 6px 14px rgba(79,70,229,.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { color: var(--ink); font-size: 16px; }
.brand-text small { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; }

.nav { margin-left: auto; display: flex; gap: 6px; }
.nav a {
  padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 15px;
  color: var(--body); transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--indigo-50); color: var(--indigo-700); }

.header-cta { margin-left: 6px; }

.nav-toggle {
  display: none; margin-left: auto; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 92px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 85% 0%, rgba(99,102,241,.14), transparent 60%),
    radial-gradient(50% 50% at 5% 100%, rgba(245,158,11,.10), transparent 60%),
    linear-gradient(180deg, var(--bg-soft), var(--bg) 60%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  color: var(--indigo-700); font-weight: 700; font-size: 13.5px;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-500); box-shadow: 0 0 0 4px rgba(245,158,11,.18); }

.hero h1 { font-size: clamp(34px, 5.2vw, 56px); margin-bottom: 20px; }
.hero h1 .hl {
  background: linear-gradient(120deg, var(--indigo-600), var(--indigo-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative;
}
.hero .lead { font-size: clamp(17px, 2vw, 19px); color: var(--body); max-width: 540px; margin-bottom: 30px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-weight: 600; font-size: 14.5px; }

/* Hero visual */
.hero-visual { display: flex; justify-content: center; }
.photo { position: relative; width: min(420px, 100%); aspect-ratio: 4 / 4.4; }
.photo-placeholder {
  width: 100%; height: 100%; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--indigo-600), var(--indigo-900));
  display: grid; place-content: center; gap: 8px; text-align: center;
  color: #fff; box-shadow: var(--shadow-lg); overflow: hidden; position: relative;
}
.photo-placeholder::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.12) 1.4px, transparent 1.5px);
  background-size: 22px 22px; opacity: .5;
}
.photo-placeholder span { font-size: clamp(56px, 10vw, 88px); font-weight: 800; letter-spacing: .04em; position: relative; }
.photo-placeholder small { font-size: 13px; opacity: .85; font-weight: 600; padding: 0 24px; position: relative; }
.photo-placeholder.small { aspect-ratio: 4/4.4; max-width: 320px; }

/* Foto real do professor */
.photo-img {
  display: block; width: 100%; height: 100%;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--indigo-50);
}
.photo-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.photo-img.small { width: min(320px, 100%); aspect-ratio: 4/4.4; }

.float-card {
  position: absolute; background: #fff; border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow-md); display: flex; flex-direction: column; line-height: 1.2;
  animation: floaty 4.5s ease-in-out infinite;
}
.float-card strong { font-size: 20px; color: var(--indigo-700); }
.float-card span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.float-card .stars { color: var(--amber-500); font-size: 15px; letter-spacing: 1px; }
.float-1 { top: 16%; left: -26px; }
.float-2 { bottom: 12%; right: -22px; animation-delay: -2.2s; }

.float-symbol {
  position: absolute; font-family: var(--font-serif); font-weight: 600; color: var(--indigo-500);
  opacity: .22; animation: floaty 6s ease-in-out infinite;
}
.float-symbol.s1 { font-size: 64px; top: -18px; right: 8%; }
.float-symbol.s2 { font-size: 78px; bottom: -22px; left: 4%; animation-delay: -3s; }
.float-symbol.s3 { font-size: 50px; top: 42%; right: -16px; animation-delay: -1.5s; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Stats ---------- */
.stats { margin-top: -10px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--indigo-900); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow-lg);
  background-image: linear-gradient(135deg, var(--indigo-700), var(--indigo-900));
}
.stat { text-align: center; color: #fff; }
.stat strong { display: block; font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: #fff; }
.stat span { font-size: 14px; color: #c7d2fe; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: clamp(58px, 9vw, 100px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 660px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em;
  font-size: 13px; font-weight: 800; color: var(--indigo-600); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(27px, 4vw, 40px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* ---------- Cards (público) ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--indigo-50); }
.card-ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; background: var(--indigo-50); margin-bottom: 18px;
}
.card h3 { font-size: 19px; margin-bottom: 9px; }
.card p { font-size: 15.5px; color: var(--muted); }

/* ---------- Método (steps) ---------- */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 920px; margin: 0 auto; }
.step {
  display: flex; gap: 18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--indigo-600), var(--indigo-500));
  box-shadow: 0 8px 18px rgba(79,70,229,.32);
}
.step-body h3 { font-size: 19px; margin-bottom: 7px; }
.step-body p { font-size: 15.5px; color: var(--muted); }

.method-note {
  max-width: 920px; margin: 30px auto 0; text-align: center;
  background: var(--indigo-50); border: 1px solid #e0e3fb; border-radius: var(--radius);
  padding: 20px 26px; color: var(--indigo-900); font-size: 16px;
}

/* ---------- Sobre ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.about-photo { display: flex; justify-content: center; }
.about-copy h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 18px; }
.quote {
  font-family: var(--font-serif); font-style: italic; font-size: 20px; line-height: 1.55;
  color: var(--indigo-900); border-left: 4px solid var(--amber-500);
  padding-left: 20px; margin-bottom: 22px;
}
.about-copy p { margin-bottom: 18px; color: var(--body); }
.check-list { display: grid; gap: 10px; margin-bottom: 28px; }
.check-list li { position: relative; padding-left: 32px; font-weight: 600; color: var(--ink); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%; background: var(--indigo-50);
  color: var(--indigo-600); display: grid; place-items: center; font-size: 13px; font-weight: 800;
}

/* ---------- Avaliações ---------- */
.testimonials { grid-template-columns: repeat(3, 1fr); }
.testimonial {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px;
}
.testimonial .stars { color: var(--amber-500); letter-spacing: 2px; font-size: 17px; }
.testimonial p { font-size: 16px; color: var(--body); font-style: italic; flex: 1; }
.testimonial footer { display: flex; flex-direction: column; }
.testimonial footer strong { color: var(--ink); }
.testimonial footer span { font-size: 13.5px; color: var(--muted); }
.disclaimer { text-align: center; margin-top: 26px; font-size: 13px; color: var(--muted); }

/* Container do widget de avaliações do Google (Elfsight) */
.reviews-widget { max-width: 980px; margin: 0 auto; }

/* ---------- Modalidades ---------- */
.modalities-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 56px); align-items: center; }
.modalities-grid h2 { font-size: clamp(27px, 4vw, 38px); margin-bottom: 14px; }
.modalities-grid > div > p { color: var(--muted); margin-bottom: 22px; font-size: 18px; }
.region-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.region-tags span {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-sm);
}
.modality-cards { display: grid; gap: 16px; }
.modality {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.modality h3 { font-size: 18px; margin-bottom: 6px; }
.modality p { font-size: 15px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 780px; }
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 4px 22px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease;
}
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary {
  list-style: none; cursor: pointer; font-weight: 700; color: var(--ink);
  padding: 18px 34px 18px 0; position: relative; font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--indigo-600); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); font-size: 15.5px; }

/* ---------- CTA final ---------- */
.cta-final {
  background-image: linear-gradient(135deg, var(--indigo-700), var(--indigo-900));
  position: relative; overflow: hidden;
  padding: clamp(58px, 9vw, 96px) 0;
}
.cta-final::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1.4px, transparent 1.5px);
  background-size: 26px 26px; opacity: .5;
}
.cta-inner { position: relative; text-align: center; max-width: 680px; margin-inline: auto; }
.cta-inner h2 { color: #fff; font-size: clamp(26px, 4vw, 40px); margin-bottom: 14px; }
.cta-inner p { color: #d7dbf7; font-size: 18px; margin-bottom: 30px; }
.cta-phone { margin-top: 20px; color: #c7d2fe; font-weight: 700; font-size: 16px; letter-spacing: .03em; }

/* ---------- Footer ---------- */
.site-footer { background: #0e1030; color: #c7cbe8; padding: 54px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.10); }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand strong { color: #fff; font-size: 17px; }
.footer-brand p { font-size: 14px; color: #9aa0cf; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.footer-nav a { font-weight: 600; font-size: 15px; color: #c7cbe8; transition: color .15s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 24px; font-size: 13.5px; color: #8086b8; }

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa-green); color: #fff; display: grid; place-items: center;
  font-size: 26px; box-shadow: 0 10px 26px rgba(37,211,102,.45);
  transition: transform .2s ease;
}
.whatsapp-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa-green); animation: pulse 2.2s ease-out infinite;
}
.whatsapp-fab:hover { transform: scale(1.08); }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-visual { order: 1; }
  .hero .lead { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .cards, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .modalities-grid { grid-template-columns: 1fr; }
  .about-photo { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex; flex-direction: column; gap: 4px; position: absolute;
    top: 70px; left: 0; right: 0; background: #fff; padding: 14px 22px 22px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav.open a { padding: 12px 14px; font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .cards, .testimonials { grid-template-columns: 1fr; }
  .float-1 { left: -8px; } .float-2 { right: -8px; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Acessibilidade ---------- */
:focus-visible { outline: 3px solid var(--indigo-500); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
