/* ============================================================
   Witzilin Med Spa, working draft
   Warm boutique re-skin of the NassifMD blueprint.
   Tokens come from 03-References/design-inspiration.md.
   ============================================================ */

:root {
  /* Color, NassifMD palette (per Cris's request).
     Warm boutique alternate kept below for an easy A/B toggle. */
  --bg-base: #FFFFFF;
  --bg-alt: #F8F8F8;
  --bg-dark: #111111;
  --accent: #9B8AA1;
  --accent-deep: #6E5F77;
  --text-body: #575757;
  --text-heading: #333333;
  --text-on-dark: #FFFFFF;
  --line: #DDDDDD;

  /* Warm boutique alternate. Swap these back in to return to the warm direction:
  --bg-base: #FBF8F4; --bg-alt: #F3ECE4; --bg-dark: #2A2420;
  --accent: #C9A892; --accent-deep: #A87E63;
  --text-body: #4A443E; --text-heading: #2A2420;
  --text-on-dark: #FBF8F4; --line: #E5DBCF; */

  /* Type */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", system-ui, sans-serif;

  /* Type scale */
  --fs-h1: clamp(2.5rem, 7vw, 4.75rem);
  --fs-h2: clamp(1.9rem, 4.5vw, 3rem);
  --fs-h3: clamp(1.3rem, 3vw, 1.6rem);
  --fs-body: 1.0625rem;
  --lh-body: 1.75;

  /* Spacing */
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --content-max: 1180px;
  --content-narrow: 760px;

  /* Shape and motion */
  --radius: 2px;
  --radius-card: 8px;
  --shadow-soft: 0 10px 34px rgba(42, 36, 32, 0.10);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 560ms;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-heading);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.4em;
  letter-spacing: 0.01em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 1rem; }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }

/* Layout helpers */
.container { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: var(--content-narrow); margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.section { padding: var(--space-xl) 0; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.lead { font-size: 1.15rem; color: var(--text-body); }
.fine-print { font-size: 0.85rem; color: #8a8178; }
.tbd {
  background: rgba(201, 168, 146, 0.28);
  border-bottom: 1px dashed var(--accent-deep);
  padding: 0 0.2em;
  font-style: italic;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent-deep); color: #fff; }
.btn-primary:hover { background: var(--text-heading); }
.btn-ghost { background: transparent; color: var(--text-heading); border-color: var(--text-heading); }
.btn-ghost:hover { background: var(--text-heading); color: var(--text-on-dark); }
.btn-ghost-light { background: transparent; color: var(--text-on-dark); border-color: rgba(251, 248, 244, 0.7); }
.btn-ghost-light:hover { background: var(--text-on-dark); color: var(--text-heading); }

.stars { color: var(--accent-deep); letter-spacing: 0.1em; }

/* Draft bar */
.draft-bar {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.55rem 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 244, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 18px rgba(42, 36, 32, 0.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-heading);
}
.logo span { color: var(--accent-deep); }
.logo:hover { text-decoration: none; }
.nav { display: none; gap: 2rem; }
.nav a {
  color: var(--text-heading);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav a:hover { color: var(--accent-deep); text-decoration: none; }
.header-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--text-heading); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-header.nav-open .nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--bg-base);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1.5rem 1.5rem;
}
.site-header.nav-open .nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }

/* Hero */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.ph-hero { position: absolute; inset: 0; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.30) 45%, rgba(0, 0, 0, 0.10) 100%);
}
.hero-content { position: relative; z-index: 2; color: var(--text-on-dark); padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.hero-content .eyebrow { color: var(--accent); }
.hero-content h1 { color: var(--text-on-dark); max-width: 14ch; }
.hero-sub { font-size: 1.2rem; max-width: 46ch; color: rgba(251, 248, 244, 0.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.6rem 0 1.4rem; }
.center-actions { justify-content: center; }
.hero-trust { font-size: 0.85rem; letter-spacing: 0.04em; color: rgba(251, 248, 244, 0.9); }
.hero-trust .stars { color: var(--accent); }

/* Trust strip */
.trust-strip { background: var(--bg-alt); padding: 1.6rem 0; }
.trust-inner { display: grid; gap: 1.2rem; text-align: center; }
.trust-item strong { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--text-heading); }
.trust-item span { font-size: 0.85rem; color: var(--text-body); }

/* Intro */
.rhythm { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.06em; color: var(--accent-deep); }

/* About */
.about { background: var(--bg-base); }
.about-grid { display: grid; gap: var(--space-md); align-items: center; }
.med-director { font-size: 0.95rem; padding-top: 0.5rem; border-top: 1px solid var(--line); margin-top: 1.2rem; }

/* Treatments and cards */
.treatments { background: var(--bg-alt); }
.section-head { margin-bottom: var(--space-lg); }
.card-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.card {
  background: var(--bg-base);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  padding-bottom: 1.4rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card h3 { padding: 0 1.4rem; margin-top: 1.2rem; }
.card p { padding: 0 1.4rem; }
.card .price { font-weight: 600; color: var(--text-heading); }
.card-link { display: inline-block; margin: 0.4rem 1.4rem 0; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }

/* Results */
.results-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-bottom: 1.5rem; }

/* Reviews */
.reviews { background: var(--bg-alt); }
.review { background: var(--bg-base); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 1.6rem; position: relative; }
.review .badge { display: inline-block; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; background: var(--accent); color: var(--text-heading); padding: 0.2rem 0.5rem; border-radius: 2px; margin-bottom: 0.8rem; }
.review blockquote { margin: 0.5rem 0 0.8rem; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.4; color: var(--text-heading); }
.review cite { font-style: normal; font-size: 0.85rem; color: #8a8178; }

/* Concerns */
.concerns { background: var(--bg-base); }
.chips { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin: 1.4rem 0 1.8rem; }
.chip { border: 1px solid var(--accent-deep); color: var(--text-heading); border-radius: 40px; padding: 0.5rem 1.1rem; font-size: 0.85rem; }

/* Quote */
.quote-section { background: var(--bg-dark); color: var(--text-on-dark); }
.big-quote { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.3; margin: 0 0 1rem; color: var(--text-on-dark); }
.quote-section cite { font-style: normal; font-size: 0.9rem; letter-spacing: 0.08em; color: var(--accent); }

/* Booking band */
.book-band { background: var(--bg-alt); }

/* Soft CTA */
.soft-cta { padding: var(--space-md) 0; background: var(--bg-base); }
.soft-cta p { margin: 0; }

/* Footer */
.site-footer { background: var(--bg-dark); color: rgba(251, 248, 244, 0.82); padding: var(--space-lg) 0 var(--space-md); }
.footer-grid { display: grid; gap: var(--space-md); }
.site-footer .logo { color: var(--text-on-dark); }
.site-footer h4 { color: var(--text-on-dark); font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.6rem; }
.site-footer a { color: var(--accent); }
.site-footer .fine-print { color: rgba(251, 248, 244, 0.55); }
.disclaimer { margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid rgba(251, 248, 244, 0.14); }

/* Placeholders */
.ph {
  background: linear-gradient(135deg, #d6d6d6 0%, #f0f0f0 100%);
  background-size: cover;
  background-position: center;
  border: 1px dashed #b3b3b3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 220px;
  color: var(--text-heading);
}
.ph-tag { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(251, 248, 244, 0.8); padding: 0.35rem 0.7rem; border-radius: 2px; }
.ph-hero { position: absolute; inset: 0; border: none; background-size: cover; background-position: center; }
.ph-hero .ph-tag { position: absolute; top: 1rem; right: 1rem; }
.ph-portrait { min-height: 420px; border-radius: var(--radius-card); border: none; }
.ph-card { min-height: 170px; border: none; border-radius: 0; }
.ph-result { min-height: 240px; border-radius: var(--radius-card); }

/* Mobile sticky booking bar */
.mobile-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  background: rgba(251, 248, 244, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.mobile-bar .btn-primary { flex: 1; }
.btn-call { background: var(--accent-deep); color: var(--text-on-dark); width: 52px; font-size: 1.3rem; padding: 0; }
.btn-call:hover { background: var(--text-heading); text-decoration: none; }

/* Reveal on scroll, gentle fade and rise with directional and staggered variants */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 760ms var(--ease), transform 760ms var(--ease); will-change: opacity, transform; }
.reveal.from-left { transform: translateX(-38px); }
.reveal.from-right { transform: translateX(38px); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Keep content clear of the mobile bar */
body { padding-bottom: 76px; }

/* ============================================================
   Larger screens
   ============================================================ */
@media (min-width: 680px) {
  .trust-inner { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 860px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr 1.1fr; gap: var(--space-lg); }
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card { transition: none; }
}
