/*
Theme Name: Essenza Implante Capilar
Theme URI: https://essenza.com.br
Author: Visi
Description: Landing page de uma página para a clínica Essenza (implante capilar). Tema estático, sem editor de blocos.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: essenza
*/

/* ============================================================
   ESSENZA — Implante Capilar
   ============================================================ */

@font-face { font-family: "Artica Pro"; src: url("fonts/ArticaPro-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Artica Pro"; src: url("fonts/ArticaPro.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Artica Pro"; src: url("fonts/ArticaPro-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Artica Pro"; src: url("fonts/ArticaPro-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --black: #0B0B0B;
  --black-2: #151515;
  --gold: #D9B86A;
  --gold-light: #EBD59A;
  --gold-deep: #8A6A1C;
  --beige: #F3EDE1;
  --cream: #FAF7F0;
  --white: #FFFFFF;
  --ink: #161616;
  --ink-2: #5B564D;
  --line-dark: rgba(217, 184, 106, 0.28);
  --line-light: rgba(22, 22, 22, 0.12);

  --display: "Artica Pro", "Montserrat", sans-serif;
  --body: "Montserrat", sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 9vw, 112px);
  --radius: 12px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--gold); color: var(--black); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.center { text-align: center; }
.section { padding-block: var(--section); position: relative; }
.section h2 { font-size: clamp(32px, 4.4vw, 54px); }
h2 em { font-style: normal; color: var(--gold); }

/* Linhas douradas finas (fios do logo) */
.strands { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.strands--dark { opacity: .35; }
.strands--light { opacity: .45; }

/* ============================================================
   Intro do logo + barra de progresso
   ============================================================ */
.intro {
  position: fixed; inset: 0; z-index: 100;
  pointer-events: none;
  background: var(--black);
  display: grid; place-items: center;
  animation: intro-out .7s var(--ease) 1.7s forwards;
}
.intro img {
  width: 120px; height: 120px; border-radius: 50%;
  opacity: 0; transform: scale(.6);
  box-shadow: 0 0 0 1px var(--line-dark), 0 0 60px rgba(217,184,106,.35);
  animation: intro-logo 1.1s var(--ease) .1s forwards;
}
@keyframes intro-logo { to { opacity: 1; transform: scale(1); } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

.progress {
  position: fixed; top: 0; left: 0; z-index: 90;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-light));
  box-shadow: 0 0 10px rgba(217,184,106,.8), 0 0 24px rgba(217,184,106,.45);
  transition: width .1s linear;
}

/* ============================================================
   Botões
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border-radius: 8px;
  font-weight: 500; font-size: 14px; letter-spacing: .04em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  position: relative; overflow: hidden;
  transition: transform .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn--pill { border-radius: 999px; }
.btn--gold { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); box-shadow: 0 8px 24px rgba(217,184,106,.35); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--gold-light); border-color: var(--gold); border-radius: 999px; }
.btn--outline:hover { background: rgba(217,184,106,.12); }
.btn--black { background: var(--black); color: var(--gold-light); border-color: var(--black); }
.btn--black:hover { background: var(--black-2); box-shadow: 0 10px 28px rgba(0,0,0,.25); transform: translateY(-2px); }

/* Brilho varrendo + pulso de glow */
.btn--shine::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
  animation: shine 3.2s var(--ease) infinite;
}
.btn--black.btn--shine { animation: pulse-dark 2.6s ease-in-out infinite; }
.btn--gold.btn--shine { animation: pulse-gold 2.6s ease-in-out infinite; }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes pulse-dark { 0%, 100% { box-shadow: 0 0 0 0 rgba(217,184,106,.45); } 60% { box-shadow: 0 0 0 14px rgba(217,184,106,0); } }
@keyframes pulse-gold { 0%, 100% { box-shadow: 0 0 0 0 rgba(217,184,106,.55); } 60% { box-shadow: 0 0 0 14px rgba(217,184,106,0); } }
.bounce { animation: bounce 1.6s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--black); color: var(--white);
  min-height: 84svh;
  display: grid; place-items: center;
  padding: 88px var(--gutter) 80px;
  position: relative; overflow: hidden;
}
/* pontos de gradiente radial dourado */
.hero__glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(10px); }
.hero__glow--1 { width: 620px; height: 620px; left: -12%; top: -30%; background: radial-gradient(circle, rgba(217,184,106,.22), transparent 62%); }
.hero__glow--2 { width: 720px; height: 720px; right: -14%; bottom: -40%; background: radial-gradient(circle, rgba(217,184,106,.18), transparent 62%); }
.hero__glow--3 { width: 380px; height: 380px; left: 50%; top: 10%; transform: translateX(-50%); background: radial-gradient(circle, rgba(235,213,154,.14), transparent 65%); }
.hero__copy { text-align: center; position: relative; z-index: 2; }
.hero__logo { width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 32px; box-shadow: 0 0 0 1px var(--line-dark), 0 0 56px rgba(217,184,106,.28); }
.hero h1 { font-size: clamp(40px, 7vw, 104px); font-weight: 500; white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--gold); font-weight: 700; }
.hero p { margin: 24px auto 0; max-width: 42ch; color: rgba(255,255,255,.75); font-size: clamp(16px, 1.3vw, 19px); }
.hero__ctas { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__ctas .btn { border-radius: 999px; }
@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero h1 { white-space: normal; }
  .hero p br { display: none; }
}
@media (max-width: 480px) { .hero__ctas .btn { width: 100%; } }

/* ============================================================
   PROBLEMA (bege)
   ============================================================ */
.problem { background: var(--beige); text-align: center; }
.pains { display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(40px, 5vw, 64px) 0; }
.pain { padding: 8px clamp(16px, 3vw, 40px); display: grid; justify-items: center; gap: 14px; }
.pain + .pain { border-left: 1px solid var(--line-light); }
.pain svg { width: 44px; height: 44px; color: var(--gold-deep); }
.pain h3 { font-size: 24px; }
.pain p { color: var(--ink-2); font-size: 16px; max-width: 30ch; }
@media (max-width: 760px) {
  .pains { grid-template-columns: 1fr; gap: 32px; }
  .pain + .pain { border-left: 0; border-top: 1px solid var(--line-light); padding-top: 32px; }
}

/* ============================================================
   SOLUÇÃO (branco + fios) — grade inclinada em loop
   ============================================================ */
.solution { background: var(--white); text-align: center; overflow: hidden; }
.solution h2 { margin-bottom: clamp(40px, 5vw, 64px); position: relative; }
.tilt {
  position: relative;
  perspective: 1200px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; cursor: grab; user-select: none;
  padding: 24px 0 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.tilt::-webkit-scrollbar { display: none; }
.tilt.is-dragging { cursor: grabbing; }
.tilt__track { display: flex; gap: 24px; width: max-content; padding-inline: 40px; transform-style: preserve-3d; }
.card {
  flex: 0 0 300px;
  border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden;
  background: var(--white); text-align: left;
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
  transform-style: preserve-3d; will-change: transform;
  transition: box-shadow .25s var(--ease);
}
.card:hover { box-shadow: 0 24px 50px rgba(217,184,106,.3); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.card__media img + img { opacity: 0; transition: opacity .45s var(--ease); }
.card:hover .card__media img + img, .card.is-solved .card__media img + img { opacity: 1; }
.card.is-solved .card__media::after { opacity: 1; transform: none; }
.card__media::after {
  content: "Resolvido"; position: absolute; right: 12px; bottom: 12px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  padding: 6px 10px; border-radius: 999px; background: var(--gold); color: var(--black);
  opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.card:hover .card__media::after { opacity: 1; transform: none; }
.card h3 { font-size: 22px; margin: 18px 20px 6px; }
.card p { font-size: 15px; color: var(--ink-2); margin: 0 20px 22px; }
.solution .center { margin-top: 16px; position: relative; }
@media (max-width: 600px) { .card { flex-basis: 240px; } }

/* ============================================================
   AUTORIDADE (dourado)
   ============================================================ */
.authority { background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 55%, #CFAC5C 100%); color: var(--ink); overflow: hidden; }
.strands--white { opacity: .5; width: 60%; left: 0; }
.authority__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; position: relative; }
.authority__left { display: grid; justify-items: start; gap: 28px; }
.btn--white { background: var(--white); color: var(--black); border-color: var(--white); min-height: 58px; padding: 0 34px; font-size: 15px; }
.btn--white:hover { background: var(--black); color: var(--gold-light); border-color: var(--black); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(90,66,10,.35); }
.btn--white.btn--shine { animation: pulse-white 2.6s ease-in-out infinite; }
@keyframes pulse-white { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 60% { box-shadow: 0 0 0 16px rgba(255,255,255,0); } }
.btn--white .arrow { transition: transform .25s var(--ease); }
.btn--white:hover .arrow { transform: translateX(4px); }
.authority h2 { color: var(--white); text-shadow: 0 2px 12px rgba(0,0,0,.18); }
.stars { display: flex; gap: 12px; perspective: 700px; }
.star {
  width: 56px; height: 56px; display: block;
  transform-style: preserve-3d;
  filter: drop-shadow(0 6px 10px rgba(90,66,10,.35)) drop-shadow(0 0 12px rgba(255,255,255,.6));
  animation: wobble 3.6s ease-in-out infinite alternate;
}
.star:nth-child(2) { animation-delay: -.6s; }
.star:nth-child(3) { animation-delay: -1.2s; }
.star:nth-child(4) { animation-delay: -1.8s; }
.star:nth-child(5) { animation-delay: -2.4s; }
@keyframes wobble {
  0%   { transform: rotateY(-38deg) rotateX(10deg) translateY(0); }
  50%  { transform: rotateY(0deg) rotateX(0deg) translateY(-4px); }
  100% { transform: rotateY(38deg) rotateX(-10deg) translateY(0); }
}

.vrail {
  height: calc(3.4 * 148px + 3 * 16px);
  overflow-y: auto; overscroll-behavior-y: contain;
  scrollbar-width: none; cursor: grab; user-select: none;
  perspective: 900px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
}
.vrail::-webkit-scrollbar { display: none; }
.vrail.is-dragging { cursor: grabbing; }
.vrail__track { display: grid; gap: 16px; padding: 16px 12px; }
.cert {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center;
  min-height: 148px; padding: 24px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(90,66,10,.18), 0 1px 0 rgba(255,255,255,.8) inset;
  transform: rotateX(4deg); transform-origin: center top;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cert:hover { transform: rotateX(0deg) translateY(-4px) scale(1.02); box-shadow: 0 22px 44px rgba(90,66,10,.28); }
.cert svg { width: 48px; height: 48px; color: var(--gold-deep); }
.cert h3 { font-size: 20px; margin-bottom: 6px; }
.cert p { font-size: 14px; color: var(--ink-2); }
@media (max-width: 860px) { .authority__grid { grid-template-columns: 1fr; } }

/* ============================================================
   RESULTADOS (branco) — 3 antes/depois
   ============================================================ */
.examples { background: var(--white); text-align: center; }
.examples h2 { margin-bottom: clamp(40px, 5vw, 64px); }
.compares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.compare {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius);
  background: var(--beige); user-select: none; touch-action: pan-y; cursor: ew-resize;
}
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__img--before { object-position: 0% 50%; }
.compare__img--after { object-position: 100% 50%; clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--gold); transform: translateX(-1px); pointer-events: none; }
.compare__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px;
  transform: translate(-50%, -50%); border-radius: 50%; background: var(--gold);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0B0B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6-5 6 5 6M15 6l5 6-5 6'/%3E%3C/svg%3E");
  background-size: 22px; background-repeat: no-repeat; background-position: center;
}
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
@media (max-width: 760px) { .compares { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }

/* ============================================================
   CONTATO (preto) — holofote dourado seguindo o ponteiro
   ============================================================ */
.contact {
  background-color: var(--black); color: var(--white); overflow: hidden;
  /* grade de linhas finas bem sutil */
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
}
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(217,184,106,.16), transparent 60%);
  transition: opacity .3s var(--ease);
}
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; position: relative; perspective: 1200px; }
.contact h2 em { font-weight: 700; }
.contact__info { display: grid; justify-items: start; gap: 32px; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact__list li { display: flex; align-items: flex-start; gap: 14px; font-size: 16px; color: rgba(255,255,255,.82); line-height: 1.55; }
.contact__list svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 2px; }
.contact__list a { border-bottom: 1px solid var(--line-dark); transition: color .2s var(--ease), border-color .2s var(--ease); }
.contact__list a:hover { color: var(--gold-light); border-color: var(--gold); }
.contact__info .btn { min-height: 58px; padding: 0 32px; font-size: 15px; }
.map {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark); background: var(--black-2);
  transform-style: preserve-3d;
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease), transform .15s ease-out;
}
.map:hover { border-color: rgba(217,184,106,.7); box-shadow: 0 0 0 1px rgba(217,184,106,.35), 0 0 36px rgba(217,184,106,.22), 0 30px 60px rgba(0,0,0,.45); }
.map iframe { width: 100%; height: 440px; border: 0; display: block; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } .map iframe { height: 320px; } }

/* ============================================================
   FAQ (branco) — 2 linhas em marquee, direções opostas
   ============================================================ */
.faq { background: var(--white); text-align: center; overflow: hidden; padding-bottom: calc(var(--section) + 40px); }
.faq h2 { margin-bottom: clamp(40px, 5vw, 64px); }
.marquee { overflow-x: auto; scrollbar-width: none; cursor: grab; user-select: none; }
.marquee::-webkit-scrollbar { display: none; }
.marquee.is-dragging { cursor: grabbing; }
.marquee + .marquee { margin-top: 24px; }
.marquee__track { display: flex; gap: 24px; width: max-content; padding-inline: 12px; }
.qa {
  flex: 0 0 340px; text-align: left; padding: 24px 26px;
  background: var(--cream); border: 1px solid var(--line-light); border-radius: var(--radius);
}
.qa h3 { font-size: 20px; margin-bottom: 8px; }
.qa p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 480px) { .qa { flex-basis: 280px; } }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); }
.wa-float svg { width: 32px; height: 32px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .star, .btn--shine, .btn--shine::after, .bounce { animation: none; }
  .intro { animation-delay: .2s; }
}

/* ============================================================
   MOBILE — ajustes específicos
   ============================================================ */
@media (max-width: 860px) {
  /* Autoridade: headline centralizada, certificados em fila horizontal automática */
  .authority__left { justify-items: center; text-align: center; }
  .authority h2 { text-align: center; }
  .vrail {
    height: auto; overflow-y: visible; overflow-x: auto; overscroll-behavior-x: contain;
    -webkit-mask-image: none; mask-image: none;
    margin-inline: calc(-1 * var(--gutter));
  }
  .vrail__track { display: flex; gap: 16px; padding: 16px var(--gutter); width: max-content; }
  .cert { flex: 0 0 260px; min-height: 0; transform: none; padding: 20px; }
  .cert h3 { font-size: 18px; }

  /* Resultados: cards menores */
  .compares { max-width: 280px; gap: 20px; }

  /* FAQ: cards menores */
  .qa { flex-basis: 230px; padding: 18px 20px; }
  .qa h3 { font-size: 17px; }
  .qa p { font-size: 13.5px; }
}

@media (max-width: 860px) {
  /* Solução: sem esmaecimento nas laterais no celular */
  .tilt { -webkit-mask-image: none; mask-image: none; }
  .tilt .card { opacity: 1 !important; }
}
