/* ============================================================
   Clinikids Especialidades Pediátricas · Colatina, ES  — v3
   Redesign cinematográfico: vídeo no hero, galeria horizontal,
   parallax e micro-interações (GSAP + ScrollTrigger + Lenis).
   Branding: verde sálvia + coral + cinza-azulado + off-white
   ============================================================ */

@import url('../assets/fonts/fonts.css');

:root {
  /* cor */
  --ink: #263136;
  --ink-deep: #1a2226;
  --slate: #5c7480;
  --body: #47585f;
  --sage: #9caf75;
  --sage-deep: #5f7239;
  --sage-panel: #a9b98a;
  --sage-soft: #edf0e1;
  --sage-ink: #313d20;
  --cream: #faf8f3;
  --white: #ffffff;
  --coral: #f08a70;
  --coral-soft: #fbe3db;
  --coral-deep: #c04b2a;
  --coral-hover: #a93f21;
  --yellow: #f0bf6a;

  /* forma */
  --radius: 24px;
  --radius-lg: 44px;
  --radius-pill: 999px;

  /* tipo */
  --f-display: 'Baloo 2', 'Poppins', sans-serif;
  --f-body: 'Poppins', sans-serif;
  --f-script: 'Caveat', cursive;

  --maxw: 1200px;
  --shadow: 0 14px 38px rgba(38, 49, 54, 0.1);
  --shadow-soft: 0 6px 18px rgba(38, 49, 54, 0.06);

  /* ruído fotográfico sutil (feTurbulence) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.modal-open { overflow: hidden; }

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

a { color: var(--coral-deep); }

:focus-visible {
  outline: 3px solid var(--coral-deep);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.ic { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

/* âncoras não somem sob o header fixo */
section[id], [id="agendamento"], [id="snap"] { scroll-margin-top: 92px; }

/* ---------- tipografia ---------- */

h1, h2, h3 {
  font-family: var(--f-display);
  color: var(--slate);
  line-height: 1.12;
  font-weight: 700;
}

h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.14rem; color: var(--ink); }

.mt { margin-top: 14px; }

.script {
  font-family: var(--f-script);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.7vw, 2.1rem);
  color: var(--sage-deep);
  display: block;
  transform: rotate(-2deg);
  margin-bottom: 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-deep);
  background: var(--sage-soft);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  margin-bottom: 18px;
}

.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); }

.section { padding: 100px 0; }

.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head p { margin-top: 12px; font-size: 1.03rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* seções-cartão, como as molduras dos posts */
.band {
  border-radius: clamp(28px, 4vw, 56px);
  margin-inline: clamp(8px, 1.4vw, 22px);
}
.band-white { background: var(--white); }
.band-sage { background: var(--sage-soft); }

/* ---------- botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.btn:active { transform: scale(0.97); }

.btn-lg { padding: 17px 32px; font-size: 1.05rem; }

.btn-coral {
  background: var(--coral-deep);
  color: #fff;
  box-shadow: 0 10px 24px rgba(192, 75, 42, 0.28);
}
.btn-coral:hover {
  background: var(--coral-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(192, 75, 42, 0.34);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: #cfd8d3;
}
.btn-ghost:hover { border-color: var(--slate); transform: translateY(-2px); }

/* botão translúcido sobre o vídeo */
.btn-glass {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: #fff;
  transform: translateY(-2px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--coral-deep);
  text-decoration: none;
}
.link-arrow .ic { transition: transform 0.18s ease; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--cream);
  display: grid;
  place-items: center;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.no-js .preloader { display: none; }

.preloader-inner { display: grid; justify-items: center; gap: 26px; }
.preloader-inner img { width: min(220px, 56vw); height: auto; }

.preloader-bar {
  width: min(210px, 52vw);
  height: 5px;
  border-radius: var(--radius-pill);
  background: #e7e3d6;
  overflow: hidden;
}
.preloader-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: var(--radius-pill);
  background: var(--coral-deep);
}

/* ---------- header ---------- */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-color: #eee9df;
  box-shadow: 0 6px 24px rgba(38, 49, 54, 0.07);
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 80px;
}

.brand img { width: 148px; height: auto; transition: filter 0.3s ease; }

/* legibilidade sobre o vídeo, antes de rolar */
.header.over-hero:not(.scrolled) .brand img {
  filter: drop-shadow(0 1px 1px rgba(255,255,255,0.9)) drop-shadow(0 0 10px rgba(255,255,255,0.75));
}
.header.over-hero:not(.scrolled) .nav a:not(.btn) {
  color: #fff;
  text-shadow: 0 1px 12px rgba(16, 24, 16, 0.55);
}
.header.over-hero:not(.scrolled) .nav-toggle { color: #fff; }

.nav { display: flex; align-items: center; gap: 26px; }

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 3px;
  border-radius: 3px;
  background: var(--coral);
  transition: right 0.2s ease;
}
.nav a:not(.btn):hover::after,
.nav a:not(.btn)[aria-current="true"]::after { right: 0; }
.header.scrolled .nav a:hover { color: var(--coral-deep); }

.nav .btn { padding: 11px 22px; font-size: 0.92rem; box-shadow: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .ic { width: 30px; height: 30px; }

/* ---------- hero cinematográfico ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--ink-deep); }

.hero-poster,
.hero-poster img,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-poster img { transform: scale(1.06); }

.hero-video { opacity: 0; transition: opacity 0.8s ease; }
.hero-video.on { opacity: 1; }

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(18, 26, 18, 0.82) 0%, rgba(18, 26, 18, 0.35) 42%, rgba(18, 26, 18, 0.22) 100%),
    linear-gradient(100deg, rgba(24, 34, 22, 0.62) 0%, rgba(24, 34, 22, 0.18) 55%, rgba(24, 34, 22, 0.05) 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.11;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-inner {
  width: 100%;
  padding-top: 130px;
  padding-bottom: 120px;
}

.eyebrow-hero {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 800;
  line-height: 1.04;
  color: #fff;
  max-width: 15ch;
  margin: 6px 0 22px;
  text-wrap: balance;
}
.hero-title em {
  font-style: normal;
  color: var(--coral);
  position: relative;
  display: inline-block;
}
.hero-title em::after {
  content: "";
  position: absolute;
  left: 2%; right: 4%;
  bottom: 0.05em;
  height: 0.16em;
  background: rgba(240, 138, 112, 0.4);
  border-radius: 999px / 100% 60% 100% 60%;
  z-index: -1;
}

/* reveal palavra a palavra (spans criados pelo JS) */
.hero-title .wm { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero-title .w { display: inline-block; will-change: transform; }

.hero .lead {
  max-width: 52ch;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(16, 24, 16, 0.4);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .ic { color: var(--coral); width: 1.35em; height: 1.35em; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}
.hero-scroll:hover { color: #fff; }

.hero-scroll-line {
  width: 2px;
  height: 44px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
  position: relative;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  left: 0; top: -50%;
  width: 100%;
  height: 50%;
  background: #fff;
  animation: scroll-hint 1.8s ease-in-out infinite;
}
@keyframes scroll-hint {
  0% { top: -50%; }
  70%, 100% { top: 110%; }
}

/* estado inicial dos blocos do hero (o JS anima a entrada) */
html:not(.no-js) .hero [data-hero] { opacity: 0; }
html:not(.no-js) .hero .hero-scroll { opacity: 0; }
html:not(.no-js) .hero-title { opacity: 0; }

/* ---------- faixa marquee ---------- */

.strip {
  background: var(--sage-panel);
  padding: 22px 0;
  overflow: hidden;
  transform: rotate(-1.2deg) scale(1.02);
  margin-top: -14px;
  box-shadow: 0 -8px 30px rgba(24, 34, 22, 0.18);
  position: relative;
  z-index: 2;
}

.strip-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  animation: strip-slide 40s linear infinite;
}

.strip span {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: var(--sage-soft);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 30px;
}
.strip span:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.85);
}
.strip span::after {
  content: "✦";
  font-size: 0.75em;
  color: var(--sage-ink);
  -webkit-text-stroke: 0;
}

@keyframes strip-slide { to { transform: translateX(-50%); } }

/* ---------- sobre / manifesto ---------- */

.about { overflow: clip; }

.about-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 72px;
}

.about-manifesto {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1.08;
  max-width: 16ch;
}
.about-manifesto em {
  font-style: normal;
  color: var(--sage-deep);
  position: relative;
  display: inline-block;
}
.about-manifesto em::after {
  content: "";
  position: absolute;
  left: 2%; right: 4%;
  bottom: 0.06em;
  height: 0.22em;
  background: var(--coral-soft);
  border-radius: 999px / 100% 60% 100% 60%;
  z-index: -1;
}

.about-copy .mt { max-width: 46ch; font-size: 1.03rem; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.stat b {
  display: block;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  line-height: 1;
  color: var(--coral-deep);
}
.stat > span {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: 20ch;
}

/* colagem com parallax */
.about-collage { position: relative; min-height: 520px; }

.collage-photo {
  position: absolute;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.collage-photo img { width: 100%; height: 100%; object-fit: cover; }

.collage-photo.cp1 {
  width: 82%;
  aspect-ratio: 4 / 4.6;
  top: 0;
  right: 0;
  border-radius: var(--radius-lg);
  border: 8px solid var(--white);
}
.collage-photo.cp2 {
  width: 46%;
  aspect-ratio: 1;
  left: 0;
  bottom: 4%;
  border-radius: 50%;
  border: 8px solid var(--white);
}

.collage-script {
  position: absolute;
  left: 4%;
  top: 12%;
  transform: rotate(-8deg);
  color: var(--coral-deep);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.about-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.about-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.badge-ic {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--sage-soft);
  color: var(--sage-deep);
}
.badge-ic .ic { width: 26px; height: 26px; }

.about-card p { font-size: 0.95rem; margin-top: 4px; }

/* ---------- especialidades ---------- */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.spec-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--cream);
  border: 1.5px solid #efeadf;
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.spec-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--coral);
}

.spec-card .badge-ic {
  width: 54px;
  height: 54px;
  background: var(--coral-soft);
  color: var(--coral-deep);
  margin-bottom: 6px;
  transition: transform 0.2s ease;
}
.spec-card .badge-ic .ic { width: 28px; height: 28px; }
.spec-card:hover .badge-ic { transform: translateY(-4px) rotate(-6deg); }

.spec-card p { font-size: 0.92rem; flex: 1; }

.spec-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-deep);
  background: var(--sage-soft);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
}

/* células fotográficas entre os cards */
.spec-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 280px;
  box-shadow: var(--shadow-soft);
}
.spec-photo picture,
.spec-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.spec-photo:hover img { transform: scale(1.05); }
.spec-photo figcaption {
  position: absolute;
  left: 18px;
  bottom: 12px;
  z-index: 1;
}
.spec-photo .script {
  color: #fff;
  text-shadow: 0 2px 14px rgba(16, 24, 16, 0.65);
  margin: 0;
}
.spec-photo::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(to top, rgba(18, 26, 18, 0.55), transparent);
}

/* ---------- momentos · galeria horizontal ---------- */

.momentos {
  background: var(--ink-deep);
  color: #fff;
  position: relative;
  overflow: clip;
}
.momentos::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.07;
  pointer-events: none;
}

.momentos-pin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(26px, 4vh, 48px);
  padding: clamp(64px, 9vh, 110px) 0;
  min-height: 100vh;
}

.momentos-head .script { color: var(--coral); }
.momentos-head h2 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  max-width: 22ch;
}
.momentos-head em {
  font-style: normal;
  color: var(--sage);
}

.momentos-viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.momentos-viewport::-webkit-scrollbar { display: none; }
.momentos.pinned .momentos-viewport { overflow: visible; }

.momentos-track {
  display: flex;
  align-items: stretch;
  gap: clamp(18px, 2.6vw, 34px);
  width: max-content;
  padding-inline: max(24px, calc((100vw - var(--maxw)) / 2 + 24px));
}

.momento {
  position: relative;
  width: min(58vw, 760px);
  height: clamp(340px, 56vh, 560px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex: none;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}
.momento.retrato { width: min(34vw, 420px); }

.momento picture, .momento img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.momento figcaption {
  position: absolute;
  left: 26px;
  bottom: 18px;
  z-index: 1;
}
.momento figcaption .script {
  color: #fff;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
  margin: 0;
}
.momento::after {
  content: "";
  position: absolute;
  inset: 60% 0 0;
  background: linear-gradient(to top, rgba(10, 14, 10, 0.6), transparent);
}

.momento-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  background: var(--sage-deep);
  padding: clamp(28px, 3.4vw, 54px);
  width: min(44vw, 520px);
}
.momento-cta::after { display: none; }
.momento-cta .script { color: #d9e3c2; font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.momento-cta p {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.25;
  color: #fff;
}

/* ---------- equipe ---------- */

.team { padding-bottom: 110px; }

.team-head {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.team-head p { max-width: 56ch; }

.team-arrows { display: flex; gap: 10px; }

.team-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #c9d3b4;
  background: var(--white);
  color: var(--sage-deep);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}
.team-arrow:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: #fff;
  transform: translateY(-2px);
}
.team-arrow .ic { width: 22px; height: 22px; }
.team-arrow.flip .ic { transform: scaleX(-1); }

.team-scroller {
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  cursor: grab;
  padding: 8px 0 26px;
}
.team-scroller::-webkit-scrollbar { display: none; }
.team-scroller.dragging { cursor: grabbing; scroll-snap-type: none; }
.team-scroller.dragging .team-card { pointer-events: none; }

.team-grid {
  display: flex;
  gap: 18px;
  width: max-content;
  padding-inline: max(24px, calc((100vw - var(--maxw)) / 2 + 24px));
}

.team-card {
  width: clamp(210px, 17vw, 250px);
  flex: none;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 10px 10px 0;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.team-card:hover { transform: translateY(-5px) rotate(-0.6deg); box-shadow: var(--shadow); }

.team-photo {
  border: 2px solid var(--coral);
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
}
.team-photo img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.team-card:hover .team-photo img { transform: scale(1.05); }

.team-card figcaption { padding: 12px 8px 16px; }

.team-card strong {
  display: block;
  font-family: var(--f-display);
  font-size: 0.97rem;
  color: var(--ink);
  line-height: 1.25;
}

.team-card span { font-size: 0.8rem; color: var(--slate); }

/* ---------- SNAP-IV (seção de chamada) ---------- */

.snap-panel {
  background: var(--sage-panel);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 60px);
  overflow: hidden;
  position: relative;
}
.snap-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.06;
  pointer-events: none;
}

.snap-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.snap-panel h2 { color: var(--sage-ink); }
.snap-panel p { color: var(--sage-ink); }

.eyebrow-snap { background: rgba(255, 255, 255, 0.85); }

.snap-bullets {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 22px 0 28px;
}
.snap-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--sage-ink);
}
.snap-bullets .ic { width: 1.5em; height: 1.5em; color: var(--sage-ink); }

.snap-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.snap-mini { font-size: 0.88rem; color: var(--sage-ink); font-weight: 500; }

/* cartões ilustrativos (decoração) */
.snap-illus { position: relative; min-height: 300px; }

.snap-illus-card {
  position: absolute;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 20px 22px;
  width: min(300px, 90%);
}
.snap-illus-card .q {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.snap-illus-card .pills { display: flex; gap: 8px; }
.snap-illus-card .pills i {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1.5px solid #d8ddcd;
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  color: var(--body);
}
.snap-illus-card .pills i.on {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: #fff;
}

.snap-illus-card.c1 { top: 6%; right: 4%; transform: rotate(2deg); }
.snap-illus-card.c2 { bottom: 8%; left: 0; transform: rotate(-3deg); }

.snap-illus-heart {
  position: absolute;
  top: 46%;
  left: 18%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  color: var(--coral-deep);
  box-shadow: var(--shadow-soft);
  animation: heart-beat 2.6s ease-in-out infinite;
}
.snap-illus-heart .ic { width: 26px; height: 26px; }

@keyframes heart-beat {
  0%, 40%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
  60% { transform: scale(1.04); }
}

/* ---------- passos ---------- */

.steps-wrap { position: relative; }

.steps-line {
  position: absolute;
  top: 54px;
  left: 8%;
  right: 8%;
  height: 4px;
  border-radius: 4px;
  background: #e9e4d6;
  z-index: 0;
}
.steps-line i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 4px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
}

.steps-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.step-num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  background: var(--coral-deep);
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.step p { font-size: 0.95rem; margin-top: 6px; }

.pay-note {
  margin-top: 28px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 0.95rem;
}
.pay-note .ic { color: var(--sage-deep); width: 1.6em; height: 1.6em; margin-top: 2px; }
.pay-note strong { color: var(--ink); }

/* ---------- contato ---------- */

.contact .script { color: var(--sage-deep); }
.contact h2 { color: var(--sage-ink); }
.contact .section-head p { color: var(--sage-ink); }

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  box-shadow: var(--shadow-soft);
}

.contact-list { display: grid; gap: 20px; }

.contact-item { display: flex; gap: 16px; align-items: flex-start; }

.contact-item .badge-ic { width: 46px; height: 46px; border-radius: 15px; }
.contact-item .badge-ic .ic { width: 23px; height: 23px; }

.contact-item strong { color: var(--ink); display: block; }
.contact-item p, .contact-item a { font-size: 0.94rem; }

.contact-ctas {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.contact-ctas .btn { width: 100%; }
.contact-ctas .btn-ghost { border-color: #dfe4da; }

/* ---------- CTA final ---------- */

.cta-band {
  position: relative;
  border-radius: clamp(28px, 4vw, 56px);
  margin: 0 clamp(8px, 1.4vw, 22px) 22px;
  padding: clamp(96px, 14vw, 150px) 0;
  text-align: center;
  overflow: hidden;
  color: #fff;
}

.cta-media { position: absolute; inset: 0; z-index: 0; background: var(--sage-deep); }
.cta-media picture, .cta-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-media img { transform: scale(1.15); will-change: transform; }

.cta-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(26, 34, 24, 0.68), rgba(26, 34, 24, 0.74));
}

.cta-inner { position: relative; z-index: 1; }

.cta-band .script { color: var(--coral); }
.cta-band h2 {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  max-width: 18ch;
  margin: 0 auto 14px;
}
.cta-band p {
  color: #e8ecdf;
  max-width: 52ch;
  margin: 0 auto 32px;
}

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: #c4cdd2;
  padding: 56px 0 32px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer .logo-pill {
  background: var(--white);
  border-radius: 18px;
  padding: 14px 18px;
  display: inline-block;
  margin-bottom: 16px;
}
.footer .logo-pill img { width: 150px; height: auto; }

.footer h4 {
  font-family: var(--f-display);
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer ul { list-style: none; display: grid; gap: 9px; }

.footer a { color: #c4cdd2; text-decoration: none; }
.footer a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #93a1a8;
}

/* ---------- botão flutuante ---------- */

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--coral-deep);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(192, 75, 42, 0.4);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.wa-float:hover { transform: scale(1.07); background: var(--coral-hover); }
.wa-float .ic { width: 30px; height: 30px; }

/* ---------- modal SNAP-IV ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(38, 49, 54, 0.5);
  backdrop-filter: blur(5px);
}
.modal[hidden] { display: none; }

.modal-card {
  position: relative;
  width: min(660px, 100%);
  max-height: min(760px, 92vh);
  overflow-y: auto;
  background: var(--cream);
  border-radius: 32px;
  padding: clamp(26px, 4vw, 46px);
  box-shadow: 0 30px 80px rgba(38, 49, 54, 0.35);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--sage-soft);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.15s ease;
}
.modal-close:hover { background: #e0e5d0; }
.modal-close .ic { width: 20px; height: 20px; }

/* telas do wizard */
.sw-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 10px;
  display: block;
}

.sw-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--slate);
  margin-bottom: 12px;
  line-height: 1.2;
}

.sw-text { font-size: 0.97rem; margin-bottom: 12px; }

.sw-note {
  background: var(--white);
  border-left: 5px solid var(--yellow);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 0.9rem;
  margin: 18px 0 24px;
}
.sw-note strong { color: var(--ink); }

.sw-progress { margin: 4px 0 22px; }
.sw-progress .sw-count {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--sage-deep);
  display: block;
  margin-bottom: 8px;
}
.sw-bar {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--sage-soft);
  overflow: hidden;
}
.sw-bar i {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--coral-deep);
  transition: width 0.25s ease;
}

.sw-question {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 24px;
  min-height: 3.2em;
}

.sw-options { display: grid; gap: 10px; }

.sw-opt {
  width: 100%;
  text-align: left;
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  border: 2px solid #e3e7d8;
  border-radius: 16px;
  padding: 15px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.14s ease, background-color 0.14s ease, transform 0.14s ease;
}
.sw-opt .sw-key {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--sage-soft);
  color: var(--sage-deep);
  font-size: 0.8rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.sw-opt:hover { border-color: var(--sage-deep); transform: translateX(3px); }
.sw-opt.selected {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: #fff;
}
.sw-opt.selected .sw-key { background: rgba(255, 255, 255, 0.2); color: #fff; }

.sw-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 26px;
}

.sw-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  font-family: var(--f-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 10px;
}
.sw-back:hover { color: var(--ink); background: var(--sage-soft); }

.sw-hint { font-size: 0.8rem; color: #64716a; }

/* resultado */
.sw-alert {
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.sw-alert.pos { background: var(--coral-soft); color: var(--coral-hover); }
.sw-alert.neg { background: var(--sage-soft); color: var(--sage-deep); }

.sw-scores { display: grid; gap: 14px; margin-bottom: 20px; }

.sw-score {
  background: var(--white);
  border: 1px solid #e5e9da;
  border-radius: 16px;
  padding: 16px 18px;
}
.sw-score .sw-score-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.sw-score .sw-score-head span { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.sw-score .sw-score-head b {
  font-family: var(--f-display);
  font-size: 1.3rem;
  color: var(--slate);
}
.sw-score .sw-bar { height: 10px; }
.sw-score .sw-bar i.ok { background: var(--sage-deep); }
.sw-score small { display: block; margin-top: 8px; font-size: 0.8rem; color: var(--body); }

.sw-ctas { display: grid; gap: 12px; margin-top: 22px; }
.sw-ctas .btn { width: 100%; }

.sw-disclaimer {
  font-size: 0.83rem;
  border-top: 1px dashed #dfe3d5;
  padding-top: 14px;
  margin-top: 20px;
  color: var(--body);
}

/* ---------- reveal ---------- */

/* Usa a propriedade `translate` (não `transform`) para a entrada, deixando
   o `transform` livre para os efeitos de hover dos cards (evita conflito em
   que .reveal.on anulava o translateY do :hover). */
.reveal {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.6s ease, translate 0.6s ease;
  transition-delay: var(--rd, 0ms);
}
.reveal.on { opacity: 1; translate: 0 0; }
.no-js .reveal { opacity: 1; translate: 0 0; }

/* ---------- responsivo ---------- */

@media (max-width: 1020px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 44px; margin-bottom: 52px; }
  .about-collage { min-height: 0; height: 480px; max-width: 520px; }
  .about-cards { grid-template-columns: 1fr; }
  .snap-grid { grid-template-columns: 1fr; }
  .snap-illus { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .momento { width: 74vw; }
  .momento.retrato { width: 52vw; }
  .momento-cta { width: 70vw; }
}

@media (max-width: 820px) {
  .section { padding: 68px 0; }
  section[id], [id="agendamento"], [id="snap"] { scroll-margin-top: 84px; }

  .nav {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid #eee9df;
    padding: 18px 24px 24px;
    gap: 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn)::after { display: none; }
  .nav-toggle { display: block; }
  /* menu aberto tem fundo branco: volta a cor dos links */
  .header.over-hero:not(.scrolled) .nav.open a:not(.btn) { color: var(--ink); text-shadow: none; }

  .hero-inner { padding-top: 120px; padding-bottom: 110px; }
  .hero-title { font-size: clamp(2.35rem, 10vw, 3.4rem); }
  .br-lg { display: none; }

  .about-stats { gap: 12px; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-line { display: none; }
  .team-head { flex-direction: column; align-items: flex-start; }
  .contact-card { grid-template-columns: 1fr; padding: 30px 24px; }

  .momento { width: 82vw; height: 52vh; min-height: 320px; }
  .momento.retrato { width: 64vw; }
  .momento-cta { width: 82vw; }

  .modal { padding: 0; }
  .modal-card {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }
}

@media (max-width: 560px) {
  .spec-grid { grid-template-columns: 1fr; }
  .spec-photo { min-height: 220px; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-collage { height: 380px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat span { font-size: 0.74rem; }
  .brand img { width: 126px; }
  .sw-question { font-size: 1.15rem; }
  .btn-lg { width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .hero-meta { gap: 8px 18px; font-size: 0.83rem; }
  .team-card { width: 200px; }
}

/* ---------- acessibilidade: movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip-track { animation: none; flex-wrap: wrap; width: auto; }
  .strip { transform: none; }
  .reveal { opacity: 1; translate: 0 0; transition: none; }
  html:not(.no-js) .hero [data-hero],
  html:not(.no-js) .hero .hero-scroll,
  html:not(.no-js) .hero-title { opacity: 1; }
  .hero-scroll-line::after { animation: none; }
  .snap-illus-heart { animation: none; }
  .btn, .spec-card, .wa-float, .team-card, .team-photo img, .spec-photo img,
  .about-card, .step, .link-arrow .ic, .sw-opt, .sw-bar i { transition: none; }
  .hero-video { display: none; }
  .steps-line i { transform: none; }
  .cta-media img { transform: none; }
}
