/* Dr. Shruti Dhamija — Medihomeo
   Editorial, doctor-first. Warm ivory paper, botanical green, hairline rules,
   sharp corners. Fraunces (display) + Inter (body). */

:root {
  --paper: #F7F3EA;
  --paper-deep: #EFE9DB;
  --ink: #20261F;
  --ink-soft: #5A6157;
  --green: #2F5233;
  --green-deep: #24412A;
  --rule: rgba(32, 38, 31, 0.16);
  --rule-soft: rgba(32, 38, 31, 0.09);
  --shell: 1100px;
  --pad: clamp(20px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

h1, h2, h3, .wordmark, .footer-name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.wordmark {
  font-size: 19px;
  line-height: 1.15;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
}

.wordmark-sub {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2px;
}

.topnav { display: flex; gap: 24px; }

.topnav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.topnav a:hover { color: var(--ink); }

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

.btn {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 24px;
  border: 1px solid var(--green);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.btn-solid { background: var(--green); color: #FDFBF5; }
.btn-solid:hover { background: var(--green-deep); border-color: var(--green-deep); }

.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(32, 38, 31, 0.4); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-small { padding: 9px 16px; font-size: 13.5px; }

/* ---------- hero ---------- */

.hero { padding: clamp(56px, 8vw, 96px) 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 72px);
  margin-bottom: clamp(48px, 7vw, 80px);
}

.hero-portrait { max-width: 440px; }

.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  padding: 10px;
  background: #FDFBF5;
}

.hero-portrait figcaption {
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin-top: 10px;
}

.eyebrow {
  text-wrap: balance;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(52px, 9.5vw, 104px);
  font-weight: 560;
  font-variation-settings: "opsz" 100;
  margin-bottom: 26px;
  text-wrap: balance;
}

.hero-sub {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 34px;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.stat {
  padding: 26px 20px 26px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat + .stat { border-left: 1px solid var(--rule-soft); padding-left: 24px; }

.stat-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--green);
}

.stat-label {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* Wide viewports: portrait sits beside the name; stats run as a strip below. */
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr minmax(320px, 400px); align-items: center; }
}

/* ---------- sections ---------- */

.section { padding: clamp(64px, 9vw, 110px) 0 0; }
.section > .shell { border-top: 1px solid var(--rule); padding-top: clamp(36px, 5vw, 56px); }

.section-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 28px;
}

.section h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  max-width: 640px;
  margin-bottom: clamp(28px, 4vw, 44px);
  text-wrap: balance;
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 300px);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}

.botanical img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;   /* melts the plate's white ground into the paper */
}

.botanical figcaption {
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  line-height: 1.6;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--rule-soft);
}

.about-copy p { color: var(--ink-soft); max-width: 58ch; }
.about-copy p + p { margin-top: 18px; }
.about-copy h2 { margin-bottom: 22px; }

.credentials {
  list-style: none;
  margin-top: 34px;
  border-top: 1px solid var(--rule);
}

.credentials li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14.5px;
}

.credentials li span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 2px;
}

.credentials li strong { font-weight: 500; }

/* ---------- conditions ---------- */

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.condition {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px 20px 26px;
  background: transparent;
  transition: background .15s ease;
}
.condition:hover { background: rgba(47, 82, 51, 0.045); }

.condition h3 { font-size: 19px; margin-bottom: 8px; }
.condition p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

.footnote {
  margin-top: 26px;
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- approach ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}

.step-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 44px;
  font-style: italic;
  color: var(--green);
  display: block;
  margin-bottom: 14px;
}

.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

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

.section-band {
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-bottom: clamp(56px, 8vw, 88px);
}
.section-band > .shell { border-top: none; }

.quotes {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 4vw, 56px) clamp(32px, 5vw, 64px);
}

.quotes blockquote:first-child {
  grid-row: 1 / 3;
  align-self: center;
  padding-right: clamp(0px, 2vw, 24px);
}

.quotes blockquote:first-child p {
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.35;
}

.quotes blockquote p {
  font-family: "Fraunces", Georgia, serif;
  font-size: 19.5px;
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 14px;
}

.quotes cite {
  font-style: normal;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* ---------- faq ---------- */

.faq { max-width: 720px; border-top: 1px solid var(--rule); }

.faq details { border-bottom: 1px solid var(--rule); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 36px 18px 0;
  font-weight: 500;
  font-size: 16.5px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  color: var(--green);
}
.faq details[open] summary::after { content: "–"; }

.faq details p {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- visit ---------- */

.section-visit { padding-bottom: clamp(72px, 10vw, 120px); }

.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}

.visit-block h3 {
  font-size: 13px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.visit-block p { font-size: 15px; color: var(--ink-soft); }
.visit-block p + p { margin-top: 12px; }

.hours { border-collapse: collapse; width: 100%; }
.hours td {
  padding: 10px 18px 10px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 15px;
  color: var(--ink-soft);
  vertical-align: top;
}
.hours td:first-child { font-weight: 500; color: var(--ink); white-space: nowrap; }

.visit-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.visit-ctas .btn { text-align: center; }

.map-embed {
  position: relative;
  display: block;
  margin-top: clamp(32px, 5vw, 48px);
  border: 1px solid var(--rule);
}

.map-embed img {
  display: block;
  width: 100%;
  height: auto;
}

.map-open {
  position: absolute;
  right: 14px;
  top: 14px;
  background: var(--green);
  color: #FDFBF5;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
}
.map-embed:hover .map-open { background: var(--green-deep); }

.text-link { color: var(--green); font-weight: 500; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.todo-slot {
  font-style: normal;
  border-bottom: 1px dashed var(--rule);
  color: var(--ink-soft);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--rule);
  background: var(--paper-deep);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 48px;
  flex-wrap: wrap;
}

.footer-name { font-size: 22px; }
.footer-sub { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }

.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.footer-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--ink); }

.footer-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  max-width: 480px;
  line-height: 1.7;
}

/* ---------- reveal animation ----------
   Content is visible by default. site.js adds .js-anim to <html> only when
   IntersectionObserver is usable, so the hidden starting state never applies
   without the script that undoes it (no-JS, JS error, ancient browser). */

.js-anim .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.js-anim .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .conditions-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .quotes, .visit-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .topnav { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .botanical { max-width: 300px; }

  .steps, .visit-grid { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .quotes blockquote:first-child { grid-row: auto; padding-right: 0; }
  .map-embed img { height: 240px; object-fit: cover; object-position: center; }

  .hero-stats { grid-template-columns: 1fr; border-bottom: none; }
  .stat { border-bottom: 1px solid var(--rule-soft); padding: 18px 0; }
  .stat + .stat { border-left: none; padding-left: 0; }

  .credentials li { grid-template-columns: 110px 1fr; }
}

@media (max-width: 460px) {
  .conditions-grid { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; text-align: center; }

  .topbar-inner { gap: 12px; height: auto; min-height: 56px; }
  .wordmark { font-size: 16px; }
  .btn-small { padding: 8px 12px; font-size: 12.5px; }
}

@media (max-width: 360px) {
  .wordmark { font-size: 15px; }
  .btn-small { padding: 7px 10px; font-size: 12px; }
}
