/* ═══════════════════════════════════════════════════════════════
   CASA TINASSI — folha de estilos
   DUAS CORES: verde-sálvia profundo (dominante) e creme (acento).
   A página é majoritariamente VERDE; o creme aparece em faixas,
   painéis, botões e detalhes.
   Layout: visuais (imagens/3D) sempre CENTRALIZADOS; textos nas
   laterais, alternando esquerda/direita a cada seção.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* As duas cores da casa */
  --verde: #5C684A;
  --creme: #F4EEDF;

  /* Derivadas só por transparência (continuam as mesmas cores) */
  --verde-60: rgba(92, 104, 74, .6);
  --verde-15: rgba(92, 104, 74, .15);
  --creme-60: rgba(244, 238, 223, .6);
  --creme-25: rgba(244, 238, 223, .25);
  --creme-12: rgba(244, 238, 223, .12);

  /* Tipografia */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", "Segoe UI", sans-serif;

  --raio: 18px;
  --sombra: 0 20px 55px -18px rgba(0, 0, 0, .35);
}

/* ── Reset básico ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--creme);          /* texto claro sobre a página verde */
  background: var(--verde);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; }
h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h3 { font-size: clamp(1.9rem, 3.5vw, 2.5rem); }
/* Ênfase sem cor nova: itálico serifado */
h1 em, h2 em { font-style: italic; }

a { color: inherit; }

main { position: relative; z-index: 1; }

/* ── Utilitários ──────────────────────────────────────────────── */
.eyebrow {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 1rem;
}

.section-head {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(5rem, 10vw, 7rem) 1.4rem 0;
}
.section-head__sub { margin-top: 1.2rem; opacity: .85; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: .95rem;
  letter-spacing: .06em;
  text-decoration: none;
  padding: .95rem 2rem;
  border-radius: 999px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, background .35s, color .35s, opacity .35s;
}
.btn:hover { transform: translateY(-3px); }

/* botão principal: creme sobre o verde da página */
.btn--solid {
  background: var(--creme);
  color: var(--verde);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .35);
}
.btn--solid:hover { opacity: .92; }

.btn--ghost {
  border: 1px solid var(--creme-25);
  color: var(--creme);
  background: var(--creme-12);
}
.btn--ghost:hover { border-color: var(--creme-60); }

.btn--light {
  border: 1px solid var(--creme-25);
  color: var(--creme);
}
.btn--light:hover { background: var(--creme-12); }

/* ── Animação de entrada (reveal on scroll) ─────────────────────
   O estado escondido só vale com JS ativo (html.js): se o script
   não carregar, o conteúdo aparece normalmente. */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1);
}
html.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }
.reveal.d4 { transition-delay: .48s; }

/* ── Navegação ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .8rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(92, 104, 74, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--creme-12);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--creme);
}
.brand-mark { height: 34px; width: auto; display: block; }
.nav__name {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: .02em;
}
.nav__name strong { font-weight: 600; }

.nav__links {
  display: none;
  gap: 1.6rem;
  margin-left: auto;
}
.nav__links a {
  text-decoration: none;
  font-size: .92rem;
  letter-spacing: .05em;
  opacity: .8;
  transition: opacity .3s;
}
.nav__links a:hover { opacity: 1; }

.nav__cta {
  margin-left: auto;
  font-size: .85rem;
  letter-spacing: .06em;
  text-decoration: none;
  padding: .55rem 1.3rem;
  border-radius: 999px;
  background: var(--creme);
  color: var(--verde);
  transition: opacity .3s, transform .3s;
  white-space: nowrap;
}
.nav__cta:hover { opacity: .9; transform: translateY(-2px); }

@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__cta { margin-left: 0; }
}

/* ── PALCOS: visual central + texto lateral ───────────────────── */
.stage {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  padding: clamp(4rem, 8vw, 6rem) 1.4rem;
}

/* Painel de ilustração: CREME com traço VERDE (acende no verde) */
.stage__panel {
  width: min(480px, 88vw);
  background: var(--creme);
  color: var(--verde);
  border-radius: var(--raio);
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: var(--sombra);
  transform: rotate(-1.2deg);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.stage__panel:hover { transform: rotate(0) scale(1.02); }
.stage__panel svg { width: 100%; height: auto; display: block; }

/* Painel com cena 3D dentro (a cabeça que floresce, na Miriam) */
.stage__panel--3d {
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--verde);
  border: 1px solid var(--creme-25);
}
.stage__panel--3d canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.stage__text { max-width: 480px; }
.stage__role {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .7;
  margin: .4rem 0 1.2rem;
}
.stage__text p + p { margin-top: 1rem; }
.stage__text em { font-style: italic; }
.stage__text .btn { margin-top: 1.6rem; }

/* No desktop, o texto flutua na lateral (o visual segue no centro) */
@media (min-width: 1060px) {
  .stage__text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(300px, 26vw, 400px);
    z-index: 2;
  }
  .stage__text--left  { left:  clamp(1.5rem, 5vw, 5rem); }
  .stage__text--right { right: clamp(1.5rem, 5vw, 5rem); }
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem clamp(1.2rem, 4vw, 3rem) 3rem;
  background: url('assets/hero-bg.png') center 30% / cover no-repeat;
}

/* Em celulares e telas estreitas, troca para a foto vertical
   (enquadrada para retrato) — o Hero de computador não muda. */
@media (max-width: 640px) {
  .hero {
    background-image: url('assets/hero-bg-mobile.png');
    background-position: center 22%;
  }
}

/* Véu verde sobre a foto — garante leitura do texto creme e mantém
   a casa "majoritariamente verde" mesmo com uma imagem real. */
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 640px 420px at 50% 48%, rgba(92,104,74,.88) 0%, rgba(92,104,74,.55) 70%, rgba(92,104,74,.28) 100%),
    linear-gradient(180deg, rgba(92,104,74,.5) 0%, rgba(92,104,74,.4) 45%, rgba(92,104,74,.6) 100%);
}

.hero__center {
  position: relative;
  z-index: 1;
  max-width: 640px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__icon {
  width: 50px; height: 50px;
  margin-bottom: 1.2rem;
  opacity: .9;
}

.hero__title {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 500;
  line-height: 1.18;
}
.hero__title em { font-style: italic; }

.hero__sub {
  margin-top: 1.3rem;
  max-width: 34ch;
  font-size: 1.02rem;
  opacity: .88;
}

.hero__actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
}

/* Em telas mais BAIXAS (notebooks comuns), tudo encolhe um pouco
   para caber sem cortar o CTA. */
@media (max-height: 780px) {
  .hero { padding-top: 6rem; padding-bottom: 2rem; }
  .hero__icon { width: 40px; height: 40px; margin-bottom: .8rem; }
  .hero__title { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
  .hero__sub { margin-top: .9rem; font-size: .95rem; }
  .hero__actions { margin-top: 1.2rem; }
}

/* Indicador de scroll */
.hero__scrollhint {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 1.5px solid var(--creme-60);
  border-radius: 999px;
}
.hero__scrollhint span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--creme);
  animation: scrollhint 2.2s ease-in-out infinite;
}
@keyframes scrollhint {
  0%   { transform: translateY(0);    opacity: 1; }
  60%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 0; }
}

/* ── Faixa verde dos três pilares (logo abaixo do hero) ───────── */
.features {
  position: relative;
  background: var(--verde);
  padding: 0 clamp(1.2rem, 4vw, 3rem) clamp(3rem, 6vw, 4.5rem);
  margin-top: -1px; /* fecha qualquer fresta de subpixel com o hero */
}
.features__wave {
  display: block;
  width: 100%;
  height: 56px;
  color: var(--verde);
}
.features__wave path { fill: currentColor; }

.features__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2.2rem;
  text-align: center;
}
@media (min-width: 760px) {
  .features__grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  border: 1px solid var(--creme-25);
}
.feature__icon svg { width: 30px; height: 30px; }

.feature h4 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.25;
}
.feature p {
  margin-top: .6rem;
  font-size: .92rem;
  opacity: .8;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

/* ── Manifesto (faixa creme de respiro) ───────────────────────── */
.manifesto {
  background: var(--creme);
  color: var(--verde);
  text-align: center;
  padding: clamp(5rem, 12vw, 8rem) 1.5rem;
  position: relative;
  z-index: 1;
}
.manifesto__text {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4.4vw, 2.9rem);
  line-height: 1.3;
}
.manifesto__text em { font-style: italic; opacity: .8; }

/* ── SCRUB: seções altas com palco fixo (animação pelo scroll) ── */
.scrub { height: 260vh; position: relative; }

.scrub__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.scrub__sticky canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.scrub .stage__text {
  position: absolute;
  z-index: 2;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 3.6rem;
  max-width: none;
}
@media (min-width: 1060px) {
  .scrub .stage__text {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: clamp(300px, 26vw, 400px);
    max-width: 400px;
  }
  .scrub .stage__text--left  { left:  clamp(1.5rem, 5vw, 5rem); right: auto; }
  .scrub .stage__text--right { right: clamp(1.5rem, 5vw, 5rem); left: auto; }
}

/* véu verde suave atrás do texto do scrub, para legibilidade */
.scrub .stage__text::before {
  content: "";
  position: absolute;
  inset: -10% -12%;
  background: radial-gradient(ellipse at 50% 50%, rgba(92, 104, 74, .88) 35%, rgba(92, 104, 74, 0) 78%);
  z-index: -1;
}

.scrub__hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.3rem;
  font-size: .78rem;
  letter-spacing: .12em;
  opacity: .55;
  white-space: nowrap;
}

/* ── Consultório ──────────────────────────────────────────────── */
.consultorio__lista {
  list-style: none;
  margin: 1.6rem 0 .4rem;
  display: grid;
  gap: .7rem;
}
.consultorio__lista li {
  position: relative;
  padding-left: 1.9rem;
}
/* Folhinha creme como marcador */
.consultorio__lista li::before {
  content: "";
  position: absolute;
  left: 0; top: .38em;
  width: 14px; height: 14px;
  background: var(--creme);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22 C4 17 3 8 9 3 C11 9 17 10 16 15 C15.5 18 14 20 12 22 Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22 C4 17 3 8 9 3 C11 9 17 10 16 15 C15.5 18 14 20 12 22 Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── Contato ──────────────────────────────────────────────────── */
.contato {
  background: var(--verde);
  border-top: 1px solid var(--creme-12);
  padding: clamp(5rem, 10vw, 8rem) clamp(1.4rem, 5vw, 4rem);
  text-align: center;
}

.contato__inner { max-width: 640px; margin: 0 auto; }

.contato__addr {
  font-family: var(--serif);
  font-style: normal;
  font-size: 1.5rem;
  line-height: 1.4;
  margin: 1.6rem 0 2rem;
}

.contato__fones {
  display: grid;
  gap: .9rem;
  margin-bottom: 2.4rem;
}
@media (min-width: 640px) {
  .contato__fones { grid-template-columns: 1fr 1fr; }
}

.fone {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid var(--creme-25);
  border-radius: 14px;
  padding: 1rem 1.4rem;
  transition: background .35s, transform .35s;
}
.fone:hover { background: var(--creme-12); transform: translateY(-4px); }
.fone__label {
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .75;
}
.fone__num {
  font-family: var(--serif);
  font-size: 1.5rem;
}

/* ── Rodapé ───────────────────────────────────────────────────── */
.footer {
  background: var(--verde);
  color: var(--creme);
  text-align: center;
  border-top: 1px solid var(--creme-12);
  padding: 3.5rem 1.5rem 6.5rem; /* espaço extra p/ botões flutuantes */
}
.brand-mark--footer {
  height: 46px; width: auto;
  margin: 0 auto 1rem;
}
.footer__name {
  font-family: var(--serif);
  font-size: 1.5rem;
}
.footer__name span { font-family: var(--sans); font-size: .85rem; opacity: .7; }
.footer__small { font-size: .82rem; opacity: .55; margin-top: .4rem; }

/* ── Botões flutuantes de WhatsApp ────────────────────────────── */
.whats {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  align-items: flex-end;
}

.whats__btn {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .03em;
  padding: .65rem 1.1rem .65rem .8rem;
  border-radius: 999px;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .45);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.whats__btn:hover { transform: translateY(-3px) scale(1.03); }
.whats__btn svg { width: 22px; height: 22px; flex: none; }

.whats__btn--pilates {
  background: var(--verde);
  color: var(--creme);
  border: 1px solid var(--creme-25);
}
.whats__btn--psi {
  background: var(--creme);
  color: var(--verde);
  border: 1px solid var(--verde-15);
}

/* Em telas pequenas, mostra só o ícone para não cobrir conteúdo */
@media (max-width: 560px) {
  .whats__btn span { display: none; }
  .whats__btn { padding: .8rem; }
}

/* ── Acessibilidade: movimento reduzido ───────────────────────────
   Quem prefere menos movimento recebe o site inteiro estático:
   sem parallax, sem respiração, sem scrub — só conteúdo. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scrollhint span { animation: none; }
  .btn, .fone, .stage__panel { transition: none; }

  /* Os scrubs deixam de ser longos: viram uma tela única
     com a cena no estado final. */
  .scrub { height: auto; min-height: 100svh; }
  .scrub__hint { display: none; }
}
