/* ============================================================
   Marcos César Filho — Professor de Tênis
   CSS artesanal, sem frameworks. Paleta saibro em oklch.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ivory: oklch(0.968 0.012 75);
  --ink: oklch(0.16 0.02 40);
  --clay: oklch(0.58 0.15 40);
  --clay-deep: oklch(0.42 0.13 38);

  --background: var(--ivory);
  --foreground: var(--ink);
  --card: oklch(0.985 0.006 75);
  --muted: oklch(0.94 0.012 70);
  --muted-foreground: oklch(0.42 0.02 40);
  --border: oklch(0.88 0.02 60);

  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid var(--border);
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.font-display,
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 300;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; cursor: pointer; }

ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

/* ---------- Utilitários ---------- */
.container {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section-pad { padding-block: 6rem; }

.kicker {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--clay);
}

.section-title {
  margin-top: 1.5rem;
  font-size: 3rem;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.section-title em,
em.italic { font-style: italic; }

@media (min-width: 768px) {
  .container { padding-inline: 2.5rem; }
  .section-pad { padding-block: 9rem; }
  .section-title { font-size: 3.75rem; }
}

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}

.nav-inner {
  max-width: 1400px;
  margin-inline: auto;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: -0.025em;
  color: var(--ivory);
}

.nav-logo .dot { color: var(--clay); }

.nav-links {
  display: none;
  gap: 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.nav-links a {
  color: oklch(0.968 0.012 75 / 0.8);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ivory); }

.nav-wa {
  display: none;
  border: 1px solid oklch(0.968 0.012 75 / 0.4);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ivory);
  transition: background-color 0.2s, color 0.2s;
}

.nav-wa:hover { background: var(--ivory); color: var(--ink); }

.nav-burger {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--ivory);
}

@media (min-width: 768px) {
  .nav-inner { padding: 1.5rem 2.5rem; }
  .nav-links { display: flex; }
  .nav-wa { display: inline-block; }
  .nav-burger { display: none; }
}

/* Menu mobile em tela cheia */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: oklch(0.16 0.02 40 / 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.open { opacity: 1; pointer-events: auto; }

.mobile-menu-inner {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 1.5rem;
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-links {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu-links a {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 300;
  color: var(--ivory);
  transition: color 0.2s;
}

.mobile-menu-links a:hover { color: var(--clay); }

.mobile-menu-footer {
  margin-top: auto;
  padding-bottom: 2rem;
  display: grid;
  gap: 1.5rem;
}

.mobile-menu-footer .hint {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: oklch(0.968 0.012 75 / 0.5);
}

.mobile-menu-footer .btn-solid { text-align: center; display: block; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 720px;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
}

.hero-img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0.9;
}

.hero-fade-t,
.hero-fade-r {
  position: absolute;
  inset: 0;
}

.hero-fade-t {
  background: linear-gradient(
    to top,
    var(--ink),
    oklch(0.16 0.02 40 / 0.4),
    oklch(0.16 0.02 40 / 0.7)
  );
}

.hero-fade-r {
  background: linear-gradient(to right, oklch(0.16 0.02 40 / 0.7), transparent, transparent);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin-inline: auto;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 1.5rem 5rem;
}

.hero-kicker {
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--clay);
}

.hero h1 {
  font-size: 15vw;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ivory);
}

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

.hero-row {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-row p {
  max-width: 28rem;
  line-height: 1.625;
  color: oklch(0.968 0.012 75 / 0.8);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn-solid {
  border-radius: 9999px;
  background: var(--ivory);
  color: var(--ink);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

.btn-solid:hover { background: var(--clay); color: var(--ivory); }

.btn-outline {
  border: 1px solid oklch(0.968 0.012 75 / 0.4);
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ivory);
  transition: background-color 0.2s;
}

.btn-outline:hover { background: oklch(0.968 0.012 75 / 0.1); }

.hero-corner {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  display: none;
  text-align: right;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: oklch(0.968 0.012 75 / 0.5);
}

@media (min-width: 768px) {
  .hero-content { padding: 0 2.5rem 7rem; }
  .hero h1 { font-size: 9rem; }
  .hero-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .hero-corner { display: block; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 12rem; }
}

/* ============================================================
   SOBRE
   ============================================================ */
.sobre-grid { display: grid; gap: 4rem; }

.sobre-quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.375;
  color: var(--ink);
}

.sobre-cols {
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.sobre-cols .destaque { color: var(--foreground); }

.sobre-stats {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.stat-n {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 300;
  letter-spacing: -0.025em;
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .sobre-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .sobre-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .sobre-head { grid-column: span 4; }
  .sobre-body { grid-column: 6 / span 7; }
  .sobre-quote { font-size: 1.875rem; }
  .stat-n { font-size: 3rem; }
}

/* ============================================================
   AULAS
   ============================================================ */
.aulas {
  background: var(--ink);
  color: var(--ivory);
}

.aulas-head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.aulas-head .nota {
  max-width: 24rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: oklch(0.968 0.012 75 / 0.6);
}

.aulas-grid {
  margin-top: 4rem;
  display: grid;
  gap: 1px;
  background: oklch(0.968 0.012 75 / 0.1);
}

.program {
  background: var(--ink);
  padding: 2.5rem;
  transition: background-color 0.3s;
}

.program:hover { background: var(--clay-deep); }

.program-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.program-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--clay);
}

.program-line {
  height: 1px;
  width: 3rem;
  background: oklch(0.968 0.012 75 / 0.2);
}

.program h3 {
  margin-top: 2rem;
  font-size: 2.25rem;
  letter-spacing: -0.025em;
}

.program > p {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: oklch(0.968 0.012 75 / 0.7);
}

.program ul {
  margin-top: 2.5rem;
  display: grid;
  gap: 0.75rem;
  border-top: 1px solid oklch(0.968 0.012 75 / 0.1);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: oklch(0.968 0.012 75 / 0.6);
}

.program li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.program li::before {
  content: "";
  height: 0.25rem;
  width: 0.25rem;
  border-radius: 9999px;
  background: var(--clay);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .aulas-head {
    flex-direction: row;
    align-items: flex-end;
  }
  .aulas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program { padding: 3rem; }
  .program h3 { font-size: 3rem; }
  .aulas .section-title { font-size: 4.5rem; }
}

/* 4 colunas só quando há largura de sobra pros títulos grandes */
@media (min-width: 1280px) {
  .aulas-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================================
   TRAJETÓRIA
   ============================================================ */
.trajetoria-grid { display: grid; }

.trajetoria-media {
  position: relative;
  min-height: 520px;
}

.trajetoria-media img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.trajetoria-body {
  background: var(--clay-deep);
  color: var(--ivory);
  padding: 5rem 1.5rem;
}

.trajetoria-body .kicker { color: oklch(0.968 0.012 75 / 0.7); }

.milestones {
  margin-top: 3.5rem;
  display: grid;
  gap: 2rem;
}

.milestone {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 1.5rem;
  border-top: 1px solid oklch(0.968 0.012 75 / 0.15);
  padding-top: 1.5rem;
}

.milestone .year {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  color: oklch(0.968 0.012 75 / 0.7);
}

.milestone h4 { font-size: 1.25rem; font-weight: 300; }

.milestone p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: oklch(0.968 0.012 75 / 0.7);
}

@media (min-width: 768px) {
  .trajetoria-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trajetoria-media { min-height: 720px; }
  .trajetoria-body { padding: 7rem 4rem; }
}

/* ============================================================
   GALERIA
   ============================================================ */
.galeria-head {
  margin-bottom: 3.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.galeria-head .wa-link {
  display: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.galeria-head .wa-link:hover { color: var(--foreground); }

@media (min-width: 768px) {
  .galeria-head .wa-link { display: block; }
}

.carousel { position: relative; }

.carousel-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
}

.carousel-frame img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s;
}

.carousel-frame img.active { opacity: 1; }

.carousel-shade {
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 10rem;
  background: linear-gradient(to top, oklch(0.16 0.02 40 / 0.8), transparent);
}

.carousel-info {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: var(--ivory);
}

.carousel-counter {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: oklch(0.968 0.012 75 / 0.6);
}

.carousel-caption {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 300;
}

.carousel-arrows { display: flex; gap: 0.5rem; }

.carousel-arrows button {
  display: grid;
  place-items: center;
  height: 2.75rem;
  width: 2.75rem;
  border: 1px solid oklch(0.968 0.012 75 / 0.4);
  border-radius: 9999px;
  color: var(--ivory);
  transition: background-color 0.2s, color 0.2s;
}

.carousel-arrows button:hover { background: var(--ivory); color: var(--ink); }

.carousel-progress {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.5rem;
}

.carousel-progress button {
  height: 0.25rem;
  flex: 1;
  background: var(--border);
  transition: background-color 0.2s;
}

.carousel-progress button:hover { background: oklch(0.42 0.02 40 / 0.5); }

.carousel-progress button.active { background: var(--clay); }

@media (min-width: 768px) {
  .carousel-frame { aspect-ratio: 16 / 9; }
  .carousel-info {
    bottom: 2rem;
    left: 2.5rem;
    right: 2.5rem;
  }
  .carousel-caption { font-size: 1.5rem; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-head { margin-bottom: 3.5rem; }

.faq-grid { display: grid; gap: 1rem; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.faq-q {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  text-align: left;
}

.faq-q .q-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.25;
}

.faq-q .q-mark {
  margin-top: 0.25rem;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--muted-foreground);
  transition: transform 0.2s, color 0.2s;
}

.faq-item.open .q-mark {
  transform: rotate(45deg);
  color: var(--clay);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
  transition: max-height 0.3s, opacity 0.3s;
}

.faq-item.open .faq-a {
  max-height: 14rem;
  opacity: 1;
}

.faq-a p { padding-bottom: 0.5rem; }

@media (min-width: 768px) {
  .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-q .q-text { font-size: 1.25rem; }
}

/* ============================================================
   CONTATO
   ============================================================ */
.contato {
  background: var(--ink);
  color: var(--ivory);
}

.contato-grid { display: grid; gap: 3rem; }

.contato h2 {
  margin-top: 1.5rem;
  font-size: 3.75rem;
  line-height: 0.9;
  letter-spacing: -0.025em;
}

.contato h2 em {
  font-style: italic;
  color: var(--clay);
}

.contato-text {
  margin-top: 2rem;
  max-width: 28rem;
  line-height: 1.625;
  color: oklch(0.968 0.012 75 / 0.7);
}

.contato-rows { display: grid; gap: 2rem; align-content: start; }

.contact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid oklch(0.968 0.012 75 / 0.15);
  padding-bottom: 1rem;
}

a.contact-row { transition: color 0.2s; }

a.contact-row:hover { color: var(--clay); }

div.contact-row { color: oklch(0.968 0.012 75 / 0.7); }

.contact-row .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: oklch(0.968 0.012 75 / 0.5);
}

.contact-row .value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
}

.footer-bar { border-top: 1px solid oklch(0.968 0.012 75 / 0.1); }

.footer-bar-inner {
  max-width: 1400px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 1.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: oklch(0.968 0.012 75 / 0.4);
}

@media (min-width: 768px) {
  .contato-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6rem;
  }
  .contato h2 { font-size: 6rem; }
  .contato-rows { padding-top: 1.5rem; }
  .contact-row .value { font-size: 1.5rem; }
  .footer-bar-inner {
    flex-direction: row;
    padding-inline: 2.5rem;
  }
}

/* ============================================================
   REVEAL + ACESSIBILIDADE DE MOVIMENTO
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .carousel-frame img,
  .mobile-menu { transition: none; }
}
