/* LN Odontologia Avançada · página de links (light mode) */
:root {
  --white: #FFFFFF;
  --cream: #F4EBE2;
  --cream-soft: #FAF5F0;
  --brown: #876653;
  --ink: #292422;
  --taupe: #958880;
  --line: rgba(41, 36, 34, 0.08);
  --gold: linear-gradient(135deg, #FFF1D7 0%, #E6CFA0 45%, #C4A567 100%);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: #FCF8F4;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }

/* ---------- Fundo ---------- */
.page { position: relative; z-index: 1; }
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #FFFFFF 0%, #FCF8F4 55%, #F8F1EA 100%);
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
.g1 { /* dourado claro, topo direito */
  width: 70vmax; height: 70vmax; top: -30vmax; right: -28vmax;
  background: radial-gradient(circle, rgba(255, 241, 215, 0.95) 0%, rgba(255, 241, 215, 0) 65%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.g2 { /* creme, meio esquerdo */
  width: 60vmax; height: 60vmax; top: 30%; left: -32vmax;
  background: radial-gradient(circle, rgba(244, 235, 226, 1) 0%, rgba(244, 235, 226, 0) 65%);
  animation: drift2 32s ease-in-out infinite alternate;
}
.g3 { /* toque de dourado queimado, embaixo */
  width: 55vmax; height: 55vmax; bottom: -30vmax; right: -20vmax;
  background: radial-gradient(circle, rgba(196, 165, 103, 0.22) 0%, rgba(196, 165, 103, 0) 65%);
  animation: drift3 38s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(-12vmax, 10vmax) scale(1.1); } }
@keyframes drift2 { to { transform: translate(14vmax, -8vmax) scale(0.92); } }
@keyframes drift3 { to { transform: translate(-10vmax, -12vmax) scale(1.15); } }
.grain { /* textura leve para tirar o "chapado" */
  position: absolute;
  inset: -50%;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.14 0 0 0 0 0.13 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: inherit; text-decoration: none; }

.page {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(40px, env(safe-area-inset-bottom));
}

/* ---------- Topo ---------- */
.hero { text-align: center; }
.banner {
  aspect-ratio: 2000 / 769;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
}
.banner img { width: 100%; height: 100%; object-fit: cover; }

.avatar {
  width: 112px;
  height: 112px;
  margin: -56px auto 0;
  position: relative;
  border-radius: 32px;
  padding: 4px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(41, 36, 34, 0.14);
}
.avatar img { width: 100%; height: 100%; border-radius: 28px; }

.name {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--taupe);
  letter-spacing: 0.02em;
}
.meta span { margin: 0 4px; color: var(--brown); }
.bio {
  margin: 14px auto 0;
  max-width: 420px;
  font-size: 15px;
  color: rgba(41, 36, 34, 0.72);
}

/* ---------- Ação principal ---------- */
.cta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 12px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease);
}
.cta::after { /* brilho dourado que passa */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 241, 215, 0.28) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: shine 4.5s var(--ease) 1.2s infinite;
  pointer-events: none;
}
@keyframes shine { 0% { transform: translateX(-120%); } 35%, 100% { transform: translateX(120%); } }
.cta-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--ink);
}
.cta-text { display: flex; flex-direction: column; flex: 1; min-width: 0; text-align: left; }
.cta-text strong { font-weight: 500; font-size: 16px; }
.cta-text small { font-size: 13px; color: rgba(255, 255, 255, 0.64); }
.arrow { font-size: 18px; color: #E6CFA0; transition: transform 0.25s var(--ease); }

/* ---------- Seções ---------- */
.section { margin-top: 36px; }
.label {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  color: var(--taupe);
  margin-bottom: 12px;
  text-align: center;
}

/* Cards com foto (estilo banner) */
.features { display: grid; gap: 12px; }
.feature {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brown);
  color: var(--white);
  isolation: isolate;
  transition: transform 0.25s var(--ease);
}
.feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  z-index: -2;
  transition: transform 0.8s var(--ease);
}
.feature::before { /* degradê para leitura do texto */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(135, 102, 83, 0) 30%, rgba(135, 102, 83, 0.55) 62%, rgba(110, 80, 64, 0.88) 100%);
}
.feature-text {
  position: absolute;
  left: 18px;
  right: 64px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.feature-text strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
}
.feature-text small { font-size: 13px; color: rgba(255, 255, 255, 0.8); }
.feature-arrow {
  position: absolute;
  right: 14px;
  bottom: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}

/* Card Vivah Prime (mesmo formato dos cards de tratamento) */
.prime {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  color: #FFFFFF;
  background: #09182B url("assets/prime-veludo.webp") center / cover no-repeat;
  transition: transform 0.25s var(--ease);
}
.prime::before { /* sombra à esquerda para o texto ler bem sobre o veludo */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(4, 12, 22, 0.72) 0%, rgba(4, 12, 22, 0.35) 55%, rgba(4, 12, 22, 0) 100%);
}
/* moldura dourada dupla */
.prime-frame { position: absolute; inset: 9px; z-index: 2; border: 1px solid rgba(195, 172, 125, 0.75); border-radius: 10px; pointer-events: none; }
.prime-frame::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(195, 172, 125, 0.35); border-radius: 7px; }
/* cantos de ouro (1 imagem girada) */
.prime-frame .c { position: absolute; width: 34px; height: 34px; background: url("assets/prime-canto.webp") center / contain no-repeat; }
.prime-frame .tl { top: -7px; left: -7px; }
.prime-frame .tr { top: -7px; right: -7px; transform: rotate(90deg); }
.prime-frame .br { bottom: -7px; right: -7px; transform: rotate(180deg); }
.prime-frame .bl { bottom: -7px; left: -7px; transform: rotate(270deg); }
/* monograma em ouro com brilho passando nas letras */
.prime-mono {
  position: absolute;
  z-index: 1;
  top: 45%;
  right: 12%;
  height: 66%;
  aspect-ratio: 1356 / 1744;
  transform: translateY(-50%);
  background: url("assets/prime-monograma.webp") center / contain no-repeat;
  -webkit-mask: url("assets/prime-monograma.webp") center / contain no-repeat;
  mask: url("assets/prime-monograma.webp") center / contain no-repeat;
  overflow: hidden;
}
.prime-mono i {
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: 30%;
  width: 40%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 247, 234, 0.3) 30%, rgba(255, 252, 244, 0.9) 50%, rgba(255, 247, 234, 0.3) 70%, transparent 100%);
  mix-blend-mode: screen;
  transform: translateX(-260%) skewX(-18deg);
  animation: primeShine 4.8s cubic-bezier(0.45, 0, 0.2, 1) 1s infinite;
}
@keyframes primeShine {
  0% { transform: translateX(-260%) skewX(-18deg); }
  38%, 100% { transform: translateX(260%) skewX(-18deg); }
}
.prime-text {
  position: absolute;
  z-index: 3;
  left: 22px;
  right: 44%;
  bottom: 20px;
  display: flex;
  flex-direction: column;
}
.prime-eyebrow { font-size: 11px !important; letter-spacing: 0.12em; text-transform: uppercase; color: #C3AC7D !important; }
.prime-text strong { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; margin-top: 2px; }
.prime-text small { font-size: 13px; color: rgba(255, 255, 255, 0.72); }
.prime-arrow {
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 20px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #C3AC7D;
  color: #09182B;
  font-size: 16px;
  transition: transform 0.25s var(--ease);
}

/* Mapa */
.map-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(250, 245, 240, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
}
.map { aspect-ratio: 16 / 9; background: var(--cream); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.6) sepia(0.12); }
.map-info { padding: 16px 18px 18px; }
.address { font-size: 14px; color: rgba(41, 36, 34, 0.72); }
.address strong { color: var(--ink); font-weight: 500; }
.map-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid rgba(41, 36, 34, 0.12);
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

/* Lista de links */
.links { display: grid; gap: 8px; }
.link {
  display: block;
  border-radius: var(--radius);
  background: #FFFFFF;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
a.link, .link summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
}
.link summary { list-style: none; cursor: pointer; }
.link summary::-webkit-details-marker { display: none; }
.link-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  color: var(--brown);
  font-size: 16px;
}
.link-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.link-text strong { font-weight: 500; font-size: 15px; }
.link-text small { font-size: 13px; color: var(--taupe); }
.link-arrow { color: var(--brown); font-size: 16px; transition: transform 0.25s var(--ease); }
.plus { font-size: 22px; line-height: 1; color: var(--brown); transition: transform 0.3s var(--ease); }

/* FAQ */
html { scroll-behavior: smooth; }
.faq-list { display: grid; gap: 8px; }
.qa {
  border-radius: var(--radius);
  background: #FFFFFF;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  transition: border-color 0.25s var(--ease);
}
.qa summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 500;
}
.qa summary::-webkit-details-marker { display: none; }
.qa[open] { border-color: rgba(135, 102, 83, 0.3); }
.qa[open] .plus { transform: rotate(45deg); }
.qa p { padding: 0 18px 18px; font-size: 14px; color: rgba(41, 36, 34, 0.72); }
.qa p a { color: var(--brown); text-decoration: underline; text-underline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .prime-mono i { animation: none; opacity: 0; } html { scroll-behavior: auto; } }

/* Rodapé */
.footer { margin-top: 48px; text-align: center; font-size: 12px; color: rgba(41, 36, 34, 0.64); display: grid; gap: 4px; justify-items: center; }
.footer img { margin-bottom: 10px; opacity: 0.8; }
.footer .muted { color: var(--taupe); }

/* ---------- Toque e hover ---------- */
.cta:active, .feature:active, .prime:active, .link:active, .btn:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .cta:hover .arrow { transform: translateX(3px); }
  .feature:hover img { transform: scale(1.04); }
  .prime:hover .prime-arrow { transform: translateX(3px); }
  .feature:hover .feature-arrow { background: rgba(255, 255, 255, 0.28); transform: translate(1px, -1px); }
  .qa:hover,
  .link:hover, .btn:hover { border-color: rgba(135, 102, 83, 0.35); }
  a.link:hover .link-arrow { transform: translate(1px, -1px); }
}

/* ---------- Entrada ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); }
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease) var(--d, 0ms), transform 0.7s var(--ease) var(--d, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  .cta::after { animation: none; }
  .glow { animation: none; }
  .prime-bg i { animation: none; }
  .feature img { transition: none; }
}

/* Telas maiores: um pouco mais de respiro */
@media (min-width: 600px) {
  .page { padding-top: 32px; }
  .avatar { width: 120px; height: 120px; margin-top: -60px; }
  .name { font-size: 42px; }
}

/* ---------- Botão principal pulsando de leve ---------- */
.cta.is-in { animation: ctaPulse 2.6s ease-in-out 1.4s infinite; }
@keyframes ctaPulse { 0%, 100% { scale: 1; } 50% { scale: 1.025; } }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  animation: ctaPulse 2.6s ease-in-out 2s infinite;
}
.wa-float::before { /* anel que se espalha */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: waRing 2.6s ease-out 2s infinite;
}
@keyframes waRing { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.55); opacity: 0; } }
.wa-float:active { scale: 0.96; }

@media (prefers-reduced-motion: reduce) {
  .cta.is-in, .wa-float, .wa-float::before { animation: none; }
}

/* espaço no fim para o botão flutuante não cobrir o rodapé */
body::after { content: ""; display: block; height: 84px; }
