/* ============================================================
   Dr. Esha Goel — Endodontist
   Design system: blush ivory, chocolate-maroon ink, dusty rose.
   Palette: Jon #391F22 · Congo Brown #57383E · Pharlap #9F807D
            Rose #C08B89 · Silver Pink #D0B0B1 · Queen Pink
   Type: Fraunces (display serif) + Jost (sans).
   ============================================================ */

:root {
  --ink: #391f22;
  --ink-soft: #57383e;
  --ink-faint: #9f807d;
  --cream: #f7efeb;
  --cream-deep: #efe1db;
  --cream-card: #fbf5f2;
  --gold: #c08b89;
  --gold-soft: #d0b0b1;
  --gold-faint: #e9d6d5;
  --line: rgba(57, 31, 34, 0.12);
  --line-soft: rgba(57, 31, 34, 0.07);

  --serif: "Fraunces", "Georgia", serif;
  --sans: "Jost", "Helvetica Neue", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--gold-faint); }

/* ---------- Utilities ---------- */

.wrap {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: var(--gold-soft);
}

.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: var(--gold-soft);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 340;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.75rem, 6.5vw, 4.9rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 400; }

.serif-i {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 340;
  color: var(--gold);
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 38em;
}

section { padding: clamp(4.5rem, 9vw, 8rem) 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 1.05rem 2.2rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}

.btn:hover { background: var(--ink); color: var(--cream); }

.btn--solid { background: var(--ink); color: var(--cream); }
.btn--solid:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

.btn--light { border-color: rgba(247, 239, 235, 0.55); color: var(--cream); }
.btn--light:hover { background: var(--cream); color: var(--ink); }

.btn .arr { font-family: var(--serif); font-size: 1rem; letter-spacing: 0; transition: transform 0.45s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.text-link {
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 0.35rem;
  transition: color 0.3s, border-color 0.3s;
}
.text-link:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 1.6rem 0;
}

.site-header.scrolled {
  background: rgba(247, 239, 235, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-soft);
  padding: 0.9rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

.brand-creds {
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 3px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  /* wraps between qualifications, never inside one (see &nbsp; in the markup) */
  .brand-creds { white-space: normal; max-width: 17rem; line-height: 1.5; }
  .brand-creds .c-sep { margin: 0 0.45em; }
}

/* rose diamond separating individual titles in credential lines */
.c-sep {
  font-style: normal;
  color: var(--gold);
  font-size: 0.72em;
  margin: 0 0.7em;
  vertical-align: 0.08em;
}

.nav { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.6rem); }

.nav a {
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav a:hover, .nav a.active { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }

.nav .nav-cta {
  border: 1px solid var(--ink);
  padding: 0.65rem 1.5rem;
  color: var(--ink);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--ink); color: var(--cream); }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--ink);
  margin: 6px 0;
  transition: transform 0.35s var(--ease), opacity 0.35s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
    /* long menus stay reachable on short screens */
    overflow-y: auto;
    padding: 6rem 1.5rem 3rem;
  }
  .nav.open { opacity: 1; pointer-events: auto; }
  .nav a { font-size: 0.95rem; }

  /* CRITICAL: backdrop-filter on the header makes it a containing block for
     position:fixed children, which traps the menu overlay inside the header
     bar. Drop it (and the header's own backdrop) while the menu is open. */
  body.nav-open .site-header,
  body.nav-open .site-header.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
    box-shadow: none;
  }

  /* keep the brand + close button legible above the overlay */
  body.nav-open .brand { position: relative; z-index: 110; }
}

/* ---------- Hero ---------- */

.hero {
  min-height: min(100svh, 62rem);
  display: flex;
  align-items: center;
  padding: 8.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -12%;
  width: 55vw;
  height: 55vw;
  max-width: 780px;
  max-height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(208, 176, 177, 0.16) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  width: 100%;
}

.hero-copy .eyebrow { margin-bottom: 2rem; }

.hero-copy h1 { margin-bottom: 1.8rem; }

.hero-copy .lede { margin-bottom: 3rem; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1.1rem; }

.hero-media { position: relative; }

.hero-portrait {
  aspect-ratio: 3 / 4;
  position: relative;
}

.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border: 1px solid var(--gold-soft);
  z-index: -1;
}

@media (max-width: 820px) {
  .hero { min-height: auto; padding-top: 7.5rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 24rem; }
}

/* ---------- Image placeholders (swap with real photos) ---------- */

.ph {
  background:
    linear-gradient(160deg, var(--cream-deep) 0%, #e4cbc5 55%, var(--gold-faint) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(192, 139, 137, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
}

.ph-label {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  padding: 0.6rem 1.1rem;
  background: rgba(251, 249, 244, 0.75);
  position: relative;
}

/* ---------- Credentials strip ---------- */

.cred-strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 2.6rem 0;
  background: var(--cream-card);
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.cred {
  text-align: center;
  padding: 0 1rem;
}
.cred + .cred { border-left: 1px solid var(--line-soft); }

.cred-num {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--ink);
  display: block;
}
.cred-num em { font-style: italic; color: var(--gold); }

.cred-label {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.4rem;
  display: block;
}

@media (max-width: 820px) {
  .cred-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; row-gap: 2.5rem; }
  .cred { padding: 0 0.25rem; }
  .cred:nth-child(3) { border-left: none; }
  .cred-num { font-size: 1.4rem; }
}

/* ---------- Split section (about teaser etc.) ---------- */

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.split--flip { grid-template-columns: 1.1fr 0.9fr; }

.split-media { position: relative; }

.split-media .frame {
  aspect-ratio: 4 / 5;
  position: relative;
}

/* frame variants so landscape/square photos aren't cropped into a tall portrait box */
.split-media .frame--wide { aspect-ratio: 3 / 2; }
.split-media .frame--square { aspect-ratio: 1 / 1; }

.split-media .frame::after {
  content: "";
  position: absolute;
  inset: -1.4rem 1.4rem 1.4rem -1.4rem;
  border: 1px solid var(--gold-soft);
  z-index: -1;
}

.split-copy .eyebrow { margin-bottom: 1.6rem; }
.split-copy h2 { margin-bottom: 1.6rem; }
.split-copy p { color: var(--ink-soft); margin-bottom: 1.4rem; max-width: 34em; }
.split-copy .text-link { margin-top: 0.8rem; display: inline-block; }

@media (max-width: 820px) {
  .split, .split--flip { grid-template-columns: 1fr; }
  .split-media { max-width: 26rem; }
}

/* ---------- Sub-heading + inline pull quote (within split copy) ---------- */

.sub-head {
  margin-top: 2.6rem;
  margin-bottom: 1rem;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}

.inline-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink-soft);
  border-left: 1px solid var(--gold-soft);
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
  max-width: 34em;
}

/* ---------- Section headers ---------- */

.section-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
}
.section-head .eyebrow { margin-bottom: 1.5rem; }
.section-head h2 { margin-bottom: 1.3rem; }
.section-head p { color: var(--ink-soft); }

/* ---------- Expertise cards ---------- */

.expertise-section { background: var(--cream-card); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.exp-card {
  background: var(--cream);
  padding: clamp(2rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: background 0.45s var(--ease);
  position: relative;
}

.exp-card:hover { background: var(--cream-card); }

.exp-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
}

.exp-card h3 { transition: color 0.3s; }
.exp-card:hover h3 { color: var(--gold); }

.exp-card p { font-size: 0.95rem; color: var(--ink-soft); flex-grow: 1; }

.exp-card .text-link { align-self: flex-start; font-size: 0.7rem; }

/* ---------- Philosophy / quote band ---------- */

.quote-band {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-band::before {
  content: "";
  position: absolute;
  bottom: -30%; left: -10%;
  width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(208, 176, 177, 0.12) 0%, transparent 65%);
}

.quote-band .eyebrow { justify-content: center; margin-bottom: 2.4rem; color: var(--gold-soft); }
.quote-band .eyebrow::before, .quote-band .eyebrow::after { background: rgba(208, 176, 177, 0.4); }

.quote-band blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  font-weight: 340;
  line-height: 1.35;
  max-width: 46rem;
  margin: 0 auto;
  position: relative;
}

.quote-band blockquote em { color: var(--gold-soft); }

.quote-attr {
  margin-top: 2.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247, 239, 235, 0.55);
}

/* ---------- Testimonials ---------- */

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.testi {
  background: var(--cream-card);
  border: 1px solid var(--line-soft);
  padding: clamp(2rem, 3vw, 2.8rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.testi-stars { color: var(--gold); letter-spacing: 0.3em; font-size: 0.8rem; }

.testi p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink-soft);
  flex-grow: 1;
}

.testi footer {
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- CTA band ---------- */

.cta-band { text-align: center; }

.cta-band .inner {
  border: 1px solid var(--gold-soft);
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 5vw, 5rem);
  position: relative;
  background: var(--cream-card);
}

.cta-band h2 { margin: 1.4rem 0 1.2rem; }
.cta-band p { color: var(--ink-soft); max-width: 34em; margin: 0 auto 2.6rem; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: clamp(9rem, 16vw, 12rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  text-align: center;
}

.page-hero .eyebrow { justify-content: center; margin-bottom: 1.8rem; }
.page-hero h1 { font-size: clamp(2.5rem, 5.5vw, 4.2rem); margin-bottom: 1.4rem; }
.page-hero p { color: var(--ink-soft); max-width: 40em; margin: 0 auto; }

/* ---------- Timeline (about page) ---------- */

.timeline { max-width: 46rem; margin: 0 auto; }

.tl-item {
  display: grid;
  grid-template-columns: 9rem 1fr auto;
  gap: 2.5rem;
  align-items: center;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.tl-logo {
  width: 8rem;
  height: 5rem;
  object-fit: contain;
  justify-self: end;
  mix-blend-mode: multiply; /* white logo backgrounds melt into the cream page */
}
.tl-item:first-child { border-top: 1px solid var(--line-soft); }

.tl-year {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
}

.tl-body h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.tl-body p { font-size: 0.97rem; color: var(--ink-soft); }

@media (max-width: 640px) {
  .tl-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .tl-logo { justify-self: start; margin-top: 0.5rem; }
}

/* ---------- Treatment detail rows ---------- */

.treatment-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2.8rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--line-soft);
}
.treatment-row:first-of-type { border-top: 1px solid var(--line-soft); }

.treatment-title h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-bottom: 0.8rem; }
.treatment-title .exp-num { display: block; margin-bottom: 1rem; }

.treatment-body p { color: var(--ink-soft); margin-bottom: 1rem; }

.treatment-body ul {
  list-style: none;
  margin-top: 1.4rem;
  display: grid;
  gap: 0.7rem;
}

.treatment-body li {
  padding-left: 1.6rem;
  position: relative;
  font-size: 0.97rem;
  color: var(--ink-soft);
}

.treatment-body li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

@media (max-width: 820px) {
  .treatment-row { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* ---------- Process steps ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  counter-reset: step;
}

.step { position: relative; padding-top: 1.6rem; }

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.6rem;
  color: var(--gold-faint);
  position: absolute;
  top: -0.6rem;
  left: 0;
  line-height: 1;
}

.step h3 { font-size: 1.15rem; margin-bottom: 0.6rem; position: relative; }
.step p { font-size: 0.95rem; color: var(--ink-soft); position: relative; }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info h2 { margin-bottom: 1.6rem; }
.contact-info > p { color: var(--ink-soft); margin-bottom: 2.4rem; }

.info-block {
  border-top: 1px solid var(--line-soft);
  padding: 1.6rem 0;
}

.info-block h3 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.info-block p { color: var(--ink-soft); font-size: 1rem; }
.info-block a:hover { color: var(--gold); }

/* Form */

.booking-form {
  background: var(--cream-card);
  border: 1px solid var(--line-soft);
  padding: clamp(2rem, 4vw, 3.2rem);
}

.booking-form h3 { margin-bottom: 0.6rem; }
.form-note { font-size: 0.92rem; color: var(--ink-faint); margin-bottom: 2.2rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.8rem;
}

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0.1rem;
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23c08b89' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold); }

.field textarea { resize: vertical; min-height: 6.5rem; line-height: 1.6; }

.booking-form .btn { margin-top: 2.2rem; width: 100%; justify-content: center; }

.form-status {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--gold);
  text-align: center;
  min-height: 1.4em;
}

/* honeypot - visually hidden but still fillable by bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.booking-form .btn[disabled] { opacity: 0.55; pointer-events: none; }

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* Map placeholder */
.map-frame { margin-top: clamp(3rem, 6vw, 5rem); aspect-ratio: 21 / 8; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 46rem; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item:first-child { border-top: 1px solid var(--line-soft); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
  text-align: left;
  padding: 1.6rem 3rem 1.6rem 0;
  cursor: pointer;
  position: relative;
}

.faq-q::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--gold);
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.35s var(--ease);
}

.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}

.faq-a p {
  padding: 0 0 1.7rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 40em;
}

/* ---------- Hero credentials line ---------- */

.hero-creds {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0.2rem 0 1.8rem;
}

/* "Specialist Endodontist" sub-line inside the hero h1 */
.h1-sub { margin-top: 1.1rem; }

.h1-sub > span {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.7vw, 1.2rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Photo grid (mentors, teaching, technology) ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: clamp(1.4rem, 2.5vw, 2.2rem);
}

.photo-card { margin: 0; }

.photo-tile {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--cream-deep);
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.photo-card:hover .photo-tile img { transform: scale(1.05); }

/* for tall/portrait source photos that would otherwise be cropped too tightly */
.photo-tile--contain { background: var(--cream-card); }
.photo-tile--contain img { object-fit: contain; }

.photo-card figcaption {
  margin-top: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
}

/* ---------- Auto-scrolling photo marquee (teaching gallery) ---------- */

.photo-marquee {
  overflow: hidden;
  width: 100%;
  /* fade the edges so photos glide in and out of view */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.photo-marquee-track {
  display: flex;
  width: max-content;
}

.pm-set {
  display: flex;
  gap: clamp(1rem, 2vw, 1.6rem);
  padding-right: clamp(1rem, 2vw, 1.6rem);
}

@media (prefers-reduced-motion: no-preference) {
  .photo-marquee-track { animation: marquee 70s linear infinite; }
}

.pm-item {
  margin: 0;
  flex: 0 0 auto;
  /* ~3 across on desktop, ~2 on tablet, ~1.3 on mobile */
  width: clamp(15rem, 30vw, 26rem);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--cream-deep);
}

.pm-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Instagram QR ---------- */

.qr-img {
  width: 7.5rem;
  margin-top: 1rem;
  border: 1px solid var(--line-soft);
  padding: 0.4rem;
  background: #fff;
}

/* ---------- Case gallery ---------- */

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr));
  gap: clamp(1.6rem, 3vw, 2.6rem);
}

/* full gallery page: two larger cards per row */
.case-grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr)); }

.case-card {
  background: var(--cream-card);
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
}

.case-card:hover { transform: translateY(-5px); border-color: var(--gold-soft); }

/* single composite clinical image (radiographs carry their own before/after labels) */
.case-img {
  aspect-ratio: 4 / 3;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.case-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 1.2s var(--ease);
}

.case-card:hover .case-img img { transform: scale(1.04); }

.ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--gold-faint);
}

.ba-half {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}

.ba-tag {
  position: absolute;
  bottom: 0.8rem;
  left: 0.8rem;
  z-index: 1;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(247, 239, 235, 0.88);
  padding: 0.35rem 0.75rem;
}

.ba-half .ph-label { display: none; }

.case-body { padding: clamp(1.6rem, 2.5vw, 2.2rem); display: flex; flex-direction: column; gap: 0.7rem; flex-grow: 1; }

.case-kind {
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.case-body h3 { font-size: 1.25rem; }

.case-body p { font-size: 0.94rem; color: var(--ink-soft); flex-grow: 1; }

.case-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-faint);
  max-width: 40em;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
}

/* ---------- Testimonial slider ---------- */

.testi-slider {
  position: relative;
  max-width: 54rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.testi-slider .slides { display: grid; }

.testi-slider .slides {
  transition: height 0.5s var(--ease);
  /* inactive slides sit offset by 26px — clip them so they can't widen the page */
  overflow: hidden;
}

.testi-slider .slide {
  grid-area: 1 / 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(26px);
  transition: none; /* outgoing slide disappears instantly — no mid-fade overlap */
  pointer-events: none;
}

.testi-slider .slide.active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  pointer-events: auto;
}

.testi-slider blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 340;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 42em;
}

.testi-slider figcaption {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.testi-slider figcaption::before {
  content: "— ";
  color: var(--gold);
  letter-spacing: 0;
}

.slider-arrow svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
  margin: 0 auto;
}

.slider-arrow {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: none;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.slider-arrow:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.slider-dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2.2rem;
}

.slider-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--gold-faint);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.slider-dots button.active {
  background: var(--gold);
  transform: scale(1.35);
}

@media (max-width: 640px) {
  .testi-slider { grid-template-columns: 1fr; }
  .slider-arrow { display: none; }
}

/* ---------- Video testimonials ---------- */

.video-testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: clamp(1.6rem, 3vw, 2.5rem);
  max-width: 40rem;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
}

.video-testi { margin: 0; }

.video-testi video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
  border: 1px solid var(--line-soft);
}

.video-testi figcaption {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Courses (coming soon) band ---------- */

.courses-band {
  border-top: 1px solid var(--line-soft);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.courses-band::before {
  content: "";
  position: absolute;
  top: -35%; right: -8%;
  width: 42vw; height: 42vw;
  max-width: 560px; max-height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(208, 176, 177, 0.14) 0%, transparent 65%);
  pointer-events: none;
}

.courses-inner { position: relative; max-width: 44rem; margin: 0 auto; }

.courses-inner .eyebrow { margin-bottom: 1.6rem; }

.courses-inner h2 { margin-bottom: 1.4rem; }

.courses-copy { color: var(--ink-soft); margin-bottom: 2rem; }

.courses-tease {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 2.4rem;
}

.courses-tease .c-star {
  font-style: normal;
  font-size: 0.7em;
  margin: 0 0.7em;
  color: var(--gold-soft);
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  .courses-tease .c-star { animation: spin 8s linear infinite; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(247, 239, 235, 0.7);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.5rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(247, 239, 235, 0.12);
}

.footer-brand .brand-name { color: var(--cream); font-size: 1.5rem; }
.footer-brand .brand-sub { margin-top: 0.3rem; }
.footer-brand p { margin-top: 1.2rem; max-width: 26em; font-size: 0.92rem; }

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.3rem;
}

.footer-col ul { list-style: none; display: grid; gap: 0.7rem; }
.footer-col a { transition: color 0.3s; }
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  padding-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(247, 239, 235, 0.45);
}

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.visible { opacity: 1; transform: none; }

.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }

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

/* ============================================================
   Luxe dynamics
   ============================================================ */

/* ---------- Film grain overlay ---------- */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: multiply;
}

/* ---------- Hero headline line-mask reveal ---------- */

.h1-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.h1-line > span { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  .h1-line > span {
    transform: translateY(115%);
    animation: lineUp 1.15s var(--ease) 0.15s forwards;
  }
  .h1-line:nth-child(2) > span { animation-delay: 0.3s; }
}

@keyframes lineUp { to { transform: translateY(0); } }

/* ---------- Rotating orbit badge ---------- */

.orbit-badge {
  position: absolute;
  left: -3rem;
  bottom: -2.6rem;
  width: 9.5rem;
  height: 9.5rem;
  z-index: 2;
}

.orbit-badge svg { width: 100%; height: 100%; overflow: visible; }

@media (prefers-reduced-motion: no-preference) {
  .orbit-badge svg { animation: spin 26s linear infinite; }
}

.orbit-badge text {
  font-family: var(--sans);
  font-size: 7px;
  font-weight: 400;
  /* tuned so the full string fits inside the circle - if it overruns, the
     wrap point collides and the two phrases run together */
  letter-spacing: 0.345em;
  text-transform: uppercase;
  fill: var(--gold);
}

.orbit-badge::after {
  content: "✦";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.05rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
  .orbit-badge { width: 7rem; height: 7rem; left: -1.4rem; bottom: -1.8rem; }
}

/* ---------- Scroll cue ---------- */

.scroll-cue {
  position: absolute;
  bottom: 2.6rem;
  left: clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 2;
}

.scroll-cue span {
  writing-mode: vertical-rl;
  font-size: 0.6rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.cue-line {
  width: 1px;
  height: 4.2rem;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .cue-line::after {
    content: "";
    position: absolute;
    top: -45%;
    left: 0;
    width: 100%;
    height: 45%;
    background: var(--gold);
    animation: cueDrop 2.4s var(--ease) infinite;
  }
}

@keyframes cueDrop { to { top: 115%; } }

@media (max-width: 820px) {
  .scroll-cue { display: none; }
}

/* ---------- Serif marquee band ---------- */

.marquee {
  overflow: hidden;
  padding: clamp(2.2rem, 4vw, 3.4rem) 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--cream);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 95s linear infinite; }
}

.marquee-track > span {
  display: flex;
  align-items: baseline;
  gap: 3.2rem;
  padding-right: 3.2rem;
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  white-space: nowrap;
  color: var(--ink);
}

.marquee-track em { font-style: italic; color: var(--gold); }
.marquee-track .sep { font-size: 0.55em; color: var(--gold-soft); align-self: center; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Drifting light blobs ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: drift 16s ease-in-out infinite alternate; }
  .quote-band::before { animation: drift 20s ease-in-out infinite alternate-reverse; }
}

@keyframes drift {
  to { transform: translate(-5%, 4%) scale(1.08); }
}

/* ---------- Card & image hover life ---------- */

.exp-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}

.exp-card { transition: background 0.45s var(--ease), transform 0.45s var(--ease); }
.exp-card:hover { transform: translateY(-5px); }
.exp-card:hover::before { transform: scaleX(1); }

.testi { transition: transform 0.45s var(--ease), border-color 0.45s var(--ease); }
.testi:hover { transform: translateY(-5px); border-color: var(--gold-soft); }

/* photo placeholder slow zoom (works for real <img> replacements too) */
.ph::before {
  inset: -6%;
  background-image:
    radial-gradient(rgba(192, 139, 137, 0.14) 1px, transparent 1px),
    linear-gradient(160deg, var(--cream-deep) 0%, #e4cbc5 55%, var(--gold-faint) 100%);
  background-size: 22px 22px, cover;
  transition: transform 1.6s var(--ease);
}
.ph:hover::before { transform: scale(1.06); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.ph:hover img { transform: scale(1.05); }

/* ---------- Footer watermark ---------- */

.site-footer { position: relative; overflow: hidden; }
.site-footer .wrap { position: relative; z-index: 1; }

.site-footer::after {
  content: "Esha Goel";
  position: absolute;
  left: 50%;
  bottom: -0.24em;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 340;
  font-size: clamp(6.5rem, 19vw, 16rem);
  line-height: 1;
  white-space: nowrap;
  color: rgba(247, 239, 235, 0.04);
  pointer-events: none;
}

/* ---------- Custom cursor ---------- */

@media (hover: hover) and (pointer: fine) {
  body.has-cursor,
  body.has-cursor a,
  body.has-cursor button,
  body.has-cursor label { cursor: none; }
  body.has-cursor input,
  body.has-cursor textarea,
  body.has-cursor select { cursor: auto; }
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 10000;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.35s;
}

body.cursor-visible .cursor-dot,
body.cursor-visible .cursor-ring { opacity: 1; }

.cursor-dot {
  width: 5px; height: 5px;
  background: var(--gold);
}

/* never show the custom cursor on phones/tablets */
@media (max-width: 820px), (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid var(--gold-soft);
  transition: opacity 0.35s, width 0.35s var(--ease), height 0.35s var(--ease),
              background 0.35s, border-color 0.35s;
}

body.cursor-hover .cursor-ring {
  width: 58px; height: 58px;
  background: rgba(192, 139, 137, 0.07);
  border-color: var(--gold);
}

/* ---------- QA: ?noanim final-state rendering ---------- */

.no-anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.no-anim .h1-line > span { transform: none !important; animation: none !important; }
.no-anim .marquee-track,
.no-anim .orbit-badge svg,
.no-anim .hero::before,
.no-anim .quote-band::before,
.no-anim .cue-line::after { animation: none !important; }

/* ---------- Magnetic buttons ---------- */

.btn, .nav-cta {
  transition: background 0.45s var(--ease), color 0.45s var(--ease),
              border-color 0.45s var(--ease), transform 0.3s var(--ease);
}
