/* ==========================================================================
   Wissence — Layout e componentes
   ========================================================================== */

/* --- Estrutura ------------------------------------------------------------ */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 880px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section--alt  { background: var(--bg-alt); }
.section--dark { background: var(--brown); color: var(--cream); }
.section--dark .eyebrow { color: var(--olive); }
.section--dark .lead    { color: rgba(242, 235, 225, .78); }

.section-head { max-width: var(--maxw-text); margin-bottom: var(--space-lg); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: var(--maxw-text);
}

.lead--center { margin-inline: auto; text-align: center; }

em, .accent-italic {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
}

.section--dark em { color: var(--olive); }

/* Filete decorativo ------------------------------------------------------- */
.rule {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-block: var(--space-md);
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.rule span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--olive);
}

/* --- Botões --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  text-align: center;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: var(--cream); }
.btn--primary:hover { background: var(--accent-hover); }

.btn--dark { background: var(--brown); color: var(--cream); }
.btn--dark:hover { background: var(--brown-deep); }

.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.section--dark .btn--ghost { border-color: rgba(242,235,225,.3); color: var(--cream); }
.section--dark .btn--ghost:hover { border-color: var(--olive); color: var(--olive); }

.btn--light { background: var(--cream); color: var(--brown); }
.btn--light:hover { background: var(--white); }

.btn--whats { background: var(--whats); color: #08301A; }
.btn--whats:hover { background: #1FBA59; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: var(--space-md);
}
.btn-row--center { justify-content: center; }

/* --- Cabeçalho ------------------------------------------------------------ */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(56,42,33,.42), transparent);
  opacity: 1;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.header.is-stuck {
  background: rgba(242, 235, 225, .93);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line-soft);
}
.header.is-stuck::before { opacity: 0; }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 82px;
}

.brand { display: flex; align-items: center; }
.brand img { height: 30px; width: auto; transition: opacity .3s var(--ease); }
.brand__light { display: block; }
.brand__dark  { display: none; }
.header.is-stuck .brand__light { display: none; }
.header.is-stuck .brand__dark  { display: block; }

.nav { display: flex; align-items: center; gap: 2rem; }

.nav__list {
  display: flex;
  align-items: center;
  /* 1,9rem estourava a barra com 6 itens logo acima do breakpoint. */
  gap: 1.5rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__list li { margin: 0; }

.nav__link {
  position: relative;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--cream);
  padding-block: .35rem;
  transition: color .3s var(--ease);
}
.header.is-stuck .nav__link { color: var(--ink); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--olive); }
.header.is-stuck .nav__link[aria-current="page"] { color: var(--accent); }

.header .btn--primary { padding: .7rem 1.4rem; }

/* Botão hambúrguer */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(242,235,225,.35);
  border-radius: 50%;
  color: var(--cream);
  cursor: pointer;
}
.header.is-stuck .nav-toggle { border-color: var(--line); color: var(--ink); }
.nav-toggle span {
  position: relative;
  display: block;
  width: 17px; height: 1.5px;
  background: currentColor;
  transition: background .2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%; height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease);
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after  { top: 5.5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 82px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem var(--gutter) 2.5rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform .4s var(--ease), opacity .3s var(--ease), visibility .3s;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li + li { border-top: 1px solid var(--line-soft); margin-top: 0; }
  .nav__link {
    display: block;
    padding: 1rem 0;
    font-size: 1.05rem;
    color: var(--ink);
  }
  .nav__link::after { display: none; }
  .nav .btn { margin-top: 1.5rem; width: 100%; }
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(92vh, 860px);
  padding-top: 140px;
  padding-bottom: clamp(3.5rem, 2rem + 6vw, 7rem);
  background: var(--brown);
  color: var(--cream);
  overflow: hidden;
}
.hero--short { min-height: min(74vh, 660px); }

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .55;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(56,42,33,.94) 8%, rgba(56,42,33,.45) 55%, rgba(56,42,33,.6) 100%);
}

.hero__inner { position: relative; z-index: 1; width: 100%; }

.hero h1 { margin-bottom: 1.5rem; max-width: 15ch; }
.hero .lead { color: rgba(242,235,225,.82); max-width: 56ch; }
.hero .eyebrow { color: var(--olive); }

.hero__note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + .8vw, 1.65rem);
  color: var(--sand);
  margin-top: var(--space-sm);
  max-width: 40ch;
}

/* --- Cards genéricos ------------------------------------------------------ */

.grid {
  display: grid;
  gap: var(--space-sm);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.card {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .6rem; }
.card p  { color: var(--ink-soft); font-size: var(--fs-small); margin-bottom: 0; }

.card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--cream);
  color: var(--accent);
}
.card__icon svg { width: 24px; height: 24px; }

/* --- Números -------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  padding-block: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--dark .stats { border-color: rgba(242,235,225,.18); }

.stat { text-align: center; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4rem);
  line-height: 1;
  color: var(--accent);
  margin-bottom: .5rem;
}
.section--dark .stat__num { color: var(--olive); }
.stat__label {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  letter-spacing: .01em;
}
.section--dark .stat__label { color: rgba(242,235,225,.7); }

/* --- Jornada (4 etapas) --------------------------------------------------- */

.steps {
  display: grid;
  gap: clamp(1rem, .5rem + 1.6vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  counter-reset: step;
}

.step {
  position: relative;
  counter-increment: step;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem 1.75rem;
}
.section--dark .step {
  background: rgba(242,235,225,.05);
  /* O .step agora fixa color: var(--ink); aqui ele volta para o claro. */
  color: var(--cream);
  border-color: rgba(242,235,225,.14);
}
.step::before {
  content: "0" counter(step);
  position: absolute;
  top: 1.4rem; right: 1.5rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--sand);
}
.section--dark .step::before { color: rgba(179,183,146,.4); }
.step h3 { font-size: 1.3rem; margin-bottom: .6rem; padding-right: 3rem; }
.step p  { font-size: var(--fs-small); color: var(--ink-soft); margin-bottom: 0; }
.section--dark .step p { color: rgba(242,235,225,.72); }

/* --- Benefícios em linha -------------------------------------------------- */

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
  margin: 0; padding: 0;
}
.pills li { margin: 0; }
.pills a, .pills span {
  display: inline-block;
  padding: .6rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 500;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.pills a:hover { background: var(--accent); border-color: var(--accent); color: var(--cream); }

/* --- Blocos de tratamento (alternados) ------------------------------------ */

.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.split + .split { margin-top: var(--space-xl); }

@media (min-width: 860px) {
  .split--flip .split__media { order: -1; }
}

.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-deep);
  aspect-ratio: 4 / 3;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

.split__body h2 { font-size: var(--fs-h3); }

/* --- Corpo clínico -------------------------------------------------------- */

.doctor { text-align: left; }
.doctor__photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-deep);
  margin-bottom: 1.1rem;
}
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor h3 { font-size: 1.25rem; margin-bottom: .2rem; }
.doctor p  { font-size: var(--fs-small); color: var(--ink-soft); margin: 0; }

/* --- Depoimentos ---------------------------------------------------------- */

.reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .75rem 1.25rem;
  margin-bottom: var(--space-md);
}
.reviews-score {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 600;
}
.reviews-score .stars { color: #E0A100; letter-spacing: .1em; }

.review {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
}
.review__stars { color: #E0A100; letter-spacing: .12em; font-size: .95rem; }
.review__text {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}
.review__author {
  font-weight: 600;
  font-size: var(--fs-small);
  margin: 0;
}
.review__meta { font-size: .82rem; color: var(--ink-soft); margin: 0; }

/* --- Tabela --------------------------------------------------------------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  background: var(--surface);
  /* A cor TEM de ser declarada junto com o fundo. Sem ela a tabela herdava o
     creme de .section--dark e dava texto creme sobre branco: 1,18:1, ilegível.
     Vale para todo componente que pinta o próprio fundo. */
  color: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: var(--fs-small);
}
.table th, .table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.table thead th {
  background: var(--brown);
  color: var(--cream);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:last-child { background: var(--sand); font-weight: 600; }

/* --- Unidades ------------------------------------------------------------- */

.unit {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
}
.unit h3 { margin-bottom: 0; }
.unit__city {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: .4rem;
}
.unit dl { margin: 0; display: grid; gap: .85rem; }
.unit dt {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .2rem;
}
.unit dd { margin: 0; font-size: var(--fs-small); }
.unit .btn { align-self: flex-start; margin-top: auto; }

.map-frame {
  border: 0;
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 320px;
  border-radius: var(--radius);
  filter: grayscale(.35) sepia(.12);
}

/* --- Faixa de CTA --------------------------------------------------------- */

.cta-band {
  background: var(--brown);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 1.6rem + 3.5vw, 4.5rem) clamp(1.5rem, 1rem + 3vw, 4rem);
  text-align: center;
}
.cta-band h2 { margin-bottom: 1rem; }
.cta-band .lead { color: rgba(242,235,225,.8); margin-inline: auto; }
.cta-band em { color: var(--olive); }

/* --- Newsletter + rodapé -------------------------------------------------- */

.newsletter {
  background: var(--bg-alt);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem);
}
.newsletter__inner {
  display: grid;
  gap: var(--space-md);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.newsletter h2 { font-size: var(--fs-h3); margin-bottom: .5rem; }
.newsletter p  { color: var(--ink-soft); font-size: var(--fs-small); margin: 0; }

.newsletter__form { display: flex; flex-wrap: wrap; gap: .6rem; }
.newsletter__form input {
  flex: 1 1 220px;
  padding: .95rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
}
.newsletter__form input::placeholder { color: rgba(56,42,33,.42); }
.form-msg { flex-basis: 100%; font-size: .85rem; color: var(--accent); margin: 0; }

.footer {
  background: var(--brown);
  color: rgba(242,235,225,.72);
  padding-block: clamp(3.5rem, 2.5rem + 3vw, 5rem) 2rem;
  font-size: var(--fs-small);
}
.footer__top {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(242,235,225,.14);
}
.footer__brand img { height: 32px; margin-bottom: 1.25rem; }
.footer h4 {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1.1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: .7rem; }
.footer a { transition: color .3s var(--ease); }
.footer a:hover { color: var(--cream); }

.socials { display: flex; gap: .6rem; margin-top: 1.5rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(242,235,225,.22);
  border-radius: 50%;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.socials a:hover { background: var(--olive); border-color: var(--olive); color: var(--brown); }
.socials svg { width: 17px; height: 17px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: var(--space-md);
  font-size: .82rem;
  color: rgba(242,235,225,.5);
}

/* --- WhatsApp flutuante --------------------------------------------------- */

.whats-float {
  position: fixed;
  right: clamp(1rem, .5rem + 1.5vw, 1.75rem);
  bottom: clamp(1rem, .5rem + 1.5vw, 1.75rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--whats);
  color: #08301A;
  box-shadow: 0 8px 28px rgba(37, 211, 102, .38);
  transition: transform .3s var(--ease);
}
.whats-float:hover { transform: scale(1.07); }
.whats-float svg { width: 30px; height: 30px; }

/* --- Revelação em scroll -------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* --- Marcador de pendência (remover antes de publicar) -------------------- */

.todo {
  display: grid;
  place-items: center;
  gap: .35rem;
  min-height: 160px;
  padding: 1.5rem;
  text-align: center;
  border: 1.5px dashed var(--accent);
  border-radius: var(--radius);
  background: repeating-linear-gradient(
    135deg, transparent 0 10px, rgba(124, 93, 72, .05) 10px 20px);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.todo small {
  display: block;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
  max-width: 34ch;
}
.split__media .todo, .doctor__photo .todo, .hero__media .todo { height: 100%; border-radius: 0; }

/* --- Faixa de logos do ecossistema ---------------------------------------- */
/* Os lockups têm proporções diferentes (Wissence é horizontal, os demais são
   quase quadrados). A caixa fixa + object-fit normaliza o peso visual. */

.logo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: center;
  justify-items: center;
}
.logo-row img {
  width: 100%;
  max-width: 170px;
  height: 66px;
  object-fit: contain;
  opacity: .72;
  filter: grayscale(1);
  transition: opacity .35s var(--ease), filter .35s var(--ease);
}
.logo-row img:hover { opacity: 1; filter: none; }

/* --- Correções de contraste do destaque itálico ---------------------------- */
/* `em` é o acento em marrom médio, legível sobre creme. Sobre os fundos
   escuros (hero, faixa de CTA, rodapé) ele precisa virar oliva ou areia. */

.hero em { color: var(--sand); }

.footer__bottom em {
  font-family: var(--font-body);
  font-style: italic;
  color: rgba(242, 235, 225, .55);
}

/* --- Fotografia no hero ---------------------------------------------------- */
/* <picture> é inline por padrão; precisa virar bloco para preencher o media. */

.hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero__media picture img { opacity: .72; }

/* --- Botão que rola para uma âncora na mesma página ----------------------- */

.btn--desce svg {
  width: 16px; height: 16px;
  transition: transform .3s var(--ease);
}
.btn--desce:hover svg { transform: translateY(3px); }

/* --- Entrada do hero: a foto recua de um leve zoom ------------------------ */
/* Roda a cada carregamento da página, que é o comportamento pedido. */

@keyframes heroRecua {
  from { transform: scale(1.14); opacity: 0; }
  to   { transform: scale(1);    opacity: .72; }
}

.hero__media picture img {
  animation: heroRecua 2.6s cubic-bezier(.16, .84, .28, 1) both;
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .hero__media picture img { animation: none; opacity: .72; }
}

/* --- Carrossel de depoimentos (linha única, automático) ------------------- */

.marquee {
  /* Sangra até as bordas da tela, saindo do container. */
  position: relative;
  margin-inline: calc(50% - 50vw);
  padding-inline: var(--gutter);
  overflow: hidden;
  /* Esmaece as pontas para o corte não ficar seco. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeDesliza 64s linear infinite;
}

/* Deslizar 50% da trilha equivale a exatamente uma série. */
@keyframes marqueeDesliza {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee__serie {
  display: flex;
  gap: clamp(1rem, .6rem + 1.2vw, 1.5rem);
  padding-right: clamp(1rem, .6rem + 1.2vw, 1.5rem);
}

.marquee .review {
  flex: 0 0 clamp(270px, 74vw, 380px);
  /* Sem isso os cartões encolhem para caber e a altura fica irregular. */
  min-height: 100%;
}

/* Pausa para dar tempo de ler — no ponteiro e também no teclado. */
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  /* Sem movimento automático: vira uma faixa que a pessoa rola por conta. */
  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
            mask-image: none;
    scroll-snap-type: x mandatory;
  }
  .marquee__track { animation: none; }
  .marquee .review { scroll-snap-align: start; }
  .marquee__serie:last-child { display: none; }
}

/* ==========================================================================
   Calculadora de IMC
   Vive dentro de .section--dark, então herda texto creme sobre marrom.
   Duas colunas: controles à esquerda, termômetro e leitura à direita.
   ========================================================================== */

.imc {
  display: grid;
  gap: clamp(1.25rem, .8rem + 2vw, 2.5rem);
  grid-template-columns: 1fr;
  max-width: 980px;
  margin-inline: auto;
}

@media (min-width: 780px) {
  .imc { grid-template-columns: 1fr 1fr; }
}

.imc__painel,
.imc__leitura {
  background: rgba(242, 235, 225, .05);
  border: 1px solid rgba(242, 235, 225, .14);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
}

.imc__painel {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
}

/* --- Campo: rótulo + valor editável + barra ------------------------------- */

.imc__campo-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.imc__campo label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--olive);
}

.imc__caixa {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  padding: .35rem .9rem;
  border: 1px solid rgba(242, 235, 225, .18);
  border-radius: var(--radius-pill);
  background: rgba(242, 235, 225, .06);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.imc__caixa:focus-within {
  border-color: var(--olive);
  background: rgba(242, 235, 225, .11);
}

.imc__caixa input {
  width: 4.2ch;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  text-align: right;
  /* As setinhas do number quebram o alinhamento e não servem aqui. */
  -moz-appearance: textfield;
          appearance: textfield;
}
.imc__caixa input::-webkit-outer-spin-button,
.imc__caixa input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.imc__caixa input:focus { outline: none; }

.imc__un { font-size: var(--fs-small); color: rgba(242, 235, 225, .55); }

/* --- Barra (range) -------------------------------------------------------- */
/* --pct vem do JS e pinta a parte já percorrida da trilha. */

.imc__barra {
  --pct: 50%;
  width: 100%;
  height: 26px;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-appearance: none;
          appearance: none;
}
.imc__barra:focus { outline: none; }
.imc__barra:focus-visible { outline: 2px solid var(--olive); outline-offset: 6px; border-radius: 4px; }

.imc__barra::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: var(--radius-pill);
  background:
    linear-gradient(var(--olive), var(--olive)) 0 / var(--pct) 100% no-repeat,
    rgba(242, 235, 225, .16);
}
.imc__barra::-moz-range-track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(242, 235, 225, .16);
}
.imc__barra::-moz-range-progress {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--olive);
}

.imc__barra::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  margin-top: -8px;
  border: 3px solid var(--brown);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.imc__barra::-moz-range-thumb {
  width: 22px; height: 22px;
  border: 3px solid var(--brown);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.imc__barra:hover::-webkit-slider-thumb,
.imc__barra:active::-webkit-slider-thumb { transform: scale(1.15); background: var(--olive); }
.imc__barra:hover::-moz-range-thumb,
.imc__barra:active::-moz-range-thumb { transform: scale(1.15); background: var(--olive); }

.imc__limites {
  display: flex;
  justify-content: space-between;
  margin-top: .3rem;
  font-size: .74rem;
  color: rgba(242, 235, 225, .4);
}

.imc__aviso {
  margin: 0;
  min-height: 1.2em;
  font-size: .82rem;
  color: #E8B4A0;
}

/* --- Leitura: termômetro + resultado -------------------------------------- */

.imc__leitura {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, .8rem + 2vw, 2rem);
}

/* Grade de duas colunas: [tubo sobre bulbo] e [escala numérica].
   O bulbo precisa ficar ABAIXO do tubo, não ao lado — daí a grade
   explícita em vez de uma linha flex. */
.imc__termometro {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 34px auto;
  grid-template-rows: auto auto;
  column-gap: .6rem;
  align-items: end;
}

.imc__tubo {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  width: 34px;
  height: clamp(200px, 26vh, 280px);
  border-radius: var(--radius-pill) var(--radius-pill) 0 0;
  overflow: hidden;
}

/* A escala de fundo: as 6 faixas, de cima (45) para baixo (15),
   com altura proporcional à amplitude real de cada intervalo. */
.imc__faixas {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.imc__faixas span {
  flex: var(--w);
  background: var(--band);
  opacity: .3;
}

/* A coluna que sobe. --nivel e --cor vêm do JS. */
.imc__mercurio {
  --nivel: 0%;
  --cor: var(--olive);
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--nivel);
  background: var(--cor);
  border-radius: var(--radius-pill) var(--radius-pill) 0 0;
  transition: height .55s var(--ease), background-color .45s var(--ease);
}

.imc__marca {
  --nivel: 0%;
  position: absolute;
  /* O tubo tem overflow hidden, então a marca não pode sangrar para fora. */
  left: 0; right: 0;
  bottom: var(--nivel);
  height: 2px;
  background: var(--cream);
  box-shadow: 0 0 8px rgba(0, 0, 0, .45);
  transition: bottom .55s var(--ease);
}

.imc__bulbo {
  --cor: var(--olive);
  grid-column: 1;
  grid-row: 2;
  position: relative;
  z-index: 1;
  width: 52px; height: 52px;
  /* Centraliza sob o tubo (34px) e sobe para encostar sem emenda. */
  margin: -16px 0 0 -9px;
  border-radius: 50%;
  background: var(--cor);
  transition: background-color .45s var(--ease);
}

.imc__escala {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: .72rem;
  color: rgba(242, 235, 225, .4);
}

/* Resultado ao lado do termômetro */
.imc__saida { flex: 1; min-width: 0; }

.imc__rotulo {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--olive);
}
.imc__numero {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 1.8rem + 3.6vw, 4rem);
  font-weight: 400;
  line-height: 1;
  margin: .3rem 0 .25rem;
  font-variant-numeric: tabular-nums;
}
.imc__classe {
  display: block;
  font-size: var(--fs-lead);
  color: var(--sand);
  margin-bottom: 1rem;
}
.imc__nota {
  font-size: .88rem;
  line-height: 1.6;
  color: rgba(242, 235, 225, .74);
  margin-bottom: 1.5rem;
}

.imc__disclaimer {
  max-width: 68ch;
  margin: var(--space-lg) auto 0;
  text-align: center;
  font-size: .85rem;
  line-height: 1.65;
  color: rgba(242, 235, 225, .55);
}

@media (prefers-reduced-motion: reduce) {
  .imc__mercurio, .imc__marca, .imc__bulbo { transition: none; }
}

/* --- Cartão em quatro colunas --------------------------------------------- */
/* A --fs-h3 padrão foi pensada para colunas largas. Numa grade de quatro a
   coluna cai para ~265 px e o título vira uma escada de duas ou três linhas,
   então aqui ele encolhe e o respiro interno diminui junto. */

.grid--4 .card { padding: clamp(1.25rem, 1rem + .8vw, 1.75rem); }
.grid--4 .card h3 { font-size: 1.2rem; line-height: 1.2; }
.grid--4 .card__icon {
  width: 44px; height: 44px;
  margin-bottom: 1rem;
}
.grid--4 .card__icon svg { width: 20px; height: 20px; }

/* --- Utilitários de ritmo -------------------------------------------------- */
/* Existem para tirar espaçamento inline das páginas: valor solto no HTML
   escapa da escala e ninguém acha depois. */

/* Seção que continua a anterior sem repetir o respiro do topo. */
.section--flush-top { padding-top: 0; }

/* Cabeçalho de seção com respiro menor, quando o que vem abaixo é leve. */
.section-head--tight { margin-bottom: var(--space-md); }

/* Afasta um bloco do que veio antes dele. */
.stack-lg { margin-top: var(--space-lg); }

/* Largura intermediária: mais estreita que o container, mais larga que texto. */
.measure-mid {
  max-width: 960px;
  margin-inline: auto;
}

/* Título secundário: hierarquia de h2, tamanho de h3. */
.h-sm { font-size: var(--fs-h3); }

/* Lista de atalhos centralizada. */
.pills--center { justify-content: center; }

/* Cartão em areia, para destacar um item dentro da grade. */
.card--sand {
  background: var(--sand);
  color: var(--brown);
  border-color: transparent;
}
.card--sand p { color: var(--brown); }

/* Observação de rodapé dentro de um bloco. */
.nota-fina {
  font-size: var(--fs-small);
  opacity: .75;
}

/* Placeholder que precisa ocupar mais altura (vídeo, banner). */
.todo--alto { min-height: 220px; }

/* Link discreto ao lado de um título ou selo. */
.link-sub {
  font-size: var(--fs-small);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-sub:hover { color: var(--accent); }

/* --- Telefone central no rodapé ------------------------------------------- */
/* Fica abaixo da lista de unidades, separado por um filete, para ler como
   "um número para todas" e não como o telefone da última unidade da lista. */

.footer__central {
  margin: var(--space-sm) 0 0;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(242, 235, 225, .14);
}
.footer__central span {
  display: block;
  margin-bottom: .3rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(242, 235, 225, .5);
}
.footer__central a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
}
.footer__central a:hover { color: var(--olive); }

/* --- Dado pendente, inline ------------------------------------------------ */
/* O .todo é um bloco grande, pesado demais para um campo solto dentro de um
   cartão. Este marca o valor que falta sem desmontar o layout — e deixa
   óbvio, para quem edita, que ali não é texto definitivo. */

.pendente {
  display: inline-block;
  padding: .1em .5em;
  border: 1px dashed var(--accent);
  border-radius: 6px;
  background: rgba(124, 93, 72, .07);
  color: var(--accent);
  font-size: .9em;
  font-style: italic;
}

/* Dentro de um título, o marcador acompanha o corpo de texto em vez da
   serifa de display — senão vira um bloco enorme. */
.unit h3 .pendente {
  font-family: var(--font-body);
  font-size: .62em;
  font-weight: 500;
}

/* --- Mídia em retrato dentro de um .split ---------------------------------- */
/* O padrão do .split__media é 4:3. Um retrato vertical nessa caixa perde
   cabeça ou sobra sofá; aqui a proporção acompanha a foto. */

.split__media--retrato { aspect-ratio: 4 / 5; }

@media (min-width: 860px) {
  /* Em duas colunas o retrato ficaria muito mais alto que o texto ao lado. */
  .split__media--retrato { max-height: 620px; }
}

/* --- Observação secundária ------------------------------------------------- */
/* Texto de ressalva: menor e mais apagado que o corpo, sem virar letra miúda.
   Declara a cor nos dois fundos, pela mesma regra dos componentes. */

.note {
  max-width: var(--maxw-text);
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.section--dark .note { color: rgba(242, 235, 225, .66); }

/* Afasta um bloco do anterior, meio passo. */
.stack-sm { margin-top: var(--space-md); }
