/* ============================================================
   SONIA SANTOS MEGAHISTA — style.css
   Site estático (sem framework), preto + dourado.
   ============================================================ */

:root {
  --bg: #08080A;
  --panel: #111014;
  --gold: #D4AF37;
  --gold-light: #F1D896;
  --gold-dark: #A5842A;
  --ink: #EDE8E0;
  --muted: #B8B2A8;
  --faint: #8A857B;
  --faint-2: #6C6A66;
  --border-gold: rgba(212, 175, 55, 0.22);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-script: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: 'JetBrains Mono', "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2 { font-family: var(--font-display); font-weight: 600; margin: 0; }
p { margin: 0; }
ul { margin: 0; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.container-hist { max-width: 640px; margin: 0 auto; padding: 0 20px; }
.container-md { max-width: 860px; margin: 0 auto; padding: 0 20px; }

.section { padding: 56px 0; }
.section-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(24px, 3.6vw, 32px);
  line-height: 1.2;
  margin-bottom: 24px;
}
.section-title.has-sub { margin-bottom: 12px; }
.section-sub { font-size: 15px; color: var(--muted); line-height: 1.75; margin-bottom: 26px; max-width: 560px; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

.script { font-family: var(--font-script); font-style: italic; }
.mono { font-family: var(--font-mono); }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- botões ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light) 45%, var(--gold-dark));
  color: #0A0A0B; padding: 15px 28px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.03em;
  border: none; cursor: pointer; min-height: 48px;
  transition: filter 0.25s ease, transform 0.25s ease;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-primary.full { width: 100%; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--ink);
  padding: 12px 22px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1px solid rgba(237,232,224,0.3); min-height: 44px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.btn-ghost:hover { border-color: rgba(212,175,55,0.6); background: rgba(212,175,55,0.06); }

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(8,8,10,0.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212,175,55,0.08);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled { background: rgba(8,8,10,0.92); border-bottom-color: rgba(212,175,55,0.22); }
.site-header-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand-logo { height: 40px; width: auto; display: block; flex-shrink: 0; }
.nav-anchors { display: flex; align-items: center; gap: 20px; }
.nav-link { background: none; border: none; color: var(--muted); font-size: 12.5px; font-weight: 500; cursor: pointer; padding: 6px 2px; white-space: nowrap; }
.nav-link:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.wa-label { }
@media (max-width: 767px) { .wa-label { display: none; } }
@media (max-width: 640px) { .nav-anchors { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 84px 0 56px; overflow: hidden; }
@media (max-width: 420px) { .hero { padding-top: 64px; padding-bottom: 48px; } }
.hero-media {
  position: relative; overflow: hidden; aspect-ratio: 9/16; max-width: 320px; max-height: 480px;
  margin: 0 auto 32px; border-radius: 18px; border: 1px solid rgba(212,175,55,0.25);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-eyebrow { font-size: 18px; color: var(--gold); margin-bottom: 16px; }
.hero-title { font-size: clamp(30px, 6vw, 44px); line-height: 1.12; margin-bottom: 20px; text-align: center; }
.hero-divider { height: 1px; background: rgba(255,255,255,0.35); }
.hero-copy { max-width: 420px; margin: 0 auto; }
.hero-copy p { font-size: 15.5px; color: var(--muted); line-height: 1.7; margin-bottom: 10px; text-align: center; }
.hero-services { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 18px; text-align: center; }

/* ---------- linha divisória entre seções ---------- */
.thin-divider { max-width: 420px; margin: 0 auto; padding: 0 20px; }
.thin-divider .line { height: 1px; background: rgba(255,255,255,0.35); }

/* ---------- foto da história (única, com presença) ---------- */
.historia-photo {
  position: relative; overflow: hidden; aspect-ratio: 4/5; max-width: 320px; margin: 0 auto 28px;
  border-radius: 20px; border: 1px solid rgba(212,175,55,0.3);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 6px rgba(212,175,55,0.06);
}
.historia-photo img { width: 100%; height: 100%; object-fit: cover; }
.historia-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(8,8,10,0.55) 100%);
}
.provisional-tag {
  position: absolute; bottom: 8px; left: 8px; right: 8px; z-index: 2;
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.06em; color: var(--gold-light);
  background: rgba(8,8,10,0.72); padding: 3px 6px; border-radius: 6px; text-align: center;
}

/* ---------- listas de checklist ("para quem é") ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.check-list li::before { content: "✓"; color: var(--gold); flex-shrink: 0; }

/* ---------- galerias com scroll-snap ---------- */
.gallery-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; -webkit-overflow-scrolling: touch; }
.gallery-item { scroll-snap-align: start; flex: 0 0 78%; max-width: 340px; }
@media (min-width: 640px) { .gallery-item { flex-basis: 42%; } }
@media (min-width: 960px) { .gallery-item { flex-basis: 27%; } }
.gallery-item.wide { flex-basis: 78%; max-width: 340px; }
.gallery-track::-webkit-scrollbar { height: 6px; }
.gallery-track::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.3); border-radius: 4px; }
.gallery-track img { border-radius: 16px; border: 1px solid rgba(212,175,55,0.18); width: 100%; height: auto; }
.gallery-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.gallery-nav button { padding: 8px; min-height: 36px; }
@media (max-width: 640px) { .gallery-nav { display: none; } }
.gallery-caption { font-size: 12.5px; color: var(--faint-2); font-style: italic; margin-top: 14px; margin-bottom: 26px; }

/* ---------- grades de fotos simples (mega hair, próteses, perucas) ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.photo-grid .ph { position: relative; overflow: hidden; aspect-ratio: 3/4; border-radius: 12px; border: 1px solid rgba(212,175,55,0.2); }
.photo-grid.ratio-45 .ph { aspect-ratio: 4/5; }
.photo-grid .ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- placeholder de mídia pendente ---------- */
.media-placeholder {
  position: relative; overflow: hidden; aspect-ratio: 4/5; border-radius: 18px;
  border: 1px solid rgba(212,175,55,0.18);
  background: radial-gradient(circle at 30% 20%, rgba(212,175,55,0.13), transparent 60%), linear-gradient(160deg,#151212,#0A0A0B);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px;
}
.media-placeholder::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(212,175,55,0.09) 42%, rgba(212,175,55,0.16) 50%, rgba(212,175,55,0.09) 58%, transparent 80%);
  background-size: 220% 220%; animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 120% 0%; } 100% { background-position: -20% 0%; } }
.media-placeholder .icon { font-size: 20px; color: var(--gold); z-index: 1; }
.media-placeholder .label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--faint); text-align: center; padding: 0 12px; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .media-placeholder::before { animation: none; } }

/* ---------- destaques ("o que nos torna diferentes") ---------- */
.highlight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 22px; }
.highlight-card { padding: 16px 18px; border-radius: 12px; border: 1px solid rgba(212,175,55,0.15); background: rgba(255,255,255,0.02); }
.highlight-card .t { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.highlight-card .d { font-size: 12.5px; color: var(--faint); margin-top: 4px; }
.pending-note { font-size: 13px; color: var(--faint-2); font-style: italic; border: 1px dashed rgba(212,175,55,0.25); border-radius: 12px; padding: 16px; }

/* ---------- destinos (perfumaria/anúncio nota) ---------- */
.note-box { margin-top: 48px; padding: 24px; border-radius: 16px; border: 1px solid rgba(212,175,55,0.18); background: rgba(255,255,255,0.02); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.note-box p { font-size: 13px; color: var(--muted); flex: 1; min-width: 200px; }

/* ---------- footer ---------- */
.site-footer { padding: 36px 20px 100px; text-align: center; }
.site-footer .logo { height: 56px; width: auto; margin: 0 auto 8px; }
.site-footer .locality { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em; color: var(--faint-2); margin-bottom: 14px; }
.footer-divider { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.footer-divider .line { height: 1px; background: linear-gradient(90deg, transparent, rgba(212,175,55,0.4), transparent); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light) 45%, var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(212,175,55,0.35), 0 0 0 1px rgba(212,175,55,0.25);
  animation: floatPulse 3.2s ease-in-out infinite;
}
@keyframes floatPulse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }

/* ---------- botão fixo mobile ---------- */
.mobile-sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(8,8,10,0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(212,175,55,0.2);
}
@media (min-width: 768px) { .mobile-sticky-cta { display: none; } }
body { padding-bottom: 84px; }
@media (min-width: 768px) { body { padding-bottom: 0; } }

/* ---------- formulário (painel inferior) ---------- */
.form-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 50;
  display: none; align-items: flex-end; justify-content: center;
}
.form-overlay.is-open { display: flex; }
.form-sheet {
  width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto;
  background: var(--panel); border-radius: 20px 20px 0 0; border: 1px solid rgba(212,175,55,0.22); border-bottom: none;
  padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
}
.form-sheet .grip { width: 40px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.15); margin: 0 auto 18px; }
.form-sheet-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.form-sheet-head h2 { font-size: 20px; }
.form-sheet-head button { background: none; border: none; cursor: pointer; flex-shrink: 0; }
.form-sub { font-size: 13px; color: var(--faint); margin-bottom: 20px; }
.field-label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field-input {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(212,175,55,0.22); border-radius: 10px;
  padding: 13px 14px; color: var(--ink); font-size: 15px; font-family: inherit;
}
.field-input.error { border-color: #D97757; }
.field-error { color: #E2987F; font-size: 12px; margin-top: 6px; }
.field-block { margin-bottom: 16px; }
.interest-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 18px; }
.pill-btn {
  border: 1px solid rgba(212,175,55,0.3); background: rgba(255,255,255,0.02); color: var(--ink);
  border-radius: 12px; padding: 13px 14px; font-size: 13.5px; font-weight: 500; text-align: left;
  cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; min-height: 46px;
}
.pill-btn.active { border-color: var(--gold); background: rgba(212,175,55,0.12); color: var(--gold-light); font-weight: 600; }
.msg-toggle { background: none; border: none; color: var(--gold); font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; margin-bottom: 18px; }
.consent-row { display: flex; gap: 10px; margin-bottom: 6px; align-items: flex-start; }
.consent-row input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--gold); }
.consent-row label { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.privacy-note { font-size: 11.5px; color: var(--faint-2); margin-bottom: 20px; }
.form-success p { font-size: 15px; color: var(--ink); line-height: 1.7; margin-bottom: 12px; }
.form-success .pending { font-size: 13px; color: var(--faint); line-height: 1.7; margin-bottom: 20px; }
.form-error-general { font-size: 13px; color: #E2987F; background: rgba(217,119,87,0.1); border: 1px solid rgba(217,119,87,0.3); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; display: none; }
.form-error-general.is-visible { display: block; }

::selection { background: rgba(212,175,55,0.35); }
