/* ============================================================
   LIPE ACADEMY — Torres Vedras
   Brand: deep purple #602b7a · white · black · Montserrat
   ============================================================ */

:root {
  /* Brand purple scale (built around #602b7a) */
  --purple-950: #2a1136;
  --purple-900: #37164a;
  --purple-800: #48205e;
  --purple-700: #532570;
  --purple:     #602b7a;   /* primary */
  --purple-500: #7a3f97;   /* hover / bright */
  --purple-400: #9a68b3;
  --purple-300: #bd97cf;
  --purple-200: #ddc7e8;
  --purple-100: #eee2f4;
  --purple-050: #f7f2fb;

  /* Neutrals */
  --ink:      #1c1526;     /* near-black text */
  --ink-soft: #574c62;     /* muted text */
  --line:     #ebe3f1;     /* hairline borders */
  --white:    #ffffff;
  --cream:    #faf8fc;     /* faint tint surface */

  --bg:       #ffffff;
  --surface:  #ffffff;

  /* Type */
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --fs-display: clamp(2.35rem, 6.2vw, 4.15rem);
  --fs-h2:      clamp(1.72rem, 4.2vw, 2.7rem);
  --fs-h3:      clamp(1.2rem, 2.4vw, 1.55rem);
  --fs-lead:    clamp(1.04rem, 1.7vw, 1.28rem);
  --fs-body:    clamp(1rem, 1.2vw, 1.06rem);

  /* Rhythm */
  --pad-x: clamp(1.1rem, 4vw, 2rem);
  --sec-y: clamp(3.6rem, 8vw, 7rem);
  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;

  --shadow-sm: 0 2px 10px rgba(60, 20, 90, 0.06);
  --shadow-md: 0 14px 40px rgba(60, 20, 90, 0.12);
  --shadow-lg: 0 26px 70px rgba(45, 15, 70, 0.20);

  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.12; font-weight: 800; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--purple-400); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--purple-200); color: var(--purple-900); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--sec-y); }
.section--tint { background: var(--cream); }
.section--soft { background: var(--purple-050); }
section[id] { scroll-margin-top: calc(var(--nav-h) + 14px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--purple);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--purple-300); border-radius: 2px;
}
.eyebrow--center { justify-content: center; }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); letter-spacing: -0.015em; margin-top: 0.75rem; color: var(--ink); }
.section-head p { font-size: var(--fs-lead); color: var(--ink-soft); margin-top: 1rem; }

.lead { font-size: var(--fs-lead); color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 52px; padding: 0.5rem 1.5rem;
  border-radius: 999px; font-weight: 700; font-size: 1rem; letter-spacing: 0.01em;
  border: 2px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  text-align: center;
}
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: var(--purple); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--purple-500); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost { background: transparent; color: var(--purple); border-color: var(--purple-200); }
.btn--ghost:hover { border-color: var(--purple); background: var(--purple-050); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--purple); }
.btn--white:hover { background: var(--purple-050); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--lg { min-height: 58px; font-size: 1.08rem; padding-inline: 2rem; }

.textlink {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700; color: var(--purple);
  min-height: 44px;
}
.textlink svg { width: 18px; height: 18px; transition: transform .18s ease; }
.textlink:hover svg { transform: translateX(4px); }

/* ---------- Icon chip ---------- */
.iconchip {
  width: 54px; height: 54px; flex: none;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--purple-100); color: var(--purple);
}
.iconchip svg { width: 28px; height: 28px; stroke-width: 1.7; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner {
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand img { height: 48px; width: auto; display: block; }

.nav__menu { display: flex; align-items: center; gap: 0.3rem; }
.nav__menu > a:not(.btn) {
  padding: 0.5rem 0.62rem; border-radius: 999px; font-weight: 600; font-size: 0.84rem; color: var(--ink);
  min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; transition: background .15s ease, color .15s ease;
}
.nav__menu > a:not(.btn):hover,
.nav__menu > a.active:not(.btn) { background: var(--purple-050); color: var(--purple); }
.nav__cta { min-height: 46px; padding: 0.4rem 1.1rem; margin-left: 0.5rem; font-size: 0.95rem; }
.nav__cta--sm { min-height: 40px; padding: 0.2rem 0.9rem; font-size: 0.84rem; }

.nav__toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; align-items: center; justify-content: center; color: var(--purple);
}
.nav__toggle svg { width: 24px; height: 24px; }
.nav__toggle .ic-close { display: none; }
.nav.open .nav__toggle .ic-menu { display: none; }
.nav.open .nav__toggle .ic-close { display: block; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; background:
    radial-gradient(1100px 620px at 88% -10%, var(--purple-100), transparent 60%),
    radial-gradient(760px 520px at -8% 8%, var(--purple-050), transparent 60%);
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding-block: clamp(2.6rem, 6vw, 5rem);
}
.hero__eyebrow { color: var(--purple); }
.hero h1 { font-size: var(--fs-display); letter-spacing: -0.025em; margin: 1rem 0 1.1rem; color: var(--ink); }
.hero h1 .accent { color: var(--purple); }
.hero__sub { font-size: var(--fs-lead); color: var(--ink); font-weight: 600; max-width: 32ch; }
.hero__txt { color: var(--ink-soft); margin-top: 0.9rem; max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero__trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; margin-top: 1.8rem;
  font-size: 0.9rem; font-weight: 600; color: var(--ink-soft);
}
.hero__trust span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__trust svg { width: 18px; height: 18px; color: var(--purple); }

.hero__media { position: relative; }
.hero__media img {
  width: 100%; border-radius: 24px; box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 12; object-fit: cover;
}
.hero__media::after {
  content: ""; position: absolute; inset: auto -18px -18px auto; width: 62%; height: 62%;
  background: var(--purple); border-radius: 24px; z-index: -1; opacity: 0.12;
}
.hero__badge {
  position: absolute; left: -14px; bottom: 26px; background: #fff; border-radius: 16px;
  padding: 0.8rem 1.05rem; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 0.7rem;
  max-width: 82%;
}
.hero__badge .play {
  width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--purple); color: #fff;
  display: grid; place-items: center;
}
.hero__badge .play svg { width: 20px; height: 20px; }
.hero__badge b { display: block; font-size: 0.92rem; color: var(--ink); }
.hero__badge small { color: var(--ink-soft); font-size: 0.78rem; font-weight: 600; }

/* ============================================================
   SOBRE — O que é + pillars
   ============================================================ */
.about__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__txt p { margin-top: 1rem; color: var(--ink-soft); }
.about__txt p.first { margin-top: 1.2rem; }
.about__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; }

.pillars {
  margin-top: clamp(2.4rem, 5vw, 3.8rem);
  background: var(--purple); border-radius: 26px; padding: clamp(1.8rem, 4vw, 3rem);
  color: #fff; box-shadow: var(--shadow-lg);
}
.pillars__head { text-align: center; margin-bottom: 2rem; }
.pillars__head b { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--purple-200); }
.pillars__head h3 { font-size: clamp(1.3rem, 3vw, 1.9rem); margin-top: 0.5rem; }
.pillars__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.pillar { text-align: center; }
.pillar__ic {
  width: 66px; height: 66px; margin: 0 auto 0.9rem; border-radius: 18px;
  background: rgba(255,255,255,0.12); display: grid; place-items: center; color: #fff;
}
.pillar__ic svg { width: 34px; height: 34px; stroke-width: 1.7; }
.pillar__ic img { height: 34px; width: auto; max-width: 46px; object-fit: contain; display: block; }
.pillar h4 { font-size: 1.12rem; letter-spacing: 0.06em; }
.pillar p { margin-top: 0.4rem; font-size: 0.92rem; color: rgba(255,255,255,0.82); font-weight: 500; line-height: 1.5; }

/* ============================================================
   SERVIÇOS — 3 cards
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 3vw, 1.8rem); }
.svc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.svc__img { aspect-ratio: 16/11; overflow: hidden; position: relative; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.svc:hover .svc__img img { transform: scale(1.05); }
.svc__body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.svc__tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple); }
.svc__body h3 { font-size: 1.32rem; margin: 0.5rem 0 0.6rem; letter-spacing: -0.01em; }
.svc__body p { color: var(--ink-soft); font-size: 0.98rem; flex: 1; }
.svc__body .textlink { margin-top: 1rem; }

/* ============================================================
   APOIO ESCOLAR
   ============================================================ */
.apoio__grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.apoio__media { position: sticky; top: calc(var(--nav-h) + 20px); }
.apoio__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 3/4; object-fit: cover; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 1.8rem; }
.feat { display: flex; gap: 0.9rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.15rem; }
.feat .iconchip { width: 44px; height: 44px; border-radius: 11px; margin-bottom: 0; }
.feat .iconchip svg { width: 22px; height: 22px; }
.feat h4 { font-size: 1.02rem; font-weight: 700; }
.feat p { margin-top: 0.35rem; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }

.subjects { margin-top: 2rem; }
.subjects b { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.9rem; }
.pill {
  padding: 0.5rem 0.95rem; border-radius: 999px; background: var(--purple-050);
  border: 1px solid var(--purple-100); color: var(--purple-800); font-weight: 600; font-size: 0.9rem;
}

/* ============================================================
   ACADEMIAS — 6 cards
   ============================================================ */
.acad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.acad {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.acad:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--purple-200); }
.acad .iconchip { margin-bottom: 1rem; }
.acad h3 { font-size: 1.16rem; letter-spacing: -0.01em; }
.acad .kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple-400); display: block; margin-bottom: 0.25rem; }
.acad__age {
  display: inline-block; margin-bottom: 0.5rem; padding: 0.2rem 0.6rem; border-radius: 999px;
  background: var(--purple-100); color: var(--purple-800); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em;
}
.acad p { margin-top: 0.55rem; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.55; }

/* ============================================================
   ROBOTICS — dark band
   ============================================================ */
.robotics { background: linear-gradient(155deg, var(--purple-900), var(--purple-700)); color: #fff; }
.robotics__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.robotics__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }
.robotics .eyebrow { color: var(--purple-200); }
.robotics .eyebrow::before { background: var(--purple-400); }
.robotics h2 { font-size: var(--fs-h2); letter-spacing: -0.015em; margin: 0.9rem 0 1rem; }
.robotics__age {
  display: inline-block; margin-bottom: 0.5rem; padding: 0.2rem 0.6rem; border-radius: 999px;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.22); color: #fff;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em;
}
.robotics p { color: rgba(255,255,255,0.82); }
.robotics p + p { margin-top: 0.9rem; }
.robo-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.robo-tag {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem; border-radius: 999px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.16); font-weight: 600; font-size: 0.9rem;
}
.robo-tag svg { width: 18px; height: 18px; stroke-width: 1.8; }

/* MUN Club / club band (white background variant) */
.club { background: var(--bg); color: var(--ink); }
.club h2 { font-size: var(--fs-h2); letter-spacing: -0.015em; margin: 0.9rem 0 1rem; color: var(--ink); }
.club p { color: var(--ink-soft); }
.club p + p { margin-top: 0.9rem; }
.club .robo-tag { background: var(--purple-050); border-color: var(--purple-100); color: var(--purple-800); }
.club .robo-tag svg { color: var(--purple); }
.mun__age {
  display: inline-block; margin-bottom: 0.5rem; padding: 0.2rem 0.6rem; border-radius: 999px;
  background: var(--purple-100); color: var(--purple-800); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em;
}

/* ============================================================
   COMO FUNCIONA — stepper
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.step { position: relative; padding-top: 0.5rem; }
.step__num {
  width: 52px; height: 52px; border-radius: 15px; background: var(--purple); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.step:not(:last-child) .step__num::after {
  content: ""; position: absolute; top: 26px; left: 66px; right: -18px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--purple-200) 0 8px, transparent 8px 16px);
}
.step b { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple-400); }
.step h4 { font-size: 1.14rem; margin: 0.2rem 0 0.5rem; }
.step p { font-size: 0.94rem; color: var(--ink-soft); line-height: 1.55; }

/* ============================================================
   PORQUÊ — 6 advantages
   ============================================================ */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.adv { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.adv h4 { font-size: 1.06rem; }
.adv p { margin-top: 0.35rem; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; }

/* ============================================================
   PARA QUEM — age cards
   ============================================================ */
.age-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.age {
  border-radius: var(--radius); padding: 1.8rem; border: 1px solid var(--line); background: #fff;
  position: relative; overflow: hidden;
}
.age::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 6px; background: var(--purple); }
.age .num { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; color: var(--purple); letter-spacing: -0.03em; }
.age .unit { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.age p { margin-top: 0.9rem; color: var(--ink-soft); }

/* ============================================================
   ESPAÇO — gallery
   ============================================================ */
.space__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
.space__video { text-align: center; }
.space__video-kicker { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--purple); margin-bottom: 0.9rem; }
.space__player { position: relative; display: grid; width: 100%; max-width: 380px; margin-inline: auto; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--purple-950); box-shadow: var(--shadow-lg); }
.space__clip { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.space__clip.is-active { opacity: 1; }
.space__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 999px; background: rgba(20,8,34,0.45); color: #fff; cursor: pointer; transition: background .18s ease; }
.space__nav:hover { background: rgba(20,8,34,0.7); }
.space__nav svg { width: 22px; height: 22px; }
.space__nav--prev { left: 0.7rem; }
.space__nav--next { right: 0.7rem; }
.space__dots { position: absolute; bottom: 0.7rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.4rem; padding: 0.36rem 0.6rem; border-radius: 999px; background: rgba(20,8,34,0.45); }
.space__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,0.45); cursor: pointer; transition: background .18s ease, transform .18s ease; }
.space__dots button:hover { background: #fff; }
.space__dots button.active { background: #fff; transform: scale(1.25); }

/* ============================================================
   INSCRIÇÃO — CTA band
   ============================================================ */
.enroll { background: linear-gradient(150deg, var(--purple), var(--purple-800)); color: #fff; text-align: center; }
.enroll__inner { max-width: 760px; margin-inline: auto; }
.enroll h2 { font-size: var(--fs-h2); letter-spacing: -0.015em; }
.enroll p { color: rgba(255,255,255,0.88); font-size: var(--fs-lead); margin: 1rem auto 0; max-width: 56ch; }
.enroll .btn { margin-top: 0; }
.enroll__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 2rem; }
.enroll__cta .btn { margin-top: 0; }
.enroll .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.08); }
.enroll .btn--ghost:hover { background: rgba(255,255,255,0.16); border-color: #fff; transform: translateY(-2px); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 0.8rem;
  overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: var(--purple-200); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 700; font-size: 1.02rem; min-height: 56px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; width: 26px; height: 26px; display: grid; place-items: center; color: var(--purple); transition: transform .25s ease; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .ans { padding: 0 1.3rem 1.25rem; color: var(--ink-soft); line-height: 1.6; }

/* ============================================================
   CONTACTOS
   ============================================================ */
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.8rem, 4vw, 3.2rem); align-items: stretch; }
.contact__list { display: flex; flex-direction: column; gap: 1rem; }
.contact__item { display: flex; gap: 1rem; align-items: flex-start; }
.contact__item .iconchip { width: 48px; height: 48px; border-radius: 13px; }
.contact__item .iconchip svg { width: 24px; height: 24px; }
.contact__item b { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.contact__item a, .contact__item span.val { font-size: 1.06rem; font-weight: 600; color: var(--ink); }
.contact__item a:hover { color: var(--purple); }
.contact__item .muted { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.contact__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.6rem; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); min-height: 340px; }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--purple-950); color: rgba(255,255,255,0.72); padding-block: clamp(2.6rem, 5vw, 3.6rem); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer__brand img { height: 74px; width: auto; margin-bottom: 1rem; }
.footer__brand p { max-width: 34ch; font-size: 0.94rem; }
.footer h5 { color: #fff; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 700; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer ul a { font-size: 0.95rem; min-height: auto; display: inline-flex; align-items: center; gap: 0.5rem; }
.footer ul a:hover { color: #fff; }
.footer ul svg { width: 17px; height: 17px; color: var(--purple-300); flex: none; }
.footer__bottom {
  margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; justify-content: space-between; align-items: center;
  font-size: 0.85rem;
}
.footer__bottom .socials { display: flex; gap: 0.6rem; }
.footer__bottom .socials a {
  width: 40px; height: 40px; border-radius: 11px; border: 1px solid rgba(255,255,255,0.16);
  display: grid; place-items: center; color: #fff; transition: background .18s ease, border-color .18s ease;
}
.footer__bottom .socials a:hover { background: var(--purple); border-color: var(--purple); }
.footer__bottom .socials svg { width: 20px; height: 20px; }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.16,.7,.3,1), transform .7s cubic-bezier(.16,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 16/10; }
  .about__grid,
  .apoio__grid,
  .robotics__grid,
  .space__grid,
  .contact__grid { grid-template-columns: 1fr; }
  .apoio__media { position: static; order: -1; }
  .apoio__media img { aspect-ratio: 16/10; }
  .svc-grid,
  .acad-grid,
  .adv-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:not(:last-child) .step__num::after { display: none; }
  .pillars__grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); padding: 0.8rem var(--pad-x) 1.4rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .22s ease, opacity .22s ease;
    display: flex; flex-direction: column; align-items: stretch; gap: 0.2rem; max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav.open .nav__menu { transform: none; opacity: 1; pointer-events: auto; }
  .nav__menu > a:not(.btn) { padding: 0.85rem 0.6rem; border-radius: 12px; font-weight: 600; font-size: 1.05rem; min-height: 52px; display: flex; align-items: center; justify-content: center; text-align: center; border-bottom: 1px solid var(--line); }
  .nav__menu a:last-of-type { border-bottom: 0; }
  .nav__menu a:hover { background: var(--purple-050); color: var(--purple); }
  .nav__menu .btn { margin-top: 0.8rem; width: 100%; }
}

@media (max-width: 620px) {
  .svc-grid,
  .acad-grid,
  .adv-grid,
  .feature-list,
  .age-grid,
  .steps,
  .pillars__grid,
  .space__gallery,
  .footer__grid { grid-template-columns: 1fr; }
  .space__gallery .tall { grid-row: auto; aspect-ratio: 16/10; }
  .footer__brand { grid-column: auto; }
  .hero__badge { position: static; margin-top: 1rem; max-width: 100%; }
  .age-grid { gap: 1rem; }
}

@media (min-width: 621px) and (max-width: 980px) {
  /* keep age cards readable in 3-up->stack transition */
  .age-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
