/* ==========================================================
   Gaia Studio · Pilates & Fisioterapia
   Paleta da marca (Instagram @gaiastudio.pt): bordeaux do
   lótus, rosa-blush, rosa-velho, malva e bege.
   ========================================================== */
:root {
  --spruce: #6B2834;
  --spruce-deep: #4A1A23;
  --chalk: #F8F0ED;
  --chalk-2: #F0E0DC;
  --moss: #9A5560;
  --maple: #CDB096;
  --spring: #E7C6A8;
  --rose: #E9CEC8;
  --ink: #2E2426;
  --ink-soft: #6B5A5C;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;

  --step--1: clamp(0.92rem, 0.88rem + 0.15vw, 1rem);
  --step-0: clamp(1.08rem, 1.02rem + 0.3vw, 1.25rem);
  --step-1: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem);
  --step-2: clamp(1.8rem, 1.5rem + 1.4vw, 2.7rem);
  --step-3: clamp(2.4rem, 1.8rem + 3vw, 4.4rem);
  --step-4: clamp(3.2rem, 2rem + 6.5vw, 8.4rem);

  --pad: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  font-variation-settings: "wdth" 85;
}
h2 { font-size: var(--step-3); text-wrap: balance; }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0; max-width: 62ch; }

:focus-visible { outline: 3px solid var(--spring); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--spring); color: var(--ink); padding: .6rem 1rem; border-radius: 8px;
  font-family: var(--display); text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--spruce); --fg: var(--chalk);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem;
  background: var(--bg); color: var(--fg);
  font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: .005em;
  text-decoration: none; border: 2px solid var(--bg); border-radius: 999px;
  transition: transform .35s var(--ease), background .25s, color .25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); background: var(--spruce-deep); }
.btn-small { padding: .6rem 1.15rem; font-size: .95rem; }
.btn-light { --bg: var(--spring); --fg: var(--ink); }
.btn-light:hover { background: #EFD5BE; }
.btn-ghost { background: transparent; color: var(--spruce); }
.btn-ghost:hover { background: var(--spruce); color: var(--chalk); }
.btn-big { padding: 1.2rem 2.2rem; font-size: 1.1rem; }

.link {
  font-family: var(--display); font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  padding-bottom: 2px; transition: background-size .35s var(--ease);
}
.link:hover { background-size: 0 2px; background-position: 100% 100%; }

/* ---------- Barra de progresso (mola) ---------- */
.spring-progress {
  position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60; pointer-events: none;
}
.spring-progress span {
  display: block; height: 100%; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: repeating-linear-gradient(90deg, var(--spruce) 0 6px, var(--moss) 6px 9px);
}

/* ---------- Navegação ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.1rem var(--pad);
  transition: background .35s, padding .35s, box-shadow .35s;
}
.nav.is-scrolled {
  background: rgba(248, 240, 237, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding-top: .7rem; padding-bottom: .7rem;
  box-shadow: 0 1px 0 rgba(107, 40, 52, .08);
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em;
  color: var(--spruce);
}
.brand-mark { width: 30px; height: 30px; color: var(--spruce); }
.brand-mark path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.brand-word { font-family: "Allura", "Brush Script MT", cursive; font-weight: 400; font-size: 2.05rem; letter-spacing: 0; color: var(--ink); line-height: 1; transform: translateY(2px); }
.brand-tag { display: block; font-family: var(--display); font-size: .78rem; letter-spacing: .22em; color: var(--spruce); margin-top: .35rem; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a {
  font-family: var(--display); font-size: .98rem; text-decoration: none; color: var(--ink-soft);
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.is-current { color: var(--spruce); }
.nav-toggle { display: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--spruce); color: var(--chalk);
  display: flex; flex-direction: column; justify-content: center; gap: 1.2rem;
  padding: var(--pad);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) {
  font-family: var(--display); font-size: 2.2rem; font-weight: 600; text-decoration: none;
}
.mobile-menu .btn { align-self: flex-start; margin-top: 1rem; --bg: var(--spring); --fg: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 2rem;
  padding: 7rem var(--pad) 4rem;
  position: relative;
}
.hero-place { font-family: var(--display); color: var(--moss); font-weight: 500; margin-bottom: 1.4rem; }
.hero-title {
  font-size: var(--step-4); font-weight: 750; line-height: .9; letter-spacing: -0.045em;
  color: var(--spruce); font-variation-settings: "wdth" 78;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span {
  display: inline-block; transform: translateY(105%);
  animation: rise 1.1s var(--ease) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: .12s; padding-left: .5em; }
.hero-title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: translateY(0); } }

.hero-lead { margin-top: 2rem; color: var(--ink-soft); max-width: 46ch; opacity: 0; animation: fade .9s .55s forwards; }
.hero-actions { display: flex; align-items: center; gap: 1.6rem; margin-top: 2.2rem; flex-wrap: wrap; opacity: 0; animation: fade .9s .7s forwards; }
.rating-chip {
  display: inline-flex; align-items: center; gap: .7rem; margin-top: 2.6rem;
  font-family: var(--display); font-size: .95rem; text-decoration: none; color: var(--ink-soft);
  opacity: 0; animation: fade .9s .85s forwards;
}
.rating-chip .stars { color: var(--moss); letter-spacing: .1em; font-size: 1.05rem; }
.rating-chip strong { color: var(--ink); }
@keyframes fade { to { opacity: 1; } }

.hero-stage { position: relative; }
.figure-svg { width: 100%; height: auto; overflow: visible; }
.figure-svg .mat { stroke: var(--maple); stroke-width: 10; stroke-linecap: round; }
.figure-svg .limb { stroke: var(--spruce); stroke-width: 11; stroke-linecap: round; fill: none; }
.figure-svg .limb.far { stroke: var(--moss); }
.figure-svg .head { fill: var(--spruce); }
.figure-svg .joint { fill: var(--spring); }
.breath { fill: none; stroke: var(--moss); stroke-width: 1.5; stroke-dasharray: 2 7; opacity: .7; transform-origin: 200px 150px; }
.breath-cue {
  position: absolute; left: 50%; bottom: -0.5rem; transform: translateX(-50%);
  font-family: var(--display); color: var(--moss); font-size: .95rem; height: 1.5em; width: 8em; text-align: center;
}
.breath-cue span { position: absolute; inset: 0; transition: opacity .6s; }
.breath-cue .out { opacity: 0; }
.breath-cue.exhale .in { opacity: 0; }
.breath-cue.exhale .out { opacity: 1; }

/* ---------- Faixa ---------- */
.ribbon {
  background: var(--spruce); color: var(--chalk); overflow: hidden;
  padding: 1.1rem 0; transform: rotate(-1.2deg) scale(1.03); margin: 1rem 0 0;
}
.ribbon-track {
  display: flex; align-items: center; gap: 2.2rem; width: max-content;
  font-family: var(--display); font-size: var(--step-1); font-weight: 500; white-space: nowrap;
  will-change: transform;
}
.ribbon-track i { width: 10px; height: 10px; border-radius: 50%; background: var(--spring); flex: none; }

/* ---------- Método (figura animada no scroll) ---------- */
.method { height: 420vh; background: var(--spruce); color: var(--chalk); position: relative; margin-top: -1rem; }
.method-sticky {
  position: sticky; top: 0; height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 6.5rem var(--pad) 2.5rem;
  overflow: hidden;
}
.method-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: end; }
.method-head h2 { color: var(--chalk); font-size: var(--step-2); max-width: 18ch; }
.method-head p { color: rgba(248, 240, 237, .72); font-size: var(--step--1); max-width: 44ch; }
.method-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; min-height: 0; }
.method-figure { max-height: 58vh; }
.method-figure .limb { stroke: var(--chalk); }
.method-figure .limb.far { stroke: #D7A4AB; }
.method-figure .head { fill: var(--chalk); }
.method-figure .mat { stroke: var(--moss); }
.method-figure .ghosts .limb, .method-figure .ghosts .head { stroke: var(--chalk); fill: none; }
.method-figure .ghosts .head { fill: var(--chalk); }

.poses { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.pose {
  display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; align-items: start;
  opacity: .32; transition: opacity .5s var(--ease), transform .5s var(--ease);
  transform: translateX(0);
}
.pose.is-active { opacity: 1; transform: translateX(.6rem); }
.pose-n {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1.5px solid currentColor;
  display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 1rem;
  transition: background .4s, color .4s, border-color .4s;
}
.pose.is-active .pose-n { background: var(--spring); color: var(--ink); border-color: var(--spring); }
.pose h3 { font-size: var(--step-1); margin-bottom: .3rem; }
.pose p { font-size: var(--step--1); color: rgba(248, 240, 237, .78); max-width: 40ch; }
.method-meter { height: 2px; background: rgba(248, 240, 237, .18); margin-top: 1.5rem; }
.method-meter span { display: block; height: 100%; background: var(--spring); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Serviços ---------- */
.services { padding: clamp(5rem, 12vw, 10rem) var(--pad); }
.section-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head h2 { color: var(--spruce); max-width: 16ch; }
.section-head p { color: var(--ink-soft); }

.service-list { display: grid; gap: 0; }
.service {
  display: grid; grid-template-columns: minmax(140px, 1fr) 3fr; gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(2rem, 4vw, 3.4rem) 0;
  border-top: 1.5px solid rgba(107, 40, 52, .16);
  align-items: start;
}
.service:last-child { border-bottom: 1.5px solid rgba(107, 40, 52, .16); }
.service-art {
  aspect-ratio: 1; max-width: 200px; border-radius: 50%; background: var(--chalk-2);
  display: grid; place-items: center; transition: background .5s var(--ease);
}
.service-art svg { width: 62%; fill: none; stroke: var(--spruce); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.service-art svg circle { fill: var(--spring); stroke: none; }
.service-art svg path, .service-art svg line, .service-art svg rect {
  stroke-dasharray: 320; stroke-dashoffset: 320; transition: stroke-dashoffset 1.6s var(--ease);
}
.service.in-view .service-art svg path,
.service.in-view .service-art svg line,
.service.in-view .service-art svg rect { stroke-dashoffset: 0; }
.service:hover .service-art { background: var(--maple); }
.service-body h3 { font-size: var(--step-2); color: var(--spruce); margin-bottom: 1rem; max-width: 20ch; }
.service-body p { color: var(--ink-soft); }
.service-body ul { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .45rem; font-size: var(--step--1); }
.service-body li { padding-left: 1.6rem; position: relative; }
.service-body li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: .9rem; height: 2px; background: var(--moss);
}

/* ---------- Abordagem (coluna) ---------- */
.approach { height: 300vh; background: var(--chalk-2); position: relative; }
.approach-sticky {
  position: sticky; top: 0; height: 100svh;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: center;
  padding: 5rem var(--pad) 3rem; overflow: hidden;
}
.spine-wrap { display: grid; place-items: center; height: 100%; max-height: 78vh; }
#spine { width: 100%; height: 100%; max-width: 360px; overflow: visible; }
#spine .vert { fill: var(--spruce); }
#spine .vert.lumbar { fill: var(--moss); }
#spine .disc { fill: var(--spring); }
#spine .base { fill: var(--maple); }
.approach-copy h2 { color: var(--spruce); }
.approach-lead { margin-top: 1.4rem; color: var(--ink-soft); max-width: 48ch; }
.steps { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; gap: 1.4rem; }
.steps li {
  display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; align-items: start;
  opacity: .3; transition: opacity .5s var(--ease);
}
.steps li.is-active { opacity: 1; }
.step-n {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--spruce); color: var(--chalk);
  display: grid; place-items: center; font-family: var(--display); font-weight: 600;
}
.steps h3 { color: var(--spruce); margin-bottom: .2rem; }
.steps p { font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- Avaliações ---------- */
.reviews {
  background: var(--spruce); color: var(--chalk);
  display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 6rem); align-items: center;
  padding: clamp(5rem, 12vw, 9rem) var(--pad);
}
.score { text-align: left; }
.score-num {
  font-family: var(--display); font-weight: 750; font-size: clamp(6rem, 18vw, 15rem); line-height: .85;
  letter-spacing: -0.05em; font-variation-settings: "wdth" 75; color: var(--chalk);
  font-variant-numeric: tabular-nums;
}
.score-stars { position: relative; display: inline-block; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: .12em; margin-top: 1rem; }
.score-stars .base { color: rgba(248, 240, 237, .18); }
.score-stars .fill {
  position: absolute; inset: 0; color: var(--spring); overflow: hidden; white-space: nowrap;
  width: var(--fill, 0%); transition: width 1.6s var(--ease);
}
.score-label { margin-top: .8rem; color: rgba(248, 240, 237, .7); font-size: var(--step--1); }
.reviews-copy h2 { color: var(--chalk); max-width: 15ch; }
.reviews-copy > p { margin-top: 1.4rem; color: rgba(248, 240, 237, .78); }
.reviews-actions { margin-top: 2rem; }
.quotes { display: grid; gap: 1rem; margin-top: 2.4rem; }
.quotes:empty { display: none; }
.quote {
  border-left: 3px solid var(--spring); padding: .2rem 0 .2rem 1.2rem;
  font-style: italic; color: rgba(248, 240, 237, .9);
}
.quote cite { display: block; margin-top: .4rem; font-style: normal; font-family: var(--display); font-size: .9rem; color: var(--maple); }

/* ---------- Visitar ---------- */
.visit { padding: clamp(5rem, 12vw, 9rem) var(--pad); }
.visit-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 5rem); align-items: stretch; }
.visit-info h3 { color: var(--spruce); margin: 2rem 0 .8rem; }
.visit-info h3:first-of-type { margin-top: 1.2rem; }
.open-now {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  padding: .45rem .9rem; border-radius: 999px; background: var(--chalk-2); color: var(--ink-soft);
}
.open-now::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: #B9A6A8; }
.open-now.open { background: rgba(154, 85, 96, .18); color: var(--spruce); }
.open-now.open::before { background: var(--moss); box-shadow: 0 0 0 0 rgba(154, 85, 96, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(154, 85, 96, 0); } 100% { box-shadow: 0 0 0 0 rgba(154, 85, 96, 0); } }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; font-size: var(--step--1); }
.hours th, .hours td { padding: .55rem 0; border-bottom: 1px solid rgba(107, 40, 52, .12); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today th, .hours tr.today td { font-weight: 600; color: var(--spruce); }
.hours tr.today th::after { content: " (hoje)"; font-weight: 400; color: var(--moss); }
.small { font-size: .92rem; color: var(--ink-soft); margin-top: .8rem; }
address { font-style: normal; line-height: 1.55; }
.contact-links { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.map { position: relative; border-radius: 28px; overflow: hidden; min-height: 420px; background: var(--chalk-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.5) sepia(.18) contrast(1.02); }
.map-link {
  position: absolute; left: 1rem; bottom: 1rem; background: var(--chalk); color: var(--spruce);
  font-family: var(--display); font-weight: 600; font-size: .92rem; text-decoration: none;
  padding: .6rem 1rem; border-radius: 999px; box-shadow: 0 6px 20px rgba(74, 26, 35, .18);
}

/* ---------- CTA final ---------- */
.final {
  background: var(--rose); color: var(--ink); text-align: center;
  padding: clamp(5rem, 12vw, 9rem) var(--pad); position: relative; overflow: hidden;
}
.final-wave { position: absolute; left: 0; right: 0; top: 2rem; width: 100%; height: 90px; }
.final-wave path { fill: none; stroke: var(--spruce); stroke-width: 2; opacity: .35; }
.final h2 { color: var(--spruce); max-width: 18ch; margin: 0 auto; }
.final p { margin: 1.4rem auto 2.4rem; color: var(--spruce-deep); }
.final .btn-light { --bg: var(--spruce); --fg: var(--chalk); }
.final .btn-light:hover { background: var(--spruce-deep); }

/* ---------- Rodapé ---------- */
.footer {
  background: var(--spruce-deep); color: rgba(248, 240, 237, .78);
  padding: 4rem var(--pad) 2rem; display: grid; grid-template-columns: 1fr 2fr; gap: 2rem;
  font-size: var(--step--1);
}
.footer .brand-word { color: var(--chalk); }
.footer .brand-mark { color: var(--spring); }
.footer .brand-tag { color: var(--spring); }
.footer-brand p { margin-top: .4rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer h4 { color: var(--chalk); font-size: 1rem; margin-bottom: .6rem; font-weight: 600; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--spring); }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(248, 240, 237, .12); padding-top: 1.4rem; font-size: .88rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .nav-links, .nav > .btn-small { display: none; }
  .nav-toggle {
    display: grid; gap: 6px; margin-left: auto; background: none; border: 0; padding: .6rem; cursor: pointer; z-index: 60;
  }
  .nav-toggle span { display: block; width: 26px; height: 2px; background: var(--spruce); transition: transform .3s, background .3s; }
  .nav-toggle[aria-expanded="true"] span { background: var(--chalk); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .menu-open .brand { position: relative; z-index: 60; }
  .menu-open .brand-word { color: var(--chalk); }
  .menu-open .brand-mark { color: var(--spring); }
  .menu-open .nav { background: transparent; box-shadow: none; backdrop-filter: none; }

  .hero { grid-template-columns: 1fr; padding-top: 6.5rem; gap: 1rem; }
  .hero-stage { order: -1; max-width: 360px; margin: 0 auto; width: 100%; }
  .method-head, .section-head, .reviews, .visit-grid, .footer { grid-template-columns: 1fr; }
  .method-sticky { padding-top: 5rem; }
  .method-head p { display: none; }
  .method-grid { grid-template-columns: 1fr; gap: 1rem; align-content: center; }
  .method-figure { max-height: 34vh; }
  .poses { position: relative; min-height: 9.5rem; }
  .pose { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(12px); }
  .pose.is-active { opacity: 1; transform: none; }
  .approach-sticky { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; padding-top: 4.5rem; gap: 1.2rem; }
  .spine-wrap { height: 30svh; max-height: none; }
  #spine { height: 30svh; width: auto; }
  .approach-lead { display: none; }
  .steps { margin-top: 1.2rem; gap: 1rem; }
  .service { grid-template-columns: 1fr; }
  .service-art { max-width: 120px; }
  .footer-cols { grid-template-columns: 1fr; }
  .map { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .hero-title .line > span { transform: none; }
  .hero-lead, .hero-actions, .rating-chip { opacity: 1; }
}
