/* =========================================================
   Colégio Lógica — institutional site
   Visual system: editorial, full-bleed, big type
   ========================================================= */

/* ---------- Site loader ---------- */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--paper, #F6F4EE);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity .8s cubic-bezier(.4,0,.2,1), visibility .8s cubic-bezier(.4,0,.2,1);
}
.site-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.site-loader .logo {
  width: clamp(280px, 38vw, 520px);
  height: auto;
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: loaderLogoIn 1s .15s cubic-bezier(.2,.7,.2,1) forwards;
}
.site-loader .bar {
  width: clamp(280px, 38vw, 520px);
  height: 3px;
  border-radius: 3px;
  background: rgba(0,184,100,.12);
  overflow: hidden;
  position: relative;
}
.site-loader .bar span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #00B864 0%, #00E075 50%, #00B864 100%);
  border-radius: 3px;
  transform-origin: left center;
  transform: scaleX(0);
  animation: loaderFill 1.5s .7s cubic-bezier(.5,0,.2,1) forwards;
  box-shadow: 0 0 18px rgba(0,184,100,.45);
}
.site-loader .label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(15,20,16,.55);
  opacity: 0;
  animation: loaderLabelIn 1s .5s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes loaderLogoIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes loaderLabelIn {
  to { opacity: 1; }
}
@keyframes loaderFill {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

body.is-loading { overflow: hidden; }
body.is-loading .header,
body.is-loading .wa,
body.is-loading .urgency { opacity: 0; transition: opacity .6s ease; }
body:not(.is-loading) .header,
body:not(.is-loading) .wa,
body:not(.is-loading) .urgency { opacity: 1; transition: opacity .6s ease; }

:root {
  --green: #00B864;
  --green-deep: #009655;
  --green-bright: #00E075;
  --magenta: #E5097F;
  --orange: #FF8A1E;
  --yellow: #FFC233;
  --ink: #0F1410;
  --ink-soft: #2A302C;
  --paper: #F6F4EE;
  --paper-2: #ECE8DD;
  --line: rgba(15,20,16,0.12);

  --f-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --container: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-pad: clamp(80px, 10vw, 160px);

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: 0; cursor: pointer; color: inherit; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
}
.h-display {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0;
}
.h-xl { font-size: clamp(48px, 8vw, 132px); }
.h-l  { font-size: clamp(40px, 5.5vw, 88px); }
.h-m  { font-size: clamp(32px, 3.5vw, 56px); }
.h-s  { font-size: clamp(22px, 2vw, 32px); line-height: 1.1; }
.lede { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.5; color: var(--ink-soft); max-width: 56ch; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
section { position: relative; }
.section-pad { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }

/* ---------- Urgency strip ---------- */
.urgency {
  background: var(--orange);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
}
.urgency .marquee {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  animation: marquee 24s linear infinite;
}
.urgency .marquee span { display: inline-flex; align-items: center; gap: 14px; }
.urgency .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 18px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), padding .3s var(--ease);
}
.header.is-scrolled {
  background: rgba(246,244,238,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 44px; width: auto; }
.brand .brand-text {
  display: none;
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--green);
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-self: center;
  font-size: 14.5px;
  font-weight: 500;
}
.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink);
}
.nav a::after {
  content:"";
  position: absolute; left:0; bottom: 0;
  height: 2px; width: 0;
  background: var(--green);
  transition: width .35s var(--ease);
}
.nav a:hover::after { width: 100%; }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.menu-btn {
  display: none;
  width: auto; height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  border: 1.5px solid var(--green);
  align-items: center; justify-content: center;
  gap: 10px;
  align-self: center;
}
.menu-btn .bars {
  width: 18px; height: 1.5px; background: currentColor; position: relative; display: block; flex-shrink: 0;
}
.menu-btn .bars::before, .menu-btn .bars::after {
  content:""; position:absolute; left:0; width:100%; height: 1.5px; background: currentColor;
}
.menu-btn .bars::before { top: -6px; }
.menu-btn .bars::after { top: 6px; }
.menu-btn .menu-label {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  max-width: 80px;
  opacity: 1;
  overflow: hidden;
  white-space: nowrap;
}
/* Estado compacto: círculo vazado com 3 linhas verdes e borda verde.
   Usamos @keyframes (não transition) porque rAFs sempre ativos na página
   re-armam transições a cada frame e elas nunca completam. */
.menu-btn.is-compact {
  width: 44px;
  padding: 0;
  gap: 0;
  background: transparent;
  color: var(--green);
  border-color: var(--green);
  animation: menuShrink .5s var(--ease) both;
}
.menu-btn.is-compact .menu-label {
  max-width: 0;
  opacity: 0;
  animation: menuLabelCollapse .45s var(--ease) both;
}
@keyframes menuShrink {
  from { background-color: var(--green); color: #fff; border-color: var(--green); }
  to { background-color: transparent; color: var(--green); border-color: var(--green); }
}
@keyframes menuLabelCollapse {
  from { max-width: 80px; opacity: 1; }
  to { max-width: 0; opacity: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--green);
  --fg: white;
  --bd: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 14px 24px;
  background: var(--bg);
  color: var(--fg);
  border: 1.5px solid var(--bd);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: var(--green-deep); border-color: var(--green-deep); }
.btn.outline { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn.outline:hover { --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); }
.btn.ghost { --bg: transparent; --fg: var(--ink); --bd: transparent; padding-left: 0; padding-right: 8px; }
.btn.ghost:hover { transform: translateX(4px); background: transparent; border-color: transparent; }
.btn.on-dark { --fg: var(--green); --bg: white; --bd: white; }
.btn.on-dark:hover { background: var(--paper); border-color: var(--paper); }
.btn .arrow {
  display: inline-flex; width: 22px; height: 22px;
  border-radius: 50%; background: rgba(255,255,255,.18);
  align-items:center; justify-content:center;
  transition: transform .25s var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }
.btn.outline .arrow, .btn.ghost .arrow { background: rgba(15,20,16,.08); }
.btn.outline:hover .arrow { background: rgba(255,255,255,.18); }
.btn.on-dark .arrow { background: rgba(0,184,100,.15); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: 150px;
  padding-bottom: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: -2;
  background: radial-gradient(120% 80% at 80% 10%, rgba(0,184,100,.10), transparent 60%),
              radial-gradient(80% 60% at 0% 100%, rgba(229,9,127,.06), transparent 70%),
              var(--paper);
}
#woven-canvas-host {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: multiply;
}
#woven-canvas-host canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.hero-img {
  position: absolute;
  right: var(--gutter);
  top: 110px;
  width: clamp(280px, 38vw, 520px);
  height: clamp(380px, 56vh, 640px);
  border-radius: 24px;
  overflow: hidden;
  z-index: 0;
}
.hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--paper) 0%,
    rgba(246,244,238,0.96) 10%,
    rgba(246,244,238,0.75) 24%,
    rgba(246,244,238,0.35) 40%,
    transparent 60%);
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
}
.hero-img .ph { height: 100%; }
.hero-img .slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
  pointer-events: none;
}
.hero-img .slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-img .slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-img .dots {
  position: absolute;
  right: 18px; bottom: 18px;
  z-index: 5;
  display: flex; gap: 6px;
}
.hero-img .dots button {
  width: 24px; height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.45);
  transition: background .3s var(--ease), width .3s var(--ease);
  border: 0; padding: 0;
  cursor: pointer;
}
.hero-img .dots button:hover { background: rgba(255,255,255,.7); }
.hero-img .dots button.active {
  background: white; width: 36px;
}
.hero-meta {
  z-index: 2;
  color: var(--ink-soft);
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}
.hero-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(36px, 4.5vw, 76px);
  align-items: center;
  z-index: 1;
}
.hero-copy { min-width: 0; }

/* ---------- Hero collage (5-image mosaic) ---------- */
.hero-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "a b"
    "a c"
    "d e";
  grid-template-rows: repeat(3, 1fr);
  gap: 12px;
  height: clamp(420px, 60vh, 600px);
}
.hero-collage figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--paper-2);
  box-shadow: 0 14px 36px rgba(15,20,16,.10);
  animation: hcFloat 7s var(--ease) infinite;
}
.hero-collage figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease);
}
.hero-collage figure:hover img { transform: scale(1.06); }
.hero-collage .hc-a { grid-area: a; animation-delay: 0s; }
.hero-collage .hc-b { grid-area: b; animation-delay: .9s; }
.hero-collage .hc-c { grid-area: c; animation-delay: 1.6s; }
.hero-collage .hc-d { grid-area: d; animation-delay: 1.2s; }
.hero-collage .hc-e { grid-area: e; animation-delay: .4s; }
.hero-collage .hc-badge {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-6deg);
  z-index: 3;
  background: var(--green);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0,184,100,.32);
  white-space: nowrap;
  pointer-events: none;
}
@keyframes hcFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
body.no-motion .hero-collage figure { animation: none; }
.hero h1 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.03em;
  font-size: clamp(42px, 6.2vw, 104px);
  margin: 0;
  max-width: 15ch;
  text-shadow: 0 0 32px rgba(246,244,238,0.95), 0 0 12px rgba(246,244,238,0.85);
}
.hero h1 .accent {
  color: var(--green);
  font-style: italic;
  font-weight: 700;
}
.hero h1 .underline {
  position: relative;
  display: inline-block;
}
.hero h1 .underline::after {
  content:"";
  position: absolute; left: -2%; right: -2%; bottom: 6%;
  height: 12%;
  background: var(--yellow);
  z-index: -1;
  border-radius: 2px;
  transform: skewX(-6deg);
}
.hero-foot {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}
.hero-sub {
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--ink-soft);
  max-width: 48ch;
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-scroll .line {
  width: 50px; height: 1px; background: currentColor;
  position: relative; overflow: hidden;
}
.hero-scroll .line::after {
  content:""; position: absolute; inset:0; background: var(--ink);
  transform-origin: left;
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleX(0); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: left; }
  51% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* ---------- Logos / counters strip ---------- */
.counters {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: var(--paper);
}
.counter .num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 4vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.counter .num .plus { color: var(--green); }
.counter .lbl {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ---------- Section heading ---------- */
.s-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 64px;
}
.s-head .col-r { padding-bottom: 6px; }

/* ---------- Diferenciais ---------- */
.diffs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.diff {
  background: var(--paper);
  padding: 56px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: background .3s var(--ease);
}
.diff:hover { background: var(--paper-2); }
.diff .num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}
.diff .ico {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--green-bright);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
  transition: transform .4s var(--ease), background .3s var(--ease);
}
.diff:nth-child(2) .ico { background: var(--magenta); color: white; }
.diff:nth-child(3) .ico { background: var(--orange); color: var(--ink); }
.diff:hover .ico { transform: rotate(-4deg) scale(1.05); }
.diff h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2vw, 32px); margin: 0; line-height: 1.05; letter-spacing: -0.02em; }
.diff p { margin: 0; color: var(--ink-soft); max-width: 36ch; }

/* ---------- Sobre split ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-img {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
}
.about-img .badge {
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  transform: rotate(-8deg);
  box-shadow: 0 18px 40px rgba(0,184,100,.25);
}
.about-img .badge .y { font-size: 36px; }
.about-img .badge .t { font-size: 11px; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: 0.14em; margin-top: 6px; opacity: .85; }
.about-text p { font-size: 18px; line-height: 1.55; color: var(--ink-soft); max-width: 52ch; }
.about-text p + p { margin-top: 18px; }
.bullets {
  list-style: none;
  padding: 0;
  margin: 32px 0 36px;
  display: grid;
  gap: 14px;
}
.bullets li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 12px;
  font-weight: 500;
  font-size: 16.5px;
}
.bullets .check {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Níveis ---------- */
.levels {
  display: grid;
  gap: 18px;
}
.level {
  display: grid;
  grid-template-columns: 280px 1fr auto auto;
  align-items: center;
  gap: 32px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  transition: background .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
  cursor: pointer;
}
.level:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }
.level:hover .level-tag { background: var(--green); color: white; }
.level:hover .level-arrow { background: var(--green); color: white; }
.level-img {
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
}
.level-body { display: grid; gap: 8px; }
.level-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
  width: max-content;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.level h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 40px);
  margin: 0;
  line-height: 1;
  letter-spacing: -0.02em;
}
.level p { margin: 6px 0 0; max-width: 50ch; opacity: .8; font-size: 15.5px; }
.level-meta {
  display: grid;
  gap: 4px;
  text-align: right;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: .7;
}
.level-meta strong { font-weight: 600; font-family: var(--f-display); font-size: 26px; letter-spacing: -0.02em; text-transform: none; opacity: 1; }
.level-arrow {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.level:hover .level-arrow { transform: rotate(-45deg); }

/* ---------- Atividades ---------- */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.act {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  isolation: isolate;
  cursor: pointer;
}
.act .ph { height: 100%; transition: transform .8s var(--ease); }
.act > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
  z-index: 1;
}
.act:hover .ph { transform: scale(1.06); }
.act:hover > img { transform: scale(1.06); }
.act .label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: white;
  z-index: 2;
  background: linear-gradient(180deg, transparent 50%, rgba(15,20,16,.78) 100%);
  transition: background .35s var(--ease);
}
.act:hover .label {
  background: linear-gradient(180deg, rgba(15,20,16,.25) 0%, rgba(15,20,16,.85) 100%);
}
.act .label .tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 6px;
}
.act .label h4 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(22px, 1.8vw, 30px);
  margin: 0;
  line-height: 1;
  letter-spacing: -0.02em;
}
.act .label .desc {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height .4s var(--ease), opacity .35s var(--ease), margin-top .3s var(--ease);
  font-size: 14px;
  color: rgba(255,255,255,.85);
  max-width: 32ch;
}
.act:hover .label .desc { max-height: 80px; opacity: 1; margin-top: 10px; }
.act.big { grid-column: span 3; grid-row: span 2; }
.act.med { grid-column: span 3; }
.act.sm { grid-column: span 2; }

/* ---------- Infraestrutura horizontal scroll ---------- */
.infra-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px var(--gutter) 32px;
  margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: thin;
}
.infra-rail::-webkit-scrollbar { height: 6px; }
.infra-rail::-webkit-scrollbar-thumb { background: rgba(15,20,16,.2); border-radius: 999px; }
.infra-card {
  flex: 0 0 clamp(280px, 32vw, 460px);
  scroll-snap-align: start;
  border-radius: 22px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  position: relative;
}
.infra-card .ph { aspect-ratio: 4/3; }
.infra-card .meta {
  padding: 20px 22px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}
.infra-card .meta h4 {
  font-family: var(--f-display);
  font-weight: 700;
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.infra-card .meta .num { font-family: var(--f-mono); font-size: 11px; opacity: .6; }

.rail-controls {
  display: flex;
  gap: 10px;
  justify-self: end;
  align-self: end;
}
.rail-controls button {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.rail-controls button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Depoimentos ---------- */
.testimonials {
  background: var(--ink);
  color: var(--paper);
  border-radius: 32px;
  padding: clamp(48px, 6vw, 96px);
  position: relative;
  overflow: hidden;
}
.testimonials .quote-mark {
  position: absolute;
  top: 32px; right: 56px;
  font-family: var(--f-display);
  font-size: clamp(200px, 24vw, 360px);
  line-height: .7;
  color: var(--green);
  opacity: .14;
  pointer-events: none;
  user-select: none;
}
.t-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 4px;
  position: relative;
  min-height: 260px;
}
.t-slide {
  display: none;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 24ch;
}
.t-slide.active { display: block; grid-column: 1 / span 2; }
.t-slide blockquote { margin: 0; }
.t-slide .author {
  display: flex; align-items: center; gap: 14px;
  margin-top: 32px;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 15px;
}
.t-slide .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--magenta));
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 700; color: white; font-size: 18px;
  letter-spacing: -0.02em;
}
.t-slide .name { color: var(--paper); font-weight: 600; }
.t-slide .role { color: rgba(246,244,238,.6); font-size: 13px; margin-top: 2px; }
.t-side {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid rgba(246,244,238,.15);
  padding-left: 28px;
  margin-left: 18px;
}
.t-pager {
  display: flex; gap: 10px;
}
.t-dot {
  width: 36px; height: 4px; border-radius: 2px;
  background: rgba(246,244,238,.18);
  transition: background .3s var(--ease), width .3s var(--ease);
}
.t-dot.active { background: var(--green-bright); width: 56px; }
.t-counter {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246,244,238,.5);
}
.t-counter b { color: var(--paper); font-weight: 600; }
.t-controls { display: flex; gap: 10px; }
.t-controls button {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(246,244,238,.2);
  color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.t-controls button:hover { background: var(--green); border-color: var(--green); color: white; }

/* ---------- CTA Matrículas ---------- */
.cta-band {
  background: var(--green);
  color: white;
  border-radius: 32px;
  padding: clamp(56px, 7vw, 120px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::after {
  content:"2026";
  position: absolute;
  right: -3vw; bottom: -6vw;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(280px, 36vw, 520px);
  line-height: .8;
  color: rgba(255,255,255,.13);
  letter-spacing: -0.05em;
  pointer-events: none;
}
.cta-band .lead {
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: .85;
}
.cta-band h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(48px, 6.5vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 22px 0 28px;
  max-width: 16ch;
}
.cta-band .sub {
  max-width: 50ch;
  font-size: 18px;
  opacity: .92;
  margin-bottom: 36px;
}
.cta-band .ctas { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 2;}

/* ---------- Localização ---------- */
.locate {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
}
.map-wrap {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 480px;
  background: #DDE6DC;
}
.map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,20,16,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,20,16,.06) 1px, transparent 1px),
    radial-gradient(circle at 30% 40%, rgba(0,184,100,.10), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(0,184,100,.06), transparent 50%);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
}
.map-roads::before, .map-roads::after {
  content:""; position: absolute; background: rgba(15,20,16,.16);
}
.map-roads::before { top: 38%; left: -10%; right: -10%; height: 4px; transform: rotate(-3deg); }
.map-roads::after { top: 0; bottom: 0; left: 56%; width: 4px; transform: rotate(8deg); }
.map-pin {
  position: absolute;
  top: 38%; left: 48%;
  width: 64px; height: 64px;
  border-radius: 50% 50% 50% 4px;
  background: var(--green);
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 12px 30px rgba(0,184,100,.4);
  display: flex; align-items: center; justify-content: center;
  animation: pinBounce 2.4s ease-in-out infinite;
}
.map-pin::after {
  content:""; width: 22px; height: 22px; border-radius: 50%; background: white;
  transform: rotate(45deg);
}
@keyframes pinBounce {
  0%, 100% { transform: translate(-50%, -100%) rotate(-45deg); }
  50% { transform: translate(-50%, -110%) rotate(-45deg); }
}
.map-label {
  position: absolute;
  bottom: 24px; left: 24px;
  padding: 12px 16px;
  background: var(--paper);
  border-radius: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  z-index: 2;
  pointer-events: none;
}
.map-label b { display: block; font-family: var(--f-display); font-size: 16px; letter-spacing: -0.01em; text-transform: none; margin-bottom: 2px; }
.locate-info { padding: 20px 0; }
.locate-info h2 { margin-top: 12px; }
.locate-list {
  display: grid; gap: 18px;
  margin: 36px 0 32px;
}
.locate-list .row { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); align-items: baseline; }
.locate-list .row:last-child { border-bottom: 1px solid var(--line); }
.locate-list .row .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.locate-list .row .v { font-size: 17px; font-weight: 500; }
.locate-list .row .v small { display: block; font-weight: 400; color: var(--ink-soft); margin-top: 4px; font-size: 14px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(64px, 8vw, 120px) var(--gutter) 32px;
  position: relative;
  overflow: hidden;
}
.footer-big {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(64px, 12vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  margin-bottom: 80px;
  max-width: 14ch;
}
.footer-big em { color: var(--green-bright); font-style: italic; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  border-top: 1px solid rgba(246,244,238,.12);
  padding-top: 48px;
}
.footer-col h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(246,244,238,.5);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--paper); opacity: .85; transition: opacity .2s, color .2s; }
.footer-col a:hover { opacity: 1; color: var(--green-bright); }
.footer-brand img { height: 56px; width: auto; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer-brand .tag { color: var(--green-bright); font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(246,244,238,.2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .25s, color .25s, border-color .25s;
}
.footer-social a:hover { background: var(--green); border-color: var(--green); color: white; }
.footer-bottom {
  margin-top: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246,244,238,.5);
  border-top: 1px solid rgba(246,244,238,.12);
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- WhatsApp float ---------- */
.wa {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 80;
  background: #25D366;
  color: white;
  border-radius: 999px;
  padding: 12px 20px 12px 14px;
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600;
  font-size: 14.5px;
  box-shadow: 0 14px 32px rgba(37,211,102,.4);
  transition: transform .25s var(--ease);
}
.wa:hover { transform: translateY(-2px) scale(1.02); }
.wa .ico-box {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.18);
  display: inline-flex; align-items: center; justify-content: center;
}
.wa .ping {
  position: absolute;
  width: 100%; height: 100%; border-radius: 999px;
  border: 2px solid #25D366;
  top:0; left:0;
  animation: ping 2.4s ease-out infinite;
  pointer-events:none;
}
@keyframes ping {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ---------- Image placeholders (striped) ---------- */
.ph {
  position: relative;
  width: 100%;
  background:
    repeating-linear-gradient(45deg,
      var(--ph-a, #cfd7d0) 0 14px,
      var(--ph-b, #c2cdc4) 14px 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ph::before {
  content: attr(data-label);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(15,20,16,.7);
  background: var(--paper);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 0 rgba(15,20,16,.06);
  z-index: 2;
}
.ph.green { --ph-a: #9DD8B3; --ph-b: #82CC9F; }
.ph.magenta { --ph-a: #F2A6CB; --ph-b: #E68AB7; }
.ph.orange { --ph-a: #F5C190; --ph-b: #EDA661; }
.ph.dark { --ph-a: #2A302C; --ph-b: #1E2320; }
.ph.dark::before { background: var(--ink-soft); color: rgba(246,244,238,.85); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* ---------- Tweaks panel chrome ---------- */
.tweaks {
  position: fixed;
  right: 22px;
  bottom: 86px;
  z-index: 90;
  width: 280px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.14);
  display: none;
  font-size: 14px;
}
.tweaks.open { display: block; }
.tweaks h6 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 12px;
  font-weight: 500;
  display: flex; align-items: center; justify-content: space-between;
}
.tweaks h6 button { font-size: 18px; line-height: 1; color: var(--ink-soft); }
.tweaks .group { margin-bottom: 16px; }
.tweaks .group:last-child { margin-bottom: 0; }
.tweaks label { font-weight: 600; font-size: 13px; display: block; margin-bottom: 8px; }
.swatches { display: flex; gap: 8px; }
.swatch {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.swatch.active { border-color: var(--ink); transform: scale(1.08); }
.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--paper-2); border-radius: 10px; padding: 3px; gap: 2px;
}
.seg button {
  padding: 8px 4px; font-size: 12px; border-radius: 8px; font-weight: 500;
  font-family: var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase;
}
.seg button.active { background: var(--ink); color: var(--paper); }

/* ---------- Mobile nav drawer ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 96px var(--gutter) 40px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .5s var(--ease), visibility .5s var(--ease);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); visibility: visible; }
.mobile-nav nav { display: flex; flex-direction: column; }
.mobile-nav nav a {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(30px, 9vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  transition: color .2s var(--ease), padding-left .25s var(--ease);
}
.mobile-nav nav a:active,
.mobile-nav nav a:hover { color: var(--green); padding-left: 8px; }
.mobile-nav .btn { margin-top: 28px; align-self: flex-start; }
.mobile-nav-foot {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.mobile-nav-foot a { color: var(--green); font-weight: 500; }
body.nav-open { overflow: hidden; }

/* Hamburger → X animation */
.menu-btn.open .bars { background: transparent; }
.menu-btn.open .bars::before { top: 0; transform: rotate(45deg); }
.menu-btn.open .bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  /* Header — menu à esquerda, logo centralizada (mobile) */
  .header { padding: 12px var(--gutter) !important; height: auto !important; gap: 12px; grid-template-columns: 1fr auto 1fr; align-items: center !important; }
  .header.is-scrolled { padding: 10px var(--gutter) !important; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-cta { grid-column: 1; grid-row: 1; justify-self: start; align-self: center; }
  .brand { grid-column: 2; grid-row: 1; justify-self: center; align-self: center; }
  .header-cta .btn:not(.menu-btn) { display: none; }
  .brand img { height: 38px !important; width: auto !important; }

  /* Hero — mosaico primeiro (tela cheia), texto abaixo */
  .hero {
    min-height: auto;
    padding-top: 92px;
    padding-bottom: 56px;
    justify-content: flex-start;
  }
  .hero-bg { height: 100% !important; }
  #woven-canvas-host { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { order: 2; }
  .hero-collage {
    order: 1;
    height: clamp(380px, 72svh, 640px);
    gap: 10px;
  }
  .hero h1 { max-width: 100%; }
  .hero-meta { margin-bottom: 16px; }
  .hero-foot { gap: 22px; margin-top: 30px; }
  .hero-scroll { display: none; }

  .counters { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .s-head { grid-template-columns: 1fr; gap: 18px; align-items: start; margin-bottom: 40px; }
  .diffs { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-img { aspect-ratio: 4/3; }
  .level { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .level-img { height: 200px; }
  .level-meta { text-align: left; flex-direction: row; display: flex; gap: 8px; align-items: baseline; }
  .level-arrow { display: none; }
  .activities-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .act.big, .act.med, .act.sm { grid-column: span 2; grid-row: auto; }
  .testimonials { padding: 40px 24px; }
  .testimonials .quote-mark { right: 24px; top: 8px; }
  .t-track { grid-template-columns: 1fr; }
  .t-slide.active { grid-column: 1; }
  .t-side { border-left: 0; border-top: 1px solid rgba(246,244,238,.15); padding-left: 0; padding-top: 24px; margin-left: 0; margin-top: 32px; }
  .locate { grid-template-columns: 1fr; }
  .map-wrap { min-height: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(33px, 11vw, 50px); }
  .hero-sub { font-size: 16px; }
  .counters { grid-template-columns: 1fr 1fr; padding: 24px var(--gutter); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-big { font-size: clamp(46px, 16vw, 80px); margin-bottom: 48px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .activities-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .act.big, .act.med, .act.sm { grid-column: span 1; }
  .wa span.label { display: none; }
  .wa { right: 16px; bottom: 16px; padding: 12px; }
  .em-band h2 { font-size: clamp(34px, 9vw, 52px); }
  .em-band::after { font-size: 130px; }
  .cta-band { padding: 44px 28px; }
  .cta-band h2 { font-size: clamp(38px, 11vw, 60px); }
  .cta-band .ctas { flex-direction: column; align-items: stretch; }
  .cta-band .ctas .btn { justify-content: center; }
  .section-pad { padding-top: 64px; padding-bottom: 64px; }
}
