/* AVIV Club Pilates: creme e vinho da marca, serifa clássica (EB Garamond: acentos corretos em português) + sans geométrica,
   arcos como os do estúdio. */

:root {
  --bg: #f4ede4;
  --bg-2: #ebe1d5;
  --surface: #fbf7f2;
  --ink: #2b1a1f;
  --muted: #6b5a5e;
  --line: rgba(91, 26, 44, .16);
  --wine: #5b1a2c;
  --wine-2: #7a2a3f;
  --wine-text: #6a1830;
  --taupe: #b09a86;
  --cream: #f6efe6;

  --serif: "EB Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;

  --r: 18px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 76px;
  --pad: clamp(18px, 4vw, 40px);
  --max: 1200px;

  --z-header: 30;
  --z-float: 20;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1114;
    --bg-2: #22161a;
    --surface: #261a1e;
    --ink: #f3ebe2;
    --muted: #c2b2b0;
    --line: rgba(243, 235, 226, .14);
    --wine-text: #e4a5b4;
  }
}

*, *::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; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--wine-2); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--wine); color: var(--cream); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(72px, 10vw, 136px) 0; }

.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.08; letter-spacing: -.015em;
  margin: 0 0 20px;
}
.h2 em, .hero__title em, .final h2 em { font-style: italic; color: var(--wine-text); }

.eyebrow { margin: 0 0 22px; font-size: .78rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--wine-text); }
.eyebrow--light { color: #e7c9d0; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font: 500 1rem/1 var(--sans); letter-spacing: .02em; text-decoration: none;
  padding: 16px 26px; border-radius: 999px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.btn i { font-size: 1.25em; }
.btn--wine { color: var(--cream); background: var(--wine); box-shadow: 0 14px 28px -16px rgba(91, 26, 44, .8); }
.btn--wine:hover { background: var(--wine-2); transform: translateY(-2px); }
.btn--cream { color: var(--wine); background: var(--cream); }
.btn--cream:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .5); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--sm { padding: 11px 18px; font-size: .94rem; }
.btn--lg { padding: 19px 30px; font-size: 1.05rem; }

.link-line {
  display: inline-block; padding: 6px 0; font-weight: 500; text-decoration: none; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .4s var(--ease), color .3s var(--ease);
}
.link-line:hover { color: var(--wine-text); background-size: 40% 1px; }

/* ---------- aviso da inauguração ---------- */
.aviso {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px var(--pad); background: var(--wine); color: var(--cream);
  font-size: .92rem; text-decoration: none; text-align: center;
}
.aviso strong { font-weight: 600; }
.aviso i { transition: transform .3s var(--ease); }
.aviso:hover i { transform: translateX(4px); }
.evento-acabou .js-evento { display: none !important; }

/* ---------- topo ---------- */
.topo { position: sticky; top: 0; z-index: var(--z-header); height: var(--header-h); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: box-shadow .4s var(--ease); }
.topo.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.topo__inner { height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; gap: 32px; }
.marca img { height: 40px; width: auto; }
@media (prefers-color-scheme: dark) { .marca img { content: url("../assets/img/logo-creme.png"); } }
.topo__nav { display: flex; gap: 30px; margin-left: auto; }
.topo__nav a { text-decoration: none; font-size: .95rem; color: var(--muted); transition: color .3s var(--ease); }
.topo__nav a:hover { color: var(--wine-text); }
@media (max-width: 960px) { .topo__nav { display: none; } .topo .btn--sm { margin-left: auto; } }
@media (max-width: 420px) { .marca img { height: 34px; } }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 7vw, 100px); align-items: center; }
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -.02em;
  margin: 0 0 26px; max-width: 12ch; padding-bottom: 6px;
}
.hero__sub { font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 40ch; margin: 0 0 36px; font-weight: 300; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.hero__visual { position: relative; padding: 0 22px 22px 0; }
.arco { border-radius: 999px 999px var(--r) var(--r); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 70px -40px rgba(91, 26, 44, .55); }
.arco img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.arco__linha { position: absolute; inset: 22px 0 0 22px; border: 1px solid var(--wine-2); border-radius: 999px 999px var(--r) var(--r); z-index: -1; opacity: .55; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 420px; }
}
@media (prefers-reduced-motion: no-preference) {
  .js [data-in] { opacity: 0; translate: 0 22px; }
  .js [data-in="visual"] { translate: 0 30px; }
  .is-loaded [data-in] { animation: rise 1.1s var(--ease) forwards; }
  .is-loaded [data-in="1"] { animation-delay: .05s; }
  .is-loaded [data-in="2"] { animation-delay: .15s; }
  .is-loaded [data-in="3"] { animation-delay: .3s; }
  .is-loaded [data-in="4"] { animation-delay: .42s; }
  .is-loaded [data-in="visual"] { animation-delay: .2s; }
}
@keyframes rise { to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; translate: 0 24px; transition: opacity .9s var(--ease), translate .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; translate: 0 0; }
}

/* ---------- inauguração ---------- */
.evento { background: var(--wine); color: var(--cream); padding: clamp(64px, 9vw, 120px) 0; position: relative; overflow: hidden; }
.evento::before {
  content: ""; position: absolute; right: -12%; top: -30%; width: 60vw; max-width: 760px; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(246, 239, 230, .14); box-shadow: 0 0 0 60px rgba(246, 239, 230, .03), 0 0 0 140px rgba(246, 239, 230, .02);
  pointer-events: none;
}
.evento__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 96px); align-items: center; position: relative; }
.evento__foto { margin: 0; border-radius: 999px 999px var(--r) var(--r); overflow: hidden; aspect-ratio: 4 / 5; }
.evento__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 90%; }
.evento__data { font-family: var(--serif); font-weight: 400; font-size: clamp(4.6rem, 12vw, 8.6rem); line-height: .9; letter-spacing: -.02em; margin: 0 0 10px; }
.evento__titulo { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2rem) !important; color: #f1d6dc !important; margin: 0 0 18px !important; }
.evento__copy > p { color: #e3d0d3; max-width: 44ch; margin: 0 0 30px; font-weight: 300; }
.contagem { display: flex; gap: 12px; margin: 0 0 34px; }
.contagem div { min-width: 86px; padding: 14px 12px 12px; border: 1px solid rgba(246, 239, 230, .25); border-radius: 14px; text-align: center; }
.contagem strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.contagem span { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: #e7c9d0; }
.evento-hoje .contagem { display: none; }
@media (max-width: 860px) {
  .evento__grid { grid-template-columns: 1fr; }
  .evento__foto { max-width: 420px; aspect-ratio: 1; }
}

/* ---------- o estúdio ---------- */
.estudio__media { position: relative; margin-bottom: clamp(48px, 7vw, 88px); }
.estudio__media img { width: 74%; border-radius: var(--r); aspect-ratio: 3 / 2; object-fit: cover; }
.estudio__card {
  position: absolute; right: 0; bottom: -40px; width: min(46%, 520px);
  background: var(--surface); border-radius: var(--r); padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 30px 60px -40px rgba(91, 26, 44, .45);
}
.estudio__card .h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.estudio__card p { color: var(--muted); margin: 0; font-weight: 300; }
.pilares { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.pilares li { padding: 8px 32px 8px 0; }
.pilares li + li { border-left: 1px solid var(--line); padding-left: 32px; }
.pilares i { font-size: 34px; color: var(--wine-text); display: block; margin-bottom: 18px; }
.pilares h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.1; margin: 0 0 8px; }
.pilares p { margin: 0; color: var(--muted); font-weight: 300; }
@media (max-width: 860px) {
  .estudio__media img { width: 100%; }
  .estudio__card { position: relative; width: auto; right: auto; bottom: auto; margin: -48px 16px 0; }
  .pilares { grid-template-columns: 1fr; gap: 26px; }
  .pilares li, .pilares li + li { border-left: 0; padding: 0 0 26px; border-bottom: 1px solid var(--line); }
  .pilares li:last-child { border-bottom: 0; padding-bottom: 0; }
}

/* ---------- benefícios ---------- */
.beneficios { background: var(--bg-2); }
.beneficios__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 7vw, 100px); align-items: center; }
.beneficios__foto { margin: 0; border-radius: 999px 999px var(--r) var(--r); overflow: hidden; aspect-ratio: 3 / 4.4; }
.beneficios__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 20%; }
.beneficios__lead { color: var(--muted); font-weight: 300; max-width: 46ch; margin: 0 0 30px; font-size: 1.08rem; }
.palavras { list-style: none; margin: 0; padding: 0; }
.palavras li {
  font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.25;
  padding: 10px 0; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px;
}
.palavras li::before { content: ""; width: 26px; height: 1px; background: var(--wine-2); transition: width .5s var(--ease); }
.palavras li:hover::before { width: 52px; }
@media (max-width: 860px) {
  .beneficios__grid { grid-template-columns: 1fr; }
  .beneficios__foto { max-width: 380px; }
}

/* ---------- visite ---------- */
.visite__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.visite address { display: flex; gap: 12px; font-style: normal; font-size: 1.08rem; line-height: 1.6; margin: 0 0 18px; }
.visite address i, .visite__horario i { color: var(--wine-text); font-size: 1.4rem; margin-top: 2px; }
.visite__horario { display: flex; gap: 12px; align-items: center; color: var(--muted); margin: 0 0 26px; }
.mapa { border-radius: var(--r); overflow: hidden; min-height: 420px; background: var(--bg-2); }
.mapa iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
@media (prefers-color-scheme: dark) { .mapa iframe { filter: grayscale(.2) brightness(.9); } }
@media (max-width: 860px) {
  .visite__grid { grid-template-columns: 1fr; }
  .mapa, .mapa iframe { min-height: 320px; }
}

/* ---------- chamada final ---------- */
.final { padding: 0 0 clamp(72px, 10vw, 130px); }
.final__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; gap: 32px;
  background: var(--surface); border-radius: calc(var(--r) * 1.6); padding: clamp(36px, 6vw, 72px) clamp(28px, 6vw, 72px) 0;
  margin: 0 var(--pad); max-width: calc(var(--max) - 2 * var(--pad));
}
@media (min-width: 1240px) { .final__grid { margin: 0 auto; } }
.final__copy { padding-bottom: clamp(36px, 6vw, 72px); }
.final h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.02; margin: 0 0 18px; max-width: 14ch; }
.final__copy p { color: var(--muted); font-weight: 300; margin: 0 0 30px; max-width: 40ch; font-size: 1.08rem; }
.final__foto { margin: 0; border-radius: 999px 999px 0 0; overflow: hidden; aspect-ratio: 3 / 4; align-self: end; }
.final__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
@media (max-width: 760px) {
  .final__grid { grid-template-columns: 1fr; }
  .final__foto { max-width: 300px; justify-self: center; }
}

/* ---------- rodapé ---------- */
.rodape { background: var(--wine); color: #e3d0d3; padding: 60px 0 32px; font-size: .95rem; }
@media (prefers-color-scheme: dark) { .rodape { background: #3f1220; } }
.rodape__grid { display: grid; grid-template-columns: auto 1fr; gap: 28px 56px; align-items: start; }
.rodape__marca img { height: 56px; width: auto; }
.rodape__marca p { margin: 12px 0 0; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: #f1d6dc; }
.rodape__info { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; justify-content: end; }
.rodape__info li { display: flex; gap: 10px; align-items: center; }
.rodape__info i { font-size: 1.2rem; }
.rodape__info a { color: var(--cream); text-decoration: none; }
.rodape__info a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rodape__legal { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 22px; border-top: 1px solid rgba(246, 239, 230, .16); font-size: .85rem; }
.rodape__credito { grid-column: 1 / -1; margin: -16px 0 0; font-size: .82rem; color: rgba(227, 208, 211, .75); }
.rodape__credito a { color: var(--cream); text-underline-offset: 3px; }
@media (max-width: 760px) {
  .rodape__grid { grid-template-columns: 1fr; }
  .rodape__info { justify-content: start; }
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: var(--z-float);
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  color: var(--cream); font-size: 30px; text-decoration: none; background: var(--wine);
  box-shadow: 0 14px 30px -10px rgba(91, 26, 44, .75);
  opacity: 0; translate: 0 16px; pointer-events: none;
  transition: opacity .4s var(--ease), translate .4s var(--ease), transform .3s var(--ease);
}
.wa-float.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; }
.wa-float:hover { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
