@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/montserrat-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-variable.woff2') format('woff2');
}

:root {
  --ink: #09124a;
  --ink-soft: #4b5480;
  --paper: #f8f9fa;
  --paper-raised: #eef0f5;
  --line: #dde1ea;
  --accent: #f7b500;
  --accent-soft: #ffd84d;
  --accent-ink: #09124a;
  --blue: #0b1fb8;
  --blue-deep: #09124a;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f8f9fa;
    --ink-soft: #b7beda;
    --paper: #070b2e;
    --paper-raised: #0d1440;
    --line: #1c275c;
    --accent: #ffd84d;
    --accent-soft: #f7b500;
    --accent-ink: #09124a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #f8f9fa;
  --ink-soft: #b7beda;
  --paper: #070b2e;
  --paper-raised: #0d1440;
  --line: #1c275c;
  --accent: #ffd84d;
  --accent-soft: #f7b500;
  --accent-ink: #09124a;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --ink: #09124a;
  --ink-soft: #4b5480;
  --paper: #f8f9fa;
  --paper-raised: #eef0f5;
  --line: #dde1ea;
  --accent: #f7b500;
  --accent-soft: #ffd84d;
  --accent-ink: #09124a;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, .display {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}

.eyebrow {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}
.eyebrow::before {
  content: "";
  width: 1.3em;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.on-blue { color: var(--accent-soft); }
.eyebrow.on-blue::before { background: var(--accent-soft); }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

a { color: inherit; }

hr.staff {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 2.25rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 144px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(9,18,74,0.18));
}
.logo-word {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-word b {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.logo-word small {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
footer .logo-img {
  padding: 0.5rem;
  background: #fff;
  border-radius: 10px;
}
@media (max-width: 480px) {
  .logo-img { height: 112px; }
}

nav.links { display: flex; gap: 3rem; list-style: none; margin: 0; padding: 0; }
nav.links a {
  text-decoration: none;
  font-size: 1.38rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
nav.links a:hover, nav.links a:focus-visible { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color .18s ease;
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-soft); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline-inv { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-outline-inv:hover { border-color: var(--accent-soft); color: var(--accent-soft); }

.nav-cta { display: flex; align-items: center; gap: 1.35rem; }
.nav-cta .btn-primary.desktop-only {
  padding: 1.125rem 2.25rem;
  font-size: 1.38rem;
}
.nav-icon-btn {
  width: 63px;
  height: 63px;
  flex-shrink: 0;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease;
}
.nav-icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.nav-icon-btn svg { width: 30px; height: 30px; }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 63px;
  height: 63px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}
.menu-toggle svg { width: 30px; height: 30px; }
@media (max-width: 1320px) {
  nav.links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-cta .btn-primary.desktop-only { display: none; }
}
#mobile-panel {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem) 1.75rem;
  border-top: 1px solid var(--line);
}
#mobile-panel.open { display: flex; }
#mobile-panel a { text-decoration: none; font-weight: 600; color: var(--ink); font-size: 1.02rem; }

/* ---------- Hero (brand-locked navy) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  background: radial-gradient(120% 100% at 15% 0%, var(--blue) 0%, var(--blue-deep) 62%);
  color: #fff;
}
.hero-glow {
  position: absolute;
  inset: -10% -10% auto auto;
  width: 60%;
  height: 90%;
  background: radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero-rays {
  position: absolute;
  top: -30%;
  right: -12%;
  width: 620px;
  height: 620px;
  opacity: 0.35;
  background: repeating-conic-gradient(var(--accent) 0deg 3deg, transparent 3deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 40%, transparent 72%);
  mask: radial-gradient(circle, #000 40%, transparent 72%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.1rem);
  margin-top: 1rem;
  color: #fff;
}
.hero h1 .gold { color: var(--accent-soft); }
.hero-sub {
  max-width: 46ch;
  color: #d7dcf5;
  font-size: 1.08rem;
  margin: 1.4rem 0 0;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.1rem; }
.hero-side { display: flex; flex-direction: column; gap: 1.4rem; padding-bottom: 0.4rem; }
.hero-logo {
  width: min(345px, 80%);
  height: auto;
  align-self: flex-start;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.35));
}
@media (max-width: 720px) {
  .hero-logo { width: 225px; align-self: center; }
}
.hero-note {
  border-left: 3px solid var(--accent);
  padding-left: 1.1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
}
.hero-meta { display: flex; gap: 1.75rem; }
.hero-meta strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent-soft);
}
.hero-meta span { font-size: 0.8rem; color: #b9c0e6; }

section { padding: clamp(3.5rem, 7vw, 6rem) 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.85rem, 3.8vw, 2.5rem); }
.section-head p { color: var(--ink-soft); max-width: 42ch; margin: 0.9rem 0 0; }

/* ---------- História ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.story-quote {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.32;
  color: var(--ink);
}
.story-quote .gold { color: var(--accent); }
.story-body p { color: var(--ink-soft); margin: 0 0 1.1rem; }
.story-body p:last-child { margin-bottom: 0; }
.story-body strong { color: var(--ink); }

.timeline {
  display: flex;
  gap: 0;
  margin-top: 2.25rem;
  border-top: 2px solid var(--line);
  padding-top: 1.25rem;
}
.timeline-item {
  flex: 1;
  position: relative;
  padding-right: 1rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  top: -1.35rem;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline-item strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
}
.timeline-item span { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Cursos ---------- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.course-card {
  background: var(--paper);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.2s ease;
}
.course-card:hover { background: var(--paper-raised); }
.course-icon { width: 32px; height: 32px; color: var(--accent); }
.course-card h3 { font-size: 1.15rem; font-weight: 700; }
.course-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; flex-grow: 1; }
.course-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.25rem 0.5rem;
}
.tag.gold { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* ---------- Diferenciais ---------- */
.diff-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2.5rem; }
.diff-item .num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.6rem;
}
.diff-item h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.diff-item p { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }

/* ---------- Professores ---------- */
.teachers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem; }
.teacher-card { display: flex; flex-direction: column; gap: 1rem; }
.avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  background: radial-gradient(circle at 30% 25%, var(--blue), var(--blue-deep));
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.25rem;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 800;
  color: #fff;
}
.avatar::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: repeating-conic-gradient(var(--accent) 0deg 5deg, transparent 5deg 18deg);
  opacity: 0.55;
  -webkit-mask: radial-gradient(circle, transparent 30%, #000 40%, #000 58%, transparent 66%);
  mask: radial-gradient(circle, transparent 30%, #000 40%, #000 58%, transparent 66%);
}
.avatar span { position: relative; z-index: 1; }
.founder-badge {
  position: relative;
  z-index: 2;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 3px;
}
.teacher-card h3 { font-size: 1.02rem; }
.teacher-role { color: var(--accent-ink); background: var(--accent-soft); display: inline-block; font-size: 0.76rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 3px; margin-bottom: 0.35rem; }
.teacher-card p.bio { color: var(--ink-soft); font-size: 0.87rem; margin: 0; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); }
.contact-info { display: flex; flex-direction: column; gap: 1.6rem; }
.info-row { display: flex; gap: 1rem; }
.info-icon { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.info-row h4 { margin: 0 0 0.25rem; font-size: 0.95rem; font-weight: 700; }
.info-row p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.social-row { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.social-row a {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .18s ease, color .18s ease;
}
.social-row a:hover { border-color: var(--accent); color: var(--accent); }
.social-row svg { width: 18px; height: 18px; }

form.contact-form {
  display: grid;
  gap: 1.1rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
label { display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); }
input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { resize: vertical; min-height: 90px; }
.form-note { font-size: 0.78rem; color: var(--ink-soft); margin: 0; }

@media (max-width: 720px) {
  .hero-inner, .story-grid, .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .timeline { flex-direction: column; gap: 1.5rem; }
}

/* ---------- Footer ---------- */
footer { background: var(--blue-deep); color: #d7dcf5; padding: clamp(2.5rem, 6vw, 3.5rem) 0 2rem; }
footer .logo-word b { color: #fff; }
footer .logo-word small { color: #9aa2cf; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(2, 1fr); gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-col h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9aa2cf; margin: 0 0 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { text-decoration: none; color: #fff; font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent-soft); }
.footer-brand p { color: #b9c0e6; font-size: 0.9rem; max-width: 32ch; margin: 1rem 0 0; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding-top: 1.75rem; border-top: 1px solid #1c275c; font-size: 0.8rem; color: #9aa2cf;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
