/* ============================================================
   CLÍNICA POLYANA ABREU — ESTÉTICA AVANÇADA
   Ariete Design — tema claro (nude/branco + dourado + preto)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --bg: #faf7f2;
  --bg2: #f2ead9;
  --card: #ffffff;
  --ink: #1c1712;
  --muted: #6b5f4f;
  --gold: #b8902f;
  --gold2: #d9b45c;
  --gold-deep: #8f6c1f;
  --line: rgba(28, 23, 18, 0.1);
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 20px 60px rgba(28, 23, 18, 0.08);

  --font-display: 'Fraunces', 'Cormorant Garamond', serif;
  --font-body: 'Archivo', 'Inter', sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ TIPOGRAFIA ============ */

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.6rem, 9vw, 5.4rem); line-height: 0.98; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; }
h3 { font-size: 1.3rem; line-height: 1.2; }

em { font-style: italic; color: var(--gold-deep); }

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.label::before { content: ''; width: 22px; height: 1px; background: var(--gold); display: inline-block; }

.lede { color: var(--muted); font-size: 1.05rem; max-width: 46ch; }

/* ============ BOTÕES ============ */

.btn-primary, .btn-ghost, .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(.16,.8,.3,1), box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: #1c1712;
  box-shadow: 0 14px 30px rgba(184, 144, 47, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(184, 144, 47, 0.45); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-3px); }

.pill {
  padding: 12px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.85rem;
  box-shadow: var(--shadow);
}
.pill:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }
.pill svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.35s cubic-bezier(.16,.8,.3,1); }
.pill:hover svg { transform: rotate(12deg) scale(1.08); }

/* toque tátil em todos os botões */
.btn-primary:active, .btn-ghost:active, .pill:active, .tcard-more:active,
.tcard:active, .wa-float:active { transform: scale(0.96); }

/* ============ PRELOADER ============ */

#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
#preloader .mark { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.02em; color: var(--gold-deep); }
#preloader .bar { width: 220px; height: 2px; background: var(--line); position: relative; overflow: hidden; border-radius: 2px; }
#preloader .bar span { position: absolute; inset: 0; width: 0%; background: linear-gradient(90deg, var(--gold), var(--gold2)); transition: width 0.3s ease; }
#preloader .pct { font-size: 0.7rem; letter-spacing: 0.25em; color: var(--muted); text-transform: uppercase; }

/* ============ NAV ============ */

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
nav.solid {
  background: rgba(250, 247, 242, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 24px;
  box-shadow: 0 8px 30px rgba(28,23,18,0.06);
  border-bottom: 1px solid var(--line);
}
.nav-mark { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.02em; }
.nav-mark span { color: var(--gold-deep); }
nav .btn-primary { padding: 11px 22px; font-size: 0.8rem; }

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(180deg, #fbf8f3 0%, #f2ead9 100%);
}
.hero-media {
  position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(120% 80% at 50% 0%, rgba(253,251,246,0.15) 0%, rgba(242,234,217,0.35) 55%, rgba(233,220,194,0.55) 100%), var(--hero-poster, none);
  background-size: cover, cover;
  background-position: center, top center;
  background-repeat: no-repeat, no-repeat;
}
.hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-media video.ready { opacity: 0.9; }
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(250,247,242,0.15) 0%, rgba(250,247,242,0.35) 55%, rgba(250,247,242,0.96) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  padding: 160px 24px 90px;
  max-width: 1180px;
  margin: 0 auto;
}
.hero-content .label { margin-bottom: 22px; }
.hero-content h1 { margin-bottom: 20px; }
.hero-content h1 .the { display: block; font-size: 0.28em; letter-spacing: 0.35em; font-family: var(--font-body); font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.hero-content .lede { margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* social/link row */
.link-row {
  position: relative; z-index: 3;
  display: flex; flex-wrap: wrap; gap: 12px;
  padding: 26px 24px 10px;
  max-width: 1180px; margin: 0 auto;
}

/* icon chips */
.chip-row {
  position: relative; z-index: 3;
  display: flex; flex-wrap: wrap; gap: 12px;
  padding: 10px 24px 40px;
  max-width: 1180px; margin: 0 auto;
}
.chip {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; box-shadow: var(--shadow);
}
.chip .ico {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.chip .ico svg { width: 15px; height: 15px; }

/* ============ MARQUEE ============ */

.marquee-wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); overflow: hidden; padding: 16px 0; }
.marquee { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { display: flex; align-items: center; gap: 14px; padding: 0 28px; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--gold-deep); white-space: nowrap; }
.marquee span::after { content: '✦'; color: var(--gold); font-style: normal; font-size: 0.9rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ SEÇÕES ============ */

section { position: relative; padding: 120px 0; }
.section-tight { padding: 90px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .label { margin-bottom: 18px; }

.bg-alt { background: var(--bg2); }

/* ============ TRATAMENTOS ============ */

.tratamentos-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (min-width: 720px) { .tratamentos-grid { grid-template-columns: repeat(4, 1fr); } }

.tcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 16px 16px 22px; box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(.16,.8,.3,1), border-color 0.4s ease;
}
.tcard:hover { transform: translateY(-6px); border-color: var(--gold); }
.tcard-img { margin-bottom: 18px; }
.tcard h3 { font-size: 1.05rem; margin-bottom: 8px; }
.tcard p { font-size: 0.86rem; color: var(--muted); margin: 0 0 14px; }
.tcard-more {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 0.76rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep);
  transition: gap 0.3s ease;
}
.tcard-more:hover { gap: 12px; }
.tcard-more svg { width: 10px; height: 10px; }

/* ============ POR QUE ESCOLHER ============ */

.motivos-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .motivos-grid { grid-template-columns: repeat(3, 1fr); } }
.motivo { padding: 32px 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.motivo .num { font-family: var(--font-display); font-size: 2.2rem; color: var(--gold); margin-bottom: 14px; display: block; }
.motivo h3 { margin-bottom: 10px; }
.motivo p { color: var(--muted); margin: 0; font-size: 0.92rem; }

/* ============ AVALIAÇÕES ============ */

.avaliacoes-head { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 40px; text-align: center; }
.avaliacoes-stars { display: flex; gap: 4px; color: var(--gold); font-size: 1.1rem; }
.avaliacoes-card {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 26px;
  padding: 44px 32px; box-shadow: var(--shadow);
}
.avaliacoes-card p { color: var(--muted); margin: 14px 0 26px; }
.avaliacoes-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============ MODAL DE TRATAMENTO ============ */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(28, 23, 18, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal-content {
  position: relative; width: 100%; max-width: 440px; max-height: 86vh; overflow-y: auto;
  background: var(--card); border-radius: 28px; border: 1px solid var(--line);
  padding: 34px; box-shadow: 0 40px 100px -20px rgba(0,0,0,0.35);
  animation: modalIn 0.45s cubic-bezier(.16,.85,.3,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink); transition: transform 0.3s ease;
}
.modal-close:hover { transform: rotate(90deg); border-color: var(--gold); }
.modal-content .ph { aspect-ratio: 16/10; margin-bottom: 22px; }
.modal-content h3 { font-size: 1.5rem; margin-bottom: 12px; }
.modal-content p.modal-desc { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }
.modal-checklist { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.modal-checklist div {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--bg2); border-radius: 14px; font-size: 0.86rem; font-weight: 600;
}
.modal-checklist svg { width: 14px; height: 14px; color: var(--gold-deep); flex-shrink: 0; }
.modal-content .btn-primary { width: 100%; }

/* ============ LIGHTBOX DE FOTOS ============ */

.lightbox-trigger { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 3100; background: rgba(12, 9, 6, 0.92);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; box-shadow: 0 40px 100px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute; top: 24px; right: 24px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.3s ease;
}
.lightbox-close:hover { transform: rotate(90deg); }

/* ============ WHATSAPP FLUTUANTE ============ */

.wa-float-wrap { position: fixed; bottom: 26px; right: 26px; z-index: 900; }
.wa-float {
  position: relative; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.4); transition: transform 0.3s ease;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.08) rotate(-4deg); }
.wa-float::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1;
  animation: wa-pulse 2.2s infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(1.7); opacity: 0; } }

.wa-bubble {
  position: absolute; bottom: 74px; right: 0; width: 220px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 30px 14px 16px; box-shadow: var(--shadow);
  font-size: 0.8rem; font-weight: 500; color: var(--ink); line-height: 1.4;
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.96);
  transition: all 0.5s cubic-bezier(.19,1,.22,1);
}
.wa-bubble.show { opacity: 1; visibility: visible; transform: none; }
.wa-bubble::after {
  content: ''; position: absolute; bottom: -6px; right: 24px; width: 12px; height: 12px;
  background: var(--card); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.wa-bubble-close {
  position: absolute; top: 6px; right: 8px; background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 11px; padding: 4px;
}

/* ============ RESULTADOS (vídeo) ============ */

.resultados { position: relative; padding: 0; overflow: hidden; }
.resultados-media {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(180deg, #f2ead9 0%, #ecdfc4 100%);
}
.resultados-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease;
}
.resultados-media video.ready { opacity: 0.85; }
.resultados-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(250,247,242,0.25), rgba(250,247,242,0.55) 60%, rgba(250,247,242,0.95)); }
.resultados-content { position: relative; z-index: 2; width: 100%; padding: 100px 24px; max-width: 1180px; margin: 0 auto; }

.antes-depois { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 56px; }
@media (min-width: 720px) { .antes-depois { grid-template-columns: repeat(3, 1fr); } }
.ph {
  position: relative; aspect-ratio: 3/4; border-radius: 18px; overflow: hidden;
  background: linear-gradient(150deg, #f2ead9, #e6d6b3 55%, #d9c090);
  background-size: cover; background-position: center;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; align-items: flex-end; justify-content: center;
  transition: opacity 0.6s ease;
}
.ph::before { content: '✦'; color: rgba(28,23,18,0.28); font-size: 1.6rem; margin-bottom: auto; margin-top: auto; }
.ph.loaded::before { display: none; }
.ph.loaded { border-color: transparent; }

/* ============ SOBRE ============ */

.sobre-grid { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .sobre-grid { grid-template-columns: 0.85fr 1.15fr; } }
.sobre-foto { aspect-ratio: 4/5; border-radius: 26px; }
.sobre-stats { display: flex; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.sobre-stats div strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--gold-deep); }
.sobre-stats div span { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }

/* ============ GALERIA ============ */

.galeria-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 720px) { .galeria-grid { grid-template-columns: repeat(5, 1fr); } }
.galeria-grid .ph { aspect-ratio: 3/4; }

/* ============ LOCALIZAÇÃO ============ */

.local-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .local-grid { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.local-info { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.local-info .endereco { font-size: 1.1rem; color: var(--ink); max-width: 34ch; }
.local-map { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 340px; filter: saturate(0.4) contrast(1.05); }
.local-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ============ FOOTER ============ */

footer { padding: 70px 0 40px; border-top: 1px solid var(--line); background: var(--bg2); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.footer-mark { font-family: var(--font-display); font-size: 1.6rem; }
.footer-mark span { color: var(--gold-deep); }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 26px; }
.ariete-badge { color: var(--gold-deep); font-weight: 700; letter-spacing: 0.02em; }

/* ============ MOTION TEXT — camada de entrada (Ariete Design) ============ */

.rv{opacity:0;transform:translateY(34px);filter:blur(7px);
    transition:opacity .8s ease,transform .8s cubic-bezier(.16,.8,.3,1),filter .8s ease}
.rv.in{opacity:1;transform:none;filter:none}

.rw .w{display:inline-block;opacity:0;transform:translateY(.42em);filter:blur(8px);
       will-change:opacity,transform,filter}
.rw.in .w{opacity:1;transform:none;filter:none;
  transition:opacity .55s ease,transform .6s cubic-bezier(.16,.85,.3,1),filter .55s ease;
  transition-delay:calc(var(--i,0) * 45ms)}

.rot{opacity:0;transform:translateX(-14px);
     transition:opacity .6s ease,transform .6s cubic-bezier(.16,.8,.3,1)}
.rot.in{opacity:1;transform:none}

.rl .c{display:inline-block;opacity:0;transform:translateY(.5em) rotate(4deg);filter:blur(6px)}
.rl.in .c{opacity:1;transform:none;filter:none;
  transition:opacity .45s ease,transform .5s cubic-bezier(.16,.85,.3,1),filter .45s ease;
  transition-delay:calc(var(--i,0) * 28ms)}

.stagger > *{transition-delay:calc(var(--i,0) * 110ms)}

@media (max-width:760px){ .rw .w,.rl .c{filter:none} }

@media (prefers-reduced-motion:reduce){
  .rv,.rot{opacity:1!important;transform:none!important;filter:none!important;transition:none!important}
  .rw .w,.rl .c{opacity:1!important;transform:none!important;filter:none!important}
}

/* ============ RESPONSIVO ============ */

@media (max-width: 760px) {
  section { padding: 80px 0; }
  .hero-content { padding: 130px 20px 70px; }
  .footer-top { flex-direction: column; }
}
