/* Terral Pilates · Brandbook 2026
   Bordô #3E1220 · Terracota #B96C4A · Verde oliva #7D6B36 · Creme #F5F8E4
   Títulos: Instrument Serif · Textos: Inter */

:root {
  --bordo: #3e1220;
  --terracota: #b96c4a;
  --oliva: #7d6b36;
  --creme: #f5f8e4;
  --creme-deep: #ecebd3;
  --card: #fbfcf2;
  --terra-soft: #ead1c1;
  --muted: rgba(62, 18, 32, 0.72);
  --border: rgba(62, 18, 32, 0.14);
  --shadow: 0 20px 40px -18px rgba(62, 18, 32, 0.22);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --max: 80rem;
  --gutter: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--bordo);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
::selection { background: var(--terracota); color: var(--creme); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
  margin: 0;
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--terracota); }
.nowrap { white-space: nowrap; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 6rem 0; }
.bg-deep { background: var(--creme-deep); }
.center { text-align: center; }

.eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracota);
}
.h2 { font-size: clamp(2.6rem, 6vw, 3.75rem); margin-top: 1rem; }
.lead { margin-top: 1.5rem; font-weight: 300; color: var(--muted); max-width: 42rem; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: var(--terracota);
  color: var(--creme);
  padding: 0.95rem 1.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  box-shadow: 0 2px 6px rgba(62, 18, 32, 0.1);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.btn:hover { background: var(--bordo); box-shadow: 0 6px 16px rgba(62, 18, 32, 0.18); }
.btn svg { width: 15px; height: 15px; transition: transform 0.3s; }
.btn:hover svg { transform: translateX(4px); }
.btn-sm { padding: 0.65rem 1.25rem; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245, 248, 228, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.header.scrolled { background: rgba(245, 248, 228, 0.94); border-color: var(--border); box-shadow: 0 1px 8px rgba(62, 18, 32, 0.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 0.85rem; padding-bottom: 0.85rem; }
.logo img { height: 44px; width: auto; }
.nav { display: none; gap: 1.75rem; }
.nav a { position: relative; font-size: 0.875rem; color: rgba(62, 18, 32, 0.75); transition: color 0.3s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0; background: var(--terracota); transition: width 0.3s; }
.nav a:hover { color: var(--terracota); }
.nav a:hover::after { width: 100%; }
.header .btn { display: none; }
.menu-toggle { background: none; border: 0; padding: 0.25rem; display: flex; }
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .i-close { display: none; }
.header.open .menu-toggle .i-close { display: block; }
.header.open .menu-toggle .i-open { display: none; }
.mobile-menu { display: none; border-top: 1px solid var(--border); background: var(--creme); }
.header.open .mobile-menu { display: block; }
.mobile-menu .container { display: flex; flex-direction: column; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.mobile-menu a:not(.btn) { font-size: 0.9rem; color: rgba(62, 18, 32, 0.8); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-mark { position: absolute; left: -6rem; top: 2.5rem; width: 26rem; opacity: 0.06; pointer-events: none; display: none; }
.hero-grid { position: relative; display: grid; gap: 3rem; padding-top: 3rem; padding-bottom: 5rem; }
.hero-text { display: flex; flex-direction: column; justify-content: center; text-align: center; }
.hero h1 { font-size: clamp(3.4rem, 9vw, 5.6rem); line-height: 0.98; margin-top: 1.5rem; }
.hero .lead { margin-left: auto; margin-right: auto; max-width: 32rem; }
.hero .btn { margin-top: 2.25rem; align-self: center; }
.hero small { display: block; margin-top: 1.5rem; font-size: 0.75rem; color: var(--muted); }
.arch-wrap { position: relative; width: 100%; max-width: 28rem; margin: 0 auto; }
.arch-wrap::before { content: ""; position: absolute; inset: 0; transform: translate(1rem, 1rem); border-radius: 999px 999px 2rem 2rem; background: rgba(125, 107, 54, 0.15); }
.arch-wrap.terra::before { transform: translate(-1rem, 1rem); background: rgba(185, 108, 74, 0.2); }
.arch-wrap > img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 2rem 2rem; box-shadow: var(--shadow); }
.float-card {
  position: absolute; bottom: -1.5rem; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--card); border-radius: 1rem; padding: 1rem 1.25rem;
  box-shadow: var(--shadow); outline: 1px solid var(--border);
  white-space: nowrap;
}
.float-card img { height: 40px; width: auto; }
.float-card strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1; }
.float-card span { display: block; margin-top: 0.25rem; font-size: 0.75rem; color: var(--muted); }
.float-card .serif-i { font-family: var(--serif); font-style: italic; font-size: 1.25rem; margin: 0; color: var(--bordo); }
.float-card svg { width: 20px; height: 20px; color: var(--terracota); flex-shrink: 0; }
.floaty { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Pilares */
.pillars { display: grid; gap: 1px; background: var(--border); border-radius: 1.5rem; overflow: hidden; margin-top: 1.5rem; }
.pillar { background: var(--creme-deep); padding: 2.25rem 1.5rem; text-align: center; }
.pillar svg { width: 24px; height: 24px; color: var(--terracota); margin: 0 auto; }
.pillar h3 { font-size: 1.5rem; margin-top: 1rem; }
.pillar p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); }

/* Benefícios */
.benefits { display: grid; column-gap: 3rem; margin-top: 4rem; }
.benefit { border-top: 1px solid var(--border); padding: 1.75rem 0; text-align: center; }
.benefit .num { display: flex; align-items: center; justify-content: center; gap: 0.75rem; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; color: var(--terracota); }
.benefit .num svg { width: 18px; height: 18px; color: var(--oliva); }
.benefit h3 { font-size: 1.9rem; margin-top: 0.75rem; }
.benefit p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); }

/* Princípios */
.principles { position: relative; overflow: hidden; background: var(--oliva); color: var(--creme); padding: 5rem 0; text-align: center; }
.pattern { position: absolute; inset: 0; background-image: url("../img/brand/simbolo-branco.svg"); background-size: 54px auto; background-repeat: space; opacity: 0.07; pointer-events: none; }
.principles .eyebrow { color: rgba(245, 248, 228, 0.75); }
.principles h2 { color: var(--creme); font-size: clamp(2.8rem, 6vw, 3.75rem); margin-top: 1rem; }
.principles h2 em { color: var(--terra-soft); }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; max-width: 48rem; margin: 2.5rem auto 0; position: relative; }
.pills li { border: 1px solid rgba(245, 248, 228, 0.45); border-radius: 999px; padding: 0.6rem 1.25rem; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; }

/* Sobre */
.about-grid { display: grid; gap: 4rem; align-items: center; text-align: center; }
.polaroid { position: relative; max-width: 24rem; margin: 0 auto; background: var(--card); padding: 0.75rem 0.75rem 3.5rem; box-shadow: var(--shadow); transform: rotate(-2deg); transition: transform 0.5s; }
.polaroid:hover { transform: rotate(0); }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 0.9rem; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--terracota); }
.about-text .copy { margin: 1.75rem auto 0; max-width: 36rem; font-weight: 300; color: var(--muted); }
.about-text .copy p + p { margin-top: 1rem; }
.about-text .btn { margin-top: 2.25rem; }

/* Aulas */
.classes { display: grid; gap: 3.5rem; margin-top: 4rem; }
.class { display: flex; flex-direction: column; align-items: center; text-align: center; }
.class .circle { width: 14rem; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow); outline: 1px solid var(--border); }
.class .circle img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s; }
.class:hover .circle img { transform: scale(1.05); }
.class .n { margin-top: 1.75rem; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; color: var(--terracota); }
.class h3 { font-size: 2.25rem; line-height: 1; margin-top: 0.5rem; }
.class hr { width: 100%; max-width: 20rem; border: 0; border-top: 1px solid var(--border); margin: 1.25rem 0; }
.class p { max-width: 20rem; font-size: 0.875rem; color: var(--muted); flex: 1; }
.link-cta { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.5rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; transition: gap 0.3s, color 0.3s; }
.link-cta svg { width: 14px; height: 14px; }
.link-cta:hover { gap: 0.65rem; color: var(--terracota); }
.formats { max-width: 42rem; margin: 4rem auto 0; border: 1px solid var(--border); border-radius: 999px; padding: 1rem 1.5rem; text-align: center; font-size: 0.875rem; color: var(--muted); }
.formats b { font-weight: 400; color: var(--bordo); }

/* Fisioterapia */
.physio-grid { display: grid; gap: 3.5rem; align-items: center; text-align: center; }
.physio-grid .tag { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.physio-grid .tag svg { width: 16px; height: 16px; color: var(--terracota); }
.cards2 { display: grid; gap: 1rem; margin-top: 2.25rem; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; }
.card svg { width: 22px; height: 22px; margin: 0 auto; }
.card h3 { font-size: 1.5rem; margin-top: 0.75rem; }
.card p { margin-top: 0.4rem; font-size: 0.875rem; color: var(--muted); }
.physio-text .btn { margin-top: 2.25rem; }
.physio-media { order: -1; }

/* Números */
.stats { background: var(--terracota); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; padding-top: 4rem; padding-bottom: 4rem; text-align: center; }
.stats-grid strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 3.75rem; line-height: 1; color: var(--creme); }
.stats-grid .eyebrow { margin-top: 0.75rem; color: rgba(245, 248, 228, 0.85); }

/* Galeria */
.slider { position: relative; margin-top: 3rem; overflow: hidden; border-radius: 2rem; box-shadow: var(--shadow); }
.slides { display: flex; transition: transform 0.9s ease-in-out; }
.slides button { flex: 0 0 100%; border: 0; padding: 0; background: none; position: relative; }
.slides img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(245, 248, 228, 0.9); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(62, 18, 32, 0.15); transition: color 0.3s, background 0.3s; }
.arrow:hover { background: var(--creme); color: var(--terracota); }
.arrow svg { width: 20px; height: 20px; }
.arrow.prev { left: 1rem; }
.arrow.next { right: 1rem; }
.dots { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 2rem; }
.dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: rgba(62, 18, 32, 0.2); transition: width 0.3s, background 0.3s; }
.dots button.active { width: 32px; background: var(--terracota); }

.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(62, 18, 32, 0.95); display: none; align-items: center; justify-content: center; padding: 1rem; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 85vh; max-width: 92vw; border-radius: 0.75rem; object-fit: contain; }
.lightbox .lb-btn { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(245, 248, 228, 0.12); color: var(--creme); display: flex; align-items: center; justify-content: center; }
.lightbox .lb-btn:hover { background: rgba(245, 248, 228, 0.22); }
.lightbox .lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 1.25rem; right: 1.25rem; }
.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }

/* Depoimentos */
.testimonials { display: grid; gap: 1.5rem; margin-top: 3.5rem; }
.testimonial { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 2rem; display: flex; flex-direction: column; animation: fadeUp 0.6s ease-out both; }
.testimonial svg { width: 26px; height: 26px; color: var(--terracota); }
.testimonial blockquote { margin: 1.25rem 0 0; font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; flex: 1; }
.testimonial .who { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }
.testimonial .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--terracota); color: var(--creme); font-family: var(--serif); font-size: 1.15rem; display: flex; align-items: center; justify-content: center; }
.testimonial .name { font-size: 0.875rem; font-weight: 500; }
.testimonial .eyebrow { color: var(--muted); letter-spacing: 0.2em; }
.t-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.5rem; }
.t-controls .round { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(62, 18, 32, 0.2); background: var(--card); display: flex; align-items: center; justify-content: center; transition: border-color 0.3s, color 0.3s; }
.t-controls .round:hover { border-color: var(--terracota); color: var(--terracota); }
.t-controls .round svg { width: 18px; height: 18px; }
.t-controls .dots { margin-top: 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* CTA */
.cta { padding: 5rem 0; }
.cta-box { position: relative; overflow: hidden; background: var(--bordo); border-radius: 2rem; padding: 4rem 2rem; text-align: center; }
.cta-box .pattern { opacity: 0.05; }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 42rem; margin: 0 auto; }
.cta-inner > img { height: 64px; width: auto; }
.cta h2 { color: var(--creme); font-size: clamp(3rem, 8vw, 4.5rem); margin-top: 1.5rem; }
.cta p { margin-top: 1.25rem; max-width: 28rem; font-weight: 300; color: rgba(245, 248, 228, 0.85); }
.cta .btn { margin-top: 2.25rem; }
.cta .btn:hover { background: var(--creme); color: var(--bordo); }

/* Rodapé */
.footer { background: var(--bordo); color: var(--creme); }
.footer-grid { display: grid; gap: 3rem; padding-top: 4rem; padding-bottom: 4rem; text-align: center; }
.footer-logo img { height: 56px; width: auto; margin: 0 auto; }
.footer-about { margin: 1.5rem auto 0; max-width: 24rem; font-size: 0.875rem; font-weight: 300; color: rgba(245, 248, 228, 0.75); }
.footer .eyebrow { color: var(--terra-soft); }
.footer-list { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; color: rgba(245, 248, 228, 0.8); }
.footer-list a, .footer-list p { display: flex; align-items: flex-start; justify-content: center; gap: 0.5rem; transition: color 0.3s; }
.footer-list a:hover { color: var(--creme); }
.footer-list svg { width: 14px; height: 14px; color: var(--terra-soft); flex-shrink: 0; margin-top: 0.3rem; }
.footer-list small { font-size: 0.75rem; color: rgba(245, 248, 228, 0.6); }
.footer-bottom { border-top: 1px solid rgba(245, 248, 228, 0.15); }
.footer-bottom .container { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding-top: 1.5rem; padding-bottom: 1.5rem; font-size: 0.75rem; color: rgba(245, 248, 228, 0.6); }
.footer-bottom a:hover { color: var(--creme); }
.footer-bottom .links { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50; width: 56px; height: 56px; border-radius: 50%; background: var(--terracota); color: var(--creme); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(62, 18, 32, 0.25); transition: transform 0.3s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; position: relative; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(185, 108, 74, 0.5); animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(1.8); opacity: 0; } }

/* Animações de entrada */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease-out, transform 0.9s ease-out; }
.reveal.in { opacity: 1; transform: none; }
.fade-up { animation: fadeUp 0.8s ease-out both; }

/* Página de privacidade */
.legal { padding: 3rem 0 5rem; }
.legal .container { max-width: 48rem; }
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.legal-top img { height: 48px; width: auto; }
.legal-top a.back { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; transition: color 0.3s; }
.legal-top a.back:hover { color: var(--terracota); }
.legal-top a.back svg { width: 16px; height: 16px; }
.legal h1 { font-size: clamp(3rem, 7vw, 3.75rem); margin-top: 1rem; }
.legal .updated { margin-top: 1rem; font-size: 0.875rem; color: var(--muted); }
.legal section { margin-top: 2.25rem; color: var(--muted); }
.legal h2 { font-size: 1.9rem; color: var(--bordo); }
.legal section p { margin-top: 0.75rem; }

/* Tablet */
@media (min-width: 640px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .benefit { text-align: left; }
  .benefit .num { justify-content: flex-start; }
  .cards2 { grid-template-columns: repeat(2, 1fr); }
  .wa-float { right: 1.75rem; bottom: 1.75rem; width: 64px; height: 64px; }
  .wa-float svg { width: 32px; height: 32px; }
}
@media (min-width: 768px) {
  .classes { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; text-align: left; }
  .footer-logo img { margin: 0; }
  .footer-about { margin-left: 0; }
  .footer-list a, .footer-list p { justify-content: flex-start; }
  .footer-bottom .container, .footer-bottom .links { flex-direction: row; justify-content: space-between; }
  .footer-bottom .links { gap: 1rem; }
}

/* Desktop */
@media (min-width: 1024px) {
  :root { --gutter: 2.5rem; }
  .section { padding: 8rem 0; }
  .logo img { height: 48px; }
  .nav, .header .btn { display: inline-flex; }
  .menu-toggle, .mobile-menu, .header.open .mobile-menu { display: none; }
  .hero-mark { display: block; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; padding-top: 5rem; padding-bottom: 7rem; }
  .hero-text { text-align: left; }
  .hero .lead { margin-left: 0; }
  .hero .btn { align-self: flex-start; }
  .arch-wrap { max-width: none; }
  .float-card { left: 1.5rem; transform: none; }
  .pillars { grid-template-columns: repeat(4, 1fr); margin-top: 2.5rem; }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .principles { padding: 6rem 0; }
  .about-grid { grid-template-columns: 1fr 1fr; text-align: left; }
  .about-text .copy { margin-left: 0; }
  .polaroid { max-width: 28rem; }
  .class .circle { width: 16rem; }
  .physio-grid { grid-template-columns: 1.05fr 0.95fr; text-align: left; }
  .physio-grid .tag { justify-content: flex-start; }
  .physio-media { order: 0; }
  .card svg { margin: 0; }
  .stats-grid { padding-top: 5rem; padding-bottom: 5rem; }
  .stats-grid strong { font-size: 4.5rem; }
  .cta { padding: 6rem 0; }
  .cta-box { padding: 5rem 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .floaty, .wa-float::before, .fade-up, .testimonial { animation: none; }
  .slides { transition: none; }
}

/* Ícones (traço fino) */
.i { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.btn .i, .link-cta .i { stroke-width: 2; }
