/* ============================================================
   Dr. André Jardim — base do novo site
   Tema: escuro sofisticado (troque a paleta só nas variáveis)
   ============================================================ */

/* Fontes locais — Sofia Pro */
@font-face { font-family: "Sofia Pro"; src: url("SofiaProLight.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Sofia Pro"; src: url("SofiaProRegular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sofia Pro"; src: url("SofiaProMedium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
/* Forum — fonte dos títulos */
@font-face { font-family: "Forum"; src: url("Forum-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }

:root {
  --verde-hero: #2e4b39; /* verde escuro do hero — ajuste aqui */
  --font-sofia: "Sofia Pro", "Jost", sans-serif;
  --bg: #0c0e0d;
  --surface: #141715;
  --surface-2: #1b1f1c;
  --line: #2a2f2b;
  --gold: #c9a45c;
  --gold-soft: #e2c791;
  --text: #ece8de;
  --muted: #a39f93;
  --font-display: "Forum", "Cormorant Garamond", serif;
  --font-body: "Sofia Pro", "Jost", sans-serif;
  --max: 1140px;
  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: .01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .35em;
  color: var(--gold);
  margin-bottom: 18px;
}

.gold { color: var(--gold); }
.muted { color: var(--muted); }

section { padding: 110px 0; }

/* ---------- Header (menu-scrim: degradê glass, escuro no topo → transparente na base) ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 20px 0;
  transition: transform .45s var(--ease), padding .3s;
}
/* scrim: barra invisível que só é um degradê escuro→transparente + glass que também some */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  bottom: -120px;           /* estende bem mais pra o fade morrer bem suave */
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(8, 11, 9, .42), rgba(8, 11, 9, .16) 30%, rgba(8, 11, 9, 0) 100%);
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.55) 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.55) 30%, transparent 100%);
}
.header.is-scrolled { padding: 14px 0; }
.header.is-hidden { transform: translateY(-100%); }

/* nav à direita; logo centralizada de forma absoluta */
.header .container { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 40px; }

/* logo = assinatura (Ativo-24.png) à esquerda, alinhada ao topo */
.logo {
  position: static;
  transform: translateY(10px); /* desce a logo mais um pouco */
  width: 150px;
  aspect-ratio: 1080 / 648;
  margin: -14px 0;            /* corta o espaço vazio do PNG */
  background: var(--text);
  -webkit-mask: url("Ativo-24.png") center / contain no-repeat;
  mask: url("Ativo-24.png") center / contain no-repeat;
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, .5));
  font-size: 0;               /* esconde qualquer texto de fallback */
}

/* ---------- Botão hambúrguer ---------- */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 34px;
  padding: 6px 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .3s;
}
.menu-toggle span:nth-child(3) { width: 66%; }
.menu-toggle:hover span { background: var(--gold); }

/* ---------- Menu overlay ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(8, 11, 9, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }

.menu-close {
  position: absolute;
  top: 28px; right: 34px;
  background: none; border: 0;
  color: var(--text);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color .3s, transform .3s var(--ease);
}
.menu-close:hover { color: var(--gold); transform: rotate(90deg); }

.menu-links { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.menu-links a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text);
  letter-spacing: .03em;
  opacity: 0;
  transform: translateY(18px);
  transition: color .3s;
}
body.menu-open .menu-links a { animation: menuIn .5s var(--ease) forwards; }
body.menu-open .menu-links a:nth-child(1) { animation-delay: .10s; }
body.menu-open .menu-links a:nth-child(2) { animation-delay: .18s; }
body.menu-open .menu-links a:nth-child(3) { animation-delay: .26s; }
body.menu-open .menu-links a:nth-child(4) { animation-delay: .34s; }
body.menu-open .menu-links a:nth-child(5) { animation-delay: .42s; }
.menu-links a:not(.btn):hover { color: var(--gold); }
.menu-links a.btn {
  font-family: var(--font-body);
  font-size: .85rem;
  margin-top: 14px;
}
@keyframes menuIn { to { opacity: 1; transform: none; } }

.nav { display: flex; gap: 34px; align-items: center; }
.nav a {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  position: relative;
  transition: color .3s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Botão shiny (borda cônica animada + shimmer, dourado escuro) ---------- */
@property --gradient-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --gradient-angle-offset { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --gradient-percent { syntax: "<percentage>"; initial-value: 5%; inherits: false; }
@property --gradient-shine { syntax: "<color>"; initial-value: #e2c791; inherits: false; }

.btn-shiny {
  --shiny-bg: #0e100e;
  --shiny-bg-subtle: #1a1c19;
  --shiny-fg: var(--text);
  --shiny-highlight: #8a6a2c;        /* dourado mais escuro */
  --shiny-highlight-subtle: #c9a45c; /* dourado da marca (brilho no hover) */
  --animation: gradient-angle linear infinite;
  --duration: 3s;
  --shadow-size: 2px;
  --transition: 800ms cubic-bezier(0.25, 1, 0.5, 1);

  isolation: isolate;
  position: relative;
  overflow: hidden;
  display: inline-block;
  cursor: pointer;
  outline-offset: 4px;
  padding: 15px 40px;
  font-family: var(--font-body);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .25em;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 360px;
  color: var(--shiny-fg);
  background:
    linear-gradient(var(--shiny-bg), var(--shiny-bg)) padding-box,
    conic-gradient(
      from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
      transparent,
      var(--shiny-highlight) var(--gradient-percent),
      var(--gradient-shine) calc(var(--gradient-percent) * 2),
      var(--shiny-highlight) calc(var(--gradient-percent) * 3),
      transparent calc(var(--gradient-percent) * 4)
    ) border-box;
  box-shadow: inset 0 0 0 1px var(--shiny-bg-subtle);
  transition: var(--transition);
  transition-property: --gradient-angle-offset, --gradient-percent, --gradient-shine;
}
.btn-shiny::before,
.btn-shiny::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  translate: -50% -50%;
  z-index: -1;
}
.btn-shiny:active { translate: 0 1px; }
/* pontinhos */
.btn-shiny::before {
  --size: calc(100% - var(--shadow-size) * 3);
  --position: 2px;
  --space: calc(var(--position) * 2);
  width: var(--size);
  height: var(--size);
  background: radial-gradient(circle at var(--position) var(--position), var(--gold-soft) calc(var(--position) / 4), transparent 0) padding-box;
  background-size: var(--space) var(--space);
  background-repeat: space;
  mask-image: conic-gradient(from calc(var(--gradient-angle) + 45deg), black, transparent 10% 90%, black);
  border-radius: inherit;
  opacity: .3;
}
/* shimmer interno */
.btn-shiny::after {
  --animation: shimmer linear infinite;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(-50deg, transparent, var(--shiny-highlight), transparent);
  mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  opacity: .5;
}
.btn-shiny span { position: relative; z-index: 1; }
.btn-shiny,
.btn-shiny::before,
.btn-shiny::after {
  animation: var(--animation) var(--duration),
    var(--animation) calc(var(--duration) / 0.4) reverse paused;
  animation-composition: add;
}
.btn-shiny:is(:hover, :focus-visible) {
  --gradient-percent: 20%;
  --gradient-angle-offset: 95deg;
  --gradient-shine: var(--shiny-highlight-subtle);
}
.btn-shiny:is(:hover, :focus-visible),
.btn-shiny:is(:hover, :focus-visible)::before,
.btn-shiny:is(:hover, :focus-visible)::after { animation-play-state: running; }
@keyframes gradient-angle { to { --gradient-angle: 360deg; } }
@keyframes shimmer { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .btn-shiny, .btn-shiny::before, .btn-shiny::after { animation: none; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  padding: 15px 38px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .25em;
  position: relative;
  overflow: hidden;
  transition: color .35s var(--ease);
  background: transparent;
  cursor: pointer;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform .35s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: translateY(0); }
.btn--solid { background: var(--gold); color: var(--bg); }
.btn--solid::before { background: var(--gold-soft); }

/* ---------- Preloader (jardim, 4s com zoom-in, depois revela o hero) ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg);
  animation: splashHide 1s var(--ease) 4s forwards; /* espera 4s, some em 1s */
}
.preloader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("jardim-preload.png") center / cover no-repeat;
  animation: splashZoom 5s var(--ease) forwards; /* zoom-in contínuo */
}
.preloader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 55% at 50% 45%, rgba(255, 252, 245, .30), rgba(255, 252, 245, 0) 72%);
}
.preloader .hero-brand { position: relative; z-index: 2; }
@keyframes splashZoom { from { transform: scale(1); } to { transform: scale(1.14); } }
@keyframes splashHide { to { opacity: 0; visibility: hidden; } }

/* ---------- Hero vídeo (jardim vivo) ---------- */
.hero-video {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* o poster (1º frame) aparece na hora; o vídeo assume sem corte quando carrega */
}
.hero-video .veil {
  position: absolute;
  inset: 0;
  /* vídeo é claro e a marca é verde escura: clareia suavemente o centro pra dar contraste */
  background: radial-gradient(60% 55% at 50% 45%, rgba(255, 252, 245, .30), rgba(255, 252, 245, 0) 72%);
  pointer-events: none;
}
/* botão discreto de som sobre o vídeo */
.sound-toggle {
  position: absolute;
  right: 26px;
  bottom: 26px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid rgba(236, 232, 222, .35);
  border-radius: 360px;
  background: rgba(8, 11, 9, .35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: .7;
  transition: opacity .3s, border-color .3s, background .3s;
}
.sound-toggle:hover { opacity: 1; border-color: var(--gold); background: rgba(8, 11, 9, .55); }
.sound-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sound-toggle .ico-on { display: none; }
.sound-toggle.is-on .ico-muted { display: none; }
.sound-toggle.is-on .ico-on { display: block; }
@media (max-width: 600px) { .sound-toggle span { display: none; } .sound-toggle { padding: 10px; } }

.hero-brand {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--verde-hero);
  padding: 0 24px;
}
.hero-brand .clinica {
  font-family: var(--font-sofia);
  font-weight: 400;
  font-size: clamp(.9rem, 1.6vw, 1.15rem);
  letter-spacing: .65em;
  text-indent: .65em; /* compensa o tracking pra centralizar */
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
  transform: translateX(14%); /* "Clínica" deslocada pra direita */
}
.logo-mask {
  width: min(300px, 56vw);
  aspect-ratio: 1080 / 648;
  margin: -10px auto -6px;      /* junta mais do texto acima/abaixo */
  transform: translateX(-16%);  /* só a logo deslocada pra esquerda */
  background: var(--verde-hero);
  -webkit-mask: url("Ativo-24.png") center / contain no-repeat;
  mask: url("Ativo-24.png") center / contain no-repeat;
  filter: drop-shadow(0 2px 16px rgba(255, 250, 240, .5));
}
.hero-brand .tagline {
  font-family: var(--font-sofia);
  font-weight: 300; /* Sofia Pro Light */
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  letter-spacing: .18em;
  margin-top: -4px;
}
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--verde-hero);
  font-size: 1.3rem;
  opacity: .8;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 75% 30%, rgba(201, 164, 92, .10), transparent 60%),
    radial-gradient(50% 60% at 15% 85%, rgba(201, 164, 92, .05), transparent 60%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; margin: 26px 0 40px; }

.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  width: 100%;
  background: var(--surface-2);
}

/* título do hero: caixa alta e entrelinha justa */
.hero-title {
  text-transform: uppercase;
  line-height: .98;
  letter-spacing: .01em;
  font-size: clamp(2rem, 3.4vw, 3.1rem);  /* menor que o padrão do h1 */
}

/* hero com imagem de fundo cobrindo a seção inteira */
.hero--bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("MZ8_1550.png") center / cover no-repeat;
}
.hero--bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* escurece à esquerda pra o texto ler; some pra direita mostrando a imagem */
  background: linear-gradient(90deg, rgba(8,11,9,.92) 0%, rgba(8,11,9,.72) 38%, rgba(8,11,9,.28) 70%, rgba(8,11,9,.15) 100%);
}
/* duas colunas: texto à esquerda, coluna transparente à direita */
.hero--bg .container { position: relative; z-index: 2; }
.hero--bg.hero { align-items: stretch; }
.hero--bg .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.hero-copy { text-align: left; }
.hero-spacer { background: transparent; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
  opacity: .5;
}

/* animação de entrada do hero */
.fade-up { opacity: 0; transform: translateY(28px); animation: fadeUp 1s var(--ease) forwards; }
.fade-up.d1 { animation-delay: .15s; }
.fade-up.d2 { animation-delay: .3s; }
.fade-up.d3 { animation-delay: .45s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, minmax(150px, 1fr));
  gap: 20px;
}
.bento .b1 { grid-column: 1; grid-row: 1 / 4; }
.bento .b2 { grid-column: 2; grid-row: 1; }
.bento .b3 { grid-column: 3; grid-row: 1; }
.bento .b4 { grid-column: 2; grid-row: 2; }
.bento .b5 { grid-column: 3; grid-row: 2; }
.bento .b6 { grid-column: 2 / 4; grid-row: 3; }

.bento-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .45s var(--ease), border-color .45s, background .45s;
}
.bento-card:hover { transform: translateY(-5px); border-color: rgba(201,164,92,.4); background: var(--surface-2); }
.bento-card h3 { font-size: 1.4rem; }
.bento-card p { color: var(--muted); font-size: .95rem; }
.bento-card .b-num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--gold);
}
.bento-card.b1 { justify-content: flex-start; gap: 16px; }
.bento-card.b6 { flex-direction: row; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.bento-link { font-size: .8rem; text-transform: uppercase; letter-spacing: .18em; margin-top: auto; white-space: nowrap; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: minmax(140px, auto); }
  .bento .b1, .bento .b2, .bento .b3, .bento .b4, .bento .b5, .bento .b6 {
    grid-column: auto; grid-row: auto;
  }
  .bento-card.b6 { flex-direction: column; align-items: flex-start; }
}

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 32px;
  transition: transform .45s var(--ease), border-color .45s, background .45s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(201, 164, 92, .45); background: var(--surface-2); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: .95rem; }
.card .num { font-family: var(--font-display); font-size: 2.2rem; color: var(--gold); display: block; margin-bottom: 14px; }

/* lista de procedimentos */
.proc-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 50px; }
.proc-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: .95rem;
  transition: border-color .35s, transform .35s var(--ease), background .35s;
}
.proc-list a::after { content: "→"; color: var(--gold); transition: transform .35s var(--ease); }
.proc-list a:hover { border-color: rgba(201, 164, 92, .5); background: var(--surface-2); transform: translateX(4px); }
.proc-list a:hover::after { transform: translateX(5px); }

/* ---------- Seção SOBRE (Dr. no fundo, texto nas laterais) ---------- */
.sobre-bg {
  position: relative;
  padding: 130px 0;
  /* troque a imagem: coloque assets/dr-sobre.jpg (o Dr. no centro) */
  background: #0c0e0d url("dr-sobre.jpg") center / cover no-repeat;
  overflow: hidden;
}
/* escurece as laterais pra o texto ler, mantendo o centro (o Dr.) visível */
.sobre-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(8,11,9,.86) 0%, rgba(8,11,9,.55) 20%, rgba(8,11,9,0) 38%,
    rgba(8,11,9,0) 62%, rgba(8,11,9,.55) 80%, rgba(8,11,9,.86) 100%);
  pointer-events: none;
}
.sobre-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 60vh;
}
.sobre-center { min-height: 40vh; }
.sobre-col { max-width: 34ch; }
.sobre-col:last-child { margin-left: auto; text-align: right; }
.sobre-col h2 { white-space: nowrap; font-size: clamp(1.7rem, 2.4vw, 2.4rem); }

@media (max-width: 900px) {
  .sobre-bg { padding: 80px 0; }
  .sobre-grid { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
  .sobre-center { display: none; }
  .sobre-col, .sobre-col:last-child { max-width: none; text-align: left; margin: 0; }
}

/* ---------- Seção split (texto + imagem) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--surface-2); }
.split.rev > :first-child { order: 2; }

/* ---------- Galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { overflow: hidden; border-radius: 10px; background: var(--surface-2); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .8s; filter: saturate(.85); }
.gallery figure:hover img { transform: scale(1.06); filter: saturate(1); }

/* ---------- Depoimentos ---------- */
.quote-card { display: flex; flex-direction: column; gap: 18px; }
.quote-card blockquote { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; color: var(--text); }
.quote-card cite { font-style: normal; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.stars { color: var(--gold); letter-spacing: .3em; font-size: .85rem; }

/* ---------- FAQ (nativo, sem JS) ---------- */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold-soft); }
.faq details p { padding-top: 16px; color: var(--muted); max-width: 70ch; }

/* ---------- CTA banner ---------- */
.cta {
  text-align: center;
  background:
    radial-gradient(50% 100% at 50% 0%, rgba(201, 164, 92, .12), transparent 70%),
    var(--surface);
  border-block: 1px solid var(--line);
}
.cta h2 { max-width: 20ch; margin: 0 auto 20px; }
.cta p { color: var(--muted); margin-bottom: 40px; }

/* ---------- Página interna: hero compacto ---------- */
.page-hero {
  padding: 190px 0 90px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(60% 100% at 50% 0%, rgba(201, 164, 92, .08), transparent 70%);
}
.page-hero p { color: var(--muted); max-width: 60ch; margin-top: 22px; font-size: 1.1rem; }

/* ---------- Formulário ---------- */
.form { display: grid; gap: 18px; }
.form input, .form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color .3s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form textarea { min-height: 140px; resize: vertical; }

.info-line { display: flex; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-line strong { font-family: var(--font-display); font-size: 1.15rem; min-width: 130px; font-weight: 500; }
.info-line span { color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 40px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.footer h4 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 18px; font-weight: 500; }
.footer a, .footer p { color: var(--muted); font-size: .92rem; display: block; margin-bottom: 10px; transition: color .3s; }
.footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; font-size: .8rem; color: var(--muted); }

/* ---------- WhatsApp flutuante ---------- */
.whats {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #22c15e;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  transition: transform .3s var(--ease);
}
.whats:hover { transform: scale(1.08); }
.whats::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #22c15e;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.7); opacity: 0; }
}
.whats svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  section { padding: 80px 0; }
  .hero-grid, .split, .grid-3, .grid-2, .proc-list, .footer-grid { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .hero-media { max-width: 420px; }
  .nav { display: none; } /* ponytail: menu mobile fica pra depois — adicionar hamburger quando precisar */
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up, .reveal { animation: none; transition: none; opacity: 1; transform: none; }
}

/* ---------- Seção bento: fundo da clínica desfocado, altura total ---------- */
.bento-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.bento-section::before {
  content: "";
  position: absolute;
  inset: -40px; /* margem pra o blur não mostrar borda */
  background: url("clinica-bg.png") center / cover no-repeat;
  filter: blur(10px);
  transform: scale(1.05);
  z-index: -2;
}
.bento-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* fade fraco do tom do site: mais forte nas bordas, suave no meio */
  background:
    linear-gradient(to bottom, var(--bg) 0%, rgba(12,14,13,.55) 18%, rgba(12,14,13,.55) 82%, var(--bg) 100%);
}
.bento-section .container { position: relative; width: 100%; }
.bento-section .bento-card { background: rgba(20,23,21,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bento-section .bento-card:hover { background: rgba(27,31,28,.88); }

/* ---------- Card Flat Jardim Resort: foto da piscina com degradê pra leitura ---------- */
.bento-section .bento-card.b6 {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 40px;
  background: url("flat-resort.jpg") center 60% / cover no-repeat;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  isolation: isolate;
}
.bento-section .bento-card.b6::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* escuro à esquerda (onde fica o texto), abrindo pra foto à direita; base escurecida pro link */
  background:
    linear-gradient(to right, rgba(10,12,11,.96) 0%, rgba(10,12,11,.92) 50%, rgba(10,12,11,.55) 72%, rgba(10,12,11,.2) 100%),
    linear-gradient(to top, rgba(10,12,11,.7) 0%, rgba(10,12,11,0) 40%);
}
.bento-section .bento-card.b6:hover { background-color: transparent; }
.bento-section .bento-card.b6 > div { max-width: 480px; flex: 0 1 480px; }
.bento-section .bento-card.b6 h3 { font-size: 1.6rem; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.bento-section .bento-card.b6 p { color: #d8d4c9; text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.bento-section .bento-card.b6 .bento-link { text-shadow: 0 1px 8px rgba(0,0,0,.8); }
@media (max-width: 900px) {
  .bento-section .bento-card.b6 { padding: 28px; }
  .bento-section .bento-card.b6::before {
    background: linear-gradient(to top, rgba(10,12,11,.95) 0%, rgba(10,12,11,.8) 60%, rgba(10,12,11,.45) 100%);
  }
}

/* ---------- Card Atendimento humanizado: foto das mãos com degradê ---------- */
.bento-section .bento-card.b5 {
  position: relative;
  overflow: hidden;
  background: url("atendimento.jpg") center 45% / cover no-repeat;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  isolation: isolate;
}
.bento-section .bento-card.b5::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* escuro em cima (texto) abrindo pra foto embaixo, mais o tom do site por toda a área */
  background:
    linear-gradient(to bottom, rgba(10,12,11,.94) 0%, rgba(10,12,11,.85) 45%, rgba(10,12,11,.35) 80%, rgba(10,12,11,.2) 100%);
}
.bento-section .bento-card.b5:hover { background-color: transparent; }
.bento-section .bento-card.b5 h3 { text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.bento-section .bento-card.b5 p { color: #d8d4c9; text-shadow: 0 1px 10px rgba(0,0,0,.7); }

/* ---------- Card Especialidades: foto do cirurgião, texto em cima, rosto embaixo ---------- */
.bento-section .bento-card.b1 {
  position: relative;
  overflow: hidden;
  background: url("especialidades.jpg") center 35% / cover no-repeat;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  isolation: isolate;
}
.bento-section .bento-card.b1::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(10,12,11,.95) 0%, rgba(10,12,11,.88) 40%, rgba(10,12,11,.3) 58%, rgba(10,12,11,.12) 80%, rgba(10,12,11,.65) 100%);
}
.bento-section .bento-card.b1:hover { background-color: transparent; }
.bento-section .bento-card.b1 h3 { text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.bento-section .bento-card.b1 p { color: #d8d4c9; text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.bento-section .bento-card.b1 .bento-link { text-shadow: 0 1px 8px rgba(0,0,0,.8); }

/* ---------- Seção Rosto: vídeo preso ao scroll (scrub) + lista à esquerda no final ---------- */
.rosto-scroll {
  position: relative;
  height: 380vh;           /* quanto maior, mais lento o scrub */
  padding: 0;
  background: #f3f0ea;     /* tom do fundo do vídeo, evita "flash" escuro */
}
.rosto-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #f3f0ea;
}
.rosto-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: contents;
  transform: translateZ(0);
  object-position: 70% center; /* mantém a modelo à direita ao cortar em telas estreitas */
}
.rosto-copy {
  position: absolute;
  left: max(24px, calc((100vw - var(--max)) / 2));
  top: 50%;
  transform: translateY(-50%);
  width: min(520px, 48vw);
  color: var(--verde-hero);
  opacity: 0;
  pointer-events: none;
}
.rosto-copy .eyebrow { color: #8a6a2a; font-weight: 500; }
.rosto-copy h2 { color: #1f3428; margin: 8px 0 12px; }
.rosto-copy p { color: #2f3d35; font-weight: 400; max-width: 40ch; margin-bottom: 26px; }
.rosto-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
}
.rosto-list li {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.rosto-list a {
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid rgba(31,52,40,.28);
  color: #1f3428;
  font-weight: 500;
  font-size: 1rem;
  transition: color .3s, padding-left .3s;
}
.rosto-list a:hover { color: #8a6a2a; padding-left: 6px; }
.rosto-copy .rosto-link { color: #8a6a2a; font-weight: 500; }
.rosto-copy .rosto-link:hover { color: #1f3428; }
.rosto-copy.is-on { opacity: 1; pointer-events: auto; transition: opacity .6s var(--ease); }
.rosto-copy.is-on .rosto-list li { opacity: 1; transform: none; }
.rosto-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(46,75,57,.7);
  transition: opacity .4s;
}
.rosto-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 28px;
  margin: 10px auto 0;
  background: linear-gradient(to bottom, rgba(46,75,57,.7), transparent);
  animation: rostoHint 1.6s ease-in-out infinite;
}
.rosto-hint.is-hidden { opacity: 0; }
@keyframes rostoHint { 0%,100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); } }
@media (max-width: 900px) {
  .rosto-scroll { height: 300vh; }
  .rosto-video { object-position: 78% center; }

  /* Sem caixa: um véu claro sobe da base e o texto fica direto sobre a imagem.
     O véu é filho do .rosto-copy justamente para herdar o fade dele: só aparece
     no fim da rolagem, junto com o texto, e não fica cobrindo o vídeo o tempo todo. */
  .rosto-copy::before {
    content: "";
    position: absolute;
    left: -24px; right: -24px; top: -180px; bottom: -260px;
    z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom,
      rgba(243,240,234,0) 0%,
      rgba(243,240,234,.55) 20%,
      rgba(243,240,234,.88) 38%,
      rgba(243,240,234,.97) 55%,
      #f3f0ea 72%);
  }
  .rosto-copy {
    /* 96px na base: abaixo disso o botão do WhatsApp cobre o "Ver todos" */
    left: 24px; right: 24px; top: auto; bottom: 96px; transform: none;
    width: auto; padding: 0; z-index: 2;
    background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    border-radius: 0;
  }
  .rosto-copy h2 { font-size: 1.95rem; margin: 6px 0 10px; }
  .rosto-copy p { display: block; max-width: none; font-size: .95rem; margin-bottom: 22px; }
  .rosto-list { gap: 2px 20px; margin-bottom: 24px; }
  .rosto-list a { font-size: .92rem; padding: 6px 0; }
  .rosto-hint { z-index: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .rosto-scroll { height: auto; }
  .rosto-sticky { position: relative; }
  .rosto-copy { opacity: 1; pointer-events: auto; }
  .rosto-list li { opacity: 1; transform: none; }
  .rosto-hint { display: none; }
}

/* Variante: texto à direita e no alto (modelo fica à esquerda no vídeo) */
.rosto-scroll--right .rosto-video { object-position: 25% center; }
.rosto-scroll--right .rosto-copy {
  left: auto;
  right: max(24px, calc((100vw - var(--max)) / 2));
  top: clamp(96px, 16vh, 160px);
  transform: none;
}
@media (max-width: 900px) {
  .rosto-scroll--right .rosto-video { object-position: 20% center; }
  /* precisa repor o "left": o .rosto-scroll--right do desktop zera com left:auto
     e o bloco caía fora da tela pela esquerda */
  .rosto-scroll--right .rosto-copy { left: 24px; right: 24px; top: auto; }
}

/* ---------- Seção Beleza do rosto: texto justificado + vídeo vertical ---------- */
.beleza { background: #131c1a; border-block: 1px solid var(--line); }
.beleza-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 70px;
  align-items: center;
}
.beleza-copy h2 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); }
.beleza-rule { display: block; width: 110px; height: 1px; background: var(--gold); margin: 22px auto 34px; }
.beleza-copy { text-align: center; }
.beleza-copy p {
  color: var(--muted);
  text-align: justify;
  margin-left: auto;
  margin-right: auto;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  max-width: 62ch;
  margin-bottom: 20px;
}
.beleza-copy .btn-shiny { margin-top: 26px; }
.beleza-media { display: flex; justify-content: center; }
.beleza-video {
  width: min(100%, 400px);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
  border: 1px solid var(--line);
}
@media (max-width: 900px) {
  .beleza-grid { grid-template-columns: 1fr; gap: 44px; }
  .beleza-video { width: min(100%, 340px); }
}

/* Vídeo da seção lifting: autoplay mudo em loop + botão de som dentro do quadro */
.beleza-frame { position: relative; width: min(100%, 400px); }
.beleza-frame .beleza-video { width: 100%; display: block; }
.sound-toggle--inset { position: absolute; left: auto; right: 14px; bottom: 14px; top: auto; z-index: 2; }
/* Depoimentos em vídeo: dois vídeos verticais lado a lado */
.depo-videos { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; }
.depo-video-item { flex: 0 1 400px; display: flex; justify-content: center; }
@media (max-width: 900px) { .depo-videos { gap: 30px; } .depo-video-item { flex: 0 1 340px; } }

@media (max-width: 900px) { .beleza-frame { width: min(100%, 340px); } }

/* ---------- Faixas de fotos quadradas, de borda a borda ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0;
  background: var(--bg);
}
.strip--5 { grid-template-columns: repeat(5, 1fr); }
.strip-item { margin: 0; overflow: hidden; aspect-ratio: 1 / 1; }
.strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s var(--ease);
}
.strip-item:hover img { transform: scale(1.04); }
@media (max-width: 900px) {
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip--5 .strip-item:last-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
  .strip:not(.strip--5) .strip-item:last-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
}
/* ---------- Contato: minimalista, compacto, sem fundo ---------- */
.contato-a {
  padding: 70px 0 80px;
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.contato-a-inner { max-width: 880px; }
.contato-a-title { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 300; margin: 10px 0 0; }
.contato-a-rule { display: block; height: 1px; width: 72px; background: var(--gold); opacity: .8; margin: 18px auto 34px; }
.contato-a-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  text-align: left;
}
.contato-a-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* placeholders fazem o papel visual */
.contato-a-form input,
.contato-a-form textarea {
  width: 100%;
  padding: 13px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(236,232,222,.25);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .98rem;
  transition: border-color .3s;
}
.contato-a-form textarea { grid-column: 1 / -1; resize: vertical; min-height: 64px; }
.contato-a-form input::placeholder, .contato-a-form textarea::placeholder { color: rgba(236,232,222,.5); }
.contato-a-form input:focus, .contato-a-form textarea:focus { outline: none; border-bottom-color: var(--gold); }
.contato-a-btn {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 10px;
  padding: 13px 34px;
  background: transparent;
  border: 1px solid rgba(236,232,222,.6);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.contato-a-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.contato-a-info {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.contato-a-info h3 { font-family: var(--font-body); font-weight: 400; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.contato-a-info p { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.contato-a-info a { color: var(--muted); transition: color .3s; }
.contato-a-info a:hover { color: var(--text); }
@media (max-width: 700px) {
  .contato-a { padding: 60px 0; }
  .contato-a-form { grid-template-columns: 1fr; }
  .contato-a-info { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
}

/* Variante espelhada: vídeo à esquerda, texto à direita */
.beleza--flip { background: var(--surface); }
.beleza--flip .beleza-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
@media (max-width: 900px) {
  .beleza--flip .beleza-grid { grid-template-columns: 1fr; }
  .beleza--flip .beleza-media { order: 2; }
}

/* Rodapé: assinatura do Dr. e logo da Major com link pro Instagram */
.footer-logo {
  width: 190px;
  aspect-ratio: 1080 / 648;
  margin: -22px 0 6px -14px;
  background: var(--text);
  -webkit-mask: url("Ativo-24.png") left center / contain no-repeat;
  mask: url("Ativo-24.png") left center / contain no-repeat;
}
.footer .footer-major { display: inline-flex; align-items: center; gap: 12px; margin: 0; white-space: nowrap; }
.footer-major span { font-size: inherit; }
.footer-major img { height: 22px; width: auto; opacity: .85; transition: opacity .3s; }
.footer-major:hover img { opacity: 1; }
/* Rodapé simplificado e centralizado no tablet e no celular */
@media (max-width: 1024px) {
  .footer { padding: 54px 0 30px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; margin-bottom: 26px; }
  .footer h4 { display: none; }                       /* "Navegação" e "Contato" viram só as linhas */
  .footer-logo { width: 168px; margin: -16px auto 2px; }
  .footer p { margin-bottom: 6px; }
  .footer a { display: inline-block; margin: 0 9px 6px; }   /* links na mesma linha, em vez de empilhados */
  .footer-grid > div:first-child p { max-width: 34ch; margin-left: auto; margin-right: auto; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-top: 22px; }
  .footer .footer-major { justify-content: center; }
}

/* ---------- Depoimentos: carrossel contínuo (esquerda → direita), pausa no hover ---------- */
.depo-marquee {
  overflow: hidden;
  padding: 10px 0 20px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.depo-track {
  display: flex;
  width: max-content;
  animation: depoScroll 70s linear infinite;
}
.depo-marquee:hover .depo-track { animation-play-state: paused; }
.depo-group { display: flex; gap: 24px; padding-right: 24px; }
.depo-group .quote-card {
  width: 380px;
  flex: 0 0 380px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.depo-group .quote-card blockquote { flex: 1; }
.depo-group cite { display: flex; align-items: center; gap: 12px; font-style: normal; }
.quote-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: rgba(201,164,92,.15);
  border: 1px solid rgba(201,164,92,.4);
  color: var(--gold);
  font-size: .8rem; letter-spacing: .05em; font-weight: 500;
}
/* da esquerda para a direita: começa deslocado meio track (o grupo duplicado) e volta a zero */
@keyframes depoScroll { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (max-width: 600px) { .depo-group .quote-card { width: 300px; flex-basis: 300px; } }
@media (prefers-reduced-motion: reduce) {
  .depo-track { animation: none; flex-wrap: wrap; width: auto; }
  .depo-group[aria-hidden="true"] { display: none; }
  .depo-group { flex-wrap: wrap; justify-content: center; }
}

/* ---------- Tecnologias: cards com a foto do equipamento ao fundo ---------- */
.tech-grid { grid-template-columns: repeat(3, 1fr); }
.tech-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}
.tech-card, .tech-card:hover { background: var(--surface); transform: none; }
/* foto */
.tech-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--img) center / cover no-repeat;
  transform: scale(1);
  transition: transform 1.1s var(--ease);
}
/* degradê pra leitura */
.tech-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(10,12,11,.94) 0%, rgba(10,12,11,.7) 45%, rgba(10,12,11,.15) 100%);
}
.tech-card:hover::after { transform: scale(1.05); }
.tech-card h3 { text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.tech-card p { color: #d8d4c9; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
/* 7 cards: o último ocupa a linha inteira em formato panorâmico */
.tech-grid .tech-card:last-child { grid-column: 1 / -1; min-height: 380px; }
@media (max-width: 900px) {
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .tech-grid .tech-card:last-child { grid-column: 1 / -1; min-height: 300px; }
}
@media (max-width: 600px) { .tech-grid { grid-template-columns: 1fr; } .tech-card { min-height: 240px; } }
.tech-ultra-s { --img: url("tech-ultra-s.jpg"); }
.tech-co2 { --img: url("tech-co2.jpg"); }
.tech-redtouch { --img: url("tech-redtouch.jpg"); }
.tech-virtue { --img: url("tech-virtue.jpg"); }
.tech-safer { --img: url("tech-safer.jpg"); }
.tech-argoplasma { --img: url("tech-argoplasma.jpg"); }
.tech-mesoject { --img: url("tech-mesoject.jpg"); }
.tech-mesoject::after { background-position: center 30%; }

/* ---------- Celular: hero principal com o rosto do Dr. visível ----------
   Numa tela estreita e alta, "cover" mostrava só uma fatia vertical da foto 16:9
   e o rosto dele caía justamente atrás do texto. A foto passa a ocupar uma faixa
   no topo, com altura fixa, e o texto desce para a área escura. */
@media (max-width: 600px) {
  .hero--bg.hero { align-items: flex-start; padding: 0 0 70px; min-height: 100svh; }
  .hero--bg::before { bottom: auto; height: 46svh; background-position: 72% 40%; }
  .hero--bg::after {
    background: linear-gradient(to bottom,
      rgba(8,11,9,.18) 0%,
      rgba(8,11,9,.24) 24%,
      rgba(8,11,9,.70) 38%,
      var(--bg) 47%,
      var(--bg) 100%);
  }
  .hero--bg .hero-copy { padding-top: calc(46svh + 30px); }
}

/* ---------- Celular: vídeos verticais ocupam a largura toda da tela ---------- */
@media (max-width: 600px) {
  .beleza-frame, .beleza-frame .beleza-video, .beleza-video { width: 100%; max-width: none; }
  .beleza-frame { border-radius: 0; border-left: 0; border-right: 0; }
  .beleza-media, .depo-videos { margin-left: -24px; margin-right: -24px; }
  .depo-video-item { flex: 1 1 100%; }
  .depo-videos { gap: 34px; }
}

/* ============================================================
   Home: ajustes para tablet e celular
   ============================================================ */

/* ---------- Tablet (601–1024px) ---------- */
@media (min-width: 601px) and (max-width: 1024px) {
  /* o hero principal ficava em 2 colunas apertadas; empilha */
  .hero--bg .hero-grid { grid-template-columns: 1fr; gap: 40px; }

  /* bento em 2 colunas: foto grande e destaque ocupam a linha inteira */
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: minmax(150px, auto); }
  .bento .b1, .bento .b6 { grid-column: 1 / -1; grid-row: auto; }
  .bento .b2, .bento .b3, .bento .b4, .bento .b5 { grid-column: auto; grid-row: auto; }
  .bento-section .bento-card.b1 { min-height: 370px; background-position: center 26%; }
  .bento-section .bento-card.b1 p { max-width: 52ch; }
  .bento-section .bento-card.b5 { min-height: 250px; background-position: center 40%; }
  .bento-section .bento-card.b6 { min-height: 330px; }
  .bento-card.b6 { flex-direction: row; align-items: center; }

  /* faixas de fotos em 3 colunas, sem foto órfã na última linha */
  .strip { grid-template-columns: repeat(3, 1fr); }
  .strip:not(.strip--5) .strip-item:last-child { grid-column: auto; aspect-ratio: 1 / 1; }
  .strip--5 .strip-item:last-child { grid-column: span 2; aspect-ratio: 2 / 1; }

  /* vídeos verticais maiores que os 340px do padrão */
  .beleza-frame { width: min(100%, 420px); }
  .depo-video-item { flex: 0 1 330px; }

  /* contato: 4 colunas ficavam estreitas demais */
  .contato-a-info { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
}

/* ---------- Celular (até 600px) ---------- */
@media (max-width: 600px) {
  .hero--bg .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  section { padding: 72px 0; }
  /* os blocos de contato em 2 colunas estouravam a largura da tela */
  .contato-a-info { grid-template-columns: 1fr; gap: 22px; }
  .contato-a-info p, .contato-a-info a { overflow-wrap: anywhere; }
}

/* ============================================================
   Tablet e celular: seções com foto de fundo e texto sobreposto
   ============================================================ */
@media (max-width: 1024px) {
  /* ---- SOBRE: o texto caía em cima do Dr. e ficava ilegível.
     Agora a foto fica numa faixa no topo e o texto desce para a área escura. ---- */
  .sobre-bg { padding: 0; background-position: center top; }
  .sobre-bg::before {
    background: linear-gradient(to bottom,
      rgba(8,11,9,.22) 0%, rgba(8,11,9,.28) 26%, rgba(8,11,9,.86) 46%,
      rgba(8,11,9,.95) 60%, var(--bg) 100%);
  }
  /* padding-block: senão o shorthand zera o respiro lateral do .container */
  .sobre-grid { grid-template-columns: 1fr; gap: 14px; padding-block: 46vh 78px; min-height: 0; }
  /* o &nbsp; do segundo bloco só existe pra alinhar as colunas no desktop */
  .sobre-col:last-child .eyebrow { display: none; }
  .sobre-center { display: none; }
  .sobre-col, .sobre-col:last-child { max-width: none; text-align: left; margin: 0; }
  .sobre-col h2 { white-space: normal; font-size: clamp(1.9rem, 4.6vw, 2.4rem); }
  .sobre-col p { text-align: justify; }

  /* ---- HERO PRINCIPAL: o degradê escurecia só a esquerda, mas com o texto
     em largura cheia ele precisa de véu em toda a faixa do texto. ---- */
  .hero--bg::before { background-position: 66% 38%; }
  .hero--bg::after {
    background: linear-gradient(to bottom,
      rgba(8,11,9,.30) 0%, rgba(8,11,9,.55) 34%, rgba(8,11,9,.88) 52%, rgba(8,11,9,.95) 100%);
  }
  .hero--bg.hero { align-items: flex-end; }
  .hero--bg .hero-copy { padding-top: 40vh; }
  .hero--bg p.lead { max-width: 62ch; margin: 22px 0 34px; }
  .hero-copy p { text-align: justify; }

  /* ---- Seções de rolagem: sobe o enquadramento para o rosto não ficar atrás do card ---- */
  .rosto-video { object-position: 74% 32%; }
  .rosto-scroll--right .rosto-video { object-position: 26% 32%; }
}

/* ---------- Filme institucional: player 16:9, play manual ---------- */
.filme-wrap { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.filme-video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }

/* Registro de Qualificação de Especialista, exigido pelo CFM */
.footer .footer-rqe { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
