/* =============================================================================
   Academia Point Tennis · Londrina
   Uma família (Archivo variável), um acento (verde-bola), saibro na fotografia.
   Tema travado: claro. Raio: containers 18px, interativos pill (regra única).
   ============================================================================= */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Paleta oficial APT (extraída do material da academia):
     navy profundo #0d1c43 · navy médio #184a7d · lime #c1e811 · bola #eae533 */
  --paper: #f3f5f8;
  --surface: #fdfdfe;
  --ink: #0d1c43;
  --ink-2: #48597c;
  --line: #dbe0e8;
  --navy-mid: #184a7d;
  --accent: #c1e811;        /* verde-limão APT */
  --accent-ink: #0d1c43;
  --ball: #eae533;          /* amarelo da bola do logo */

  --radius: 18px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --w-display: 118%;        /* Archivo expandida p/ títulos */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3 {
  font-stretch: var(--w-display);
  font-weight: 780;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* ---------- Botões (pill; feedback físico no :active) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-weight: 640;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--ink); color: #f6f8f4; }
.btn-lime { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: transparent; }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--navy-mid); }
  .btn-lime:hover { background: #d3f52f; }
  .btn-ghost:hover { border-color: var(--ink); }
}

:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { border-radius: 999px; }

/* ---------- Navegação ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms ease;
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  height: 72px;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: flex; align-items: center; gap: 2rem;
}

.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-apt {
  font-weight: 870; font-style: italic; font-stretch: 122%;
  font-size: 1.42rem; letter-spacing: -0.01em;
}
.brand-sub {
  margin-top: .18rem;
  font-size: .52rem; font-weight: 700; font-style: italic;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-2);
}

.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-weight: 560; font-size: .97rem; color: var(--ink-2);
  transition: color 150ms ease;
}
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--ink); } }

.nav-cta { padding: .62rem 1.25rem; font-size: .93rem; }

.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-burger span { width: 22px; height: 2px; background: var(--ink); transition: transform 200ms var(--ease-out), opacity 150ms ease; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav-sheet {
  display: flex; flex-direction: column; gap: 1.2rem;
  padding: 1.4rem clamp(1rem, 4vw, 2rem) 2rem;
  border-bottom: 1px solid var(--line);
}
.nav-sheet[hidden] { display: none; }
.nav-sheet a { text-decoration: none; font-weight: 600; font-size: 1.15rem; }
.nav-sheet .btn { align-self: flex-start; }

/* ---------- Hero ---------- */
.hero {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(2rem, 6vh, 4.5rem) clamp(1rem, 4vw, 2rem) 0;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { font-size: clamp(2.5rem, 4.6vw, 3.85rem); max-width: 14ch; }
.lead {
  margin-top: 1.3rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-2);
  max-width: 30ch;
}
.hero-actions { margin-top: 2.1rem; display: flex; gap: .8rem; flex-wrap: wrap; }

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 76vh;
  box-shadow: 0 24px 60px -28px rgb(13 28 67 / .40);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Números ---------- */
.stats { max-width: 1200px; margin: 0 auto; padding: clamp(3rem, 7vh, 5rem) clamp(1rem, 4vw, 2rem) 0; }
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}
.stat strong {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800; font-stretch: var(--w-display);
  line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat span { color: var(--ink-2); font-size: .95rem; }

/* ---------- Aulas ---------- */
.aulas { max-width: 1200px; margin: 0 auto; padding: clamp(4.5rem, 11vh, 8rem) clamp(1rem, 4vw, 2rem) 0; }
.aulas-grid {
  display: grid; grid-template-columns: .92fr 1.08fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.aulas-media {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 5;
  position: sticky; top: 96px;
}
.aulas-media img { width: 100%; height: 100%; object-fit: cover; }
.aulas h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.aulas-copy > p { margin-top: 1.1rem; color: var(--ink-2); max-width: 52ch; }

.aulas-formatos { list-style: none; margin-top: 2.4rem; display: grid; gap: 0; }
.aulas-formatos li { padding: 1.35rem 0; border-top: 1px solid var(--line); }
.aulas-formatos h3 { font-size: 1.15rem; font-weight: 700; }
.aulas-formatos p { color: var(--ink-2); margin-top: .3rem; max-width: 48ch; }

.aulas-exp {
  margin-top: 2.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: space-between;
}
.aulas-exp p { max-width: 34ch; }
.aulas-exp strong { font-weight: 720; }

/* ---------- Aluguel ---------- */
.aluguel { max-width: 1200px; margin: 0 auto; padding: clamp(4.5rem, 11vh, 8rem) clamp(1rem, 4vw, 2rem) 0; }
.aluguel-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.aluguel-head p { margin-top: 1.1rem; color: var(--ink-2); max-width: 46ch; }

.fluxo {
  margin-top: 3rem;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}
.fluxo-item { border-top: 2.5px solid var(--ink); padding-top: 1rem; }
.fluxo-verbo {
  font-weight: 800; font-stretch: var(--w-display);
  font-size: 1.35rem; letter-spacing: -0.01em;
}
.fluxo-item p { color: var(--ink-2); margin-top: .35rem; font-size: .98rem; max-width: 30ch; }

.precos {
  margin-top: 3.2rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 1.6rem);
}
.preco-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}
.preco-card-destaque { background: var(--ink); color: #f2f5fa; border-color: var(--ink); }
.preco-card-destaque .preco-janela, .preco-card-destaque .preco-desc, .preco-card-destaque .preco-nota { color: #a7b4cf; }

.preco-card h3 { font-size: 1.5rem; }
.preco-janela { color: var(--ink-2); font-size: .95rem; margin-top: .3rem; }

.preco-valores { display: flex; gap: 2.6rem; margin-top: 1.7rem; }
.preco-num {
  display: block;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800; font-stretch: var(--w-display);
  letter-spacing: -0.02em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.preco-card-destaque .preco-num { color: var(--accent); }
.preco-desc { color: var(--ink-2); font-size: .92rem; }

.preco-nota { margin-top: 1.5rem; color: var(--ink-2); font-size: .93rem; }
.aluguel-obs { margin-top: 1.4rem; color: var(--ink-2); font-size: .95rem; max-width: 62ch; }

/* ---------- Beach (respiro full-bleed) ---------- */
.beach { margin-top: clamp(4.5rem, 11vh, 8rem); position: relative; }
.beach-media { max-height: 78vh; overflow: hidden; }
.beach-media img { width: 100%; height: 100%; max-height: 78vh; object-fit: cover; }
.beach-copy {
  position: absolute; inset: auto 0 0 0;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background: linear-gradient(to top, rgb(8 14 20 / .78), transparent);
  color: #fff;
}
.beach-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); max-width: 16ch; }
.beach-copy p { margin-top: .6rem; max-width: 44ch; color: #dfe6ea; }

/* ---------- Unidades ---------- */
.unidades { max-width: 1200px; margin: 0 auto; padding: clamp(4.5rem, 11vh, 8rem) clamp(1rem, 4vw, 2rem) 0; }
.unidades h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); max-width: 22ch; }
.unidades-grid { margin-top: 2.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.6rem); }

.unidade {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.unidade figure { aspect-ratio: 16 / 10; overflow: hidden; }
.unidade img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .unidade:hover img { transform: scale(1.035); }
}
.unidade-info { padding: 1.5rem 1.6rem 1.7rem; }
.unidade-info h3 { font-size: 1.3rem; }
.unidade-end { margin-top: .35rem; font-weight: 590; font-size: .97rem; }
.unidade-detalhe { margin-top: .5rem; color: var(--ink-2); font-size: .95rem; }
.unidade-mapa {
  display: inline-block; margin-top: 1rem;
  font-weight: 620; font-size: .93rem;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
  transition: border-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) { .unidade-mapa:hover { border-color: var(--ink); } }

/* ---------- CTA final ---------- */
.cta-final {
  margin-top: clamp(4.5rem, 11vh, 8rem);
  background: var(--ink);
  color: #f2f5fa;
}
.cta-inner {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(4rem, 10vh, 6.5rem) clamp(1rem, 4vw, 2rem);
  text-align: left;
}
.cta-inner h2 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 18ch; }
.cta-inner p { margin-top: 1rem; color: #a7b4cf; max-width: 42ch; }
.cta-inner .btn { margin-top: 2rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c6d0e4; border-top: 1px solid rgb(255 255 255 / .09); }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 4rem) clamp(1rem, 4vw, 2rem);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}
.brand-footer { color: #fff; }
.brand-footer .brand-sub { color: var(--accent); }
.footer-brand p { margin-top: .8rem; font-size: .93rem; }
.footer-col h4 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: .5rem; }
.footer-col p { font-size: .92rem; line-height: 1.6; }
.footer-col a { color: #c6d0e4; text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / .25); transition: color 150ms ease, border-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .footer-col a:hover { color: #fff; border-color: var(--accent); } }

.footer-legal { border-top: 1px solid rgb(255 255 255 / .09); }
.footer-legal p {
  max-width: 1200px; margin: 0 auto;
  padding: 1.1rem clamp(1rem, 4vw, 2rem);
  font-size: .82rem; color: #8291b3;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in {
  opacity: 1; transform: translateY(0);
  transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .reveal.in { transition: none; }
  .unidade img, .btn { transition: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 920px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .hero { grid-template-columns: 1fr; padding-top: 1.6rem; }
  .hero-media { order: -1; aspect-ratio: 4 / 3; max-height: 46vh; }
  .lead { max-width: 40ch; }

  .stats-row { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }

  .aulas-grid { grid-template-columns: 1fr; }
  .aulas-media { position: static; aspect-ratio: 16 / 10; }

  .fluxo { grid-template-columns: 1fr; gap: 1.4rem; }
  .precos { grid-template-columns: 1fr; }
  .unidades-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-actions .btn { flex: 1; }
}
