/* ============================================================
   CONSTANCE PRÓ SAÚDE — Dr. Marcos Silva
   Folha de estilo principal
   Paleta e tipografia derivadas do manual de marca oficial.
   ============================================================ */

/* ---------- Tokens / Variáveis ---------- */
:root {
  /* Cores da marca */
  --preto:        #0D0A0A;
  --preto-puro:   #000000;
  --off-white:    #FFFDEE;
  --creme:        #F8F7C1;
  --branco:       #FFFFFF;

  --ouro:         #BF8A2A;
  --ouro-claro:   #D4AC64;
  --ouro-suave:   #E8D3A6;
  --marrom:       #6F3D1A;

  --verde:        #60893A;
  --verde-claro:  #A8CF45;
  --verde-escuro: #243515;
  --verde-suave:  #B9CE81;

  /* Aplicação semântica */
  --bg:           var(--off-white);
  --bg-alt:       #FBF8E9;
  --bg-escuro:    var(--preto);
  --texto:        #2A2620;
  --texto-suave:  #6B6357;
  --texto-claro:  #F4EFE0;
  --acao:         var(--ouro);
  --acao-hover:   #A8761F;
  --linha:        rgba(191, 138, 42, 0.22);

  /* Tipografia */
  --serif: "Cormorant Garamond", "Lyon", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Medidas */
  --max:     1200px;
  --gut:     clamp(1.25rem, 5vw, 4rem);
  --radius:  4px;
  --radius-lg: 14px;
  --shadow:  0 18px 50px -24px rgba(48, 34, 8, 0.35);
  --shadow-sm: 0 8px 24px -16px rgba(48, 34, 8, 0.4);
  --trans:   0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--sans);
  color: var(--texto);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; color: var(--preto); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
p  { color: var(--texto-suave); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ouro);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 30px; height: 1px;
  background: var(--ouro);
  display: inline-block;
}
.eyebrow.center::after {
  content: "";
  width: 30px; height: 1px;
  background: var(--ouro);
  display: inline-block;
}

/* ---------- Utilitários de layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }

/* Fundos transicionais — gradientes verticais suaves em vez de cor chapada. */
.section--alt {
  background: linear-gradient(180deg, #FBF8E9 0%, #F4EFD8 100%);
}
/* tom escuro premium: mistura de preto quente + verde-escuro da marca */
.section--dark {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(36,53,21,0.55), transparent 70%),
    linear-gradient(180deg, #14110D 0%, #0D0A0A 55%, #100C09 100%);
  color: var(--texto-claro);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--off-white); }
.section--dark p { color: rgba(244, 239, 224, 0.78); }
.section--dark::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,172,100,0.4), transparent);
}
/* textura de fundo sutil em seções escuras específicas */
#metodo { position: relative; }
#metodo::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("/assets/img/tex-metodo.jpg") center right/cover no-repeat;
  opacity: 0.5; mix-blend-mode: screen;
}
#metodo > .wrap { position: relative; z-index: 1; }
.final-cta::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("/assets/img/tex-cta.jpg") center/cover no-repeat;
  opacity: 0.4; mix-blend-mode: screen;
}
.center { text-align: center; }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-top: 1rem; }
.section-head p { margin-top: 1.1rem; font-size: 1.1rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 1rem 2rem;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans), color var(--trans);
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
/* Ícone do WhatsApp em badge verde reconhecível dentro do botão */
.wa-ico {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 1.7em; height: 1.7em; border-radius: 50%;
  background: #25D366; margin-right: 0.1em;
  box-shadow: 0 2px 8px -2px rgba(37,211,102,0.6);
}
.wa-ico svg { width: 1.05em; height: 1.05em; }
.btn--primary {
  background: linear-gradient(135deg, var(--ouro-claro), var(--ouro));
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(191, 138, 42, 0.6);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 38px -10px rgba(191, 138, 42, 0.75); }
.btn--ghost {
  background: transparent;
  color: var(--preto);
  border-color: var(--linha);
}
.btn--ghost:hover { border-color: var(--ouro); color: var(--ouro); }
.section--dark .btn--ghost { color: var(--off-white); border-color: rgba(212,172,100,0.45); }
.section--dark .btn--ghost:hover { color: var(--ouro-claro); border-color: var(--ouro-claro); }
.btn--lg { padding: 1.15rem 2.5rem; font-size: 1.05rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.5s var(--trans), box-shadow 0.5s var(--trans), padding 0.5s var(--trans);
  padding-block: 1.1rem;
}
.site-header.scrolled {
  background: rgba(255, 253, 238, 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--linha), 0 8px 30px -18px rgba(48,34,8,0.25);
  padding-block: 0.65rem;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { height: 56px; width: auto; transition: height 0.5s var(--trans); }
.scrolled .brand img { height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .name { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; color: var(--preto); letter-spacing: 0.01em; }
.brand-text .sub { font-family: var(--sans); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ouro); }

.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--texto); position: relative; transition: color 0.3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 0; height: 1.5px; background: var(--ouro); transition: width 0.35s var(--trans);
}
.nav-links a:hover { color: var(--ouro); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; z-index: 110; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--preto); margin: 5px 0; transition: 0.3s; border-radius: 2px; }

/* Header sobre hero escuro (antes do scroll): texto claro */
body.hero-dark .site-header:not(.scrolled) .brand-text .name { color: #fff; }
body.hero-dark .site-header:not(.scrolled) .brand-text .sub { color: var(--ouro-claro); }
body.hero-dark .site-header:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.85); }
body.hero-dark .site-header:not(.scrolled) .nav-links a:hover { color: #fff; }
body.hero-dark .site-header:not(.scrolled) .nav-toggle span { background: #fff; }

/* ============================================================
   HERO (claro, split)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg);
  color: var(--texto);
  overflow: hidden;
  padding: 130px 0 70px;
}
/* textura/brilho de fundo sutil */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 85% 30%, rgba(212,172,100,0.13), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(96,137,58,0.07), transparent 70%);
}

/* ---------- HERO ESCURO COM VÍDEO ---------- */
.hero--dark { background: #0B0908; color: var(--texto-claro); }
.hero__video { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__video video {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  min-width: 100%; min-height: 100%; width: auto; height: auto; object-fit: cover;
  opacity: 0.55;
}
/* overlay escuro + tonalidade dourada/verde p/ casar com a marca e dar legibilidade */
.hero--dark .hero__video::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,9,8,0.95) 0%, rgba(11,9,8,0.7) 45%, rgba(11,9,8,0.45) 100%),
    radial-gradient(ellipse 60% 70% at 80% 40%, rgba(191,138,42,0.14), transparent 70%),
    linear-gradient(180deg, rgba(11,9,8,0.7), rgba(11,9,8,0.55) 50%, rgba(11,9,8,0.85));
}
.hero--dark::before { display: none; }
.hero--dark h1, .hero.hero--dark h1 { color: #fff; }
.hero--dark .hero__lead { color: rgba(244,239,224,0.82); }
.hero--dark .hero__crm { color: rgba(244,239,224,0.55); border-top-color: rgba(212,172,100,0.25); }
.hero--dark .hero__crm strong { color: var(--ouro-claro); }
.hero--dark .hero h1 .accent, .hero--dark h1 .accent {
  background: linear-gradient(120deg, var(--ouro-claro), #F0DCA8 60%, var(--ouro-claro));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero--dark .btn--ghost { color: var(--off-white); border-color: rgba(212,172,100,0.4); }
.hero--dark .btn--ghost:hover { color: var(--ouro-claro); border-color: var(--ouro-claro); }
.hero--dark .eyebrow { color: var(--ouro-claro); }
.hero--dark .eyebrow::before, .hero--dark .eyebrow.center::after { background: var(--ouro-claro); }
/* moldura da foto fica dourada e com leve glow no escuro */
.hero--dark .hero__photo { box-shadow: 0 40px 90px -40px rgba(0,0,0,0.8); }
.hero--dark .hero__media::after { background: radial-gradient(circle, rgba(212,172,100,0.3), transparent 70%); }
@media (prefers-reduced-motion: reduce) {
  .hero__video video { display: none; }
}
.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: center; width: 100%;
}
.hero__inner { max-width: 600px; }
.hero h1 { color: var(--preto); margin: 1.4rem 0; font-size: clamp(2.5rem, 4.6vw, 4rem); }
.hero h1 .accent {
  color: var(--ouro);
  font-style: italic;
  position: relative;
  background: linear-gradient(120deg, var(--ouro), var(--ouro-claro) 60%, var(--ouro));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--texto-suave); max-width: 540px; margin-bottom: 2.2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__crm {
  margin-top: 2.4rem; padding-top: 1.5rem;
  border-top: 1px solid var(--linha);
  display: flex; flex-wrap: wrap; gap: 0.4rem 2rem;
  font-size: 0.88rem; color: var(--texto-suave);
}
.hero__crm strong { color: var(--ouro); font-weight: 600; }

/* moldura da foto do Dr. */
.hero__media { position: relative; justify-self: center; max-width: 440px; width: 100%; }
.hero__photo {
  position: relative; border-radius: 200px 200px 18px 18px; overflow: hidden;
  aspect-ratio: 3/4; box-shadow: 0 40px 80px -40px rgba(48,34,8,0.5);
  z-index: 2;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.hero__media::before {
  content: ""; position: absolute; z-index: 1;
  inset: 18px -18px -18px 18px;
  border-radius: 200px 200px 18px 18px;
  border: 1.5px solid var(--ouro-claro);
}
.hero__media::after {
  content: ""; position: absolute; z-index: 0;
  width: 180px; height: 180px; border-radius: 50%; right: -60px; top: -40px;
  background: radial-gradient(circle, rgba(212,172,100,0.2), transparent 70%);
}
/* selo flutuante sobre a foto */
.hero__seal {
  position: absolute; z-index: 3; bottom: 26px; left: -26px;
  background: rgba(255,253,238,0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--linha); border-radius: 14px;
  padding: 0.9rem 1.2rem; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 0.7rem;
}
.hero__seal svg { width: 30px; height: 30px; }
.hero__seal b { font-family: var(--serif); font-size: 1.5rem; color: var(--preto); line-height: 1; display: block; }
.hero__seal span { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--texto-suave); }

/* ============================================================
   BENEFÍCIOS
   ============================================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.benefit {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}
.benefit:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--ouro-claro); }
.benefit__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212,172,100,0.18), rgba(96,137,58,0.12));
  margin-bottom: 1.3rem;
  transition: transform 0.5s var(--ease-out), background 0.5s var(--ease-out);
}
.benefit:hover .benefit__icon { transform: scale(1.1) rotate(-4deg); background: linear-gradient(135deg, rgba(212,172,100,0.32), rgba(96,137,58,0.2)); }
.benefit__icon svg { width: 26px; height: 26px; stroke: var(--ouro); }
.benefit h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.benefit p { font-size: 0.96rem; }

/* ============================================================
   MÉTODO / SERVIÇOS
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3.5rem; }
.pillar {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 2.6rem 2rem;
  background: linear-gradient(160deg, rgba(212,172,100,0.1), rgba(255,255,255,0.02));
  color: #fff;
  overflow: hidden;
  border: 1px solid rgba(212,172,100,0.28);
  backdrop-filter: blur(6px);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), border-color 0.6s var(--ease-out), background 0.6s var(--ease-out);
}
.pillar:hover { transform: translateY(-10px); box-shadow: 0 36px 70px -32px rgba(0,0,0,0.7); border-color: rgba(212,172,100,0.6); background: linear-gradient(160deg, rgba(212,172,100,0.18), rgba(255,255,255,0.04)); }
.pillar__num {
  font-family: var(--serif); font-size: 3.4rem; line-height: 1; font-style: italic;
  background: linear-gradient(135deg, var(--ouro-claro), var(--ouro));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  opacity: 0.6; transition: opacity 0.6s var(--ease-out);
}
.pillar:hover .pillar__num { opacity: 1; }
.pillar h3 { color: var(--off-white); margin: 0.6rem 0 0.8rem; }
.pillar p { color: rgba(244,239,224,0.72); font-size: 0.95rem; }
.pillar::after {
  content: ""; position: absolute; right: -40px; bottom: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(191,138,42,0.25), transparent 70%);
  transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out);
}
.pillar:hover::after { transform: scale(1.4); opacity: 0.8; }

/* Diagnóstico de precisão — cabeçalho próprio + cards com hierarquia */
.diag-intro { text-align: center; max-width: 600px; margin: 0 auto 2.5rem; }
.diag-intro .eyebrow { margin-bottom: 0.8rem; }
.diag-intro h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.6rem; }
.diag-intro p { font-size: 1rem; }
.diag-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.diag {
  display: flex; flex-direction: column; gap: 0.9rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,172,100,0.18);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  backdrop-filter: blur(4px);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.5s var(--ease-out), background 0.5s var(--ease-out);
}
.diag:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -28px rgba(0,0,0,0.7); border-color: rgba(168,207,69,0.5); background: rgba(255,255,255,0.07); }
.diag__icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(96,137,58,0.3), rgba(168,207,69,0.18));
  transition: transform 0.5s var(--ease-out);
}
.diag:hover .diag__icon { transform: scale(1.08) rotate(-4deg); }
.diag__icon svg { width: 24px; height: 24px; stroke: var(--verde-claro); }
.diag b { display: block; font-family: var(--serif); font-size: 1.18rem; color: var(--off-white); font-weight: 600; margin-bottom: 0.2rem; }
.diag small { color: rgba(244,239,224,0.6); font-size: 0.88rem; line-height: 1.45; }
.diag-intro h3 { color: var(--off-white); }

/* ============================================================
   SOBRE O DR.
   ============================================================ */
.about { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.about__media::before {
  content: ""; position: absolute; inset: -14px -14px 14px 14px;
  border: 1px solid var(--ouro-claro); border-radius: var(--radius-lg);
  z-index: -1;
}
.about__badge {
  position: absolute; bottom: -22px; right: -10px;
  background: var(--preto); color: #fff;
  padding: 1rem 1.4rem; border-radius: 12px;
  box-shadow: var(--shadow); text-align: center;
}
.about__badge b { font-family: var(--serif); font-size: 2rem; color: var(--ouro-claro); display: block; line-height: 1; }
.about__badge span { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.about h2 { margin: 1rem 0 1.2rem; }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; margin: 1.8rem 0; }
.about__col h4 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ouro); margin-bottom: 0.8rem; }
.about__col li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; color: var(--texto-suave); margin-bottom: 0.6rem; }
.about__col li::before { content: "→"; color: var(--ouro); font-weight: 700; }
.about__insta { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; color: var(--preto); margin-top: 0.5rem; }
.about__insta svg { width: 1.2em; height: 1.2em; }
.about__insta:hover { color: var(--ouro); }

/* ============================================================
   CONFIANÇA
   ============================================================ */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.trust {
  border: 1px solid rgba(212,172,100,0.28);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  background: rgba(255,255,255,0.03);
}
.section--dark .trust h3 { color: var(--ouro-claro); font-size: 1.4rem; margin-bottom: 1.2rem; }
.trust li { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 0.9rem; font-size: 0.95rem; color: rgba(244,239,224,0.8); }
.trust li svg { width: 18px; height: 18px; stroke: var(--ouro-claro); flex-shrink: 0; margin-top: 4px; }

/* ============================================================
   GALERIA / ESTRUTURA
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 1rem; }
.gallery figure { overflow: hidden; border-radius: var(--radius-lg); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--trans); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-tall { grid-row: span 2; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.2rem 1rem; font-size: 0.85rem; color: #fff; font-weight: 500;
  background: linear-gradient(transparent, rgba(13,10,10,0.75));
  opacity: 0; transform: translateY(8px); transition: 0.4s;
}
.gallery figure:hover figcaption { opacity: 1; transform: translateY(0); }

/* ============================================================
   DEPOIMENTOS
   ============================================================ */
.carousel { position: relative; }
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 1.5rem) / 3);
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0.25rem 1.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.testi {
  scroll-snap-align: start;
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: box-shadow var(--trans), transform var(--trans);
}
.testi:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.testi__head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1rem; }
.testi__avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: #fff;
}
.testi__meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.testi__name { font-weight: 600; color: var(--preto); font-size: 0.98rem; }
.testi__stars { color: #F5A623; font-size: 0.82rem; letter-spacing: 1px; }
.testi__src { margin-left: auto; flex-shrink: 0; }
.testi__src svg { width: 22px; height: 22px; display: block; }
.testi__text { font-size: 0.96rem; color: var(--texto-suave); line-height: 1.62; }
.testi__text.clamp { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.carousel__nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.carousel__btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--linha); background: var(--branco);
  display: grid; place-items: center; cursor: pointer;
  transition: border-color var(--trans), background var(--trans), transform var(--trans);
}
.carousel__btn:hover { border-color: var(--ouro); transform: scale(1.05); }
.carousel__btn:disabled { opacity: 0.35; cursor: default; transform: none; border-color: var(--linha); }
.carousel__btn svg { width: 18px; height: 18px; stroke: var(--ouro); fill: none; stroke-width: 2; }
.carousel__dots { display: flex; gap: 0.5rem; align-items: center; }
.carousel__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--linha); border: none; padding: 0; cursor: pointer; transition: background var(--trans), width var(--trans); }
.carousel__dot.active { background: var(--ouro); width: 22px; border-radius: 4px; }
.testi-note { text-align: center; font-size: 0.85rem; color: var(--texto-suave); margin-top: 1.5rem; font-style: italic; }

/* ============================================================
   LOCALIZAÇÃO
   ============================================================ */
.location { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,4vw,3.5rem); align-items: center; }
.location__info h2 { margin: 1rem 0 1.4rem; }
.location__detail { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.location__detail svg { width: 24px; height: 24px; stroke: var(--ouro); flex-shrink: 0; margin-top: 3px; }
.location__detail b { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--preto); }
.location__detail span { color: var(--texto-suave); font-size: 0.95rem; }
.location__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--linha); aspect-ratio: 4/3.4; }
.location__map iframe { width: 100%; height: 100%; border: 0; }

/* ============================================================
   PRIMEIRA CONSULTA (timeline)
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; counter-reset: step; }
.step {
  position: relative;
  padding: 2rem 1.4rem 1.6rem;
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--radius-lg);
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--ouro-claro); }
.step__num {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ouro-claro), var(--ouro));
  color: #fff; font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
  margin-bottom: 1.1rem;
  box-shadow: 0 8px 20px -8px rgba(191,138,42,0.6);
}
.step h3 { font-size: 1.18rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.9rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--linha); }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--preto);
  padding: 1.5rem 3rem 1.5rem 0; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq__q::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%;
  width: 12px; height: 12px;
  border-right: 2px solid var(--ouro); border-bottom: 2px solid var(--ouro);
  transform: translateY(-65%) rotate(45deg); transition: transform var(--trans);
}
.faq__item.open .faq__q::after { transform: translateY(-35%) rotate(-135deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--trans); }
.faq__a p { padding: 0 0 1.5rem; font-size: 1.02rem; }

/* ============================================================
   CTA FINAL
   ============================================================ */
.final-cta { position: relative; text-align: center; overflow: hidden; }
.final-cta__sym {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 360px; opacity: 0.06; z-index: 0; pointer-events: none;
}
.final-cta .wrap { position: relative; z-index: 1; }
.final-cta h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 720px; margin: 1rem auto 1.2rem; }
.final-cta p { max-width: 540px; margin: 0 auto 2.4rem; font-size: 1.12rem; }

/* ============================================================
   RODAPÉ
   ============================================================ */
.site-footer { background: var(--preto); color: rgba(244,239,224,0.7); padding-block: 4rem 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(212,172,100,0.18); }
.footer-brand img { height: 82px; width: auto; margin-bottom: 1.4rem; }
.footer-brand p { font-size: 0.92rem; max-width: 320px; }
.footer-col h4 { font-family: var(--sans); color: var(--ouro-claro); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-col li { margin-bottom: 0.7rem; font-size: 0.92rem; }
.footer-col a:hover { color: var(--ouro-claro); }
.footer-social { display: flex; gap: 0.8rem; margin-top: 1.2rem; }
.footer-social a { width: 40px; height: 40px; border: 1px solid rgba(212,172,100,0.3); border-radius: 50%; display: grid; place-items: center; transition: 0.3s; }
.footer-social a:hover { background: var(--ouro); border-color: var(--ouro); }
.footer-social svg { width: 18px; height: 18px; stroke: currentColor; }
/* Instagram com gradiente próprio: sem stroke herdado, sem fundo dourado no hover */
.footer-social a.ig-link { border-color: transparent; }
.footer-social a.ig-link:hover { background: transparent; transform: scale(1.12); }
.footer-social a.ig-link svg { width: 26px; height: 26px; stroke: none; }
.about__insta svg { width: 1.3em; height: 1.3em; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 2rem; font-size: 0.82rem; color: rgba(244,239,224,0.45); }
.footer-bottom a:hover { color: var(--ouro-claro); }
.footer-disclaimer { font-size: 0.78rem; color: rgba(244,239,224,0.4); margin-top: 1.5rem; line-height: 1.6; max-width: 820px; }

/* ---------- Powered by (eletrocardiograma) ---------- */
.powered { display: flex; justify-content: center; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid rgba(212,172,100,0.12); }
.powered a {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.74rem; letter-spacing: 0.04em;
  color: rgba(244,239,224,0.4);
  transition: color var(--trans);
}
.powered a:hover { color: var(--ouro-claro); }
.powered__label { text-transform: lowercase; }
.powered__name { font-weight: 600; letter-spacing: 0.06em; animation: poweredPulse 3.2s ease-in-out infinite; }
.powered__ecg { width: 52px; height: 18px; overflow: visible; }
.powered__ecg path {
  fill: none;
  stroke: var(--ouro-claro);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  animation: ecgSweep 3.2s linear infinite;
}
.powered a:hover .powered__ecg path { stroke: var(--ouro); }
@keyframes ecgSweep {
  0%   { stroke-dashoffset: 90; }
  55%  { stroke-dashoffset: 0; }
  70%  { stroke-dashoffset: 0; opacity: 1; }
  85%  { opacity: 0.15; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes poweredPulse {
  0%, 100% { opacity: 0.55; }
  60%      { opacity: 0.55; }
  68%      { opacity: 1; }
  76%      { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .powered__ecg path { animation: none; stroke-dashoffset: 0; }
  .powered__name { animation: none; opacity: 0.7; }
}

/* ============================================================
   WHATSAPP FLUTUANTE
   ============================================================ */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center;
  box-shadow: 0 10px 30px -8px rgba(37,211,102,0.6);
  transition: transform 0.3s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ============================================================
   ANIMAÇÕES DE SCROLL (refinadas)
   ============================================================ */
:root { --ease-out: cubic-bezier(0.22, 1, 0.36, 1); }

/* base: fade + subida suave com leve blur que limpa ao entrar */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(6px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; filter: blur(0); }

/* variantes direcionais */
.reveal--left  { transform: translateX(-44px); }
.reveal--right { transform: translateX(44px); }
.reveal--scale { transform: scale(0.94); filter: blur(4px); }
.reveal--left.in, .reveal--right.in, .reveal--scale.in { transform: none; }

/* stagger (atraso progressivo) */
.reveal[data-delay="1"] { transition-delay: 0.09s; }
.reveal[data-delay="2"] { transition-delay: 0.18s; }
.reveal[data-delay="3"] { transition-delay: 0.27s; }
.reveal[data-delay="4"] { transition-delay: 0.36s; }

/* entrada do hero (sem depender de scroll) */
.hero__inner > *, .hero__media { opacity: 0; transform: translateY(28px); animation: heroIn 1.1s var(--ease-out) forwards; }
.hero__inner > *:nth-child(1) { animation-delay: 0.15s; }
.hero__inner > *:nth-child(2) { animation-delay: 0.28s; }
.hero__inner > *:nth-child(3) { animation-delay: 0.41s; }
.hero__inner > *:nth-child(4) { animation-delay: 0.54s; }
.hero__inner > *:nth-child(5) { animation-delay: 0.67s; }
.hero__media { transform: translateY(40px) scale(0.97); animation: heroMediaIn 1.4s var(--ease-out) 0.35s forwards; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
@keyframes heroMediaIn { to { opacity: 1; transform: none; } }

/* brilho que percorre a moldura da foto, sutil e contínuo */
.hero__media::before { animation: frameGlow 6s ease-in-out infinite; }
@keyframes frameGlow {
  0%, 100% { border-color: var(--ouro-claro); box-shadow: 0 0 0 rgba(212,172,100,0); }
  50% { border-color: var(--ouro); box-shadow: 0 0 30px -10px rgba(212,172,100,0.5); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero__inner > *, .hero__media { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
  .hero__media::before { animation: none; }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 980px) {
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 460px; margin-inline: auto; }
  .pillars { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .carousel__track { grid-auto-columns: calc((100% - 1.5rem) / 2); }
  .location { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery .g-wide { grid-column: span 2; }
  .gallery .g-tall { grid-row: span 1; }
  /* hero empilha: texto em cima, foto embaixo, ambos centralizados */
  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero--dark .hero__video video { display: none; }
  .hero--dark .hero__video {
    background: #0B0908 url("/assets/img/dna-hero-poster.jpg") center/cover no-repeat;
  }
  .hero__grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero__inner { max-width: 620px; margin-inline: auto; }
  .hero .eyebrow { justify-content: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__crm { justify-content: center; }
  .hero__media { max-width: 360px; }
  /* desativa variantes laterais no mobile p/ não cortar */
  .reveal--left, .reveal--right { transform: translateY(36px); }
}
@media (max-width: 760px) {
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 1.6rem;
    position: fixed; inset: 0; background: var(--preto);
    align-items: center; justify-content: center; z-index: 105;
  }
  .nav.open .nav-links a { color: #fff; font-size: 1.3rem; font-family: var(--serif); }
  .nav.open .nav-toggle span { background: #fff; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .about__cols { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .carousel__track { grid-auto-columns: 88%; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .about__badge { right: 10px; }
  .hero__seal { left: 50%; transform: translateX(-50%); bottom: -22px; }
}
@media (max-width: 420px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .g-wide { grid-column: span 1; }
  .brand-text .name { font-size: 1rem; }
  .hero__photo { border-radius: 140px 140px 14px 14px; }
  .hero__media::before { border-radius: 140px 140px 14px 14px; }
}
