
/* ═══════════════════════════════════════════════════════════
   MIAMI WELLNESS — HOME  ·  colorway: Blue
   Sister to Hamadiya's "Sunlit Dune": same type, same rhythm,
   same composition. Every page color lives in :root below.
   ═══════════════════════════════════════════════════════════ */
:root {
  /* Colorway: Blue — dusk blue, chosen to sit beside Hamadiya's tan */
  --hero:             #506d87;   /* hero, page headers + booking band */
  --hero-light:       #53708a;
  --hero-deep:        #45607a;
  --cream:            #f8f6f1;
  --cream-rgb:        248,246,241;
  --cream-deep:       #eeebe4;
  --paper:            #f1efe9;
  --tint:             #aab9c6;
  --tint-soft:        #d0d9e1;
  --tint-soft-rgb:    208,217,225;
  --stone:            #5a6673;
  --text-soft:        #4a5967;
  --deep:             #25374a;   /* Primary Care card + "The Difference" */
  --ink:              #111a22;
  --near-black:       #0a0f15;   /* footer */
  --accent:           #3a6582;
  --accent-rgb:       58,101,130;
  --accent-light:     #a9c5d9;
  --accent-light-rgb: 169,197,217;
  --shade-rgb:        16,26,36;
  --line-rgb:         37,55,74;
  /* Hamadiya gold — used only where the page points next door */
  --gold:         #b88a4a;
  --gold-text:    #8d6a33;
  --line:         rgba(var(--line-rgb), 0.14);
  --line-soft:    rgba(var(--line-rgb), 0.08);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', Helvetica, Arial, sans-serif;
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:    cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --gutter: clamp(24px, 6vw, 120px);
  --maxw: 1320px;
}

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

html { scroll-behavior: smooth; }

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

/* Fine film grain (shared with Hamadiya) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 300; line-height: 1.05; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 12px; z-index: 2000;
  background: var(--cream); color: var(--ink); padding: 12px 18px;
  font-size: 0.8rem; letter-spacing: 0.08em;
}
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ── Shared atoms ──────────────────────────── */
.container { max-width: var(--maxw); margin: 0 auto; width: 100%; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 34px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: '';
  width: 34px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--light { color: var(--accent-light); }
.eyebrow--gold { color: var(--gold-text); }
.eyebrow--gold::before { background: var(--gold); opacity: 0.8; }

.s-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: 0.005em;
  color: var(--deep);
  margin-top: 26px;
}
.s-title em { font-style: italic; color: var(--accent); }
.s-title--light { color: var(--cream); }
.s-title--light em { color: var(--accent-light); }

.lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.7;
  color: var(--deep);
}

.center { text-align: center; }
.d-br { display: inline; }

/* ── Buttons ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 18px 40px;
  border: 1px solid;
  transition: all 0.5s var(--ease-soft);
  cursor: pointer;
  background: transparent;
}
.btn--solid { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--solid:hover { background: var(--deep); border-color: var(--deep); }
.btn--line { border-color: var(--deep); color: var(--deep); }
.btn--line:hover { background: var(--deep); color: var(--cream); }
.btn--light { border-color: rgba(var(--cream-rgb),0.55); color: var(--cream); }
.btn--light:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--filled-light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--filled-light:hover { background: transparent; color: var(--cream); }
.btn--sister { border-color: var(--gold); color: #3f352e; }
.btn--sister:hover { background: var(--gold-text); border-color: var(--gold-text); color: #fff; }

/* ═══════════════ NAV ═══════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 26px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.6s var(--ease-soft), padding 0.6s var(--ease-soft), box-shadow 0.6s var(--ease-soft);
}
.nav.scrolled {
  background: rgba(var(--cream-rgb),0.88);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  padding: 16px var(--gutter);
  box-shadow: 0 1px 0 var(--line-soft);
}
/* Stacked wordmark — a sibling of the single-line HAMADIYA mark */
.nav__logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  color: var(--cream);
  transition: color 0.6s var(--ease-soft);
}
.nav__logo-top {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.62em;
  padding-left: 0.62em;
  text-transform: uppercase;
  margin-bottom: 7px;
  opacity: 0.9;
}
.nav__logo-main {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  text-transform: uppercase;
}
.nav.scrolled .nav__logo,
.nav.menu-open .nav__logo { color: var(--ink); }

.nav__links { display: flex; align-items: center; gap: 40px; }
.nav__links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  position: relative;
  transition: color 0.4s;
}
.nav.scrolled .nav__links a { color: var(--text-soft); }
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 1px;
  background: var(--accent-light);
  transition: width 0.45s var(--ease);
}
.nav.scrolled .nav__links a::after { background: var(--accent); }
.nav__links a:hover { color: var(--cream); }
.nav.scrolled .nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 13px 28px;
  border: 1px solid var(--cream);
  background: var(--cream);
  color: var(--ink);
  transition: all 0.5s var(--ease-soft);
}
.nav__cta:hover { background: var(--deep); border-color: var(--deep); color: var(--cream); }
.nav.scrolled .nav__cta { background: transparent; border-color: var(--accent); color: var(--accent); }
.nav.scrolled .nav__cta:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 10px;
  margin: -10px;
}
.nav__burger span { display: block; width: 26px; height: 1px; background: var(--cream); transition: transform 0.4s var(--ease), opacity 0.3s, background 0.3s; }
.nav.scrolled .nav__burger span,
.nav.menu-open .nav__burger span { background: var(--ink); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop dropdown */
.nav__item { position: relative; display: inline-flex; align-items: center; }
.nav__caret {
  display: inline-block; width: 6px; height: 6px; margin-left: 8px; position: relative; top: -2px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.4s var(--ease-soft), top 0.4s;
}
.nav__item--has-dropdown:hover .nav__caret,
.nav__item--has-dropdown:focus-within .nav__caret { transform: rotate(-135deg); top: 1px; }
.nav__dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 26px; opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease-soft), visibility 0.4s;
}
.nav__item--has-dropdown:hover .nav__dropdown,
.nav__item--has-dropdown:focus-within .nav__dropdown { opacity: 1; visibility: visible; }
.nav__dropdown-inner {
  min-width: 260px; background: var(--cream);
  border-top: 2px solid var(--accent); padding: 12px 0;
  box-shadow: 0 28px 64px rgba(var(--shade-rgb),0.18);
  display: flex; flex-direction: column;
}
.nav__links .nav__dropdown-inner a {
  color: var(--text-soft); padding: 12px 30px; font-size: 0.66rem;
  font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap;
  transition: background 0.3s, color 0.3s, padding-left 0.3s;
}
.nav__links .nav__dropdown-inner a::after { display: none; }
.nav__links .nav__dropdown-inner a:hover { background: var(--paper); color: var(--ink); padding-left: 38px; }
.nav__links .nav__dropdown-inner a:last-child {
  margin-top: 6px; border-top: 1px solid var(--line-soft); padding-top: 16px;
  color: var(--accent);
}

/* ═══════════════ MOBILE MENU ═══════════════
   Sits just under the nav (999 < 1000) so the burger stays on top and can close it. */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 2px; padding: 100px 32px 40px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.5s var(--ease-soft), visibility 0.5s, transform 0.5s var(--ease-soft);
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu > :first-child { margin-top: auto; }
.mobile-menu > :last-child { margin-bottom: auto; }
.mobile-menu a {
  font-family: var(--font-display); font-weight: 300;
  font-size: 1.9rem; color: var(--deep); letter-spacing: 0.02em;
  padding: 7px 0;
}
.mobile-menu__group { display: flex; flex-direction: column; align-items: center; }
.mobile-menu__toggle {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 300; font-size: 1.9rem;
  color: var(--deep); letter-spacing: 0.02em; padding: 7px 0;
  display: inline-flex; align-items: center; gap: 12px;
}
.mobile-menu__toggle .nav__caret { width: 9px; height: 9px; border-width: 2px; margin-left: 0; top: -4px; }
.mobile-menu__group.open .mobile-menu__toggle .nav__caret { transform: rotate(-135deg); top: 1px; }
.mobile-submenu {
  max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease);
  display: flex; flex-direction: column; align-items: center;
}
.mobile-menu__group.open .mobile-submenu { max-height: 480px; }
.mobile-menu .mobile-submenu a { font-size: 1.28rem; color: var(--text-soft); padding: 5px 0; }
.mobile-menu .mobile-menu__sister {
  margin-top: 12px; font-style: italic; font-size: 1.4rem; color: var(--gold-text);
}
.mobile-menu .mobile-menu__cta {
  margin-top: 22px; font-family: var(--font-body);
  font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: #fff; background: var(--accent); padding: 18px 44px;
}

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: min(100vh, 880px);
  min-height: min(100svh, 880px);   /* full screen on laptops, capped on big monitors */
  display: flex;
  align-items: center;              /* text sits centered under the menu, not pinned to the bottom */
  padding: 160px var(--gutter) 100px;
  overflow: hidden;
  background: var(--hero);
}
/* A quiet tonal shift: a touch lighter to the upper right, a touch deeper to the lower left */
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(200deg, var(--hero-light) 0%, var(--hero) 55%, var(--hero-deep) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 900px; }
.hero__tagline {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 30px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 7vw, 6.6rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin-bottom: 36px;
}
.hero__title em { font-style: italic; font-weight: 300; }
.hero__sub {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 50px;
}
.hero__buttons { display: flex; gap: 18px; flex-wrap: wrap; }

/* The door's slow sunlight (next-door section) */
@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-3%, 4%) scale(1.08); }
}

/* Hero entrance — the headline never starts invisible (keeps LCP fast) */
.hero__content > * { opacity: 0; transform: translateY(24px); animation: heroUp 1.3s var(--ease) forwards; }
.hero__content > *:nth-child(1) { animation-delay: 0.2s; }
.hero__content > .hero__title  { opacity: 1; animation-name: heroRise; animation-delay: 0s; }
.hero__content > *:nth-child(3) { animation-delay: 0.45s; }
.hero__content > *:nth-child(4) { animation-delay: 0.65s; }
@keyframes heroUp   { to { opacity: 1; transform: translateY(0); } }
@keyframes heroRise { from { transform: translateY(24px); } to { transform: translateY(0); } }

/* ═══════════════ SECTION SHELL ═══════════════ */
.section { padding: clamp(90px, 13vh, 180px) var(--gutter); position: relative; }
.section--cream  { background: var(--cream); }
.section--paper  { background: var(--paper); }
.section--deep { background: var(--deep); color: var(--cream); }

.section__head { max-width: 760px; }
.section__head.center { margin: 0 auto; }
.section__lede { max-width: 680px; margin: 28px auto 0; }

/* ═══════════════ SERVICES ═══════════════ */
.pgrid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(16px, 2vw, 28px);
  margin-top: 72px;
}
/* Primary Care — the foundation card */
.pfeature {
  grid-row: span 2;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(36px, 3.6vw, 56px);
  background: var(--deep);
  color: var(--cream);
  transition: transform 0.5s var(--ease-soft), box-shadow 0.5s var(--ease-soft);
}
.pfeature::before {
  content: '';
  position: absolute;
  top: -35%; right: -40%;
  width: 110%; height: 90%;
  background: radial-gradient(circle, rgba(var(--accent-light-rgb),0.2) 0%, transparent 64%);
  pointer-events: none;
}
.pfeature > * { position: relative; }
.pfeature:hover { transform: translateY(-4px); box-shadow: 0 26px 54px rgba(var(--shade-rgb),0.2); }
.pfeature__label {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 0.64rem; font-weight: 400; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--accent-light);
}
.pfeature__label::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.pfeature__title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 4vw, 3.7rem);
  font-weight: 300;
  line-height: 1.02;
  color: var(--cream);
  margin-top: 22px;
}
.pfeature__title em { font-style: italic; color: var(--accent-light); }
.pfeature__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--cream);
  margin-top: 20px;
}
.pfeature__desc {
  font-size: 1.06rem;
  font-weight: 300;
  line-height: 1.72;
  color: rgba(var(--cream-rgb),0.84);
  margin-top: 18px;
}
.pfeature__list {
  margin-top: 26px;
  display: grid;
  gap: 11px;
  width: 100%;
}
.pfeature__list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(var(--cream-rgb),0.9);
}
.pfeature__list li::before {
  content: '';
  position: absolute; left: 0; top: 0.72em;
  width: 11px; height: 1px;
  background: var(--accent-light);
}
.pfeature__link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: auto;
  font-size: 0.76rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cream);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent-light);
  transition: gap 0.4s var(--ease), color 0.4s;
}
.pfeature__list { margin-bottom: 36px; }
.pfeature:hover .pfeature__link { gap: 18px; color: var(--accent-light); }

/* Supporting services — same card as Hamadiya's services page */
.scard {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(30px, 3vw, 44px);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  transition: border-color 0.5s var(--ease-soft), transform 0.5s var(--ease-soft), box-shadow 0.5s var(--ease-soft);
}
.scard:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 22px 46px rgba(var(--shade-rgb),0.10); }
.scard__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.78rem, 2.45vw, 2.2rem); color: var(--deep); line-height: 1.14; }
.scard__desc { font-size: 1.06rem; font-weight: 300; line-height: 1.72; color: var(--deep); margin-top: 16px; flex: 1; }
.scard__link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.76rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--deep); margin-top: 24px; padding-bottom: 4px;
  border-bottom: 1px solid var(--tint);
  transition: gap 0.4s var(--ease), border-color 0.4s, color 0.4s;
}
.scard:hover .scard__link { gap: 18px; border-color: var(--accent); color: var(--accent); }

/* ═══════════════ PROVIDER ═══════════════ */
.prov {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.prov__media {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(80px, 9vw, 140px) var(--gutter);
  background: var(--paper);
}
.prov__media::before {
  content: '';
  position: absolute;
  top: -20%; left: -20%;
  width: 90%; height: 90%;
  background: radial-gradient(circle, rgba(var(--tint-soft-rgb),0.55) 0%, transparent 64%);
  pointer-events: none;
}
/* Arched portrait — the doorway motif; kept modest because the source photo is small */
.prov__frame { position: relative; width: 100%; max-width: 400px; }
.prov__frame::after {
  content: '';
  position: absolute;
  top: 18px; left: 18px; right: -18px; bottom: -18px;
  border: 1px solid rgba(var(--accent-rgb),0.38);
  border-radius: 999px 999px 0 0;
  z-index: 0;
  pointer-events: none;
}
.prov__photo {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: var(--tint-soft);
}
.prov__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.prov__txt {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(70px, 9vw, 140px) var(--gutter);
  background: var(--cream);
}
.prov__role {
  margin-top: 18px;
  font-size: 0.72rem; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--stone);
}
.prov__body { max-width: 540px; margin-top: 34px; }
.prov__body p {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.3125rem;
  line-height: 1.72;
  color: var(--ink);
  margin-bottom: 20px;
}
.prov__tags { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0 40px; }
.prov__tags li {
  font-size: 0.66rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--deep);
  padding: 10px 16px;
  border: 1px solid var(--line);
}

/* ═══════════════ THE DIFFERENCE ═══════════════ */
.reasons {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(48px, 8vw, 120px); margin-top: 64px;
}
.reason {
  padding: 40px 0;
  border-top: 1px solid rgba(var(--cream-rgb),0.16);
  display: grid; grid-template-columns: auto 1fr; gap: 28px;
}
.reason__no { font-family: var(--font-display); font-size: 1.1rem; color: var(--accent-light); padding-top: 6px; }
.reason__title {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; color: var(--cream);
  margin-bottom: 12px; line-height: 1.25;
}
.reason__text { font-size: 1rem; font-weight: 300; line-height: 1.75; color: rgba(var(--cream-rgb),0.8); }

/* ═══════════════ NEXT DOOR (sister practice) ═══════════════ */
.next { position: relative; overflow: hidden; background: var(--cream); padding: clamp(90px, 13vh, 170px) var(--gutter); }
.next__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
}
.next .s-title em { color: var(--gold-text); }
.next__text p {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.3125rem;
  line-height: 1.72;
  color: var(--ink);
  margin-top: 28px;
  max-width: 540px;
}
.next__text .next__list {
  font-family: var(--font-body);
  font-size: 0.68rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; line-height: 2;
  color: var(--stone);
  margin: 22px 0 40px;
}
/* The doorway — a window into Hamadiya's sunlit dune */
.door-link { display: block; width: 100%; max-width: 380px; margin: 0 auto; }
.door-frame {
  display: block;
  padding: 14px 14px 0;
  border: 1px solid rgba(184,138,74,0.55);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}
.door {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 78% 18%, rgba(244,224,188,0.85) 0%, rgba(222,196,153,0.35) 40%, transparent 72%),
    radial-gradient(ellipse 60% 55% at 12% 92%, rgba(123,98,68,0.4) 0%, transparent 58%),
    linear-gradient(158deg, #d8bd92 0%, #cdb083 16%, #c5a679 38%, #bd9c70 58%, #b08c63 78%, #9d7a53 100%);
}
.door__sun {
  position: absolute;
  top: -18%; right: -30%;
  width: 120%; height: 90%;
  background: radial-gradient(circle at center, rgba(252,244,224,0.55) 0%, rgba(252,244,224,0.12) 38%, transparent 66%);
  animation: drift 26s ease-in-out infinite alternate;
  transition: opacity 0.8s var(--ease-soft);
  pointer-events: none;
}
.door__floor {
  position: absolute; bottom: 0; left: 0; right: 0; height: 32%;
  background: linear-gradient(to top, rgba(157,122,83,0.45) 0%, rgba(189,156,112,0.08) 60%, transparent 100%);
}
.door__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 12px; }
.door__brand {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  font-weight: 400;
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  text-transform: uppercase;
  color: #fcf7ec;
  text-shadow: 0 1px 24px rgba(60,40,20,0.2);
}
.door__tag {
  margin-top: 14px;
  font-size: 0.54rem; font-weight: 400; letter-spacing: 0.34em; padding-left: 0.34em; text-transform: uppercase;
  color: rgba(252,247,236,0.9);
}
.door__sill { display: block; height: 1px; background: linear-gradient(to right, transparent, rgba(184,138,74,0.75), transparent); }
.door__caption {
  display: block;
  margin-top: 20px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold-text);
}
.door-link .door { transition: transform 0.9s var(--ease-soft), box-shadow 0.9s var(--ease-soft); }
.door-link:hover .door { transform: translateY(-4px); box-shadow: 0 26px 54px rgba(60,40,20,0.16); }

/* ═══════════════ SERVICE PAGES (same layout as the drhamadiya.com service pages) ═══════════════ */
.ghead {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 196px var(--gutter) clamp(64px, 9vh, 96px);
  overflow: hidden;
  background: var(--hero);
}
.ghead__bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(200deg, var(--hero-light) 0%, var(--hero) 55%, var(--hero-deep) 100%);
}
.ghead__content { position: relative; z-index: 2; max-width: 900px; }
.ghead__crumb {
  font-size: 0.66rem; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--cream); margin-bottom: 22px;
}
.ghead__crumb a { border-bottom: 1px solid rgba(var(--cream-rgb),0.45); padding-bottom: 2px; transition: border-color 0.3s; }
.ghead__crumb a:hover { border-color: var(--cream); }
.ghead__title {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 6.4vw, 5.8rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}
.ghead__title em { font-style: italic; }
.ghead__sub {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.65;
  max-width: 660px;
  margin-bottom: 42px;
}
.ghead__btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* Service body */
.sv-wrap { display: grid; grid-template-columns: 1fr 0.5fr; gap: clamp(44px, 6vw, 96px); align-items: start; }
.sv-body h2 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.25rem, 3.6vw, 3.15rem);
  color: var(--deep); line-height: 1.12; margin-top: 58px;
}
.sv-body h2:first-child { margin-top: 0; }
.sv-body h2 em { font-style: italic; color: var(--accent); }
.sv-body h2 + p, .sv-body h2 + ul { margin-top: 20px; }
.sv-body p { font-family: var(--font-display); font-weight: 300; font-size: 1.3125rem; line-height: 1.72; color: var(--ink); margin-bottom: 20px; }
.sv-list { margin: 22px 0 24px; }
.sv-list li {
  position: relative; padding: 18px 0 18px 34px; border-top: 1px solid var(--line-soft);
  font-family: var(--font-display); font-weight: 300; font-size: 1.3125rem; line-height: 1.6; color: var(--ink);
}
.sv-list li::before { content: ''; position: absolute; left: 4px; top: 30px; width: 14px; height: 1px; background: var(--accent); }
.sv-list li strong { display: block; font-weight: 500; color: var(--deep); }

/* Sticky booking rail */
.sv-rail { position: sticky; top: 104px; background: var(--paper); border: 1px solid var(--line-soft); padding: clamp(28px, 3vw, 40px); }
.sv-rail__h { font-size: 0.64rem; font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.sv-rail__t { font-family: var(--font-display); font-weight: 300; font-size: 2.05rem; color: var(--deep); line-height: 1.15; margin-bottom: 14px; }
.sv-rail__p { font-family: var(--font-display); font-size: 1.3125rem; font-weight: 300; line-height: 1.62; color: var(--ink); margin-bottom: 26px; }
.sv-rail .btn { width: 100%; }
.sv-rail__call { display: block; text-align: center; font-family: var(--font-display); font-size: 1.28rem; color: var(--deep); margin-top: 20px; transition: color 0.3s; }
.sv-rail__call:hover { color: var(--accent); }

/* Related services */
.rel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: clamp(14px, 1.6vw, 22px); margin-top: 52px; }
.rel {
  display: block; padding: 26px 24px; background: var(--cream); border: 1px solid var(--line-soft);
  font-family: var(--font-display); font-weight: 300; font-size: 1.24rem; color: var(--deep); line-height: 1.25;
  transition: border-color 0.5s var(--ease-soft), transform 0.5s var(--ease-soft), color 0.4s;
}
.rel:hover { border-color: var(--accent); color: var(--accent); }
.stagger.visible > .rel:hover { transform: translateY(-3px); }
.rel-foot { margin-top: 52px; }

/* Services hub */
.pgrid--flush { margin-top: 0; }
.hub-note {
  margin-top: 56px; text-align: center;
  font-family: var(--font-display); font-style: italic; font-size: 1.35rem; line-height: 1.6; color: var(--ink);
}
.hub-note a { color: var(--gold-text); border-bottom: 1px solid rgba(184,138,74,0.55); transition: border-color 0.3s; }
.hub-note a:hover { border-color: var(--gold-text); }

/* ═══════════════ CTA ═══════════════ */
.cta { position: relative; padding: clamp(110px, 16vh, 200px) var(--gutter); text-align: center; background: var(--hero); }
.cta__inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.cta__title {
  font-family: var(--font-display); font-size: clamp(2.1rem, 5vw, 4.4rem); font-weight: 300;
  color: var(--cream); line-height: 1.08; margin-bottom: 22px;
}
.cta__title em { font-style: italic; }
.cta__sub {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 400;
  color: var(--cream); margin-bottom: 46px;
}
.cta__buttons { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════ FOOTER ═══════════════ */
.footer { background: var(--near-black); color: var(--cream); padding: clamp(70px, 9vh, 110px) var(--gutter) 48px; }
.footer__top {
  display: grid; grid-template-columns: 1.9fr 1fr 0.8fr 1.5fr;
  gap: 56px; padding-bottom: 64px; border-bottom: 1px solid rgba(var(--cream-rgb),0.1);
}
.footer__brand { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; margin-bottom: 22px; }
.footer__brand-top { font-family: var(--font-body); font-size: 0.66rem; font-weight: 400; letter-spacing: 0.62em; text-transform: uppercase; margin-bottom: 10px; opacity: 0.8; }
.footer__brand-main { font-family: var(--font-display); font-size: 2rem; font-weight: 300; letter-spacing: 0.4em; text-transform: uppercase; }
.footer__tag { font-size: 0.72rem; font-weight: 300; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(var(--cream-rgb),0.55); }
.footer__sister { margin-top: 26px; max-width: 340px; text-wrap: balance; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; line-height: 1.5; color: rgba(var(--cream-rgb),0.72); }
.footer__sister a { color: #cfa869; border-bottom: 1px solid rgba(207,168,105,0.45); transition: border-color 0.3s; }
.footer__sister a:hover { border-color: #cfa869; }
.footer__h { font-size: 0.64rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 22px; }
.footer__link { display: block; font-size: 0.9rem; font-weight: 300; color: rgba(var(--cream-rgb),0.72); margin-bottom: 12px; transition: color 0.3s, padding 0.3s; }
a.footer__link:hover { color: var(--cream); padding-left: 4px; }
.footer__addr { cursor: default; line-height: 1.6; }
.footer__h--sub { margin: 26px 0 14px; }
.footer__hours { display: grid; gap: 9px; }
.footer__hours div { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; font-size: 0.86rem; font-weight: 300; line-height: 1.45; color: rgba(var(--cream-rgb),0.72); }
.footer__hours dd { margin: 0; white-space: nowrap; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 34px; flex-wrap: wrap; gap: 18px; }
.footer__copy { font-size: 0.74rem; font-weight: 300; color: rgba(var(--cream-rgb),0.56); }
.footer__copy a { text-decoration: underline; }
.footer__next { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(var(--cream-rgb),0.62); transition: color 0.3s; }
.footer__next:hover { color: #cfa869; }

/* ═══════════════ REVEAL ═══════════════ */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.stagger > * { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), border-color 0.5s var(--ease-soft), box-shadow 0.5s var(--ease-soft); }
.stagger.visible > * { opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.45s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.55s; }
.stagger.done > * { transition-delay: 0s !important; }
.stagger.visible > .scard:hover,
.stagger.visible > .pfeature:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .stagger > *, .hero__content > * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .door__sun { animation: none !important; }
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .pgrid { grid-template-columns: 1fr 1fr; }
  .pfeature { grid-column: 1 / -1; grid-row: auto; }
  .prov { grid-template-columns: 1fr; }
  .prov__frame { max-width: 360px; }
  .reasons { grid-template-columns: 1fr; }
  .next__grid { grid-template-columns: 1fr; }
  .door-link { max-width: 340px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .sv-wrap { grid-template-columns: 1fr; }
  .sv-rail { position: static; }
  .rel-grid { grid-template-columns: repeat(2, 1fr); justify-content: stretch; }
}
@media (max-width: 720px) {
  .d-br { display: none; }
  .hero { padding: 140px var(--gutter) 84px; }
  .hero__buttons .btn, .cta__buttons .btn { padding: 17px 30px; }
  .pgrid { grid-template-columns: 1fr; }
  .prov__frame { max-width: 300px; }
  .prov__frame::after { top: 12px; left: 12px; right: -12px; bottom: -12px; }
  .reason { gap: 20px; }
  .door-link { max-width: 290px; }
  .footer__top { grid-template-columns: 1fr; gap: 38px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .ghead { padding-top: 150px; }
  .ghead__btns .btn { padding: 17px 30px; }
  .rel-grid { grid-template-columns: 1fr; }
}

/* Dr. Shaker portrait, supplied by the practice */
.shaker-portrait{color:var(--deep);text-decoration:none;text-align:center}
.shaker-portrait__frame{display:block;width:100%;aspect-ratio:4/5;overflow:hidden;border:1px solid rgba(184,138,74,.35);border-radius:2px;background:#0a0f15;box-shadow:0 18px 48px rgba(60,40,20,.14)}
.shaker-portrait__frame img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 15%;transition:transform .5s ease}
.shaker-portrait:hover .shaker-portrait__frame img{transform:scale(1.02)}
.shaker-portrait__name{display:block;margin-top:22px;font-family:var(--font-display);font-size:30px;font-weight:400;line-height:1.2}
.shaker-portrait .door__caption{display:block;margin-top:8px}
@media(prefers-reduced-motion:reduce){.shaker-portrait__frame img{transition:none}.shaker-portrait:hover .shaker-portrait__frame img{transform:none}}
