/* ===========================================================
   88 SURF — estilo principal
   =========================================================== */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-normal-600-700.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/fraunces-italic-500.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-variable.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-title); margin: 0 0 0.5em; line-height: 1.08; font-weight: 700; }
p { margin: 0 0 1em; line-height: 1.6; color: var(--color-text-suave); }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--color-mar);
  color: #fff; padding: 10px 16px; z-index: 300;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  min-height: 48px; justify-content: center;
}
.btn-primary {
  background: var(--color-acento); color: #fff; box-shadow: var(--shadow-sm);
}
.btn-primary:hover, .btn-primary:focus-visible { background: var(--color-acento-escuro); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--color-mar); border: 2px solid var(--color-mar);
}
.btn-outline:hover, .btn-outline:focus-visible { background: var(--color-mar); color: #fff; }
.btn-light { background: #fff; color: var(--color-mar); }
.btn-light:hover { background: var(--color-areia); }
:focus-visible { outline: 3px solid var(--color-turquesa-clara); outline-offset: 3px; }

/* ---------- WhatsApp flutuante (zona quente) ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 250;
  background: #25d366; color: #fff; width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px -6px rgba(0,0,0,0.4);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

.wa-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 240;
  background: var(--color-mar-escuro); color: #fff;
  padding: 10px 16px; display: none;
  align-items: center; justify-content: center; gap: 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.wa-bar .btn-primary { width: 100%; max-width: 420px; }
@media (max-width: 720px) {
  .wa-bar { display: flex; }
  .wa-float { display: none; }
  body { padding-bottom: 76px; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
  background: transparent;
}
.nav.is-scrolled {
  background: rgba(7, 51, 71, 0.92); backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px -8px rgba(0,0,0,0.35); padding: 12px 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-title); font-weight: 700; font-size: 1.3rem; color: #fff; }
.nav-logo-mark {
  width: 38px; height: 38px; border-radius: 50%; background: var(--color-acento);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-weight: 700; font-size: 0.85rem;
}
.nav-logo-text { white-space: nowrap; }
@media (max-width: 1220px) { .nav-logo-text { display: none; } }

.nav-menu { display: flex; gap: 28px; align-items: center; }
.nav-menu a {
  color: #fff; font-weight: 600; font-size: 0.95rem; position: relative; padding: 6px 0;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--color-acento); transition: width .25s var(--ease);
}
.nav-menu a:hover::after, .nav-menu a:focus-visible::after { width: 100%; }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: transparent; border: none; cursor: pointer;
  z-index: 260;
}
.nav-toggle span {
  display: block; width: 26px; height: 2.5px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; background: var(--color-mar-escuro); z-index: 250;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu a { color: #fff; font-size: 1.5rem; font-family: var(--font-title); font-weight: 600; }
.mobile-menu .btn { margin-top: 10px; }

@media (max-width: 1100px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
}

/* fallback sem JS: ver nojs no head via noscript */

/* ---------- Hero / scrollytelling ---------- */
.hero-track { position: relative; height: 320vh; }
.hero-stage {
  position: sticky; top: 0; height: clamp(480px, 82dvh, 820px);
  overflow: hidden; background: var(--color-mar-escuro);
}
.hero-frame {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity .1s linear;
}
.hero-frame.is-active { pointer-events: auto; }
.hero-frame img, .hero-frame .ph-frame {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,51,71,0.55) 0%, rgba(7,51,71,0.35) 35%, rgba(7,51,71,0.75) 100%);
}
.hero-content {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0 24px 100px;
  max-width: var(--container-max); margin: 0 auto; color: #fff;
}
.hero-frame .hero-eyebrow {
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: .12em;
  font-size: 0.8rem; font-weight: 700; color: var(--color-turquesa-clara); margin-bottom: 14px;
}
.hero-frame h1, .hero-frame h2 {
  font-size: clamp(2.1rem, 5.2vw, 4rem); color: #fff; max-width: 760px; margin-bottom: 18px;
}
.hero-frame p { color: rgba(255,255,255,0.88); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 560px; }
.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; }

.hero-progress {
  position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex;
  align-items: center; gap: 14px; max-width: var(--container-max); margin: 0 auto; color: #fff;
}
.hero-progress .track { flex: 1; height: 3px; background: rgba(255,255,255,0.3); border-radius: 3px; overflow: hidden; }
.hero-progress .fill { height: 100%; background: var(--color-acento); width: 0%; transition: width .1s linear; }
.hero-progress .label { font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; letter-spacing: .05em; }

.ph-frame {
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 10px; background: linear-gradient(135deg, var(--color-mar), var(--color-turquesa));
  color: rgba(255,255,255,0.75); font-family: var(--font-body); font-size: 0.85rem; text-align: center;
}
.ph-frame svg { width: 64px; height: 64px; opacity: .8; }

@media (max-width: 720px) {
  .hero-track { height: auto; }
  .hero-stage { position: relative; height: 92vh; }
  .hero-frame { transition: none; }
  .hero-progress { display: none; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--color-bg); padding: 48px 0 16px; }
.marquee-track { display: flex; width: max-content; animation: marquee-scroll 40s linear infinite; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-group span {
  font-size: clamp(16px, 2.3vw, 30px); font-weight: 800; letter-spacing: -0.02em;
  color: var(--color-mar); white-space: nowrap; padding: 0 36px; font-family: var(--font-title);
}
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Seções genéricas ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-mar-escuro); color: var(--color-text-sobre-escuro); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.78); }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: 0.8rem;
  font-weight: 700; color: var(--color-turquesa); margin-bottom: 14px;
}
.section-dark .eyebrow { color: var(--color-turquesa-clara); }
h2.section-title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); max-width: 720px; }
.section-lede { max-width: 640px; font-size: 1.1rem; }

/* reveal */
.reveal { opacity: 0; transform: translateY(36px); }
.reveal.is-visible, .no-js .reveal { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* ---------- Sobre (2 colunas) ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; }
.about-media img, .about-media .ph-frame { width: 100%; height: 100%; }
.about-text ul { padding-left: 1.1em; color: var(--color-text-suave); }
.about-text li { margin-bottom: 0.5em; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Grid de cards ---------- */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 44px;
}
.card {
  background: #fff; border-radius: var(--radius); padding: 32px 26px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-borda);
}
.card .card-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--color-areia);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--color-mar);
}
.card h3 { font-size: 1.25rem; }
.card p { margin-bottom: 0; }
@media (max-width: 900px) { .cards-grid { grid-template-columns: 1fr; } }

/* ---------- Alternadas texto/imagem ---------- */
.alt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 80px; }
.alt-row:last-child { margin-bottom: 0; }
.alt-row.reverse .alt-media { order: 2; }
.alt-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/11; }
.alt-media img, .alt-media .ph-frame { width: 100%; height: 100%; }
@media (max-width: 900px) {
  .alt-row, .alt-row.reverse { grid-template-columns: 1fr; gap: 28px; }
  .alt-row.reverse .alt-media { order: 0; }
}

/* ---------- Destaque / flagship ---------- */
.flagship { background: var(--color-mar-escuro); color: #fff; }
.flagship-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.flagship-media { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5); aspect-ratio: 4/5; }
.flagship-media img, .flagship-media .ph-frame { width: 100%; height: 100%; }
.flagship-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; padding: 8px 16px; font-size: 0.85rem;
}
@media (max-width: 900px) { .flagship-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Avaliações / prova social ---------- */
.reviews-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.review-score { font-family: var(--font-title); font-weight: 700; font-size: 2.6rem; color: var(--color-mar); }
.review-stars { color: var(--color-acento); font-size: 1.3rem; letter-spacing: 2px; }
.reviews-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.review-card {
  background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-borda);
}
.review-card .stars { color: var(--color-acento); margin-bottom: 10px; letter-spacing: 2px; }
.review-card footer { margin-top: 14px; font-weight: 700; color: var(--color-mar); font-size: 0.95rem; }
@media (max-width: 760px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ---------- Press / mídia ---------- */
.press-row {
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: center;
  margin-top: 36px; opacity: 0.85;
}
.press-row span {
  font-family: var(--font-title); font-weight: 600; font-style: italic; font-size: 1.15rem; color: var(--color-mar);
}

/* ---------- Pessoa / professor ---------- */
.person-row { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; }
.person-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3/4; }
.person-media img, .person-media .ph-frame { width: 100%; height: 100%; }
.person-creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 860px) { .person-row { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 36px; max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--color-borda); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-title); font-weight: 700; font-size: 1.1rem; color: var(--color-text); cursor: pointer;
}
.faq-q .icon { flex-shrink: 0; transition: transform .3s var(--ease); color: var(--color-mar); }
.faq-q[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding: 0 0 20px; margin: 0; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; }
.contact-list li { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-list svg { flex-shrink: 0; color: var(--color-acento); width: 24px; height: 24px; margin-top: 2px; }
.contact-list strong { display: block; color: var(--color-text); }
.map-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3;
  border: 1px solid var(--color-borda);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Footer ---------- */
.footer { background: var(--color-grafite); color: rgba(255,255,255,0.75); padding: 56px 0 90px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { font-family: var(--font-title); font-weight: 700; font-size: 1.3rem; color: #fff; }
.footer-social { display: flex; gap: 16px; margin-top: 14px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.footer-social a:hover { background: var(--color-acento); }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { text-decoration: underline; }
@media (max-width: 720px) { .footer-bottom { flex-direction: column; } .wa-bar { display: flex; } }
