/* =========================================================
   Gabby Faustino — Educação Física & Saúde Feminina
   Design tokens + layout + componentes
   ========================================================= */

/* ---------- Reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, figure { margin: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; border: none; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Tokens ---------- */
:root {
  /* paleta da marca */
  --navy: #1B3B6E;
  --sky: #6CBEEC;
  --purple: #763FA4;
  --lilac: #C77DFF;
  --coral: #F38782;

  /* superfícies e texto */
  --bg: #FBF9FC;
  --bg-alt: #F2ECFA;
  --bg-navy: #16305C;
  --ink: #1C2333;
  --ink-soft: #4C5470;
  --ink-invert: #F6F2FC;
  --border-soft: rgba(27, 59, 110, 0.14);

  /* tipografia */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  /* escala fluida */
  --step-h1: clamp(2.4rem, 1.7rem + 2.8vw, 4.1rem);
  --step-h2: clamp(1.9rem, 1.5rem + 1.6vw, 2.8rem);
  --step-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --step-lead: clamp(1.05rem, 0.98rem + 0.3vw, 1.25rem);

  --container: 1240px;
  --gutter: clamp(1.25rem, 3vw, 3rem);
  --radius-lg: 28px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--navy); font-weight: 560; letter-spacing: -0.01em; }
h1 { font-size: var(--step-h1); line-height: 1.04; }
h2 { font-size: var(--step-h2); line-height: 1.12; }
h3 { font-size: var(--step-h3); line-height: 1.3; }

p { color: var(--ink-soft); max-width: 62ch; }

.eyebrow-free { /* marcador semântico: propositalmente não usamos eyebrows em caps */ }

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

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

section { padding-block: clamp(4rem, 6vw, 7.5rem); }

.section-head { max-width: 46ch; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head--center { max-width: 56ch; margin-inline: auto; text-align: center; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--coral);
  color: var(--navy);
  box-shadow: 0 14px 30px -14px rgba(243, 135, 130, 0.65);
}
.btn-primary:hover { background: #f2726b; box-shadow: 0 18px 34px -14px rgba(243, 135, 130, 0.8); }

.btn-ghost {
  background: transparent;
  color: var(--ink-invert);
  border: 1.5px solid rgba(246, 242, 252, 0.4);
}
.btn-ghost:hover { border-color: var(--ink-invert); }

.btn-icon {
  width: 1.3rem;
  height: 1.3rem;
  flex-shrink: 0;
}

/* ---------- Header ---------- */
.site-header {
  --pill-inset: max(0.6rem, calc(max(var(--gutter), calc((100% - var(--container)) / 2)) - 1.4rem));
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 40;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--border-soft);
  transition: padding 0.5s var(--ease), border-color 0.4s var(--ease);
}
/* ao rolar: o header "desgruda" do topo e vira uma bolha de vidro flutuante */
.site-header.is-shrunk { padding-block: 0.9rem; border-bottom-color: transparent; }

/* o fundo/desfoque vive numa camada à parte (::before): backdrop-filter num ancestral
   faz o navegador tratá-lo como "tela" para elementos position:fixed dentro dele (o menu
   mobile, por exemplo, ficaria preso à altura do header em vez de cobrir a viewport toda).
   Em repouso a camada é a barra de ponta a ponta; rolando, ela encolhe e vira a bolha */
.site-header::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  z-index: -1;
  background: rgba(251, 249, 252, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid transparent;
  border-radius: 0;
  box-shadow: 0 0 0 0 rgba(27, 59, 110, 0);
  transition:
    top 0.5s var(--ease), bottom 0.5s var(--ease), left 0.5s var(--ease), right 0.5s var(--ease),
    border-radius 0.5s var(--ease), background-color 0.5s var(--ease),
    border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-header.is-shrunk::before {
  top: 0.55rem;
  bottom: 0.55rem;
  left: var(--pill-inset);
  right: var(--pill-inset);
  border-radius: 60px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 14px 38px -14px rgba(27, 59, 110, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
/* menu mobile aberto: volta a ser barra cheia e opaca, para o menu encaixar embaixo sem frestas */
.site-header.menu-open::before {
  top: 0; bottom: 0; left: 0; right: 0;
  border-radius: 0;
  background: var(--bg);
  border-color: transparent;
  box-shadow: none;
}
/* sem suporte a backdrop-filter, a bolha precisa de fundo mais sólido para o texto ler bem */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-shrunk::before { background: rgba(251, 249, 252, 0.94); }
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 600;
}
/* logo da cliente (imagem completa: monograma + nome + "Treinamento Personalizado") */
.logo--brand { display: block; line-height: 0; }
.logo-full {
  display: block;
  height: 74px;
  width: auto;
  transition: height 0.3s var(--ease);
}
.site-header.is-shrunk .logo-full { height: 48px; }

.logo-mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
}
.logo-sub { display: block; font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.04em; color: var(--ink-soft); font-weight: 500; }

.main-nav ul { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 2.1rem); }
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding-block: 0.2rem;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--coral);
  transition: right 0.32s var(--ease);
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after { right: 0; }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-cta .btn-primary { padding: 0.75rem 1.35rem; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding-block-start: clamp(7.5rem, 12vw, 10rem);
  padding-block-end: clamp(4rem, 8vw, 6rem);
  overflow: clip;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}
.hero-info-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-sm);
  box-shadow: 0 26px 46px -18px rgba(27, 59, 110, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: clamp(1.5rem, 2.6vw, 2.2rem);
  margin-top: 1.6rem;
  max-width: 34rem;
}
.hero-info-card--actions,
.hero-info-card--note {
  width: fit-content;
  max-width: 100%;
  margin-top: 0;
  padding: 1.1rem clamp(1.3rem, 2.2vw, 1.8rem);
}
.hero-copy p.lead { font-size: var(--step-lead); color: var(--ink-soft); margin: 0; max-width: 46ch; }

/* a palavra "vida" passeia bem devagar pelas cores da marca */
@keyframes word-color-cycle {
  0%, 100% { color: var(--navy); }
  25% { color: var(--purple); }
  50% { color: var(--coral); }
  75% { color: var(--sky); }
}
.word-cycle { animation: word-color-cycle 9s ease-in-out infinite; }
.hero-actions { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin-top: 1.1rem; }
.hero-note { font-size: 0.88rem; color: var(--ink-soft); display: flex; align-items: center; gap: 0.5rem; }
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); flex-shrink: 0; }

/* Wrapper da foto: acompanha a altura real do bloco de texto ao lado e serve de
   referência de posição para os selos flutuantes (estatísticas e avaliações) */
.hero-visual {
  position: relative;
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2));
  min-height: clamp(420px, 46vw, 640px);
  height: 100%;
}

/* Carrossel: 3 fotos que alternam de papel (centro / esquerda / direita) a cada 5s */
.hero-carousel {
  position: relative;
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2));
  --shift: clamp(64px, 8vw, 130px); /* mesma distância dos dois lados: sensação de eixo giratório */
  height: 100%;
  isolation: isolate;
}
.hero-slide {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: none;
  transform-origin: bottom center;
  /* folga transparente para o desfoque não ser cortado pela máscara */
  box-sizing: content-box;
  padding: 14px 14px 0;
  margin-inline: -14px;
  /* dissolve a base da foto no fundo da página — igual em qualquer papel, nunca muda */
  -webkit-mask-image: linear-gradient(to top, transparent 14%, #000 28%);
  mask-image: linear-gradient(to top, transparent 14%, #000 28%);
  transition: transform 1.8s cubic-bezier(0.4, 0, 0.2, 1), filter 1.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, filter;
}

/* tamanho "natural" de cada foto quando está em destaque, calibrado para a cabeça
   aparecer do mesmo tamanho nas três (fotos com enquadramentos diferentes) */
.slide-halteres { --img-scale: 1; }
.slide-alongamento { --img-scale: 0.95; }
.slide-hidratacao { --img-scale: 0.92; --img-bias: 38px; } /* foto mais estreita: puxa um pouco para a direita em qualquer papel (centro, esquerda ou direita) */

.hero-slide.role-center {
  transform: translateX(calc(-50% + var(--img-bias, 0px))) scale(var(--img-scale, 1));
  filter: none;
  opacity: 1;
  z-index: 3;
}
.hero-slide.role-left {
  transform: translateX(calc(-50% - var(--shift) + var(--img-bias, 0px))) scale(calc(var(--img-scale, 1) * 0.82));
  filter: blur(4px);
  opacity: 0.85;
  z-index: 1;
}
.hero-slide.role-right {
  transform: translateX(calc(-50% + var(--shift) + var(--img-bias, 0px))) scale(calc(var(--img-scale, 1) * 0.82));
  filter: blur(4px);
  opacity: 0.85;
  z-index: 1;
}

/* Selos flutuantes sobre a foto: estatísticas e avaliações */
.hero-float-badge {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  box-shadow: 0 26px 46px -18px rgba(27, 59, 110, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-float-badge--stats {
  left: -6%;
  bottom: 12%;
  gap: 1rem;
  padding: 1rem 1.3rem;
}
.stat-block { text-align: center; }
.stat-block strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
  line-height: 1;
}
.stat-block strong .plus { color: var(--coral); }
.stat-block .stat-label {
  display: block;
  font-size: 0.65rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.25;
  margin-top: 0.3rem;
}
.stat-divider { width: 1px; height: 2.2rem; background: var(--border-soft); flex-shrink: 0; }

.hero-float-badge--rating {
  right: max(-13%, calc(10px - var(--edge)));
  top: 8%;
  gap: 0.75rem;
  padding: 0.85rem 1.2rem;
  max-width: 15rem;
}
a.hero-float-badge--rating {
  color: inherit; text-decoration: none; cursor: pointer;
}
a.hero-float-badge--rating:hover, a.hero-float-badge--rating:focus-visible {
  background: #fff;
  box-shadow: 0 30px 50px -16px rgba(118, 63, 164, 0.38);
}
.rating-avatars { display: flex; flex-shrink: 0; }
.rating-avatars .avatar {
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -0.55rem;
}
.rating-avatars .avatar:first-child { margin-left: 0; }
.rating-avatars .avatar:nth-child(1) { background: var(--purple); }
.rating-avatars .avatar:nth-child(2) { background: var(--sky); }
.rating-avatars .avatar:nth-child(3) { background: var(--coral); }
.rating-avatars .avatar:nth-child(4) { background: var(--lilac); }
.rating-info { display: grid; gap: 0.2rem; }
.rating-stars { color: var(--coral); font-size: 0.75rem; letter-spacing: 0.12em; }
.rating-text { font-size: 0.74rem; color: var(--ink-soft); line-height: 1.3; }

/* Flutuação: leve balanço contínuo, suave mas perceptível, em todos os cards
   "soltos" do hero (texto, CTA e os dois selos sobre a foto) */
@keyframes hero-float-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
.hero-info-card,
.hero-float-badge {
  animation: hero-float-bob 3.4s ease-in-out infinite;
}
.hero-info-card--actions { animation-delay: -0.85s; }
.hero-info-card--note { animation-delay: -1.7s; }
.hero-float-badge--stats { animation-delay: -2.55s; }
.hero-float-badge--rating { animation-delay: -1.3s; }

/* ---------- Faixa de credenciais ---------- */
.credentials {
  position: relative;
  border-block: 1px solid var(--border-soft);
  background: var(--bg-alt);
  overflow: hidden;
  isolation: isolate;
}
.credentials-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.credentials-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.84); /* deixa o vídeo visível de leve, sem brigar com o texto */
  z-index: -1;
}
@media (prefers-reduced-motion: reduce) {
  .credentials-bg-video { display: none; } /* a cor de fundo (.credentials) já cobre o espaço */
}
.credentials .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-block: 1.6rem;
}
.credential-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.9rem; color: var(--ink);
  padding-inline-start: clamp(0px, 0px, 0px);
  border-left: 2px solid var(--purple);
  padding-left: 0.9rem;
}
.credential-item strong { display: block; color: var(--navy); font-size: 0.95rem; }

/* ---------- Sobre ---------- */
.about .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
/* o wrapper só reserva o espaço (e leva o .reveal de entrada); quem flutua é o .about-slider */
.about-visual {
  aspect-ratio: 3 / 4;
  position: relative;
}
.about-slider {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(200deg, var(--navy) 0%, var(--purple) 100%); /* aparece só enquanto a 1ª foto carrega */
  box-shadow: 0 30px 56px -24px rgba(27, 59, 110, 0.34);
  animation: about-float 4.6s ease-in-out infinite;
}
@keyframes about-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Slideshow: as fotos ficam empilhadas; a nova entra por cima, devagar, enquanto a
   anterior continua opaca por baixo — assim nunca "vaza" o fundo no meio da troca */
.about-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 14%;
  opacity: 0;
  transition: opacity 2.6s cubic-bezier(0.45, 0, 0.55, 1);
  will-change: opacity, transform;
}
.about-slide.is-active { opacity: 1; z-index: 2; }
.about-slide.is-leaving { opacity: 1; z-index: 1; }
/* respiro lento: a foto "assenta" de 1.07 para 1 enquanto está em cena e durante a saída */
.about-slide.is-active,
.about-slide.is-leaving { animation: about-drift 9s linear forwards; }
@keyframes about-drift {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}
/* só anda quando a seção está à vista (o JS liga/desliga .is-running) */
.about-slider:not(.is-running) .about-slide { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .about-slider { animation: none; }
  .about-slide { transition: none; animation: none !important; }
}
.about-quote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--navy);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.45;
  border-left: 3px solid var(--coral);
  padding-left: 1.4rem;
  margin-block: 1.8rem;
}
.formacao-list { display: grid; gap: 0.9rem; margin-top: 1.6rem; }
.formacao-list li {
  display: flex; gap: 0.8rem; align-items: flex-start;
  font-size: 0.95rem; color: var(--ink);
}
.formacao-list svg { width: 1.15rem; height: 1.15rem; color: var(--purple); flex-shrink: 0; margin-top: 0.15rem; }

/* ---------- Para quem é ---------- */
.for-whom { background: var(--bg-navy); color: var(--ink-invert); position: relative; overflow: hidden; isolation: isolate; }
/* marca d'água: monograma colorido, grande, na diagonal e translúcido (mesmo estilo da faixa de citação) */
.for-whom::before {
  content: "";
  position: absolute;
  top: -22%; bottom: -22%;
  right: -6%;
  width: 54%;
  z-index: -1;
  background: url("../assets/img/logo-gabby-faustino-marca-dagua-colorida.webp") no-repeat center / contain;
  rotate: -16deg;
  opacity: 0.16;
  pointer-events: none;
  animation: watermark-drift 9s ease-in-out infinite;
}
.for-whom h2 { color: var(--ink-invert); }
.for-whom p { color: rgba(246,242,252,0.78); }
.for-whom .section-head { max-width: 50ch; }
.for-whom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(246,242,252,0.14);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.for-whom-grid li {
  background: rgba(27, 59, 110, 0.55);
  padding: 1.6rem 1.8rem;
  font-size: 0.98rem;
  display: flex; gap: 0.85rem; align-items: flex-start;
}
.for-whom-grid svg { width: 1.2rem; height: 1.2rem; color: var(--lilac); flex-shrink: 0; margin-top: 0.2rem; }

/* ---------- Serviços ---------- */
.services-layout {
  display: grid;
  --services-h: 520px; /* altura única do card central e dos cristais */
  grid-template-columns: minmax(0, 1fr) minmax(340px, 470px) minmax(0, 1fr);
  align-items: start; /* topo do card = topo dos cristais */
  gap: clamp(1.5rem, 4vw, 3rem);
}

.services-card-wrap { display: grid; justify-items: center; gap: 1.6rem; }

.services-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  width: 100%;
  max-width: 470px;
  margin-inline: auto;
  height: var(--services-h); /* fixa — igual à altura dos cristais; o texto rola por dentro */
  overflow: hidden;
}
.service-feature { height: 100%; }
.service-panel { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.service-panel[hidden] { display: none; }
.service-panel-head { text-align: center; display: grid; justify-items: center; gap: 0.35rem; flex-shrink: 0; }
.service-feature-icon { width: 3.5rem; height: 3.5rem; object-fit: contain; margin-bottom: 0.2rem; }
.service-panel-head h3 { font-size: 1.3rem; }
.service-intro { font-size: 0.88rem; line-height: 1.5; color: var(--ink-soft); }

/* área que rola: só ela se move, o card continua do mesmo tamanho */
.service-panel-body {
  flex: 1;
  min-height: 0;
  margin-top: 1rem;
  padding: 0.2rem 0.6rem 1.6rem 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(118, 63, 164, 0.35) transparent;
  text-align: left;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent);
}
.service-panel-body:focus-visible { outline: 2px solid var(--lilac); outline-offset: 4px; border-radius: 6px; }
.service-panel-body::-webkit-scrollbar { width: 5px; }
.service-panel-body::-webkit-scrollbar-thumb { background: rgba(118, 63, 164, 0.35); border-radius: 999px; }
.service-panel-body h4 {
  font-family: var(--font-body, inherit);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.6rem;
}
.service-list { display: grid; gap: 0.65rem; }
.service-list li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.service-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 0.4rem; height: 0.4rem; border-radius: 50%;
  background: var(--lilac);
}
.service-list strong { color: var(--navy); font-weight: 600; }
.service-note {
  margin-top: 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-soft);
}
.service-note h4 { margin-bottom: 0.4rem; }
.service-note p { font-size: 0.86rem; line-height: 1.5; color: var(--ink-soft); }
.service-note p + p { margin-top: 0.5rem; }

/* botão minimalista para avançar pro próximo serviço */
.services-next {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  border: 1.5px solid var(--border-soft);
  color: var(--navy);
  display: grid;
  place-items: center;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.services-next:hover { background: var(--bg-alt); border-color: var(--purple); color: var(--purple); }
.services-next:active { transform: scale(0.92); }
.services-next svg { width: 1.3rem; height: 1.3rem; }

/* cristais: moldura decorativa para receber fotos (corte em "pedra lapidada") */
.crystal {
  height: var(--services-h); /* igual à altura fixa do .services-card */
  clip-path: polygon(50% 0%, 93% 21%, 100% 58%, 71% 100%, 29% 100%, 0% 58%, 7% 21%);
  background: linear-gradient(155deg, var(--bg-alt) 0%, #EDE3FB 55%, #E4EEFB 100%);
  justify-self: center;
  width: 100%;
  max-width: 320px;
  position: relative;
  overflow: hidden;
}
.crystal-inner {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
}
.crystal-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  opacity: 0;
}
/* a troca acontece no meio da roleta, quando o cristal está fora de vista */
.crystal-slide.is-current { opacity: 1; }

/* troca "em roleta": o conteúdo some girando e o novo entra na sequência —
   esquerda desce, direita sobe, texto do card dissolve junto */
@keyframes reel-down {
  0% { transform: translateY(0); opacity: 1; }
  45% { transform: translateY(65%); opacity: 0; }
  55% { transform: translateY(-65%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes reel-up {
  0% { transform: translateY(0); opacity: 1; }
  45% { transform: translateY(-65%); opacity: 0; }
  55% { transform: translateY(65%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes feature-swap {
  0% { transform: translateY(0); opacity: 1; }
  45% { transform: translateY(8px); opacity: 0; }
  55% { transform: translateY(-8px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.crystal-left .crystal-inner.is-spinning { animation: reel-down 0.9s cubic-bezier(0.65, 0, 0.35, 1); }
.crystal-right .crystal-inner.is-spinning { animation: reel-up 0.9s cubic-bezier(0.65, 0, 0.35, 1); }
.service-feature.is-spinning { animation: feature-swap 0.9s cubic-bezier(0.65, 0, 0.35, 1); }
@media (prefers-reduced-motion: reduce) {
  .crystal-inner.is-spinning, .service-feature.is-spinning { animation: none; }
}

/* ---------- Diferencial ---------- */
.diferencial .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.diferencial-main .section-head { margin-bottom: clamp(1.2rem, 2.4vw, 1.8rem); max-width: 50ch; }
.diferencial-stats { display: grid; gap: 0; }
.stat-line {
  display: flex; align-items: baseline; gap: 0.9rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--border-soft);
}
.stat-line:last-child { border-bottom: 1px solid var(--border-soft); }
.stat-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
  margin-top: 0.5rem;
}
.stat-line span:not(.stat-dot) { font-size: 0.98rem; color: var(--ink); }

/* ---------- Depoimentos (card de fotos de clientes) ---------- */
.depo {
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
}
.depo-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.1rem; }
.depo-head h3 { font-size: 1.05rem; }
.depo-head p { font-size: 0.82rem; line-height: 1.35; }
.depo-head-icon {
  width: 2.6rem; height: 2.6rem; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--lilac) 55%, var(--coral));
}
.depo-head-icon svg { width: 1.2rem; height: 1.2rem; }
.depo-carousel {
  position: relative;
  border-radius: var(--radius-sm);
  isolation: isolate;
  --float-amp: 5px;
  animation: float-soft 5.6s ease-in-out infinite;
}
.depo-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: var(--radius-sm);
  overscroll-behavior-x: contain;
}
.depo-track::-webkit-scrollbar { display: none; }
.depo-track:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.depo-slide {
  flex: 0 0 100%;
  margin: 0;
  display: grid; place-items: center;
  padding: 0.4rem;
  background: #fff;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.depo-slide img {
  display: block;
  width: auto; max-width: 100%; height: auto;
  user-select: none; -webkit-user-drag: none;
}
.depo-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 0.9rem; }
.depo-arrow {
  width: 2.6rem; height: 2.6rem; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1.5px solid var(--border-soft); border-radius: 50%;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.depo-arrow svg { width: 1.2rem; height: 1.2rem; }
.depo-arrow:hover { background: var(--purple); border-color: var(--purple); color: #fff; transform: scale(1.08); }
.depo-arrow:disabled { opacity: 0.35; pointer-events: none; }
.depo-dots { display: flex; justify-content: center; gap: 0.45rem; }
.depo-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 999px;
  background: var(--border-soft);
  transition: width 0.35s var(--ease), background-color 0.35s var(--ease);
}
.depo-dot.is-active { width: 1.4rem; background: var(--purple); }
.depo-btn { width: 100%; margin-top: 1rem; justify-content: center; }

/* ---------- Depoimento / voz da marca ---------- */
.voice-band {
  background: linear-gradient(120deg, var(--lilac) 0%, var(--coral) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 4rem);
  color: var(--navy);
  margin-inline: var(--gutter);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* marca d'água: monograma da logo ao fundo, translúcido, para o texto seguir como destaque */
.voice-band::after {
  content: "";
  position: absolute;
  top: -16%; bottom: -16%;
  right: -3%;
  width: 60%;
  z-index: -1;
  background: url("../assets/img/logo-gabby-faustino-marca-dagua.webp") no-repeat center / contain;
  rotate: -16deg;            /* na diagonal, parte dela sangra para fora do card */
  opacity: 0.22;
  pointer-events: none;
  animation: watermark-drift 9s ease-in-out infinite;
}
@keyframes watermark-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
.voice-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem);
  line-height: 1.35;
  max-width: 42ch;
  margin: 0;
}
.voice-band cite { display: block; margin-top: 1.4rem; font-style: normal; font-weight: 700; font-size: 0.95rem; }

/* ---------- CTA final ---------- */
.final-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
.final-cta-copy { max-width: 46ch; }
.final-cta-copy h2 { margin-bottom: 1rem; }
.final-cta .btn-primary { padding: 1.1rem 2.3rem; font-size: 1.05rem; }
.final-cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; margin-top: 2rem; }

/* ---------- Instagram ---------- */
.insta {
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
}
.insta-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.1rem; }
.insta-head h3 { font-size: 1.05rem; }
.insta-head p { font-size: 0.82rem; line-height: 1.35; }
.insta-head-icon {
  width: 2.6rem; height: 2.6rem; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--lilac) 55%, var(--coral));
}
.insta-head-icon svg { width: 1.3rem; height: 1.3rem; }
.insta-profile {
  margin-left: auto;
  flex-shrink: 0;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1.5px solid var(--border-soft);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.insta-profile:hover { border-color: var(--purple); color: var(--purple); background: #fff; }

.insta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(0.6rem, 1.4vw, 0.9rem); }
.insta-post {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(200deg, var(--navy), var(--purple));
}
.insta-post img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform 0.7s var(--ease);
}
.insta-post::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(27, 59, 110, 0.55), rgba(118, 63, 164, 0.15) 60%, transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.insta-post-icon {
  position: absolute; z-index: 1;
  right: 0.7rem; bottom: 0.7rem;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.insta-post-icon svg { width: 1.4rem; height: 1.4rem; }
.insta-post:hover img, .insta-post:focus-visible img { transform: scale(1.06); }
.insta-post:hover::after, .insta-post:focus-visible::after { opacity: 1; }
.insta-post:hover .insta-post-icon, .insta-post:focus-visible .insta-post-icon { opacity: 1; transform: none; }
@media (hover: none) {
  .insta-post::after { opacity: 0.55; }
  .insta-post-icon { opacity: 1; transform: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-navy);
  color: rgba(246,242,252,0.82);
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(246,242,252,0.14);
}
.footer-logo { display: inline-block; line-height: 0; }
.footer-logo img { display: block; height: 96px; width: auto; transition: opacity 0.3s var(--ease); }
.footer-logo:hover img { opacity: 0.85; }
.footer-brand p { color: rgba(246,242,252,0.68); margin-top: 0.9rem; font-size: 0.92rem; max-width: 32ch; }
.footer-col h3 { color: var(--ink-invert); font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a, .footer-col address { font-size: 0.92rem; color: rgba(246,242,252,0.78); font-style: normal; }
.footer-col a:hover { color: var(--ink-invert); }
#depoimentos { scroll-margin-top: 7.5rem; }
.footer-credit { color: rgba(246,242,252,0.85); font-weight: 600; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color 0.3s var(--ease), text-decoration-color 0.3s var(--ease); }
.footer-credit:hover, .footer-credit:focus-visible { color: var(--ink-invert); text-decoration-color: currentColor; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.6rem; font-size: 0.8rem; color: rgba(246,242,252,0.55);
  flex-wrap: wrap; gap: 0.6rem;
}

/* ---------- WhatsApp flutuante (mobile) ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.15rem; bottom: 1.15rem;
  z-index: 45;
  width: 3.4rem; height: 3.4rem;
  border-radius: 50%;
  background: var(--coral);
  display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 12px 26px -10px rgba(243,135,130,0.7);
}
.whatsapp-float svg { width: 1.6rem; height: 1.6rem; color: var(--navy); }

/* ---------- Cursor customizado ---------- */
@media (hover: hover) and (pointer: fine) {
  body.custom-cursor-on { cursor: none; }
  body.custom-cursor-on a,
  body.custom-cursor-on button { cursor: none; }

  .cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }
  .cursor-dot {
    width: 7px; height: 7px;
    background: var(--coral);
  }
  .cursor-ring {
    width: 34px; height: 34px;
    border: 1.4px solid var(--purple);
    transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.25s var(--ease);
  }
  .cursor-ring.is-active {
    width: 58px; height: 58px;
    border-color: var(--coral);
    background: rgba(243, 135, 130, 0.08);
  }
}
@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
  body.custom-cursor-on { cursor: auto; }
}

/* ---------- Reveal ao rolar ---------- */
/* os cards que entram deslizando de lado não podem criar rolagem horizontal */
main { overflow-x: clip; }

/* ---------- Animações de scroll ----------
   Entra: sobe/desliza/amplia com fade, com atraso escalonado (--d).
   Sai:   some de volta ao passar da tela (.is-past = saiu por cima).
   Flutuação e parallax usam a propriedade `translate`, para não brigar com o
   `transform` que o reveal usa. Tudo é desligado em prefers-reduced-motion. */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 44px, 0) scale(0.985);
  transition: opacity 0.5s ease, transform 0.6s var(--ease), translate 0.4s var(--ease);
}
.js .reveal[data-reveal="left"] { transform: translate3d(-72px, 0, 0); }
.js .reveal[data-reveal="right"] { transform: translate3d(72px, 0, 0); }
.js .reveal[data-reveal="zoom"] { transform: scale(0.88); }
.js .reveal.is-past { transform: translate3d(0, -26px, 0) scale(0.99); }
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 1s var(--ease) var(--d, 0ms),
    transform 1.15s var(--ease) var(--d, 0ms),
    translate 0.4s var(--ease);
}

/* títulos: as palavras entram uma a uma (o JS divide o texto em .w) */
.split-words .w {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.55em, 0);
  filter: blur(6px);
  transition: opacity 0.45s ease, transform 0.5s var(--ease), filter 0.45s ease;
}
.split-words.is-past .w { transform: translate3d(0, -0.4em, 0); }
.split-words.is-visible .w {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity 0.9s var(--ease) calc(var(--i, 0) * 70ms + var(--d, 0ms)),
    transform 1s var(--ease) calc(var(--i, 0) * 70ms + var(--d, 0ms)),
    filter 0.8s var(--ease) calc(var(--i, 0) * 70ms + var(--d, 0ms));
}

/* barra de progresso da leitura, no topo */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 60;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--purple), var(--lilac), var(--coral));
  pointer-events: none;
}

/* flutuação suave dos cards com foto (usa `translate` e soma o parallax em --py) */
@keyframes float-soft {
  0%, 100% { translate: 0 var(--py, 0px); }
  50% { translate: 0 calc(var(--py, 0px) - var(--float-amp, 9px)); }
}
.crystal-left { animation: float-soft 5.4s ease-in-out infinite; }
.crystal-right { animation: float-soft 6.2s ease-in-out -2.4s infinite; }
.insta-post { --float-amp: 6px; animation: float-soft 5s ease-in-out infinite; }
.insta-post:nth-child(2) { animation-duration: 5.6s; animation-delay: -1.9s; }
.insta-post:nth-child(3) { animation-duration: 5.3s; animation-delay: -3.1s; }
.insta-post:nth-child(4) { animation-duration: 6s; animation-delay: -0.9s; }

/* parallax: o JS escreve --py (px) nos elementos [data-parallax] */
.about-visual { translate: 0 var(--py, 0px); }
.credentials-bg-video { scale: 1.3; translate: 0 var(--py, 0px); }

/* microinterações que dão vida */
.credential-item, .stat-line { transition-property: opacity, transform, translate; }
.credential-item:hover, .stat-line:hover { translate: 0 -4px; }
@keyframes cta-pulse {
  0% { box-shadow: 0 0 0 0 rgba(243, 135, 130, 0.5); }
  70%, 100% { box-shadow: 0 0 0 20px rgba(243, 135, 130, 0); }
}
.final-cta .btn-primary { position: relative; }
.final-cta .btn-primary::after, .whatsapp-float::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  animation: cta-pulse 2.8s ease-out infinite;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .split-words .w { opacity: 1; transform: none; filter: none; transition: none; }
  .scroll-progress { display: none; }
  .crystal-left, .crystal-right, .insta-post, .depo-carousel, .voice-band::after, .for-whom::before,
  .final-cta .btn-primary::after, .whatsapp-float::after { animation: none; }
  .about-visual, .credentials-bg-video { translate: none; }
  .credentials-bg-video { scale: 1; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  background: var(--navy); color: var(--ink-invert);
  padding: 0.7rem 1.2rem; border-radius: 8px;
  z-index: 100;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 980px) {
  .hero .container,
  .about .container,
  .diferencial .container { grid-template-columns: 1fr; }
  .about-visual { order: -1; width: 100%; max-width: 420px; margin-inline: auto; }
  .hero-visual { order: -1; width: 100%; max-width: 460px; margin-inline: auto; height: clamp(380px, 95vw, 540px); }
  .hero-carousel { --shift: clamp(60px, 22vw, 110px); }
  .hero-float-badge--stats { left: 0; bottom: 6%; padding: 0.8rem 1.05rem; gap: 0.8rem; }
  .hero-float-badge--rating { right: 0; top: 6%; max-width: 12rem; padding: 0.7rem 0.95rem; }
  .stat-block strong { font-size: 1.3rem; }
  .services-layout { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .services-card-wrap { grid-column: 1 / -1; order: -1; }
  .services-layout { --services-h: 500px; }
  .crystal { max-width: 200px; height: 320px; }
  .credentials .container { grid-template-columns: 1fr; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .for-whom-grid { grid-template-columns: 1fr; }
  .final-cta-grid { grid-template-columns: 1fr; }
  .final-cta-copy { max-width: 56ch; }
}

@media (max-width: 760px) {
  .main-nav, .header-cta .btn-primary { display: none; }
  .header-cta { gap: 0.5rem; }
  .nav-toggle { display: flex; }

  .main-nav.is-open {
    display: block;
    position: fixed;
    inset: 4.3rem 0 0 0;
    background: var(--bg);
    padding: 2rem var(--gutter);
    overflow-y: auto;
  }
  .main-nav.is-open ul { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  .main-nav.is-open a { font-size: 1.2rem; }

  .logo-full { height: 54px; }
  .site-header.is-shrunk .logo-full { height: 42px; }
  .crystal { max-width: 150px; height: 220px; }
  .services-layout { --services-h: 580px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .whatsapp-float { display: flex; }
  .voice-band::after { width: 100%; right: -30%; top: -10%; bottom: -10%; opacity: 0.15; }
  .for-whom::before { width: 100%; right: -34%; top: -6%; bottom: -6%; opacity: 0.12; }
  .voice-band { margin-inline: 0; border-radius: var(--radius-sm); }
}
