/* ==========================================================
   OsteoVitta Pilates — paleta derivada do logo e do site atual
   azul da marca #0278C1 · azul do logo #0098DA · grafite #383637
   ========================================================== */
:root {
  --blue-950: #06263C;
  --blue-900: #083654;
  --blue-800: #0B4F7C;
  --blue-700: #0565A3;
  --blue-600: #0278C1;   /* cor principal (botões, links) */
  --blue-500: #0098DA;   /* azul do logo (destaques) */
  --blue-300: #7CC7EC;
  --blue-100: #D7EDF9;
  --blue-50:  #EFF7FC;
  --ink: #2C2A2C;        /* grafite do logo */
  --muted: #5B6570;
  --line: #DCE7EF;
  --white: #FFFFFF;
  --wa: #25D366;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(8, 54, 84, .06), 0 12px 32px -12px rgba(8, 54, 84, .18);
  --wrap: 1200px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
/* Rede de segurança contra rolagem lateral (clip não quebra o topo fixo, ao contrário de hidden) */
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); }
svg { width: 1.2em; height: 1.2em; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--blue-800); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* ---------- Tipografia ---------- */
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-600); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--blue-300); }
.h1, .h2, .hero__title { font-family: var(--font-display); font-weight: 400; letter-spacing: -.01em; line-height: 1.12; margin: 0 0 20px; }
.h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); color: var(--blue-950); }
.h1 em, .h2 em, .hero__title em { font-style: italic; color: var(--blue-500); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 60ch; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font: 600 .95rem/1 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .2s, box-shadow .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(2, 120, 193, .6); }
.btn--primary:hover { background: var(--blue-700); }
.btn--light { background: #fff; color: var(--blue-800); }
.btn--light:hover { background: var(--blue-50); }
.btn--ghost { border-color: var(--line); color: var(--blue-800); background: transparent; }
.btn--ghost:hover { border-color: var(--blue-600); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow svg { transition: transform .2s; }

/* ---------- Topo ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.topbar.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(8, 54, 84, .5); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .93rem; position: relative; padding: 6px 0; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue-500); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.nav ul a:hover::after, .nav ul a[aria-current]::after { transform: scaleX(1); }
.nav__cta { padding: 11px 20px; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--blue-800); border-radius: 2px; transition: transform .25s, opacity .2s; content: ""; }
.menu-toggle__bars { top: 21px; }
.menu-toggle__bars::before { left: 0; right: 0; top: -7px; }
.menu-toggle__bars::after { left: 0; right: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
  :root { --header-h: 72px; }
  .brand img { height: 46px; }
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(8, 54, 84, .35); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav ul a::after { display: none; }
  .nav__cta { margin-top: 18px; padding: 15px; }
}

/* ---------- Hero / carrossel ---------- */
.hero { position: relative; height: clamp(480px, 74vh, 720px); overflow: hidden; background: var(--blue-950); }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__slide picture, .hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__slide img { transform: scale(1.06); transition: transform 7s ease-out; }
.hero__slide.is-active img { transform: scale(1); }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 38, 60, .88) 0%, rgba(6, 38, 60, .55) 45%, rgba(6, 38, 60, .1) 80%), linear-gradient(0deg, rgba(6, 38, 60, .45), transparent 40%); }
.hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; color: #fff; padding-bottom: 40px; }
.hero__title { font-size: clamp(2.5rem, 6vw, 4.6rem); color: #fff; max-width: 14ch; }
.hero__title em { display: block; color: var(--blue-300); }
.hero__slide.is-active .hero__content > * { animation: rise .8s both; }
.hero__slide.is-active .hero__content > *:nth-child(2) { animation-delay: .1s; }
.hero__slide.is-active .hero__content > *:nth-child(3) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__controls { position: absolute; left: 0; right: 0; bottom: 32px; z-index: 3; display: flex; justify-content: space-between; align-items: center; }
.hero__dots { display: flex; gap: 10px; }
.hero__dots button { width: 34px; height: 4px; border-radius: 4px; border: 0; padding: 0; background: rgba(255, 255, 255, .35); cursor: pointer; transition: background .2s, width .3s; }
.hero__dots button[aria-selected="true"] { background: #fff; width: 56px; }
.hero__arrows { display: flex; gap: 10px; }
.hero__arrows button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.hero__arrows button:hover { background: rgba(255, 255, 255, .2); }
@media (max-width: 720px) {
  .hero { height: min(82svh, 640px); }
  .hero__slide::after { background: linear-gradient(0deg, rgba(6, 38, 60, .92) 0%, rgba(6, 38, 60, .45) 55%, rgba(6, 38, 60, .15) 100%); }
  .hero__content { justify-content: flex-end; padding-bottom: 96px; }
  .hero__arrows { display: none; }
}

/* ---------- Faixa de diferenciais ---------- */
.facts { background: var(--blue-800); color: #fff; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts__grid > div { padding: 26px 22px; display: flex; flex-direction: column; border-left: 1px solid rgba(255, 255, 255, .12); }
.facts__grid > div:first-child { border-left: 0; padding-left: 0; }
.facts strong { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; }
.facts span { color: var(--blue-100); font-size: .88rem; }
@media (max-width: 820px) {
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .facts__grid > div { padding: 20px 14px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .facts__grid > div:nth-child(-n+2) { border-top: 0; }
  .facts__grid > div:first-child { padding-left: 14px; }
  .facts__grid > div { min-width: 0; }
}
@media (max-width: 400px) {
  .facts strong { font-size: 1.08rem; }
  .facts span { font-size: .8rem; }
}

/* ---------- Seções ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--tint { background: var(--blue-50); }
.section--deep { background: radial-gradient(1200px 500px at 85% -10%, rgba(0, 152, 218, .35), transparent 60%), var(--blue-900); color: #fff; }
.section--deep .h2 { color: #fff; }
.section--deep .h2 em { color: var(--blue-300); }
.section__head { margin-bottom: 48px; }
.section__head--center { text-align: center; }
.section__head--center .lead { margin-inline: auto; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section__head--row .h2 { margin: 0; }

/* O que é Pilates */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split__media { position: relative; padding: 0 60px 60px 0; }
.split__media > img:first-child { border-radius: var(--radius); aspect-ratio: 4/3.2; height: auto; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.split__media-sm { position: absolute; right: 0; bottom: 0; width: 38%; height: auto; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow); }
.split__text p { color: var(--muted); }
.split__text strong { color: var(--ink); }
.split__text .btn { margin-top: 12px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split__media { padding: 0 40px 40px 0; } }

/* Benefícios */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .12); border-radius: var(--radius); overflow: hidden; }
.benefit { background: var(--blue-900); padding: 36px 32px; transition: background .3s; }
.benefit:hover { background: #0A3E61; }
.benefit__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(0, 152, 218, .18); color: var(--blue-300); margin-bottom: 22px; }
.benefit__icon svg { width: 28px; height: 28px; }
.benefit h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 10px; line-height: 1.35; }
.benefit h3 span { display: block; font-weight: 500; color: var(--blue-300); font-size: .9rem; }
.benefit p { margin: 0; color: rgba(255, 255, 255, .72); font-size: .93rem; }
@media (max-width: 960px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .benefits { grid-template-columns: 1fr; } .benefit { padding: 28px 24px; } }

/* Galeria */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 14px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.gallery img:first-child { grid-row: span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 150px 150px; }
  .gallery img:first-child { grid-row: auto; grid-column: span 2; }
  .gallery img:last-child { grid-column: span 2; }
  .gallery img:nth-child(4) { display: none; }
}

/* ---------- Planos ---------- */
.tabs { display: flex; justify-content: center; gap: 6px; margin: 0 auto 40px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; width: fit-content; }
.tabs button { border: 0; background: transparent; padding: 12px 26px; border-radius: 999px; font: 600 .95rem var(--font-body); color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--blue-600); color: #fff; }
.tabs button:not([aria-selected="true"]):hover { color: var(--blue-800); }
@media (max-width: 560px) {
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding: 11px 6px; font-size: .88rem; }
}
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.plans[hidden] { display: none; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px 28px; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.plan__badge { position: absolute; top: 18px; right: 18px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-700); background: var(--blue-50); padding: 6px 10px; border-radius: 999px; }
.plan__cat { margin: 0; font-size: .8rem; font-weight: 600; color: var(--blue-600); letter-spacing: .04em; }
.plan__name { margin: 4px 0 18px; font-size: 1.15rem; font-weight: 700; color: var(--blue-950); line-height: 1.3; }
.plan__name span { font-weight: 500; color: var(--muted); }
.plan__price { margin: 0; font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--blue-950); display: flex; align-items: baseline; gap: 6px; }
.plan__price small { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan__price span { font-family: var(--font-body); font-size: .95rem; color: var(--muted); }
.plan__note { margin: 8px 0 0; font-size: .85rem; color: var(--muted); }
.plan__list { list-style: none; padding: 20px 0 0; margin: 20px 0 26px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: .92rem; }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; }
.plan__list svg { color: var(--blue-500); margin-top: 4px; width: 1em; height: 1em; }
.plan__cta { margin-top: auto; width: 100%; }
.plan--featured { background: linear-gradient(160deg, var(--blue-700), var(--blue-900)); border-color: transparent; color: #fff; box-shadow: 0 24px 48px -20px rgba(5, 101, 163, .6); }
.plan--featured .plan__cat, .plan--featured .plan__list svg { color: var(--blue-300); }
.plan--featured .plan__name, .plan--featured .plan__price { color: #fff; }
.plan--featured .plan__name span, .plan--featured .plan__price small, .plan--featured .plan__price span, .plan--featured .plan__note { color: var(--blue-100); }
.plan--featured .plan__list { border-color: rgba(255, 255, 255, .18); }
.plan--featured .plan__badge { background: var(--blue-500); color: #fff; }
.plans__foot { text-align: center; color: var(--muted); font-size: .9rem; margin: 32px 0 0; }

/* ---------- Depoimento ---------- */
.testimonial { background: linear-gradient(180deg, var(--blue-50), #fff); padding-block: 90px; }
.testimonial__inner { text-align: center; max-width: 820px; }
.stars { color: #F5B301; letter-spacing: 4px; font-size: 1.2rem; }
.testimonial blockquote { margin: 18px 0 0; }
.testimonial blockquote p { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.35; color: var(--blue-950); margin: 0 0 20px; font-style: italic; }
.testimonial footer { font-weight: 700; color: var(--blue-800); }
.testimonial footer span { font-weight: 500; color: var(--muted); }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.contact__list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 16px; align-items: center; }
.contact__list li > svg { width: 46px; height: 46px; padding: 12px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); }
.contact__list strong { display: block; color: var(--blue-950); font-weight: 600; }
.contact__list span { font-size: .88rem; color: var(--muted); }
.contact__map { min-height: 380px; border-radius: var(--radius); overflow: hidden; background: var(--blue-50); box-shadow: var(--shadow); }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Cabeçalho de página interna ---------- */
.page-head { background: radial-gradient(900px 400px at 90% 0%, rgba(0, 152, 218, .4), transparent 60%), var(--blue-900); color: #fff; padding: clamp(64px, 9vw, 110px) 0 clamp(56px, 7vw, 90px); }
.page-head .h1 em { color: var(--blue-300); }
.page-head .lead { color: var(--blue-100); }

/* Equipamentos */
.prose { max-width: 760px; color: var(--muted); font-size: 1.05rem; margin-bottom: 70px; }
.equip { display: grid; gap: clamp(56px, 8vw, 100px); }
.equip__item { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.equip__item--rev .equip__media { order: 2; }
.equip__media { background: var(--blue-50); border-radius: var(--radius); padding: 30px; aspect-ratio: 5/4; display: grid; place-items: center; }
.equip__media img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.equip__text p { color: var(--muted); }
@media (max-width: 820px) { .equip__item { grid-template-columns: 1fr; } .equip__item--rev .equip__media { order: 0; } }

.cta-band { background: var(--blue-600); color: #fff; padding: 56px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band .h2 { color: #fff; margin: 0; }

/* ---------- Rodapé ---------- */
.footer { background: var(--blue-950); color: rgba(255, 255, 255, .75); padding: 72px 0 0; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer__brand img { height: 64px; width: auto; margin-bottom: 18px; }
.footer__brand p { max-width: 32ch; }
.footer__title { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__links a { color: inherit; text-decoration: none; display: inline-flex; gap: 10px; align-items: flex-start; }
.footer__links a svg { margin-top: 4px; color: var(--blue-300); }
.footer__links a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; font-size: .82rem; color: rgba(255, 255, 255, .5); }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr; } }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .35); transition: transform .2s; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.07); }

/* Revelação ao rolar */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
