/* =====================================================================
   CONCEITO · Clínica Patrícia Holderbaum — Dermatologista
   Paleta: dark premium | carvão #1a1a1a, dourado #c9a96e, cobre #b8976a
   ===================================================================== */

:root {
  --cor-fundo: #151515;
  --cor-texto: #f0ece4;
  --cor-texto-suave: #a89f94;
  --cor-acento: #c9a96e;
  --cor-acento-escuro: #9c7a4a;
  --cor-card: #1f1e1c;
  --cor-card-borda: #2e2c28;
  --cor-nav-bg: rgba(21, 21, 21, 0.92);
}

/* ---- RESET/BASE DO CONCEITO ---- */
body {
  background: var(--cor-fundo);
  color: var(--cor-texto);
  font-family: 'Inter', sans-serif;
  margin: 0;
  overflow-x: hidden;
}

/* ---- TIPOGRAFIA ---- */
.display, h1, h2.sec-title {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 400;
}

.display { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.08; }
h2.sec-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.15; margin: 0 0 2rem; }

/* ---- GRAIN ---- */
.grain::before {
  content: '';
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: .4;
}

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: transparent;
  transition: background .4s, backdrop-filter .4s;
}
.nav.scrolled {
  background: var(--cor-nav-bg);
  backdrop-filter: blur(12px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 2rem; max-width: 1400px; margin: 0 auto;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; letter-spacing: .12em; color: var(--cor-acento);
  text-decoration: none; text-transform: uppercase;
}
.nav-cta {
  background: var(--cor-acento); color: #111;
  padding: .5rem 1.4rem; border-radius: 2px;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; transition: background .2s;
}
.nav-cta:hover { background: #e0b97a; }

/* ---- CENÁRIO ÂNCORA ---- */
.cenario-ancora {
  position: fixed; inset: 0; z-index: -2;
  background: var(--cor-fundo);
}
.cenario-frame {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease;
  filter: blur(18px) brightness(.25) saturate(.6);
  transform: scale(1.08);
}
.cenario-frame.is-active { opacity: 1; }
.cenario-scrim {
  position: fixed; inset: 0; z-index: -1;
  background: rgba(15,13,11,.68);
}

/* ---- WA FLOAT ---- */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1000;
  background: #25d366; color: #fff;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.45);
  text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,.6); }

/* =====================================================================
   HERO — SPLIT LAYOUT
   Desktop: foto col esquerda (55%) + copy col direita (45%)
   Mobile: foto top (55vh) + copy abaixo
   ===================================================================== */
.panel-hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 55% 45%;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .panel-hero {
    grid-template-columns: 1fr;
    /* 70svh: face de close-up da Dra. Patricia (portrait close-up) precisa de
       espaço extra para o bbox YuNet não cruzar a fronteira copy-col. */
    grid-template-rows: 70svh auto;
  }
}

/* Coluna foto */
.hero-photo-col {
  position: relative; overflow: hidden;
  /* transform: translateZ(0) força compositor layer no pai — garante que
     overflow:hidden REALMENTE clippa o hero-kenburns (will-change:transform)
     em Chromium headless/Playwright. Fix gate_composicao COPY_SOBRE_ROSTO. */
  transform: translateZ(0);
}
.hero-kenburns {
  position: absolute; inset: -5%;
  background-image: url('assets/hero.webp');
  background-size: cover; background-position: top center;
  animation: kenburns 9s ease-in-out infinite alternate;
  will-change: transform;
}

@media (max-width: 768px) {
  .hero-kenburns {
    background-image: url('assets/hero-mobile.webp');
    /* 50% vertical: move a face para cima dentro do kenburns (que tem inset:-5%).
       Geometria (SE-375x667): overflow_Y=187px; offset=94px;
       face_top 262→168px, face_bottom 546→452px < 467px (photo-col).
       A face+queixo ficam inteiros dentro da área visível → YuNet não extrapola
       bbox para a copy-col. Verificado em 4 viewports com gate_composicao. */
    background-position: center 50%;
  }
}

@keyframes kenburns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  @keyframes kenburns { from { transform: scale(1); } to { transform: scale(1); } }
}

/* Scrim na foto */
.hero-photo-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.12) 60%, rgba(21,21,21,.88));
}
@media (max-width: 768px) {
  .hero-photo-scrim {
    background: linear-gradient(to bottom, rgba(0,0,0,.1) 50%, rgba(15,13,11,.85));
  }
}

/* Coluna copy */
.hero-copy-col {
  display: flex; align-items: center;
  padding: 7rem 3.5rem 4rem;
  background: rgba(15,13,11,.92);
  position: relative;
}
@media (max-width: 768px) {
  .hero-copy-col {
    padding: 2.5rem 1.5rem 3rem;
    background: rgba(15,13,11,.96);
  }
}

.hero-copy { max-width: 480px; }

.hero-kicker {
  display: block;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cor-acento); margin-bottom: 1.2rem;
}
.hero-title {
  color: var(--cor-texto); margin: 0 0 1.2rem;
}
.hero-title em {
  font-style: italic; color: var(--cor-acento);
}
.hero-sub {
  font-size: 1rem; line-height: 1.7; color: var(--cor-texto-suave);
  margin: 0 0 2rem; max-width: 380px;
}
.hero-actions { display: flex; flex-direction: column; gap: .9rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 2px; font-weight: 600; letter-spacing: .07em;
  text-decoration: none; transition: all .22s; cursor: pointer;
}
.btn-cta {
  background: var(--cor-acento); color: #111;
  padding: .85rem 2rem; font-size: .88rem;
}
.btn-cta:hover { background: #e0c07a; transform: translateY(-1px); }
.btn-outline {
  border: 1px solid var(--cor-card-borda); color: var(--cor-texto-suave);
  padding: .7rem 1.5rem; font-size: .82rem; text-align: center;
}
.btn-outline:hover { border-color: var(--cor-acento); color: var(--cor-acento); }

/* =====================================================================
   MANIFESTO
   ===================================================================== */
.panel-manifesto {
  padding: 5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--cor-card-borda);
}
.manifesto-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 300; font-style: italic;
  color: var(--cor-texto);
  max-width: 720px; margin: 0 auto; line-height: 1.3;
}
.manifesto-acento { color: var(--cor-acento); }

/* =====================================================================
   DIFERENCIAIS
   ===================================================================== */
.panel-diferenciais {
  padding: 5rem 2rem;
  max-width: 1200px; margin: 0 auto;
}
.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.dif-card {
  background: var(--cor-card); border: 1px solid var(--cor-card-borda);
  border-radius: 3px; padding: 2rem 1.8rem;
}
.dif-icone {
  font-size: 1.6rem; margin-bottom: 1rem; display: block;
}
.dif-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; color: var(--cor-acento); margin: 0 0 .6rem;
}
.dif-desc {
  font-size: .9rem; color: var(--cor-texto-suave); line-height: 1.6; margin: 0;
}

/* =====================================================================
   TRATAMENTOS — ANEL 3D
   ===================================================================== */
.panel-tratamentos {
  padding: 5rem 2rem;
  border-top: 1px solid var(--cor-card-borda);
}
.tratamentos-intro {
  text-align: center; max-width: 600px; margin: 0 auto 3rem;
}
.tratamentos-intro p {
  color: var(--cor-texto-suave); font-size: 1rem; line-height: 1.7; margin: .8rem 0 0;
}

/* Anel 3D */
.anel-container {
  position: relative; height: 480px; perspective: 900px;
  max-width: 1000px; margin: 0 auto;
}
.anel-track {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  animation: anel-spin 22s linear infinite;
}
.anel-track:hover { animation-play-state: paused; }

@keyframes anel-spin {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .anel-track { animation: none; transform: rotateY(0deg); }
}

.anel-card {
  position: absolute; width: 200px; height: 220px;
  left: 50%; top: 50%; margin: -110px -100px;
  background: var(--cor-card); border: 1px solid var(--cor-card-borda);
  border-radius: 3px; overflow: hidden;
  cursor: pointer; backface-visibility: hidden;
  transition: border-color .3s;
}
.anel-card:hover { border-color: var(--cor-acento); }

.anel-card img {
  width: 100%; height: 140px; object-fit: cover; display: block;
}
.anel-card-body { padding: .8rem 1rem; }
.anel-card-nome {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; color: var(--cor-texto); margin: 0 0 .25rem;
}
.anel-card-desc { font-size: .78rem; color: var(--cor-texto-suave); margin: 0; }

/* Fallback grid quando sem 3D */
.anel-fallback {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem; max-width: 1000px; margin: 0 auto;
}
.no-3d .anel-container { display: none; }
.no-3d .anel-fallback { display: grid; }

/* =====================================================================
   PROVA SOCIAL
   ===================================================================== */
.panel-prova {
  padding: 5rem 2rem;
  background: var(--cor-card);
  border-top: 1px solid var(--cor-card-borda);
}
.prova-inner { max-width: 1100px; margin: 0 auto; }
.badge-google {
  display: inline-flex; align-items: center; gap: .8rem;
  background: rgba(255,255,255,.04); border: 1px solid var(--cor-card-borda);
  border-radius: 2px; padding: .8rem 1.5rem; margin-bottom: 3rem;
}
.badge-nota {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem; font-weight: 300; color: var(--cor-acento); line-height: 1;
}
.badge-label { font-size: .8rem; color: var(--cor-texto-suave); line-height: 1.5; }
.badge-label strong { display: block; color: var(--cor-texto); }

.depos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.depo-card {
  background: rgba(255,255,255,.03); border: 1px solid var(--cor-card-borda);
  border-radius: 3px; padding: 1.5rem;
}
.depo-texto {
  font-size: .9rem; color: var(--cor-texto-suave);
  line-height: 1.7; margin: 0 0 1rem;
  font-style: italic;
}
.depo-autor { font-size: .8rem; color: var(--cor-acento); font-weight: 600; }

/* =====================================================================
   SOBRE A DRA.
   ===================================================================== */
.panel-sobre {
  padding: 5rem 2rem;
  border-top: 1px solid var(--cor-card-borda);
}
.sobre-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
@media (max-width: 768px) {
  .sobre-inner { grid-template-columns: 1fr; gap: 2rem; }
}
.sobre-foto { position: relative; }
.sobre-foto img {
  width: 100%; border-radius: 2px; display: block;
  max-height: 520px; object-fit: cover; object-position: top;
}
.sobre-texto { }
.sobre-texto h2 { margin: 0 0 1.2rem; }
.sobre-texto p {
  font-size: .95rem; color: var(--cor-texto-suave);
  line-height: 1.8; margin: 0 0 1.2rem;
}

/* =====================================================================
   CTA FINAL
   ===================================================================== */
.panel-cta {
  padding: 6rem 2rem;
  text-align: center;
  border-top: 1px solid var(--cor-card-borda);
}
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-eyebrow {
  display: block; font-size: .75rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--cor-acento); margin-bottom: 1.2rem;
}
.cta-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin: 0 0 1.5rem;
}
.cta-info {
  font-size: .85rem; color: var(--cor-texto-suave); line-height: 1.8; margin: 2rem 0 0;
}
.cta-info a { color: var(--cor-acento); text-decoration: none; }
.disclaimer {
  display: block; font-size: .72rem; color: rgba(168,159,148,.5);
  margin-top: 3rem; letter-spacing: .06em;
}
