/* shared.css — Nuvo Clinic */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--cream-100);
  color: var(--espresso-950);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ──────────────────────────────────────── */
.container {
  max-width: 1280px; margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 900px) { .container { padding: 0 1.25rem; } }

.section    { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }

/* ── Navigation ─────────────────────────────────── */
.nuvo-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.nuvo-nav.nav-transparent {
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nuvo-nav.nav-solid {
  background: rgba(254,252,248,0.96);
  border-bottom: 1px solid var(--cream-300);
  box-shadow: 0 1px 12px rgba(26,10,5,0.06);
  backdrop-filter: blur(12px);
}
.nav-inner {
  display: flex; align-items: center; height: 72px; gap: 2rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; margin-right: auto; flex-shrink: 0;
}
.nav-logo-diamond { color: var(--sand-500); font-size: 16px; line-height: 1; }
.nav-logo-text {
  font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 400;
  letter-spacing: 0.07em; color: var(--espresso-950); transition: color 0.3s;
}
.nav-transparent .nav-logo-text { color: #fff; }
.nav-transparent .nav-logo-diamond { color: var(--sand-400); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem; font-weight: 500;
  color: var(--espresso-900); text-decoration: none; letter-spacing: 0.02em;
  opacity: 0.72; transition: opacity 0.15s, color 0.3s;
}
.nav-link:hover, .nav-link.active { opacity: 1; }
.nav-link.active { color: var(--sand-500); }
.nav-transparent .nav-link { color: rgba(255,255,255,0.85); }
.nav-transparent .nav-link.active { color: var(--sand-300, #e0c090); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 22px;
  background: var(--espresso-900); color: #fff;
  border: 1.5px solid var(--espresso-900); border-radius: 9999px;
  font-family: 'DM Sans', sans-serif; font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.02em; text-decoration: none; white-space: nowrap;
  transition: opacity 0.15s; flex-shrink: 0;
}
.nav-cta:hover { opacity: 0.85; }
.nav-transparent .nav-cta {
  background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.45); color: #fff;
}
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 22px; color: var(--espresso-900); padding: 6px; line-height: 1;
}
.nav-transparent .nav-toggle { color: #fff; }
.nav-mobile {
  background: rgba(254,252,248,0.98); border-top: 1px solid var(--cream-300);
  padding: 1rem 1.25rem 1.5rem;
}
.nav-mobile-link {
  display: block; padding: 0.75rem 0;
  font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 500;
  color: var(--espresso-900); text-decoration: none;
  border-bottom: 1px solid var(--cream-200);
}
.nav-mobile-cta {
  display: inline-flex; margin-top: 1rem;
  padding: 12px 24px; background: var(--espresso-900); color: #fff;
  border-radius: 9999px; text-decoration: none;
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem; font-weight: 500;
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ── Footer ─────────────────────────────────────── */
.nuvo-footer {
  background: var(--espresso-950); color: #fff; padding-top: 5rem;
  position: relative; overflow: hidden;
}
.footer-watermark {
  text-align: center; overflow: hidden; line-height: 0.85;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(64px, 14vw, 200px); font-weight: 300;
  color: #fff; opacity: 0.038; letter-spacing: 0.12em;
  user-select: none; pointer-events: none; margin-bottom: 3rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr; gap: 2.5rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col-label {
  font-family: 'DM Sans', sans-serif; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--sand-500); margin-bottom: 1rem;
}
.footer-link {
  display: block; font-family: 'DM Sans', sans-serif; font-size: 0.875rem;
  color: var(--cream-300); text-decoration: none; margin-bottom: 0.5rem;
  opacity: 0.7; transition: opacity 0.15s;
}
.footer-link:hover { opacity: 1; }
.footer-text {
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem;
  color: var(--cream-300); line-height: 1.75; opacity: 0.7;
}
.footer-socials { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-social {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream-300); font-size: 11px; font-weight: 500; font-family: 'DM Sans', sans-serif;
  text-decoration: none; transition: border-color 0.2s;
}
.footer-social:hover { border-color: rgba(255,255,255,0.55); }
.footer-bottom {
  padding: 1.5rem 0; display: flex; flex-wrap: wrap;
  gap: 1rem; justify-content: space-between; align-items: flex-start;
}
.footer-legal {
  font-family: 'DM Sans', sans-serif; font-size: 0.7rem;
  color: var(--cream-300); opacity: 0.4; line-height: 1.65; max-width: 480px;
}

/* ── Scroll Reveal ──────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ── Typography helpers ─────────────────────────── */
.display-h { font-family: 'Cormorant Garamond', serif; font-weight: 300; line-height: 1.05; letter-spacing: -0.015em; }
.body-muted { font-family: 'DM Sans', sans-serif; color: var(--espresso-700); line-height: 1.75; }

/* ── Photo placeholder ──────────────────────────── */
.photo-ph { border-radius: 12px; overflow: hidden; }

/* ── Inner page hero ────────────────────────────── */
.page-hero {
  background: var(--espresso-900); padding: 7.5rem 0 4.5rem; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 85% 60%, rgba(184,138,92,0.14) 0%, transparent 55%);
}

/* ── Divider line ────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--cream-300); margin: 0; }

/* ── Grid Utilities ─────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ══ Bright theme (body[data-bright]) ════════════════════════════════════
   Shared overrides that flip the standard dark bands to cream + dark text.
   Full-width dark SECTION bands flip; small dark accents (icon boxes,
   step-number chips, decorative quote cards — all <div>s) intentionally
   stay dark. The footer (.nuvo-footer) also stays dark in both themes.
   Page-specific dark bands defined via their own CSS classes are handled in
   each page's <style> block. */

/* Shared inner-page hero */
body[data-bright] .page-hero { background: var(--cream-50, #FEFCF8); }
body[data-bright] .page-hero::after { opacity: 0.55; }

/* Inline-styled dark section bands (React style={{background:'var(--espresso-9xx)'}}) */
body[data-bright] section[style*="--espresso-900"],
body[data-bright] section[style*="--espresso-950"] {
  background: var(--cream-100) !important;
}

/* White text set inline inside any flipped band → dark.
   React serialises #fff → rgb(255, 255, 255) and rgba(255,255,255,a) →
   rgba(255, 255, 255, a) in the style attribute, so match on the rgb triplet. */
body[data-bright] .page-hero [style*="255, 255, 255"],
body[data-bright] .page-hero [style*="#fff"],
body[data-bright] section[style*="--espresso-900"] [style*="255, 255, 255"],
body[data-bright] section[style*="--espresso-900"] [style*="#fff"],
body[data-bright] section[style*="--espresso-950"] [style*="255, 255, 255"],
body[data-bright] section[style*="--espresso-950"] [style*="#fff"] {
  color: var(--espresso-700) !important;
}
/* Headings within flipped bands → strongest espresso.
   React serialises color:'#fff' → rgb(255, 255, 255), so match the triplet. */
body[data-bright] .page-hero :is(h1,h2,h3)[style*="255, 255, 255"],
body[data-bright] .page-hero :is(h1,h2,h3)[style*="#fff"],
body[data-bright] section[style*="--espresso-900"] :is(h1,h2,h3)[style*="255, 255, 255"],
body[data-bright] section[style*="--espresso-900"] :is(h1,h2,h3)[style*="#fff"],
body[data-bright] section[style*="--espresso-950"] :is(h1,h2,h3)[style*="255, 255, 255"],
body[data-bright] section[style*="--espresso-950"] :is(h1,h2,h3)[style*="#fff"] {
  color: var(--espresso-950) !important;
}
