/* ============================================================
   Sansiddhi Wellness — design tokens
   Palette taken from the clinic's own signage: lacquer maroon,
   struck brass, and the unbleached paper of a prescription pad.
   ============================================================ */
:root {
  --maroon: #46110f;
  --maroon-deep: #300b0a;
  --ink: #241610;
  --ink-soft: #5d4a3c;
  --brass: #a8791f;
  --brass-light: #e0b65f;
  --paper: #f7f1e3;
  --paper-2: #efe5d0;
  --vetiver: #4b5d3c;
  --line: rgba(70, 17, 15, 0.16);
  --line-strong: rgba(70, 17, 15, 0.4);
  --shell: 1140px;
  --gap: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 3px; /* almost square: the lacquered-board feel of the signage */
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.68 Spectral, Georgia, 'Times New Roman', serif;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .display { font-family: Marcellus, Georgia, serif; font-weight: 400; letter-spacing: 0.01em; line-height: 1.18; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.24rem; }
p { margin: 0 0 1.1em; max-width: 68ch; }
a { color: var(--maroon); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brass); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 60; background: var(--maroon); color: var(--paper); padding: 0.7rem 1rem; }

.wrap { width: min(100% - 2.2rem, var(--shell)); margin-inline: auto; }
.sanskrit { font-family: 'Tiro Devanagari Hindi', serif; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-block;
  font-family: Marcellus, Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 0.78rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-brass { background: linear-gradient(#e2bb6a, #b98c2c); color: #33130a; border-color: #8d6417; }
.btn-brass:hover { background: linear-gradient(#eac886, #c99a35); color: #33130a; }
.btn-maroon { background: var(--maroon); color: var(--paper); }
.btn-maroon:hover { background: var(--maroon-deep); color: var(--brass-light); }
.btn-quiet { background: transparent; color: var(--maroon); border-color: var(--line-strong); }
.btn-quiet:hover { border-color: var(--maroon); background: rgba(70, 17, 15, 0.05); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-sm { padding: 0.42rem 0.85rem; font-size: 0.9rem; }

/* ------------------------------------------------------------ masthead */
.masthead { background: var(--maroon); color: var(--paper); border-bottom: 3px solid var(--brass); position: sticky; top: 0; z-index: 40; }
.masthead-inner { display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--brass-light); text-decoration: none; margin-right: auto; }
.brand-mark { color: var(--brass-light); display: grid; place-items: center; }
.brand-name { display: block; font-family: Marcellus, serif; font-size: 1.32rem; letter-spacing: 0.09em; color: var(--paper); }
.brand-sub { display: block; font-size: 0.74rem; letter-spacing: 0.16em; color: var(--brass-light); }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--paper); text-decoration: none; font-size: 0.98rem; }
.nav a:hover, .nav a.current { color: var(--brass-light); }
.nav a.current { border-bottom: 1px solid var(--brass); }
.nav-account { padding-left: 1.4rem; border-left: 1px solid rgba(224, 182, 95, 0.35); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(224, 182, 95, 0.5); border-radius: var(--radius); width: 44px; height: 40px; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 20px; height: 1.5px; background: var(--brass-light); margin: 0 auto; position: relative; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 76px 0 auto; background: var(--maroon-deep);
    flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.1rem 1.2rem;
    border-bottom: 3px solid var(--brass); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid rgba(224, 182, 95, 0.16); }
  .nav-account { padding-left: 0; border-left: 0; }
  .nav-cta { margin-top: 0.9rem; text-align: center; }
}

/* ------------------------------------------------------------ hero */
.hero { background: radial-gradient(120% 90% at 78% 8%, #5d1a15 0%, var(--maroon) 42%, var(--maroon-deep) 100%); color: var(--paper); padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 8vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--gap); align-items: center; }
.hero h1 { color: #fdf8ec; margin-bottom: 0.4em; }
.hero-lede { font-size: clamp(1.05rem, 2vw, 1.22rem); color: #ecdcc4; }
.hero-rule { width: 92px; height: 2px; background: linear-gradient(90deg, var(--brass-light), transparent); margin: 1.6rem 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.7rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(224, 182, 95, 0.25); }
.hero-fact { font-size: 0.94rem; color: #e6d3b6; }
.hero-fact strong { display: block; font-family: Marcellus, serif; font-size: 1.5rem; color: var(--brass-light); }
.announce { background: rgba(224, 182, 95, 0.12); border-left: 3px solid var(--brass); padding: 0.7rem 1rem; margin-bottom: 1.8rem; font-size: 0.97rem; color: #f0e0c4; }

/* the dhara vessel: one deliberate piece of motion on the whole site */
.dhara { justify-self: center; }
.dhara svg { width: min(300px, 74vw); height: auto; }
.dhara .stream { stroke-dasharray: 3 9; animation: drip 1.9s linear infinite; }
@keyframes drip { to { stroke-dashoffset: -24; } }
.dhara .ripple { transform-origin: 150px 250px; animation: ripple 3.8s ease-out infinite; }
@keyframes ripple { 0% { transform: scale(0.4); opacity: 0.85; } 100% { transform: scale(1.6); opacity: 0; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .dhara { order: -1; }
  .dhara svg { width: min(210px, 52vw); }
}

/* ------------------------------------------------------------ sections */
.band { padding: clamp(3rem, 7vw, 5rem) 0; }
.band-paper2 { background: var(--paper-2); }
.band-maroon { background: var(--maroon); color: var(--paper); }
.band-maroon h2 { color: #fdf8ec; }
.section-head { max-width: 60ch; margin-bottom: 2.4rem; }
.section-head p { color: var(--ink-soft); }
.band-maroon .section-head p { color: #e2d0b6; }

/* the three stages genuinely are a sequence, so they are numbered */
.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.6rem; counter-reset: stage; }
.stage { counter-increment: stage; padding-top: 1.1rem; border-top: 2px solid var(--brass); }
.stage::before { content: counter(stage); font-family: Marcellus, serif; font-size: 0.95rem; color: var(--brass); display: block; margin-bottom: 0.45rem; }
.stage h3 { margin-bottom: 0.3em; }
.stage p { font-size: 0.98rem; color: var(--ink-soft); margin: 0; }
.band-maroon .stage p { color: #e2d0b6; }
.band-maroon .stage h3 { color: #fdf8ec; }

/* ------------------------------------------------------------ therapy cards */
.therapy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 1.2rem; }
.therapy-card {
  display: flex; flex-direction: column; background: #fffdf6;
  border: 1px solid var(--line); border-top: 3px solid var(--brass);
  padding: 1.35rem 1.35rem 1.15rem; text-decoration: none; color: inherit;
}
.therapy-card:hover { border-color: var(--line-strong); border-top-color: var(--maroon); color: inherit; }
.therapy-card h3 { margin-bottom: 0.15em; }
.therapy-card .sanskrit { color: var(--brass); font-size: 1.02rem; margin-bottom: 0.7rem; display: block; }
.therapy-card p { font-size: 0.97rem; color: var(--ink-soft); flex: 1; margin-bottom: 1rem; }
.therapy-meta { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dotted var(--line-strong); padding-top: 0.7rem; font-size: 0.92rem; }
.therapy-meta .price { font-family: Marcellus, serif; font-size: 1.12rem; }
.tag { display: inline-block; font-size: 0.76rem; letter-spacing: 0.1em; color: var(--vetiver); border: 1px solid rgba(75, 93, 60, 0.4); padding: 0.12rem 0.5rem; border-radius: 999px; }

/* ------------------------------------------------------------ monograph (therapy detail) */
.monograph { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.monograph h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.spec { position: sticky; top: 100px; background: #fffdf6; border: 1px solid var(--line); padding: 1.4rem; }
.spec dl { display: grid; grid-template-columns: auto 1fr; gap: 0.45rem 1rem; margin: 0 0 1.2rem; font-size: 0.97rem; }
.spec dt { color: var(--ink-soft); }
.spec dd { margin: 0; text-align: right; font-family: Marcellus, serif; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.checklist li { padding-left: 1.5rem; position: relative; margin-bottom: 0.5rem; }
.checklist li::before { content: '·'; position: absolute; left: 0.4rem; font-size: 1.6rem; line-height: 1; color: var(--brass); }
.caution { background: #fbf3ea; border-left: 3px solid #a6432c; padding: 1.1rem 1.2rem; margin: 1.4rem 0; }
.caution h3 { color: #8c3521; font-size: 1.05rem; margin-bottom: 0.5em; }
.caution ul { margin: 0; padding-left: 1.1rem; }
.caution li { margin-bottom: 0.35rem; }
@media (max-width: 880px) { .monograph { grid-template-columns: 1fr; } .spec { position: static; } }

/* ------------------------------------------------------------ forms */
.form-grid { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.92rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 0.72rem 0.85rem; background: #fffdf6;
  border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--ink); width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); outline: 2px solid rgba(168, 121, 31, 0.25); outline-offset: 0; }
.field .hint { font-size: 0.85rem; color: var(--ink-soft); }
.field .err { font-size: 0.87rem; color: #a6432c; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.checkbox { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.checkbox input { width: auto; margin-top: 0.25rem; }
.honeypot { position: absolute; left: -9999px; }
.form-note { font-size: 0.9rem; color: var(--ink-soft); }
.notice { padding: 0.85rem 1rem; border-radius: var(--radius); margin-bottom: 1.2rem; font-size: 0.96rem; }
.notice-ok { background: #eef3e8; border-left: 3px solid var(--vetiver); }
.notice-err { background: #fbeeea; border-left: 3px solid #a6432c; }
.auth-card { max-width: 440px; margin: clamp(2rem, 6vw, 4rem) auto; background: #fffdf6; border: 1px solid var(--line); border-top: 3px solid var(--brass); padding: clamp(1.5rem, 4vw, 2.4rem); }

/* ------------------------------------------------------------ booking flow */
.booking { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(1.5rem, 4vw, 2.6rem); align-items: start; }
.step { border-top: 2px solid var(--brass); padding-top: 1rem; margin-bottom: 2.2rem; }
.step-label { font-family: Marcellus, serif; color: var(--brass); font-size: 0.95rem; margin-bottom: 0.4rem; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.7rem; }
.pick {
  text-align: left; background: #fffdf6; border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 0.85rem 1rem; cursor: pointer; font: inherit; font-size: 0.97rem;
}
.pick:hover { border-color: var(--maroon); }
.pick[aria-pressed='true'] { background: var(--maroon); color: var(--paper); border-color: var(--maroon); }
.pick strong { display: block; font-family: Marcellus, serif; font-size: 1.05rem; }
.pick span { font-size: 0.87rem; opacity: 0.8; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 0.55rem; }
.slot { text-align: center; padding: 0.65rem 0.4rem; }
.date-strip { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: thin; }
.date-chip { flex: 0 0 auto; min-width: 72px; text-align: center; padding: 0.55rem 0.5rem; }
.date-chip small { display: block; font-size: 0.78rem; opacity: 0.75; }
.date-chip[disabled] { opacity: 0.35; }
.summary { position: sticky; top: 100px; background: var(--maroon); color: var(--paper); padding: 1.5rem; }
.summary h3 { color: var(--brass-light); }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; font-size: 0.96rem; margin: 0 0 1.2rem; }
.summary dt { color: #d9c3a3; }
.summary dd { margin: 0; text-align: right; }
.summary .total { border-top: 1px solid rgba(224, 182, 95, 0.35); padding-top: 0.8rem; font-family: Marcellus, serif; font-size: 1.3rem; color: var(--brass-light); }
@media (max-width: 900px) { .booking { grid-template-columns: 1fr; } .summary { position: static; } }

/* ------------------------------------------------------------ testimonials, journal */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.quote { border-left: 2px solid var(--brass); padding-left: 1.1rem; }
.quote p { font-style: italic; margin-bottom: 0.6rem; }
.quote cite { font-style: normal; font-size: 0.9rem; color: var(--ink-soft); }
.band-maroon .quote cite { color: #d9c3a3; }
.stars { color: var(--brass); letter-spacing: 0.15em; font-size: 0.95rem; }
.entries { display: grid; gap: 1.4rem; }
.entry { border-bottom: 1px solid var(--line); padding-bottom: 1.3rem; }
.entry h3 { margin-bottom: 0.25em; }
.entry a { text-decoration: none; }
.entry p { color: var(--ink-soft); margin-bottom: 0.4rem; }
.entry time { font-size: 0.87rem; color: var(--ink-soft); }
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.2em; }

/* ------------------------------------------------------------ tables and account */
.table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.table th { text-align: left; font-family: Marcellus, serif; font-weight: 400; border-bottom: 2px solid var(--brass); padding: 0.6rem 0.7rem; }
.table td { border-bottom: 1px solid var(--line); padding: 0.7rem; vertical-align: top; }
.table tr:hover td { background: rgba(224, 182, 95, 0.08); }
.pill { display: inline-block; font-size: 0.78rem; letter-spacing: 0.06em; padding: 0.16rem 0.55rem; border-radius: 999px; border: 1px solid currentColor; }
.pill-pending { color: #8a6a12; }
.pill-confirmed { color: var(--vetiver); }
.pill-completed { color: #3f6b8a; }
.pill-cancelled, .pill-no_show { color: #a6432c; }
.pill-arrived { color: var(--maroon); }
.card { background: #fffdf6; border: 1px solid var(--line); padding: 1.3rem; }
.card + .card { margin-top: 1.1rem; }
.stack { display: grid; gap: 1.1rem; }
.split { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: baseline; }
.muted { color: var(--ink-soft); }
.tabs { display: flex; gap: 1.2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; }
.tabs a { padding: 0.6rem 0; text-decoration: none; border-bottom: 2px solid transparent; }
.tabs a.current { border-bottom-color: var(--brass); }

/* ------------------------------------------------------------ contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3rem); }
.map-frame { border: 1px solid var(--line); min-height: 320px; width: 100%; }
@media (max-width: 820px) { .contact-grid, .field-row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ footer */
.footer { background: var(--maroon-deep); color: #e3d2b8; padding: clamp(2.4rem, 6vw, 3.6rem) 0 1.4rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer a { color: var(--brass-light); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-name { font-family: Marcellus, serif; font-size: 1.25rem; color: var(--paper); margin-bottom: 0.5rem; }
.footer-head { font-family: Marcellus, serif; color: var(--brass-light); margin-bottom: 0.5rem; }
.footer-line { font-size: 0.94rem; line-height: 1.6; margin-bottom: 0.7rem; }
.footer-links { list-style: none; padding: 0; margin: 0; font-size: 0.94rem; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-base { border-top: 1px solid rgba(224, 182, 95, 0.2); margin-top: 2.2rem; padding-top: 1.2rem; }
.footer-base p { font-size: 0.83rem; color: #b39d80; max-width: none; margin: 0; }

.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 45;
  width: 52px; height: 52px; display: grid; place-items: center;
  background: #1f7a4d; color: #fff; border-radius: 50%; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.wa-float:hover { background: #196340; color: #fff; }

body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
