/* ===================== Fontes ===================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ===================== Tokens ===================== */
:root {
  --plum-deep: #2c1533;
  --plum: #350340;
  --violet: #7c06b8;
  --lilac: #b478d9;
  --offwhite: #faf7fb;
  --wa-green: #25d366;
  --focus: #b478d9;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Poppins', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'Courier New', ui-monospace, 'SFMono-Regular', monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: hidden; background: var(--plum-deep); scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--plum-deep);
  color: var(--offwhite);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

/* Títulos usam clamp(), então larguras intermediárias deixam palavras órfãs. */
.hero h1,
.hero .sub,
.services h2,
.courses h2,
.threshold blockquote,
.card h3,
.course-row h3 {
  text-wrap: balance;
}

/* O arco de cor é autoral, não derivado do sistema — ambos os temas reafirmam a mesma paleta. */
@media (prefers-color-scheme: light) { :root { color-scheme: light dark; } }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote { margin: 0; }

.wrap {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Primeiro foco da página — fica fora da tela até receber foco por teclado. */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -6rem;
  z-index: 60;
  background: var(--offwhite);
  color: var(--plum-deep);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7em 1.2em;
  border-radius: 3px;
  text-decoration: none;
}

.skip-link:focus, .skip-link:focus-visible { top: 1rem; }

/* ===================== Header ===================== */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(44, 21, 51, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(180, 120, 217, 0.25);
}

.headerbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
  gap: 1rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--offwhite);
}

.wordmark strong { font-weight: 600; }

/* ===================== Botões ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.7em 1.3em;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: filter 200ms ease, border-color 200ms ease, transform 120ms ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--wa-green); color: #0c2f1c; }
.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  background: transparent;
  color: var(--offwhite);
  border-color: rgba(250, 247, 251, 0.4);
  font-weight: 600;
}

.btn-ghost:hover { border-color: var(--offwhite); }
.btn-small { padding: 0.55em 1em; font-size: 0.82rem; }

/* ===================== Estrutura de seção ===================== */
section { position: relative; }
.pad { padding-block: clamp(3.5rem, 9vw, 7rem); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 1.1rem;
}

/* ===================== Hero ===================== */
.hero {
  background: linear-gradient(180deg, var(--plum-deep) 0%, var(--plum) 100%);
  overflow: hidden;
}

.hero-inner { position: relative; padding-block: clamp(4rem, 11vw, 8rem); }

.hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(124, 6, 184, 0.55), rgba(124, 6, 184, 0) 70%);
  filter: blur(10px);
  pointer-events: none;
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-6%, 4%) scale(1.08); }
}

.mark-hero {
  position: absolute;
  right: clamp(-4rem, -2vw, -1rem);
  top: clamp(-2rem, -4vw, 0rem);
  width: clamp(220px, 32vw, 420px);
  height: auto;
  opacity: 0.9;
  transform-origin: 100px 100px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 6vw, 4.1rem);
  line-height: 1.08;
  max-width: 15ch;
  letter-spacing: -0.01em;
}

.hero h1 em { font-style: italic; color: var(--lilac); }

.hero .sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  max-width: 34ch;
  margin-top: 1.4rem;
  opacity: 0.92;
  line-height: 1.5;
}

.hero .lede { font-size: 1.05rem; max-width: 44ch; margin-top: 1.6rem; opacity: 0.86; }

.hero .ctas {
  margin-top: 2.4rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.link-arrow {
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===================== Faixa de credencial ===================== */
.band {
  background: var(--plum);
  border-block: 1px solid rgba(180, 120, 217, 0.28);
}

.band .wrap { padding-block: 1.1rem; }

.band p {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.88;
}

.band strong { color: var(--lilac); font-weight: 700; }

/* ===================== Bio ===================== */
.bio { background: linear-gradient(180deg, var(--plum) 0%, var(--violet) 100%); }

.bio-grid {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.mark-bio { width: 100%; height: auto; opacity: 0.85; }
.bio p { font-size: 1.06rem; max-width: 58ch; }
.bio p + p { margin-top: 1.3rem; }
.bio .attrib { margin-top: 1.6rem; font-family: var(--serif); font-style: italic; opacity: 0.85; }

@media (max-width: 700px) {
  .bio-grid { grid-template-columns: 1fr; }
  .mark-bio { width: 96px; }
}

/* ===================== Serviços (mães) ===================== */
.services {
  background: linear-gradient(180deg, var(--violet) 0%, var(--lilac) 100%);
  color: var(--plum-deep);
}

.services .eyebrow { opacity: 0.7; }

.services h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  max-width: 26ch;
  line-height: 1.2;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.6rem;
}

@media (max-width: 700px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: rgba(250, 247, 251, 0.55);
  border-top: 3px solid var(--plum-deep);
  padding: 1.9rem 1.7rem;
}

.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.card p { font-size: 0.98rem; opacity: 0.86; margin-bottom: 1.5rem; }
.card .btn-primary { color: #0c2f1c; }

/* ===================== Limiar / pico de luz ===================== */
.threshold {
  background: linear-gradient(180deg, var(--lilac) 0%, var(--offwhite) 100%);
  color: var(--plum-deep);
  --focus: var(--plum);
  text-align: center;
}

.threshold .pad { padding-block: clamp(4rem, 10vw, 7rem); }

.mark-threshold {
  width: clamp(120px, 16vw, 170px);
  height: auto;
  margin-inline: auto;
  margin-bottom: 1.8rem;
}

.threshold blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  line-height: 1.35;
  max-width: 22ch;
  margin-inline: auto;
}

.threshold .tag {
  margin-top: 1.6rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.65;
}

/* ===================== Formação — corte duro, "outra sala" ===================== */
.courses {
  background: var(--plum-deep);
  border-top: 1px solid rgba(180, 120, 217, 0.3);
}

.courses .eyebrow { color: var(--lilac); opacity: 1; }

.courses h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  max-width: 34ch;
  line-height: 1.35;
  opacity: 0.94;
}

.courses .lede {
  margin-top: 1rem;
  font-family: var(--serif);
  font-style: italic;
  opacity: 0.8;
  max-width: 52ch;
}

.course-list { margin-top: 2.6rem; border-top: 1px solid rgba(180, 120, 217, 0.28); }

.course-row {
  display: grid;
  grid-template-columns: 9rem 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding-block: 1.6rem;
  border-bottom: 1px solid rgba(180, 120, 217, 0.28);
}

.course-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lilac);
  opacity: 0.9;
}

.course-row h3 { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.course-row p { font-size: 0.9rem; opacity: 0.75; margin-top: 0.35rem; max-width: 48ch; }
.course-row .btn-ghost { justify-self: end; }

@media (max-width: 700px) {
  .course-row { grid-template-columns: 1fr; gap: 0.6rem; }
  .course-row .btn-ghost { justify-self: start; }
}

/* ===================== Páginas de texto (privacidade) ===================== */
.legal { background: linear-gradient(180deg, var(--plum-deep) 0%, var(--plum) 100%); }

.legal h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.15;
  max-width: 20ch;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.legal h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  margin-top: 2.6rem;
  margin-bottom: 0.7rem;
  color: var(--lilac);
}

.legal p { max-width: 62ch; opacity: 0.88; }

.legal-updated {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}

.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ===================== Rodapé ===================== */
footer { background: var(--plum-deep); }

.foot-inner {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.foot-brand { display: flex; align-items: center; gap: 0.9rem; }
.mark-foot { width: 34px; height: 34px; }
.foot-brand .names { display: flex; flex-direction: column; }
.foot-brand strong { font-family: var(--serif); font-size: 1.05rem; }
.foot-brand span { font-family: var(--mono); font-size: 0.72rem; opacity: 0.65; letter-spacing: 0.04em; }

.foot-links { display: flex; gap: 1.5rem; font-size: 0.88rem; }
.foot-links a { text-decoration: underline; text-underline-offset: 3px; opacity: 0.85; }

.copyright {
  border-top: 1px solid rgba(180, 120, 217, 0.25);
  padding-block: 1.2rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  opacity: 0.55;
  text-align: center;
}

/* ===================== Revelação no scroll (progressive enhancement) ===================== */
html.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

html.js-ready .reveal.in-view { opacity: 1; transform: translateY(0); }

.petal-anim { animation: open-bud 2.2s cubic-bezier(.2, .7, .3, 1) 0.3s both; }

@keyframes open-bud {
  from { transform: rotate(-16deg) scale(0.86); opacity: 0.55; }
  to { transform: rotate(0deg) scale(1); opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-glow { animation: none; }
  .petal-anim { animation: none; transform: none; opacity: 0.9; }
  html.js-ready .reveal { opacity: 1; transform: none; transition: none; }
}
