/* ====================================================================
   Dra. Jamile Martins — Site Institucional
   Design System Compartilhado
   ==================================================================== */

:root {
  /* Colors — mesma paleta da LP de facetas */
  --bg: #FBF4EC;
  --bg-warm: #F2E4D0;
  --bg-card: #FFFFFF;
  --bg-dark: #280A13;
  --bg-deep: #1A060C;

  --ink: #2A1318;
  --ink-soft: #5C3A3F;
  --ink-mute: #907079;

  --primary: #6B1B2E;
  --primary-rgb: 107, 27, 46;
  --primary-dark: #4A0F1F;
  --primary-light: #EAD3D3;

  --nude: #EED9C1;
  --line: #EAD6BE;

  --gold: #C69152;
  --gold-rgb: 198, 145, 82;
  --gold-soft: #E5C89A;

  /* Typography */
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --script: 'Caveat', 'Brush Script MT', cursive;

  /* Scale */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 220ms;
  --dur-base: 500ms;
  --dur-slow: 900ms;

  --section-pad: clamp(52px, 6vw, 80px);
  --section-pad-tight: clamp(40px, 4.5vw, 64px);
  --max: 1180px;
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ====================================================================
   TYPOGRAPHY
   ==================================================================== */

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(42px, 5.5vw, 72px); font-weight: 300; }
h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 400; }
h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 400; }
h4 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; }
h5 { font-size: 14px; font-family: var(--sans); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }

h1 em, h2 em, h3 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 6px 14px;
  background: rgba(107, 27, 46, 0.06);
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.script {
  font-family: var(--script);
  font-weight: 500;
  color: var(--gold);
  font-size: 1.25em;
}

p { max-width: 62ch; }
p + p { margin-top: 14px; }
.lead { font-size: clamp(17px, 1.3vw, 19px); color: var(--ink-soft); }

/* ====================================================================
   NAVBAR
   ==================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(251, 244, 236, 0.82);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid rgba(107, 27, 46, 0.06);
  transition: box-shadow var(--dur-fast) var(--ease-out);
}

.nav.scrolled {
  box-shadow: 0 4px 24px rgba(42, 19, 24, 0.06);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.nav-brand img { height: 36px; width: auto; }
.nav-brand span em { font-style: italic; color: var(--primary); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-menu > li { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--radius-pill);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(107, 27, 46, 0.05);
}

.nav-link .caret {
  width: 10px; height: 10px;
  transition: transform var(--dur-fast) var(--ease-out);
}

.has-dropdown:hover .caret,
.has-dropdown:focus-within .caret { transform: rotate(180deg); }

/* Dropdown: Serviços */
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 260px;
  background: #fff;
  border: 1px solid rgba(107, 27, 46, 0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(42, 19, 24, 0.14);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur-fast) var(--ease-out);
  list-style: none;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
  transition: background var(--dur-fast) var(--ease-out);
}

.dropdown a:hover { background: var(--bg-warm); color: var(--primary); }

.dropdown-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(107, 27, 46, 0.08);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dropdown-icon svg { width: 18px; height: 18px; }

.dropdown-text { display: flex; flex-direction: column; gap: 2px; }
.dropdown-text b { font-weight: 600; }
.dropdown-text small { color: var(--ink-mute); font-size: 12px; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--primary);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
  box-shadow: 0 6px 16px rgba(107, 27, 46, 0.22);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(107, 27, 46, 0.32);
  background: var(--primary-dark);
}

.nav-cta svg { width: 15px; height: 15px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-pill);
  color: var(--ink);
}

.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 980px) {
  .nav-menu, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  padding: 80px 24px 40px;
  transform: translateX(100%);
  transition: transform var(--dur-base) var(--ease-out);
  overflow-y: auto;
}

.mobile-menu.open { transform: translateX(0); }

.mobile-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-warm);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mobile-close svg { width: 22px; height: 22px; }

.mobile-nav-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.mobile-nav-list a {
  display: block;
  padding: 16px 18px;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav-list a:hover { color: var(--primary); }
.mobile-nav-list .sub {
  padding-left: 32px;
  font-size: 18px;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(107, 27, 46, 0.06);
}
.mobile-nav-list .group-label {
  padding: 22px 18px 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  border-bottom: none;
}
.mobile-cta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.mobile-cta svg { width: 18px; height: 18px; }

/* ====================================================================
   BUTTONS
   ==================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius-pill);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 28px rgba(107, 27, 46, 0.28);
  border: 1px solid var(--primary);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: translateX(-120%) skewX(-18deg);
  animation: shimmer 4.5s ease-in-out infinite;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 38px rgba(107, 27, 46, 0.42);
  background: var(--primary-dark);
}

@keyframes shimmer {
  0%, 72% { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(500%) skewX(-18deg); }
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(42, 19, 24, 0.2);
}
.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 10px 26px rgba(198, 145, 82, 0.32);
  border: 1px solid var(--gold);
}
.btn-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(198, 145, 82, 0.48);
  background: #B17E43;
}

.btn svg { width: 17px; height: 17px; }

/* ====================================================================
   SECTION HEAD
   ==================================================================== */

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 18px; color: var(--ink-soft); }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ====================================================================
   CARDS
   ==================================================================== */

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(42, 19, 24, 0.08);
  border-color: rgba(198, 145, 82, 0.4);
}

/* ====================================================================
   SECTIONS
   ==================================================================== */

section { padding: var(--section-pad) 0; position: relative; }
section.tight { padding: var(--section-pad-tight) 0; }
section.dark {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.82);
}
section.dark h1, section.dark h2, section.dark h3, section.dark h4 { color: #fff; }
section.dark h1 em, section.dark h2 em, section.dark h3 em { color: var(--gold-soft); }
section.dark .eyebrow { color: var(--gold-soft); background: rgba(198, 145, 82, 0.14); }
section.dark .lead { color: rgba(255,255,255,0.65); }

section.warm { background: var(--bg-warm); }

/* ====================================================================
   PLACEHOLDER (pra fotos que ainda não vieram)
   ==================================================================== */

.placeholder-photo {
  position: relative;
  background:
    radial-gradient(circle at 30% 20%, rgba(198, 145, 82, 0.18), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(107, 27, 46, 0.12), transparent 50%),
    var(--bg-warm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  border: 1px dashed rgba(107, 27, 46, 0.2);
}

.placeholder-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(107, 27, 46, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 27, 46, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.6;
}

.placeholder-photo-inner {
  position: relative;
  text-align: center;
  padding: 28px;
  max-width: 280px;
}

.placeholder-photo-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(107, 27, 46, 0.08);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.placeholder-photo-icon svg { width: 24px; height: 24px; }

.placeholder-photo-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.placeholder-photo-hint {
  font-size: 12.5px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

/* Placeholder retrato (pra fotos da dra.) */
.placeholder-photo.portrait { aspect-ratio: 3/4; min-height: 380px; }
.placeholder-photo.square { aspect-ratio: 1/1; }
.placeholder-photo.landscape { aspect-ratio: 4/3; min-height: 240px; }
.placeholder-photo.wide { aspect-ratio: 16/10; }

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

.footer {
  background: var(--bg-deep);
  color: rgba(255,255,255,0.62);
  padding: 72px 0 32px;
  font-size: 13.5px;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 44px;
}
.footer-brand img { height: 64px; width: auto; opacity: 0.96; }
.footer-brand p { color: rgba(255,255,255,0.55); font-style: italic; font-family: var(--serif); font-size: 15px; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  max-width: 820px;
  margin: 0 auto 44px;
  text-align: center;
}

.footer-col h5 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: rgba(255,255,255,0.68); transition: color var(--dur-fast) var(--ease-out); }
.footer-col a:hover { color: var(--gold-soft); }
.footer-col p { color: rgba(255,255,255,0.62); margin: 0 auto; line-height: 1.7; }

.footer-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--dur-fast) var(--ease-out);
}
.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-deep);
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.02em;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }

@media (max-width: 680px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding: 56px 0 28px; }
  .footer-brand img { height: 54px; }
}

/* ====================================================================
   REVEAL ANIMATIONS
   ==================================================================== */

.reveal-up, .reveal-scale, .reveal-left, .reveal-right {
  opacity: 0;
  transition: all var(--dur-slow) var(--ease-out);
}
.reveal-up { transform: translateY(32px); }
.reveal-scale { transform: scale(0.94); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.visible, .reveal-scale.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: none;
}

[class*="reveal-"].delay-1 { transition-delay: 120ms; }
[class*="reveal-"].delay-2 { transition-delay: 240ms; }
[class*="reveal-"].delay-3 { transition-delay: 360ms; }
[class*="reveal-"].delay-4 { transition-delay: 480ms; }

/* ====================================================================
   UTILITIES
   ==================================================================== */

.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;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: var(--section-pad-tight) 0;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 14px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(107, 27, 46, 0.1);
  border-radius: var(--radius-pill);
  font-size: 13px;
}
.rating-badge .stars { color: var(--gold); letter-spacing: 1px; font-size: 14px; }
.rating-badge b { font-weight: 600; }
.rating-badge span { color: var(--ink-mute); font-size: 12.5px; }

/* Hero-shared */
.hero-sub {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 60px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
}

.hero-sub-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-sub-inner { grid-template-columns: 1fr; gap: 40px; }
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-mute);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--ink-mute); }
.breadcrumb strong { color: var(--ink); font-weight: 500; }

/* ====================================================================
   WHATSAPP FLOATING
   ==================================================================== */

.wa-float {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 95;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  animation: wa-pulse 2.5s ease-in-out infinite;
  transition: transform .3s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65), 0 0 0 12px rgba(37, 211, 102, 0.12); }
}

/* ====================================================================
   RESPONSIVE
   ==================================================================== */

@media (max-width: 680px) {
  .container { padding: 0 20px; }
  .wa-float { bottom: 16px; right: 16px; width: 54px; height: 54px; }
  .wa-float svg { width: 28px; height: 28px; }
  .nav-brand { padding: 4px 0; }
  .nav-brand img { height: 40px; }
  .breadcrumb { gap: 10px; }
  .breadcrumb a, .breadcrumb strong { padding: 13px 8px; display: inline-block; line-height: 1.2; }
  .footer-col ul { gap: 4px; }
  .footer-col a { display: inline-block; padding: 12px 0; line-height: 1.3; }
  .footer-col p a { padding: 12px 0; }
  .footer-social a { width: 44px; height: 44px; }
}
