/* =========================================================================
   Colégio Geração — Design System
   ========================================================================= */

:root {
  /* Brand palette */
  --green-deep: #0e544f;
  --green-teal: #097274;
  --green-bright: #05c464;
  --green-pale: #e8efed;
  --green-paler: #f1f5f3;

  /* Neutrals — warm whites */
  --bg: #fafaf7;
  --bg-2: #f3f1ea;
  --fg: #14201d;
  --fg-2: #2a3633;
  --muted: #5e6a66;
  --line: #e5e2d8;
  --line-strong: #cfcbbd;

  /* Section-inverse text (on dark/bright brand backgrounds) */
  --cream: #f3efe4;
  --text-inverse: #053820;

  /* Type */
  --font-display: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Density */
  --section-py: clamp(80px, 9vw, 140px);
  --container-px: clamp(24px, 5vw, 72px);
  --gap: clamp(16px, 2vw, 28px);

  /* Misc */
  --radius: 6px;
  --radius-lg: 18px;
  --shadow-soft: 0 1px 2px rgba(20, 32, 29, 0.04),
    0 8px 28px -8px rgba(20, 32, 29, 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --bar-h: 38px;
}

/* Typography mode */
body[data-typo="serif"] {
  --font-display: "Newsreader", "Times New Roman", serif;
}
body[data-typo="serif-all"] {
  --font-display: "Newsreader", "Times New Roman", serif;
  --font-sans: "Newsreader", "Times New Roman", serif;
}

/* Palette intensity */
body[data-palette="gentle"] {
  --green-deep: #1a6864;
  --green-teal: #2a8581;
}
body[data-palette="bold"] {
  --green-deep: #093e3a;
  --green-teal: #075957;
}

/* =========================================================================
   Base
   ========================================================================= */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "kern";
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

::selection { background: var(--green-bright); color: var(--text-inverse); }

/* =========================================================================
   Layout helpers
   ========================================================================= */

.container {
  max-width: 1480px;
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.container-narrow {
  max-width: 980px;
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  position: relative;
}

.section--tight {
  padding-top: calc(var(--section-py) * 0.55);
  padding-bottom: calc(var(--section-py) * 0.55);
}

.section--green {
  background: var(--green-deep);
  color: #ffffff;
  --fg: #ffffff;
  --fg-2: rgba(255, 255, 255, 0.85);
  --muted: #a8b6b1;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
}

.section--cream { background: var(--bg-2); }
#diferenciais.section--cream { background: #f1f1f1; }
#agenda.section--cream { background: #f1f1f1; }

/* =========================================================================
   Typography
   ========================================================================= */

.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

h2 { line-height: 65px; }

body[data-typo="serif"] .display,
body[data-typo="serif"] h1,
body[data-typo="serif"] h2,
body[data-typo="serif"] h3,
body[data-typo="serif-all"] .display,
body[data-typo="serif-all"] h1,
body[data-typo="serif-all"] h2,
body[data-typo="serif-all"] h3 {
  font-weight: 400;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144;
}

.display-xl {
  font-size: clamp(48px, 8vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.display-lg {
  font-size: clamp(40px, 5.4vw, 76px);
  letter-spacing: -0.022em;
}

.display-md {
  font-size: clamp(30px, 3.4vw, 48px);
  letter-spacing: -0.018em;
}

.display-sm {
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.012em;
}

em.swash {
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--green-teal);
}
body[data-typo="sans"] em.swash {
  font-family: "Newsreader", "Times New Roman", serif;
  font-weight: 400;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-teal);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow--bare::before { display: none; }

.lede {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--fg-2);
  font-weight: 400;
  max-width: 60ch;
}

.muted { color: var(--muted); }
.serif { font-family: "Newsreader", serif; }

p { margin: 0 0 1em 0; }
p:last-child { margin-bottom: 0; }

/* =========================================================================
   Buttons
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  color: inherit;
  position: relative;
}

.btn--primary {
  background: var(--green-bright);
  color: var(--text-inverse);
  border-color: var(--green-bright);
  box-shadow: 0 8px 24px -8px rgba(5, 196, 100, 0.4);
}
.btn--primary:hover {
  background: #04a855;
  border-color: #04a855;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -8px rgba(5, 196, 100, 0.55);
}

.btn--dark {
  background: var(--green-deep);
  color: #ffffff;
  border-color: var(--green-deep);
}
.btn--dark:hover { background: #082f2c; border-color: #082f2c; transform: translateY(-1px); }

.btn--ghost {
  border-color: currentColor;
  background: transparent;
  color: var(--fg);
  opacity: 0.85;
}
.btn--ghost:hover { opacity: 1; background: var(--fg); color: var(--bg); }

.btn--link {
  padding: 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  gap: 8px;
  color: var(--green-deep);
}
.btn--link:hover { color: var(--green-bright); border-bottom-color: var(--green-bright); }

.btn .arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.magnetic { display: inline-block; transition: transform 0.25s var(--ease); }

/* =========================================================================
   Top bar + Nav
   ========================================================================= */

.bar {
  background: #0f4a44;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  height: var(--bar-h);
  display: flex;
  align-items: center;
}
.bar-track {
  display: inline-flex;
  gap: 60px;
  animation: marquee 40s linear infinite;
}
.bar-track span { display: inline-flex; align-items: center; gap: 60px; }
.bar-dot::before { content: "●"; color: var(--green-bright); margin-right: 60px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.nav {
  position: fixed;
  top: var(--bar-h);
  left: 0;
  right: 0;
  z-index: 100;
  transition: top 0.35s var(--ease), background 0.35s var(--ease),
    border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  top: 0;
  background: rgba(250, 250, 247, 0.94);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 16px 0;
  transition: padding 0.35s var(--ease);
}

.nav.is-scrolled .nav-inner {
  padding: 10px 0;
}

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-img {
  height: 38px;
  width: auto;
  display: block;
  transition: transform 0.25s var(--ease);
}
.logo:hover .logo-img { transform: scale(1.02); }
.nav.is-scrolled .logo-img { height: 32px; }
body[data-dark="true"] .logo-img { filter: invert(1) hue-rotate(180deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 22px);
  font-size: 14px;
  font-weight: 400;
  color: var(--fg-2);
}
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover { color: var(--green-deep); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── Desktop dropdown submenus ──────────────────────────────────── */
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-item.has-submenu > a svg,
.nav-item.has-submenu > .nav-item-label svg {
  transition: transform 0.25s var(--ease);
}
.nav-item.has-submenu:hover > a svg,
.nav-item.has-submenu:focus-within > a svg,
.nav-item.has-submenu:hover > .nav-item-label svg,
.nav-item.has-submenu:focus-within > .nav-item-label svg {
  transform: rotate(180deg);
}
.nav-item-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  white-space: nowrap;
  cursor: default;
}
/* Invisible bridge so the pointer can travel from the link to the panel */
.nav-item.has-submenu::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
}
.nav-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 16px;
  min-width: 230px;
  padding: 8px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 46px -16px rgba(20, 32, 29, 0.28);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 120;
}
.nav-item.has-submenu:hover .nav-submenu,
.nav-item.has-submenu:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
/* White panel: keep dark text regardless of the dark-hero nav color override */
.nav-submenu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--fg-2) !important;
  white-space: nowrap;
}
.nav-submenu a::after { content: none; }
.nav-submenu a:hover { background: var(--green-paler); color: var(--green-deep) !important; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-aluno {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  border-right: 1px solid var(--line);
  padding-right: 16px;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-aluno:hover { color: var(--green-deep); }
.nav-actions .btn { padding: 10px 18px; font-size: 14px; }

/* ── CTA: full label > short label > hidden, as space runs out ──── */
.nav-cta-full { display: inline-flex; align-items: center; gap: 8px; }
.nav-cta-short { display: none; }

@media (max-width: 1250px) {
  .nav-cta-full { display: none; }
  .nav-cta-short { display: inline-flex; }
}
@media (max-width: 1150px) {
  .nav-actions .nav-cta { display: none; }
}
@media (max-width: 1000px) {
  .nav-links a.nav-link-duvidas { display: none; }
}

@media (max-width: 880px) { .nav-links { display: none; } }
@media (max-width: 880px) { .nav-aluno { display: none; } }

/* ── Hamburger button ───────────────────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-burger:hover { background: var(--green-paler); }
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s, width 0.3s var(--ease);
  transform-origin: center;
}
.nav-burger span:nth-child(3) { width: 65%; }

/* Open state */
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 100%; }

/* On dark hero (before scroll) */
body[data-hero="nova"] .nav:not(.is-scrolled) .nav-burger span { background: rgba(255,255,255,0.9); }

@media (max-width: 880px) { .nav-burger { display: flex; } }

/* ── Mobile drawer ──────────────────────────────────────────────── */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: #fff;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.38s var(--ease);
  box-shadow: -4px 0 40px rgba(20,32,29,0.14);
  display: flex;
  flex-direction: column;
}
.nav-drawer.is-open { transform: translateX(0); }

.nav-drawer-inner {
  padding: 24px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  overflow-y: auto;
}

.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-drawer-close:hover { background: var(--green-paler); }

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.nav-drawer-links a {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--fg);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, padding-left 0.25s var(--ease);
  letter-spacing: -0.015em;
}
.nav-drawer-links a:last-child { border-bottom: none; }
.nav-drawer-links a:hover { color: var(--green-deep); padding-left: 8px; }

/* ── Mobile drawer: accordion submenus ─────────────────────────── */
.drawer-item { border-bottom: 1px solid var(--line); }
.drawer-item-head { display: flex; align-items: stretch; }
.drawer-item-head a { flex: 1; border-bottom: none; }
.drawer-item-label {
  flex: 1;
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--fg);
  padding: 10px 0;
  letter-spacing: -0.015em;
  cursor: pointer;
}
.drawer-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.drawer-toggle:hover, .drawer-toggle:focus-visible { background: var(--green-paler); }
.drawer-toggle svg { transition: transform 0.25s var(--ease); }
.drawer-item.is-open .drawer-toggle svg { transform: rotate(180deg); }

.drawer-submenu {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.drawer-submenu > div { overflow: hidden; }
.drawer-item.is-open .drawer-submenu { grid-template-rows: 1fr; }
.drawer-submenu a {
  display: block;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
  color: var(--muted);
  padding: 8px 0 8px 16px;
  border-bottom: none;
}
.drawer-submenu a:hover { color: var(--green-deep); padding-left: 20px; }

.drawer-aluno {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
  color: var(--muted) !important;
}
.drawer-aluno:hover { color: var(--green-deep) !important; padding-left: 8px; }

/* Overlay behind drawer */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 22, 0.5);
  backdrop-filter: blur(4px);
  z-index: 199;
  animation: fadeIn 0.25s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================================
   Hero — Tech variant
   ========================================================================= */

.hero {
  padding-top: clamp(140px, 16vh, 200px);
  padding-bottom: var(--section-py);
  position: relative;
  overflow: hidden;
}

.hero--tech {
  background: linear-gradient(
    180deg,
    #f7fbf9 0%,
    #ecf3f0 40%,
    #e2ece8 100%
  );
  /* Distinct from Sobre section's cream var(--bg) */
}

/* Decorative bg layer — shared wrapper reused by every page hero
   (.bhero-bg blog, .ehero-bg agenda, .aphero-bg aprovados, .phero-bg post) */
.hero-bg, .bhero-bg, .ehero-bg, .aphero-bg, .phero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(14, 84, 79, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 84, 79, 0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 70% at 70% 40%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 40%, black 0%, transparent 75%);
}
.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.hero-bg-orb--a {
  width: 520px;
  height: 520px;
  top: -120px;
  right: -120px;
  background: radial-gradient(circle, rgba(5, 196, 100, 0.45) 0%, transparent 70%);
}
.hero-bg-orb--b {
  width: 460px;
  height: 460px;
  bottom: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(9, 114, 116, 0.35) 0%, transparent 70%);
}

.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
}

.hero-text { display: flex; flex-direction: column; gap: 28px; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.8vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.028em;
  margin: 8px 0 0;
  text-wrap: balance;
  font-weight: 500;
  color: var(--fg);
}
body[data-typo="serif"] .hero-title { font-weight: 400; letter-spacing: -0.02em; }

.hero-title .green { color: var(--green-deep); }
.hero-title .italic {
  font-style: italic;
  font-weight: 300;
  color: var(--green-teal);
  font-family: "Newsreader", serif;
}

.hero-body {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.65;
  color: var(--fg-2);
  max-width: 56ch;
}
.hero-body strong { color: var(--green-deep); font-weight: 600; }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-aside-tech {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  margin-top: clamp(60px, 7vw, 90px);
}
@media (max-width: 720px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--green-deep);
}
body[data-typo="serif"] .stat-num { font-weight: 400; letter-spacing: -0.02em; font-family: "Newsreader", serif; }

.stat-num sup {
  font-size: 0.5em;
  vertical-align: super;
  margin-left: 2px;
  font-style: italic;
  color: var(--green-teal);
  font-family: "Newsreader", serif;
  font-weight: 400;
}

.stat-label {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 10px;
  max-width: 24ch;
  line-height: 1.45;
}

/* =========================================================================
   Classroom mock (tech feature in hero)
   ========================================================================= */

.cmock {
  position: relative;
  width: 100%;
  max-width: 560px;
  transform: translateY(var(--parallax-y, 0)) perspective(2000px) rotateY(-3deg) rotateX(2deg);
  transition: transform 0.6s var(--ease);
  filter:
    drop-shadow(0 30px 60px rgba(14, 84, 79, 0.18))
    drop-shadow(0 0 80px rgba(5, 196, 100, 0.15));
  animation: floaty 8s ease-in-out infinite;
}
.cmock:hover { transform: translateY(var(--parallax-y, 0)) perspective(2000px) rotateY(-1deg) rotateX(1deg) scale(1.01); }

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -8px; }
}

@media (prefers-reduced-motion: reduce) {
  .cmock { animation: none; transform: none; }
}

.cmock-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  z-index: -1;
}
.cmock-glow--a {
  width: 280px;
  height: 280px;
  top: -40px;
  right: -60px;
  background: radial-gradient(circle, rgba(5, 196, 100, 0.5), transparent 65%);
}
.cmock-glow--b {
  width: 220px;
  height: 220px;
  bottom: -40px;
  left: -40px;
  background: radial-gradient(circle, rgba(9, 114, 116, 0.45), transparent 65%);
}

.cmock-window {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(20, 32, 29, 0.08);
  overflow: hidden;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 24px 60px -20px rgba(14, 84, 79, 0.25);
}

/* Window chrome */
.cmock-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f5f5f0;
  border-bottom: 1px solid #ececdf;
}
.cmock-dots { display: flex; gap: 6px; }
.cmock-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d6d3c4;
}
.cmock-dots span:nth-child(1) { background: #f57267; }
.cmock-dots span:nth-child(2) { background: #f5be4d; }
.cmock-dots span:nth-child(3) { background: #5bc66a; }
.cmock-url {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #5e6a66;
  background: white;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #e5e2d8;
}
.cmock-url::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 8px rgba(5, 196, 100, 0.6);
}
.cmock-secure {
  font-size: 10px;
  color: var(--green-deep);
  background: rgba(5, 196, 100, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* App bar inside window */
.cmock-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: white;
  border-bottom: 1px solid #f1efe7;
}
.cmock-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--green-deep);
  white-space: nowrap;
}
.cmock-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--green-deep), var(--green-teal));
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px -2px rgba(14, 84, 79, 0.4);
}
.cmock-pills {
  display: flex;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 11px;
}
.cmock-pill {
  padding: 5px 10px;
  border-radius: 999px;
  color: #5e6a66;
  white-space: nowrap;
}
.cmock-pill.is-active {
  background: rgba(14, 84, 79, 0.08);
  color: var(--green-deep);
  font-weight: 500;
}
.cmock-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5be4d, #e07a3e);
  color: white;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

@media (max-width: 540px) {
  .cmock-pills { display: none; }
}

/* Featured assignment card */
.cmock-feature {
  margin: 18px 18px 14px;
  padding: 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-deep) 0%, #0c3e3a 100%);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.cmock-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(5, 196, 100, 0.25), transparent 50%),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, 0.04) 18px 19px);
  pointer-events: none;
}
.cmock-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.cmock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 4px rgba(5, 196, 100, 0.2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(5, 196, 100, 0.2); }
  50%      { box-shadow: 0 0 0 8px rgba(5, 196, 100, 0.05); }
}
.cmock-feature-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
  line-height: 1.15;
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  max-width: 22ch;
}
.cmock-meta {
  display: flex;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.cmock-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cmock-status {
  color: var(--green-bright) !important;
}
.cmock-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 200px;
}
.cmock-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green-bright), #2eda82);
  border-radius: 2px;
  animation: progress 2s var(--ease) 0.4s both;
}
@keyframes progress {
  from { width: 0 !important; }
}
.cmock-feature-cta {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  align-self: flex-start;
}

/* Class tiles grid */
.cmock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 18px 14px;
}
.cmock-tile {
  background: #fbfaf5;
  border: 1px solid #ececdf;
  border-radius: 10px;
  padding: 14px;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.cmock-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--tile-c), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.cmock-tile.is-hover {
  border-color: var(--tile-c);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(14, 84, 79, 0.15);
}
.cmock-tile.is-hover::before { opacity: 0.06; }
.cmock-tile-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.cmock-tile-ic {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--tile-c);
  color: white;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cmock-tile-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--tile-c);
  color: var(--text-inverse);
  padding: 2px 6px;
  border-radius: 4px;
}
.cmock-tile-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--fg);
  position: relative;
  z-index: 1;
}
.cmock-tile-meta {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  position: relative;
  z-index: 1;
}
.cmock-tile-dots {
  display: flex;
  gap: 4px;
  margin-top: 14px;
}
.cmock-tile-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
}
.cmock-tile-dots span:first-child { background: var(--tile-c); }

/* Toast notification at bottom */
.cmock-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 18px 18px;
  padding: 10px 14px;
  background: #fbfaf5;
  border: 1px solid #ececdf;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--fg-2);
}
.cmock-toast-ic {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-bright);
  color: var(--text-inverse);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cmock-toast-time { margin-left: auto; color: var(--muted); font-family: var(--font-mono); font-size: 10px; }

/* Floating chip (app du Colégio) */
.cmock-chip {
  position: absolute;
  background: white;
  border: 1px solid rgba(20, 32, 29, 0.08);
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: 0 16px 36px -12px rgba(14, 84, 79, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  z-index: 2;
  animation: chipFloat 6s ease-in-out infinite;
}
@keyframes chipFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}
.cmock-chip--app {
  bottom: -20px;
  right: -40px;
}
@media (max-width: 1080px) {
  .cmock-chip--app { right: 0; }
}
.cmock-chip-ic {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green-deep), var(--green-bright));
  color: white;
  display: grid;
  place-items: center;
}
.cmock-chip-label { font-size: 12px; font-weight: 600; color: var(--fg); }
.cmock-chip-sub { font-size: 11px; color: var(--green-teal); }

/* =========================================================================
   Placeholder photo
   ========================================================================= */

.ph {
  position: relative;
  background: linear-gradient(135deg, var(--green-paler) 0%, var(--green-pale) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  color: var(--green-deep);
}

.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 22px,
    rgba(14, 84, 79, 0.045) 22px 23px
  );
  z-index: 0;
}

.ph--img::before { display: none; }
.ph--img { background: var(--green-paler); }

.ph-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 18px 22px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-deep);
  opacity: 0.62;
}

.ph-corner {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 26px;
  height: 26px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  opacity: 0.5;
  z-index: 2;
}
.ph-corner.tl {
  top: 18px;
  left: 22px;
  right: auto;
  border: 0;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
}

/* =========================================================================
   Sobre / Vídeo
   ========================================================================= */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.about-meta {
  position: sticky;
  top: 130px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-body p {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.6;
  color: var(--fg-2);
  margin-bottom: 1em;
  max-width: 56ch;
}

.about-body .pullquote {
  font-family: "Newsreader", serif;
  font-size: clamp(24px, 2.4vw, 36px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.25;
  color: var(--green-deep);
  border-left: 2px solid var(--green-bright);
  padding-left: 24px;
  margin: 32px 0;
  max-width: 24ch;
}

/* Video block */
.video-block {
  margin-top: clamp(60px, 7vw, 100px);
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 8;
  cursor: pointer;
  background: var(--green-deep);
  isolation: isolate;
}
.video-block:hover .play-btn { transform: translate(-50%, -50%) scale(1.06); }

.video-block .ph { border-radius: 0; position: absolute; inset: 0; }
.video-block .ph::before {
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 28px,
    rgba(14, 84, 79, 0.08) 28px 30px
  );
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 40px);
  z-index: 3;
  background: linear-gradient(180deg, rgba(14, 84, 79, 0) 40%, rgba(14, 84, 79, 0.85) 100%);
  color: #ffffff;
  gap: 24px;
}
.video-overlay h3 { color: #ffffff; font-weight: 400; max-width: 18ch; }

.play-btn {
  width: clamp(64px, 8vw, 100px);
  height: clamp(64px, 8vw, 100px);
  border-radius: 50%;
  background: var(--green-bright);
  color: var(--text-inverse);
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  box-shadow: 0 12px 32px -8px rgba(5, 196, 100, 0.6), 0 0 0 0 rgba(5, 196, 100, 0.4);
  animation: playPulse 2.6s ease-in-out infinite;
}
.play-btn::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 18px solid var(--text-inverse);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 6px;
}
.play-btn--sm { width: 64px; height: 64px; }
.play-btn--sm::after { border-left: 14px solid var(--text-inverse); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
@keyframes playPulse {
  0%, 100% { box-shadow: 0 12px 32px -8px rgba(5, 196, 100, 0.6), 0 0 0 0 rgba(5, 196, 100, 0.4); }
  50%      { box-shadow: 0 12px 32px -8px rgba(5, 196, 100, 0.6), 0 0 0 18px rgba(5, 196, 100, 0); }
}

/* =========================================================================
   Diferenciais
   ========================================================================= */

.dif-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}
@media (max-width: 820px) { .dif-head { grid-template-columns: 1fr; } }

.dif-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 1100px) { .dif-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .dif-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .dif-grid { grid-template-columns: 1fr; } }

.dif-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 3vw, 40px) clamp(22px, 2.4vw, 32px);
  position: relative;
  background: var(--bg);
  transition: all 0.45s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 320px;
  overflow: hidden;
}
.dif-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 0;
  background: var(--green-deep);
  transition: height 0.45s var(--ease);
  z-index: 0;
}
.dif-card:hover { color: #ffffff; }
.dif-card:hover::after { height: 100%; }
.dif-card > * { position: relative; z-index: 1; }

.dif-card:hover h3 { color: #ffffff; }
.dif-card:hover .dif-sub { color: var(--green-bright); }
.dif-card:hover .dif-num { color: rgba(255, 255, 255, 0.45); }
.dif-card:hover .dif-cat { color: rgba(255, 255, 255, 0.7); }
.dif-card:hover .dif-body { color: rgba(255, 255, 255, 0.8); }

.dif-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.45s;
}

.dif-card h3 {
  font-size: clamp(22px, 1.7vw, 26px);
  line-height: 1.1;
  margin-bottom: 6px;
  transition: color 0.45s;
}

.dif-sub {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--green-teal);
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0;
  transition: color 0.45s;
}

.dif-cat {
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: var(--green-teal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: auto;
  transition: color 0.45s;
}

.dif-body {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--fg-2);
  transition: color 0.45s;
}

/* =========================================================================
   Matrículas banner — with YouTube thumb
   ========================================================================= */

.matricula {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 auto;
  max-width: 1320px;
  background: var(--green-deep);
  color: #ffffff;
  --fg: #ffffff;
  position: relative;
}
@media (max-width: 820px) { .matricula { grid-template-columns: 1fr; } }

.matricula-text {
  padding: clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.matricula-text h2 {
  color: #ffffff;
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.matricula-text h2 em {
  color: var(--green-bright);
  font-style: italic;
  font-weight: 300;
  font-family: "Newsreader", serif;
}

.matricula-text p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 36ch;
}

.matricula-photo {
  position: relative;
  min-height: 380px;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
}
.matricula-photo .ph { border-radius: 0; }
.matricula-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 84, 79, 0.2) 0%, rgba(0, 0, 0, 0.35) 100%);
  z-index: 1;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.matricula-photo:hover::after { opacity: 0.55; }
.matricula-photo img { transition: transform 0.8s var(--ease); }
.matricula-photo:hover img { transform: scale(1.04); }

.matricula-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.matricula-play .play-btn { pointer-events: auto; }

.matricula-play-label {
  position: absolute;
  bottom: 22px;
  left: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

/* ── Matrículas — character head-pop variant ─────────────────────── */
.section--matricula { padding-top: clamp(80px, 9vw, 150px); }

.matricula--char {
  background: transparent;
  overflow: visible;
  align-items: stretch;
}
.matricula--char .matricula-bg {
  position: absolute;
  inset: 0;
  background: var(--green-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 0;
}
.matricula--char .matricula-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(5, 196, 100, 0.22), transparent 48%),
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(255, 255, 255, 0.035) 22px 23px);
  pointer-events: none;
}
.matricula--char .matricula-text { z-index: 2; }

.matricula-char-wrap {
  position: relative;
  z-index: 2;
  align-self: stretch;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}
.matricula-char-glow {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 86%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(5, 196, 100, 0.5) 0%, transparent 62%);
  filter: blur(46px);
  z-index: 0;
  opacity: 0.85;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  animation: charpulse 5s ease-in-out infinite;
}
@keyframes charpulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}
.matricula-char {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: calc(100% + 84px);
  width: auto;
  max-width: none;
  max-height: none;
  z-index: 2;
  filter: drop-shadow(0 26px 36px rgba(0, 0, 0, 0.4));
  transition: scale 0.5s var(--ease), rotate 0.5s var(--ease), filter 0.5s var(--ease);
  animation: charfloat 6.5s var(--ease) infinite;
  transform-origin: bottom center;
  pointer-events: auto;
  cursor: pointer;
}
@keyframes charfloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
.matricula-char-wrap:hover .matricula-char {
  scale: 1.03;
  rotate: -1deg;
  filter: drop-shadow(0 34px 44px rgba(0, 0, 0, 0.45)) saturate(1.05);
}
.matricula-char-wrap:hover .matricula-char-glow { opacity: 1; transform: translateX(-50%) scale(1.14); }

@media (max-width: 820px) {
  .matricula-char-wrap { min-height: 360px; padding-top: 30px; }
  .matricula-char { height: calc(100% + 60px); }
}

@media (prefers-reduced-motion: reduce) {
  .matricula-char, .matricula-char-glow { animation: none; }
}

/* ── Campaign video block (Sobre) — label ────────────────────────── */
.video-block--campanha .ph { border-radius: 0; position: absolute; inset: 0; }
.video-block-label {
  position: absolute;
  bottom: 22px;
  left: 22px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.34);
  padding: 7px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.video-block--campanha::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(14, 84, 79, 0) 45%, rgba(7, 34, 30, 0.5) 100%);
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.video-block--campanha:hover::after { opacity: 0.7; }
.video-block--campanha img { transition: transform 0.8s var(--ease); }
.video-block--campanha:hover img { transform: scale(1.04); }

.matricula-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* =========================================================================
   Níveis de Ensino
   ========================================================================= */

.niveis-head { margin-bottom: clamp(40px, 5vw, 72px); }

.niveis-list { border-top: 1px solid var(--line-strong); }

.nivel {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr 200px;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(28px, 3vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  position: relative;
  scroll-margin-top: 120px;
}
@media (max-width: 900px) {
  .nivel { grid-template-columns: 60px 1fr; }
  .nivel-desc, .nivel-link { grid-column: 2; }
}
.nivel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--green-bright);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.nivel:hover { padding-left: 20px; }
.nivel:hover::before { transform: scaleY(1); }
.nivel:hover .nivel-title { color: var(--green-deep); }
.nivel:hover .nivel-link { background: var(--green-deep); color: #ffffff; }

.nivel-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green-teal);
  letter-spacing: 0.1em;
  padding-top: 8px;
}

.nivel-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--fg);
  transition: color 0.3s;
  font-weight: 500;
}
body[data-typo="serif"] .nivel-title { font-weight: 400; letter-spacing: -0.015em; }
.nivel-title small {
  display: block;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 8px;
  text-transform: uppercase;
  font-weight: 400;
}

.nivel-desc {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--fg-2);
  padding-top: 10px;
}

.nivel-link {
  align-self: center;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--green-deep);
  white-space: nowrap;
  transition: all 0.3s var(--ease);
}

/* =========================================================================
   Agenda
   ========================================================================= */

.agenda-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .agenda-grid { grid-template-columns: 1fr; } }

.agenda-grid > div { display: flex; flex-direction: column; }

.evento {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: padding-left 0.3s var(--ease);
}
.evento:hover { padding-left: 12px; }
.evento:first-child { padding-top: 4px; }
.evento:last-child { border-bottom: 0; }

.evento-date {
  font-family: var(--font-display);
  text-align: center;
  line-height: 1;
  padding: 4px 0;
  border-right: 1px solid var(--line);
}
.evento-date .day {
  display: block;
  font-size: 36px;
  font-weight: 500;
  color: var(--green-deep);
  letter-spacing: -0.025em;
}
body[data-typo="serif"] .evento-date .day { font-weight: 400; letter-spacing: -0.02em; font-family: "Newsreader", serif; }
.evento-date .mon {
  display: block;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-teal);
  margin-top: 6px;
}

.evento-info h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 4px;
  color: var(--fg);
  letter-spacing: -0.015em;
}
body[data-typo="serif"] .evento-info h4 { font-weight: 400; letter-spacing: -0.01em; }
.evento-info .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.evento-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-deep);
  align-self: center;
}

/* Camera button — view event photo gallery */
.evento-cam {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: #ffffff;
  border: 1px solid var(--green-deep);
  padding: 9px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
}
.evento-cam svg { transition: transform 0.25s var(--ease); }
.evento-cam:hover {
  background: var(--green-deep);
  color: #ffffff;
  border-color: var(--green-deep);
  transform: translateY(-1px);
}
.evento-cam:hover svg { transform: scale(1.08); }
.evento:hover .evento-cam { background: var(--green-pale); }
.evento:hover .evento-cam:hover { background: var(--green-deep); }

.agenda-gallery {
  position: sticky;
  top: 130px;
}
.agenda-gallery .ph {
  position: relative;
  overflow: hidden;
}
.agenda-gallery .ph img {
  filter: grayscale(1) contrast(1.02);
  transition: transform 0.8s var(--ease), filter 0.6s var(--ease);
}
.agenda-gallery:hover .ph img { transform: scale(1.03); filter: grayscale(0) contrast(1); }

/* =========================================================================
   Oficinas — carrossel
   ========================================================================= */

.oficinas { overflow: hidden; }

.oficinas-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
@media (max-width: 820px) { .oficinas-head { grid-template-columns: 1fr; } }

.carousel-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}
.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.25s var(--ease);
}
.carousel-btn:hover {
  background: var(--green-deep);
  color: #ffffff;
  border-color: var(--green-deep);
  transform: translateY(-1px);
}

.oficinas-track {
  display: flex;
  gap: var(--gap);
  transition: transform 0.6s var(--ease);
  will-change: transform;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}
.oficinas-track:active { cursor: grabbing; }

.oficina-card {
  flex: 0 0 calc((100% - var(--gap) * 3) / 4);
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}
.oficina-card .ph img { -webkit-user-drag: none; }
@media (max-width: 1100px) { .oficina-card { flex-basis: calc((100% - var(--gap) * 2) / 3); } }
@media (max-width: 820px)  { .oficina-card { flex-basis: calc((100% - var(--gap)) / 2); } }
@media (max-width: 540px)  { .oficina-card { flex-basis: 80%; } }

.oficina-card .ph {
  position: relative;
  overflow: hidden;
}
.oficina-card .ph img {
  filter: grayscale(1) contrast(1.02);
  transition: transform 0.7s var(--ease), filter 0.6s var(--ease);
}
.oficina-card:hover .ph img { transform: scale(1.06); filter: grayscale(0) contrast(1); }
.oficina-card:hover .oficina-title { color: var(--green-deep); }

.oficina-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.oficina-title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.018em;
  transition: color 0.3s;
}
body[data-typo="serif"] .oficina-title { font-weight: 500; letter-spacing: -0.012em; }

.oficina-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.oficina-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* =========================================================================
   Depoimentos — grayscale + video lightbox
   ========================================================================= */

.depo { position: relative; }

.depo-stage {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
@media (max-width: 900px) { .depo-stage { grid-template-columns: 1fr; } }

.depo-photo {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
}
.depo-photo .ph {
  position: relative;
  overflow: hidden;
}
.depo-photo--video .ph img {
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.6s var(--ease), transform 0.7s var(--ease);
}
.depo-photo--video:hover .ph img,
.depo-photo--video:focus-visible .ph img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.03);
}
.depo-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.depo-photo:hover::after { opacity: 0.7; }

.depo-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.depo-play .play-btn { pointer-events: auto; }
.depo-photo:hover .play-btn { transform: translate(-50%, -50%) scale(1.06); }

.depo-photo-cap {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.depo-content { display: flex; flex-direction: column; gap: 32px; }

.depo-quote {
  font-family: "Newsreader", serif;
  font-weight: 300;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.depo-quote::before {
  content: "“";
  font-size: 1.2em;
  color: var(--green-bright);
  line-height: 0;
  vertical-align: -0.2em;
  margin-right: 6px;
}

.depo-attrib { display: flex; gap: 16px; align-items: center; font-size: 14.5px; }
.depo-attrib .name { font-weight: 500; font-size: 16px; }
.depo-attrib .role { font-size: 14px; }

.depo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* =========================================================================
   Blog
   ========================================================================= */

.blog-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: clamp(40px, 5vw, 72px);
  flex-wrap: wrap;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

.post {
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
}
.post .ph {
  position: relative;
  overflow: hidden;
}
.post .ph img {
  filter: grayscale(1) contrast(1.02);
  transition: transform 0.7s var(--ease), filter 0.6s var(--ease);
}
.post:hover .ph img { transform: scale(1.05); filter: grayscale(0) contrast(1); }
.post:hover .post-title { color: var(--green-deep); }

.post-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-teal);
  margin-top: 4px;
}

.post-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.018em;
  transition: color 0.3s;
}
body[data-typo="serif"] .post-title { font-weight: 500; letter-spacing: -0.012em; }

.post-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 6px;
}

/* =========================================================================
   CTA final
   ========================================================================= */

.cta-final {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 196, 100, 0.18) 0%, transparent 60%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(40px);
  pointer-events: none;
}

.cta-final .container-narrow { position: relative; z-index: 1; }

.cta-final h2 {
  font-size: clamp(40px, 6vw, 84px);
  max-width: 24ch;
  margin: 24px auto;
  line-height: 1.04;
}
.cta-final h2 em {
  color: var(--green-bright);
  font-style: italic;
  font-weight: 300;
  font-family: "Newsreader", serif;
}

.cta-final p {
  max-width: 50ch;
  margin: 0 auto 36px;
  font-size: clamp(16px, 1.2vw, 19px);
  color: rgba(255, 255, 255, 0.78);
}

.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =========================================================================
   Footer — Tinta Noturna
   ========================================================================= */

.gf {
  --foot-bg: #131f1c;
  --foot-bg-grad:
    linear-gradient(168deg, #18272300 0%, #0f1a17 100%),
    radial-gradient(120% 90% at 80% 0%, #1b2d28 0%, #131f1c 60%);
  --foot-fg: rgba(237, 238, 233, 0.78);
  --foot-strong: #ffffff;
  --foot-muted: rgba(237, 238, 233, 0.5);
  --foot-head: #6fe3a6;
  --foot-line: rgba(255, 255, 255, 0.11);
  --foot-accent: var(--green-bright);
  --foot-accent-ink: var(--text-inverse);
  --foot-soc-border: rgba(255, 255, 255, 0.16);
  --foot-soc-fg: rgba(237, 238, 233, 0.82);
  --foot-texture: 1;
  --foot-glow: rgba(5, 196, 100, 0.13);
  --foot-mark: rgba(255, 255, 255, 0.035);

  position: relative;
  isolation: isolate;
  background: var(--foot-bg);
  color: var(--foot-fg);
  padding: clamp(72px, 6.5vw, 104px) 0 32px;
  overflow: hidden;
}
/* gradient wash layer */
.gf-layer {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--foot-bg-grad);
  pointer-events: none;
}
/* radial accent glow — gives the dark theme depth */
.gf-glow {
  position: absolute;
  z-index: -1;
  top: -22%;
  right: -8%;
  width: min(720px, 65vw);
  height: min(720px, 65vw);
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--foot-glow) 0%, transparent 68%);
  pointer-events: none;
}
/* subtle diagonal texture, echoes the header band */
.gf::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--foot-texture);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.045) 0 1px,
    transparent 1px 16px
  );
}
/* hairline accent at the very top edge */
.gf::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--foot-accent) 0%,
    color-mix(in oklch, var(--foot-accent), transparent 60%) 36%,
    transparent 72%);
  opacity: 0.95;
}

/* big editorial watermark */
.gf-watermark {
  position: absolute;
  z-index: -1;
  right: clamp(-40px, -2vw, -10px);
  bottom: clamp(-26px, -2.4vw, -14px);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(120px, 19vw, 320px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--foot-mark);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.gf-container {
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.gf-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 72px);
  padding-bottom: 46px;
  border-bottom: 1px solid var(--foot-line);
}
@media (max-width: 880px) { .gf-grid { grid-template-columns: 1fr 1fr; gap: 44px 32px; } }
@media (max-width: 520px) { .gf-grid { grid-template-columns: 1fr; } }

/* Brand column */
.gf-brand { display: flex; flex-direction: column; max-width: 38ch; }
.gf-logo {
  display: inline-flex;
  width: fit-content;
}
.gf-logo img { height: 90px; display: block; }
.gf-tag {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--foot-muted);
  max-width: 32ch;
}
.gf-contact {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.gf-contact a {
  display: inline-flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--foot-fg);
  transition: color 0.2s, transform 0.25s var(--ease);
  width: fit-content;
}
.gf-contact a svg {
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--foot-accent);
}
.gf-contact a:hover { color: var(--foot-strong); transform: translateX(2px); }

/* Link columns */
.gf-col h5 {
  margin-top: 114px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--foot-head);
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.gf-col h5::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--foot-accent);
  transform: rotate(45deg);
}
.gf-col ul { display: flex; flex-direction: column; gap: 14px; list-style: none; padding-left: 15px; margin: 0; }
.gf-col li a {
  position: relative;
  font-size: 15px;
  color: var(--foot-fg);
  transition: color 0.2s, padding-left 0.25s var(--ease);
}
.gf-col li a::before {
  content: "";
  position: absolute;
  left: -14px; top: 50%;
  width: 6px; height: 1.5px;
  background: var(--foot-accent);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.gf-col li a:hover { color: var(--foot-strong); padding-left: 12px; }
.gf-col li a:hover::before { transform: translateY(-50%) scaleX(1); }
.gf-badge {
  display: inline-block;
  margin-left: 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--foot-accent-ink);
  background: var(--foot-accent);
  padding: 2px 7px;
  border-radius: 100px;
  vertical-align: 1.5px;
}

/* Bottom bar */
.gf-bottom {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.gf-bottom-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.gf-credit {
  font-size: 13px;
  color: var(--foot-muted);
  transition: color 0.2s;
}
.gf-credit:hover { color: var(--foot-fg); }
.gf-sep { width: 1px; height: 16px; background: var(--foot-line); }
.gf-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--foot-muted);
  opacity: 0.85;
}

.gf-socials { display: flex; gap: 10px; }
.gf-socials--mobile { display: none; margin-top: 22px; }
.gf-socials a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--foot-soc-border);
  color: var(--foot-soc-fg);
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.gf-socials a:hover {
  background: var(--foot-accent);
  border-color: var(--foot-accent);
  color: var(--foot-accent-ink);
  transform: translateY(-3px);
}

/* =========================================================================
   Lightbox (YouTube modal)
   ========================================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 24, 22, 0.92);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 60px);
  animation: lbFade 0.35s var(--ease);
}
@keyframes lbFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-stage {
  position: relative;
  width: min(100%, 1180px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: lbStage 0.45s var(--ease);
}
@keyframes lbStage {
  from { transform: translateY(20px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.lightbox-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 80px -20px rgba(0, 0, 0, 0.5),
    0 0 120px -20px rgba(5, 196, 100, 0.3);
}
.lightbox-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox-stage--image {
  align-items: center;
}

.lightbox-frame--image {
  width: min(640px, 100%);
  max-width: 100%;
  max-height: 80vh;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 80px -20px rgba(0, 0, 0, 0.5),
    0 0 120px -20px rgba(5, 196, 100, 0.3);
}
img.lightbox-frame--image {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-cap {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.lightbox-close {
  position: absolute;
  top: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s var(--ease);
  z-index: 10;
  backdrop-filter: blur(10px);
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(90deg);
}

/* Depoimentos — "Ver todos" link hover */
.depo-all-link {
  position: relative;
  transition: opacity 0.25s var(--ease), letter-spacing 0.25s var(--ease);
}
.depo-all-link:hover {
  opacity: 1;
  letter-spacing: 0.01em;
  color: var(--green-bright) !important;
  border-bottom-color: var(--green-bright) !important;
}
.depo-all-link svg { color: var(--green-bright); transition: transform 0.25s var(--ease); }
.depo-all-link:hover svg { transform: translateX(5px); }

/* =========================================================================
   Reveal on scroll + Parallax
   ========================================================================= */

/* Default: content visible. The reveal hide/show is opt-in via .is-pending,
   which JS only applies when the document is currently visible. This avoids
   content getting stuck behind a paused CSS transition when the iframe is
   backgrounded. */
.reveal { /* visible by default */ }
.reveal.is-pending {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-pending.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal.is-pending { opacity: 1; transform: none; transition: none; }
  [data-parallax] { transform: none !important; }
  * { animation: none !important; transition: none !important; }
}

/* =========================================================================
   Responsive — Mobile & Tablet
   ========================================================================= */

/* Prevent horizontal overflow globally.
   Both use clip (not hidden) to avoid creating a new scroll container that breaks position:sticky. */
html { overflow-x: clip; }
body { overflow-x: clip; }
.oficinas { overflow-x: hidden; }

@media (max-width: 480px) {
  .nav-inner { padding: 12px 0; }
  .nav.is-scrolled .nav-inner { padding: 8px 0; }
  .logo-img { height: 52px !important; }
  .nav.is-scrolled .logo-img { height: 44px !important; }
}

/* ── Sections: reduce vertical padding on mobile ────────────────── */
@media (max-width: 640px) {
  :root { --section-py: clamp(56px, 8vw, 90px); --container-px: 20px; }
  h2 { font-size: 30px !important; }
  .estr-mosaic, .estr-strip { display: none; }
}

/* ── About grid ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-meta { position: static; }
}

/* ── Diferenciais ───────────────────────────────────────────────── */
@media (max-width: 820px) { .dif-head { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .dif-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .dif-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .dif-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .dif-card { min-height: 240px; }
}

/* ── Matrículas ─────────────────────────────────────────────────── */
@media (min-width: 821px) {
  .matricula-char {
    max-width: 100%;
    height: auto;
    max-height: calc(100% + 84px);
  }
}
@media (max-width: 820px) {
  .matricula { grid-template-columns: 1fr; margin: 0; }
  .matricula--char { overflow: hidden; }
  .matricula-char-wrap { min-height: 320px; }
  .matricula-char { height: calc(100% + 40px); }
}
@media (max-width: 640px) {
  .matricula-text { padding: clamp(28px, 5vw, 40px) !important; }
  .matricula-char-wrap { display: none; }
}

/* ── Níveis de Ensino ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .nivel { grid-template-columns: 60px 1fr; }
  .nivel-desc, .nivel-link { grid-column: 2; }
}
@media (max-width: 540px) {
  .nivel { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .nivel-num { display: none; }
  .nivel-desc, .nivel-link { grid-column: 1; }
  .nivel-title { font-size: clamp(22px, 6vw, 30px); }
  .nivel-link { margin-top: 4px; align-self: flex-start; }
}

/* ── Agenda ─────────────────────────────────────────────────────── */
@media (max-width: 900px) { .agenda-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .agenda-gallery--desktop { display: none; }
}
@media (max-width: 540px) {
  .evento { grid-template-columns: 60px 1fr; gap: 16px; }
  .evento-cam { display: none; }
  .evento-cam--has-gallery {
    display: inline-flex;
    grid-column: 2;
    font-size: 10px;
    padding: 5px 10px;
    gap: 5px;
    white-space: nowrap;
    max-width: 140px;
  }
}

/* "Em breve" — desabilitado no desktop */
.evento-cam--soon {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}
.evento:hover .evento-cam--soon {
  background: #ffffff;
  color: var(--green-deep);
  border-color: var(--green-deep);
  transform: none;
}

/* ── Oficinas ───────────────────────────────────────────────────── */
@media (max-width: 820px) { .oficinas-head { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 1100px) { .oficina-card { flex-basis: calc((100% - var(--gap) * 2) / 3); } }
@media (max-width: 820px)  { .oficina-card { flex-basis: calc((100% - var(--gap)) / 2); } }
@media (max-width: 480px)  { .oficina-card { flex-basis: 82%; } }

/* ── Depoimentos ────────────────────────────────────────────────── */
@media (max-width: 900px) { .depo-stage { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .depo-quote { font-size: clamp(20px, 5.5vw, 28px); }
  .depo-nav { flex-direction: column; gap: 16px; }
}

/* ── Blog ───────────────────────────────────────────────────────── */
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .blog-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .blog-head { flex-direction: column; } }

/* ── Hero stats (sections.jsx Hero) ─────────────────────────────── */
@media (max-width: 720px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .stat-num { font-size: 30px; } }

/* ── CTA final ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .cta-final h2 { font-size: clamp(32px, 8vw, 56px); }
}

/* ── Footer ─────────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .gf-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .gf-grid { grid-template-columns: 1fr; }
  .gf-col { display: none; }
  .gf-brand { align-items: center; text-align: center; max-width: 100%; }
  .gf-contact { align-items: stretch; }
  .gf-contact a { display: block; width: 100%; text-align: center; margin: 0; max-width: none; }
  .gf-contact a svg { display: inline-block; vertical-align: middle; margin-top: -2px; margin-right: 7px; }
  .gf-socials--mobile { display: flex; }
  .gf-socials--bottom { display: none !important; }
  .gf-sep, .gf-meta { display: none; }
  .gf-logo { background: transparent !important; padding: 0 !important; border-radius: 0 !important; }
  .gf-marketing { display: none; }
  .gf-bottom-left { justify-content: center; width: 100%; }
  .gf-credit { text-align: center; display: block; }
}

/* ── Video block ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .video-block { aspect-ratio: 16 / 10; }
  .video-overlay { padding: 16px 20px; }
  .video-overlay h3 { font-size: clamp(16px, 4vw, 22px); }
}

/* ── h2 line-height: cap at reasonable size on mobile ────────────── */
@media (max-width: 640px) {
  h2 { line-height: 1.15; }
  .matricula-text h2 { line-height: 1.1; }
}

/* ── Níveis & Agenda headings: fixed desktop sizing only ──────────
   These headings use larger-than-clamp pixel sizes tuned for desktop.
   Above 640px keep the exact tuned values; on mobile fall back to
   .display-lg's responsive clamp() + the line-height rule above
   (otherwise the fixed height/line-height overflow and overlap the
   paragraph below). */
@media (min-width: 641px) {
  .niveis-title { font-size: 62px; height: 216px; line-height: 1; }
  .niveis-title .swash { font-size: 65px; line-height: 1; }
  .agenda-title, .agenda-title .swash { font-size: 63px; }
}
