/* ===========================================================================
 * Siyara brand tokens.
 *
 * Theme is intentionally bold + high-energy, in the spirit of Orangetheory:
 *   - signal orange as the primary action / accent
 *   - near-black ink for type and dramatic backgrounds
 *   - off-white surface so orange + black pop
 *   - serif display type (EB Garamond en; Anek Condensed te/hi)
 *   - Inter body (en)
 *   - tight tracking, all-caps eyebrows, big hero type
 * Adjust these values to retheme the whole site at once.
 * =========================================================================*/

:root {
  /* Primary = signal orange. */
  --siyara-orange: #f26122;
  --siyara-orange-deep: #d54f15;
  --siyara-orange-soft: #ffe0d1;

  /* Champagne gold (logo lockup) — emphasis on dark photo backgrounds. */
  --siyara-gold: #e8c9a0;
  --siyara-gold-bright: #f2ddb8;

  /* Surfaces. */
  --siyara-ink: #0d0d0d;          /* near-black */
  --siyara-charcoal: #1a1a1a;     /* dark sections */
  --siyara-graphite: #2a2a2a;
  --siyara-bone: #f7f3ee;         /* warm off-white */
  --siyara-cream: #fbf8f3;
  --siyara-line: #e6e1d8;
  --siyara-muted: #6b6b6b;

  /* Wellness accent (yoga / meditation / recovery side of the brand). */
  --siyara-sage: #6b8e6e;
  --siyara-sage-deep: #4f7553;

  /* Aliases for legacy templates (so existing pages don't break). */
  --siyara-sand: var(--siyara-bone);

  /* Indic stacks (also used on lang pills when the page is English). */
  --font-display-te: 'Anek Telugu', 'Noto Sans Telugu', sans-serif;
  --font-display-hi: 'Anek Devanagari', 'Noto Sans Devanagari', sans-serif;
  --font-body-te: 'Noto Sans Telugu', 'Inter', system-ui, sans-serif;
  --font-body-hi: 'Noto Sans Devanagari', 'Inter', system-ui, sans-serif;
  --font-display-en: 'EB Garamond', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body-en: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html[lang="te"] {
  --font-display: var(--font-display-te);
  --font-body: var(--font-body-te);
}

html[lang="hi"] {
  --font-display: var(--font-display-hi);
  --font-body: var(--font-body-hi);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--siyara-bone);
  color: var(--siyara-ink);
  font-family: var(--font-body-en);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Global keyboard focus ring (a11y) ----
   :focus-visible only fires for keyboard / programmatic focus, never plain
   mouse clicks — so this gives links, buttons (.btn-primary/.btn-secondary/
   .btn-logout, which otherwise have no ring) and other controls a visible
   orange ring for keyboard users without altering the look on click. Inputs
   that suppress the default outline get their own :focus-visible counterparts
   alongside each `outline: none` rule below. */
:focus-visible {
  outline: 2px solid var(--siyara-orange);
  outline-offset: 2px;
}

/* Per-language font stacks. The body uses Noto Sans Telugu / Devanagari first
   for the matching language so Telugu and Hindi text get hinted Indic glyphs;
   Latin characters in the same body still fall through to Inter. The
   `inline` `lang="..."` attribute on the language picker pills (nav.html)
   forces native-name rendering ("తెలుగు", "हिन्दी") regardless of the page lang. */
html[lang="te"] body {
  font-family: var(--font-body);
}

html[lang="hi"] body {
  font-family: var(--font-body);
}

[lang="te"] {
  font-family: var(--font-display-te);
}

[lang="hi"] {
  font-family: var(--font-display-hi);
}

/* ---- Site header: consistent bold nav across en / te / hi ---- */

/* Logo lockup — transparent PNG; dark ink reads on frosted header. */
.site-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
  line-height: 0;
}

.site-logo-img {
  display: block;
  /* 80% of prior clamp(40px, 5.8vw, 52px) */
  height: clamp(32px, 4.64vw, 42px);
  width: auto;
  max-width: min(320px, 72vw);
  object-fit: contain;
  object-position: left center;
}

/* Staff / light pages: charcoal lockup (logo-dark) */
.site-logo-img--on-light {
  display: block;
}

.site-logo-img--on-dark {
  display: none;
}

/* Public site: orange lockup only — no backdrop box (shows through bad PNG alpha) */
body.public-site .site-logo-img--on-light {
  display: none !important;
}

body.public-site .site-logo-img--on-dark {
  display: block !important;
  /* 80% of prior clamp(44px, 6.5vw, 56px) */
  height: clamp(35px, 5.2vw, 45px);
  width: auto;
  max-width: min(280px, 52vw);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
}

@media (max-width: 1023px) {
  body.public-site .site-logo-img--on-dark {
    /* 80% of prior clamp(40px, 9vw, 50px) */
    height: clamp(32px, 7.2vw, 40px);
    max-width: min(240px, 58vw);
  }
}

/* Hero lede — gold emphasis for practice names on dark scenes */
body.public-site .hero-lede strong {
  color: var(--siyara-gold-bright);
  font-weight: 700;
}

body.public-site .site-header > div {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}


/* Nav tabs — Inter bold caps. */
.site-header .site-nav-link {
  font-family: var(--font-body-en);
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.2s ease;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] .site-header .site-nav-link {
  font-family: var(--font-body-en);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html[lang="te"] .site-header .site-nav-link,
html[lang="hi"] .site-header .site-nav-link {
  font-family: var(--font-body-en);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

@media (max-width: 1023px) {
  html[lang="en"] .site-header [data-nav-menu] .site-nav-link {
    font-size: 0.875rem;
  }
  html[lang="te"] .site-header [data-nav-menu] .site-nav-link,
  html[lang="hi"] .site-header [data-nav-menu] .site-nav-link {
    font-size: 1rem;
  }
}

.site-header .site-nav-meta {
  font-weight: 600;
  line-height: 1.35;
  color: var(--siyara-muted);
  transition: color 0.2s ease;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] .site-header .site-nav-meta,
html[lang="te"] .site-header .site-nav-meta,
html[lang="hi"] .site-header .site-nav-meta {
  font-family: var(--font-body-en);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

html[lang="te"] .site-header .site-nav-meta,
html[lang="hi"] .site-header .site-nav-meta {
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: 0.6875rem;
}

.site-header .site-nav-meta:hover {
  color: var(--siyara-orange);
}

/* Member login / My account — highlighted pill (distinct from nav tabs and Book CTA). */
.site-nav-member {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  border: 2px solid var(--siyara-gold);
  background: rgba(199, 165, 106, 0.14);
  color: #8a6b2e;
  font-family: var(--font-body-en);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 1px rgba(199, 165, 106, 0.2);
  -webkit-font-smoothing: antialiased;
}

.site-nav-member:hover {
  background: var(--siyara-gold);
  border-color: var(--siyara-gold);
  color: var(--siyara-ink);
  box-shadow: 0 4px 14px rgba(199, 165, 106, 0.35);
}

html[lang="te"] .site-nav-member,
html[lang="hi"] .site-nav-member {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.75rem;
}

.site-nav-member--mobile {
  min-height: 2.75rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.75rem;
}

html[lang="te"] .site-nav-member--mobile,
html[lang="hi"] .site-nav-member--mobile {
  font-size: 0.875rem;
}

/* Brand-anchored picker: pills sit immediately after the logo at every
   breakpoint so the language switcher is never buried inside the
   hamburger. On phones we drop the divider and shrink padding/pills so
   the group fits between the logo and the hamburger; on tablets and up a
   thin divider tethers them to the lockup. */
.site-header .site-lang-picker--brand {
  padding-left: 0;
  margin-left: 0;
  border-left: 0;
}

@media (min-width: 768px) {
  .site-header .site-lang-picker--brand {
    padding-left: 0.875rem;
    margin-left: 0.25rem;
    border-left: 1px solid color-mix(in srgb, var(--siyara-muted) 35%, transparent);
  }

  body.public-site .site-header .site-lang-picker--brand {
    border-left-color: rgba(255, 255, 255, 0.22);
  }
}

/* Sub-`md` shrink: 3 pills + logo + hamburger have to fit on a 360 px
   phone, so the pill chrome contracts a touch (still WCAG 2.5.5 ≥ 24×24
   target via the underlying min-height). */
@media (max-width: 767px) {
  .site-header .site-lang-picker--brand .lang-pill {
    padding: 0.15rem 0.5rem;
    min-height: 1.625rem;
    font-size: 0.5625rem;
    letter-spacing: 0.1em;
  }
  .site-header .site-lang-picker--brand .lang-pill[lang="te"],
  .site-header .site-lang-picker--brand .lang-pill[lang="hi"] {
    font-size: 0.6875rem;
    letter-spacing: 0.02em;
  }
}

/* Language pills — same chrome for English, Telugu, and Hindi labels. */
.site-header .lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--siyara-muted);
  font-family: var(--font-body-en);
  font-weight: 700;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease, background 0.2s ease;
  -webkit-font-smoothing: antialiased;
}

.site-header .lang-pill[lang="te"],
.site-header .lang-pill[lang="hi"] {
  font-family: var(--font-body-te);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.site-header .lang-pill[lang="hi"] {
  font-family: var(--font-body-hi);
}

.site-header .lang-pill--mobile {
  min-height: 2.5rem;
  padding: 0.35rem 0.85rem;
}

.site-header .lang-pill--mobile[lang="en"] {
  font-size: 0.6875rem;
}

.site-header .lang-pill--mobile[lang="te"],
.site-header .lang-pill--mobile[lang="hi"] {
  font-size: 0.8125rem;
}

.site-header .lang-pill:hover {
  color: var(--siyara-orange);
  border-color: var(--siyara-orange-soft);
}

.site-header .lang-pill--active,
.site-header .lang-pill[aria-current="true"] {
  background: var(--siyara-ink);
  border-color: var(--siyara-ink);
  color: #fff;
}

.site-header .lang-pill--active:hover,
.site-header .lang-pill[aria-current="true"]:hover {
  color: #fff;
}

/* Indic pages: Anek Condensed for display/UI (Anton-like), Noto Sans for body copy. */
html[lang="te"] {
  font-size: 96%;
}
html[lang="te"] body {
  line-height: 1.6;
}

html[lang="hi"] {
  font-size: 97%;
}
html[lang="hi"] body {
  line-height: 1.58;
}

/* Display headings — condensed extrabold, tight lines (mirrors Anton on English). */
html[lang="te"] .display-font,
html[lang="te"] .hero-headline,
html[lang="te"] h1,
html[lang="te"] h2,
html[lang="te"] h3,
html[lang="hi"] .display-font,
html[lang="hi"] .hero-headline,
html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: condensed;
  font-variation-settings: "wdth" 75, "wght" 800;
  letter-spacing: -0.015em;
  text-transform: none;
  line-height: 0.98 !important;
}

html[lang="te"] .hero-headline,
html[lang="hi"] .hero-headline {
  font-size: clamp(2.35rem, 6.8vw, 5.1rem) !important;
}

/* UI chrome — condensed bold (mirrors Inter bold caps on English). */
html[lang="te"] .eyebrow,
html[lang="hi"] .eyebrow,
html[lang="te"] .tag-pill,
html[lang="hi"] .tag-pill,
html[lang="te"] .condition-group-title,
html[lang="hi"] .condition-group-title,
html[lang="te"] .btn-primary,
html[lang="te"] .btn-secondary,
html[lang="te"] .btn-secondary-light,
html[lang="hi"] .btn-primary,
html[lang="hi"] .btn-secondary,
html[lang="hi"] .btn-secondary-light,
html[lang="te"] .disclosure__summary,
html[lang="hi"] .disclosure__summary,
html[lang="te"] .wellness-card-book,
html[lang="hi"] .wellness-card-book {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: condensed;
  font-variation-settings: "wdth" 75, "wght" 700;
  text-transform: none;
}

/* Display headings — EB Garamond (classic Garamond cut for a touch more elegance). */
.display-font,
h1.display-font,
h2.display-font,
.hero-headline {
  font-family: var(--font-display-en);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.05;
}

h1, h2, h3 {
  font-family: var(--font-display-en);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Eyebrow / kicker. */
.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--siyara-orange);
}
.eyebrow-light { color: var(--siyara-orange-soft); }

html[lang="te"] .eyebrow,
html[lang="hi"] .eyebrow {
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

html[lang="te"] .tag-pill,
html[lang="hi"] .tag-pill {
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}

html[lang="te"] .condition-group-title,
html[lang="hi"] .condition-group-title {
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

html[lang="te"] .condition-group-item,
html[lang="hi"] .condition-group-item {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.55;
}

html[lang="te"] .wellness-program-tagline,
html[lang="hi"] .wellness-program-tagline {
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}

html[lang="te"] .wellness-program-desc,
html[lang="hi"] .wellness-program-desc {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
}

html[lang="te"] .btn-primary,
html[lang="te"] .btn-secondary,
html[lang="te"] .btn-secondary-light,
html[lang="hi"] .btn-primary,
html[lang="hi"] .btn-secondary,
html[lang="hi"] .btn-secondary-light {
  letter-spacing: 0.03em;
  font-size: 0.85rem;
}

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

/* White CTA on the orange wellness card (home page). */
.wellness-card-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
  padding: 0.625rem 1rem;
  border-radius: 9999px;
  background-color: white;
  color: var(--siyara-orange);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.wellness-card-book:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(13, 13, 13, 0.12);
}

html[lang="te"] .wellness-card-book,
html[lang="hi"] .wellness-card-book {
  letter-spacing: 0.03em;
  font-size: 0.85rem;
}

.btn-primary {
  background-color: var(--siyara-orange);
  color: white;
  padding: 0.85rem 1.6rem;
  min-height: 44px;
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
  box-shadow: 0 6px 18px rgba(242, 97, 34, 0.28);
}
.btn-primary:hover {
  background-color: var(--siyara-orange-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(242, 97, 34, 0.36);
}
.btn-primary:active { transform: translateY(0); }

/* Champagne-gold action (e.g. the staff "Evaluations" link on the patient
   chart). Flat fill, no glow — distinct from the orange primary CTA. */
.btn-gold {
  background-color: #c9a14a;
  color: #fff;
  box-shadow: none;
}
.btn-gold:hover {
  background-color: #b88f3c;
}

.btn-secondary {
  border: 2px solid var(--siyara-ink);
  color: var(--siyara-ink);
  padding: calc(0.85rem - 2px) calc(1.6rem - 2px);
  min-height: 44px;
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 150ms ease;
  background-color: transparent;
}
.btn-secondary:hover {
  background-color: var(--siyara-ink);
  color: white;
}

/* Destructive action (e.g. admin deleting a published review). */
.btn-danger {
  border: 2px solid #dc2626;
  color: #dc2626;
  padding: calc(0.85rem - 2px) calc(1.6rem - 2px);
  min-height: 44px;
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 150ms ease;
  background-color: transparent;
  cursor: pointer;
}
.btn-danger:hover {
  background-color: #dc2626;
  color: white;
}

/* Inline SVG wellness trend chart (server-rendered, no JS charting lib). */
.metric-chart {
  display: block;
  width: 100%;
  height: 60px;
}

/* Rendered Siyara-assessment markdown (## sections + bullets). */
.siyara-assessment h2 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--siyara-orange);
  margin: 1rem 0 0.4rem;
}
.siyara-assessment h2:first-child { margin-top: 0; }
.siyara-assessment ul { list-style: disc; padding-left: 1.2rem; margin: 0.25rem 0; }
.siyara-assessment li { margin: 0.2rem 0; }
.siyara-assessment p { margin: 0.4rem 0; }

/* On dark backgrounds. */
.btn-secondary-light {
  border: 2px solid white;
  color: white;
  padding: calc(0.85rem - 2px) calc(1.6rem - 2px);
  min-height: 44px;
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 150ms ease;
  background-color: transparent;
}
.btn-secondary-light:hover {
  background-color: white;
  color: var(--siyara-ink);
}

.btn-ghost {
  color: var(--siyara-ink);
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 150ms ease;
}
.btn-ghost:hover { color: var(--siyara-orange); }

/* Log out — visible on dark member portal header and staff sidebar. */
.btn-logout {
  border: 2px solid var(--siyara-orange);
  color: #fff;
  background: rgba(242, 97, 34, 0.35);
  padding: calc(0.55rem - 2px) calc(1.1rem - 2px);
  min-height: 40px;
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
  box-shadow: 0 2px 12px rgba(242, 97, 34, 0.35);
}
.btn-logout:hover {
  background: var(--siyara-orange);
  border-color: var(--siyara-orange-deep);
  color: #fff;
  box-shadow: 0 4px 16px rgba(242, 97, 34, 0.45);
}

/* ---- Cards ---- */

.card {
  background-color: white;
  border: 1px solid var(--siyara-line);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(13, 13, 13, 0.08);
}

.card-dark {
  background-color: var(--siyara-charcoal);
  color: white;
  border: 1px solid var(--siyara-graphite);
  border-radius: 1rem;
  padding: 1.75rem;
}

.card-orange {
  background-color: var(--siyara-orange);
  color: white;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 12px 32px rgba(242, 97, 34, 0.25);
}

/* ---- Section helpers ---- */

.section-divider {
  height: 1px;
  background-color: var(--siyara-line);
}

.divider {
  height: 1px;
  background-color: var(--siyara-line);
}

/* Diagonal/angled section accent — used as a thin stripe between sections. */
.stripe-orange {
  background: linear-gradient(90deg, var(--siyara-orange), var(--siyara-orange-deep));
  height: 6px;
  width: 100%;
}

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

.hero-bg {
  background:
    radial-gradient(80% 60% at 80% 0%, rgba(242, 97, 34, 0.18) 0%, transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(13, 13, 13, 0.06) 0%, transparent 60%),
    var(--siyara-bone);
}

.hero-dark {
  background:
    radial-gradient(70% 80% at 90% 10%, rgba(242, 97, 34, 0.30) 0%, transparent 55%),
    var(--siyara-ink);
  color: white;
}

/* ---- Hero entrance animation (home page) ---- */

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroKenBurns {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1);
  }
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes heroGlowPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.92;
  }
}

.hero-animated {
  animation: heroGlowPulse 8s ease-in-out infinite;
}

.hero-animated__item {
  opacity: 0;
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-animated__item--d1 { animation-delay: 0.05s; }
.hero-animated__item--d2 { animation-delay: 0.15s; }
.hero-animated__item--d3 { animation-delay: 0.25s; }
.hero-animated__item--d4 { animation-delay: 0.35s; }
.hero-animated__item--d5 { animation-delay: 0.45s; }
.hero-animated__item--d6 { animation-delay: 0.55s; }
.hero-animated__item--d7 { animation-delay: 0.65s; }

.hero-animated__media {
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.hero-animated__media img {
  animation: heroKenBurns 12s ease-out forwards;
}

.hero-animated__float {
  opacity: 0;
  animation-name: heroFadeUp, heroFloat;
  animation-duration: 0.7s, 5s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1), ease-in-out;
  animation-fill-mode: forwards, none;
  animation-iteration-count: 1, infinite;
}

.hero-animated__float--d8 {
  animation-delay: 0.75s, 1.45s;
}

.hero-animated__float--d9 {
  animation-delay: 0.9s, 1.6s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-animated {
    animation: none;
  }
  .hero-animated__item,
  .hero-animated__media,
  .hero-animated__float {
    opacity: 1;
    animation: none;
    transform: none;
  }
  .hero-animated__media img {
    animation: none;
    transform: none;
  }
}

/* ---- Public cinematic site (glass header + 2 full-screen panels) ---- */

body.public-site {
  height: 100dvh;
  height: 100vh;
  overflow: hidden;
  background-color: var(--siyara-ink);
}

body.public-site main {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding-top: 0;
}

body.public-site .site-footer {
  display: none;
}

body.public-site .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(13, 13, 13, 0.48);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.public-site .site-coming-soon {
  position: relative;
  z-index: 51;
  background: rgba(13, 13, 13, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

body.public-site .site-header .site-nav-link {
  color: rgba(255, 255, 255, 0.92);
}

body.public-site .site-header .site-nav-link:hover {
  color: var(--siyara-orange);
}

body.public-site .site-header .site-nav-meta {
  color: rgba(255, 255, 255, 0.5);
}

body.public-site .site-header .site-nav-meta:hover {
  color: var(--siyara-orange);
}

body.public-site .site-header .site-nav-member {
  border-color: var(--siyara-gold-bright);
  background: rgba(227, 193, 120, 0.16);
  color: var(--siyara-gold-bright);
  box-shadow: 0 0 0 1px rgba(227, 193, 120, 0.25);
}

body.public-site .site-header .site-nav-member:hover {
  background: var(--siyara-gold-bright);
  border-color: var(--siyara-gold-bright);
  color: var(--siyara-ink);
  box-shadow: 0 4px 16px rgba(227, 193, 120, 0.4);
}

body.public-site .site-header .lang-pill:not(.lang-pill--active):not([aria-current="true"]) {
  color: rgba(255, 255, 255, 0.55);
}

body.public-site .site-header .lang-pill--active,
body.public-site .site-header .lang-pill[aria-current="true"] {
  background: rgba(255, 255, 255, 0.95);
  color: var(--siyara-ink);
}

body.public-site .site-header__toggle {
  color: rgba(255, 255, 255, 0.92);
}

body.public-site .site-header__menu {
  background: rgba(13, 13, 13, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.public-site .site-header__menu .site-nav-link,
body.public-site .site-header__menu .site-nav-meta {
  color: rgba(255, 255, 255, 0.92);
}

body.public-site .site-header__menu .site-nav-meta {
  color: rgba(255, 255, 255, 0.55);
}

/* Single-panel pages (wellness classes list, contact, team, services). The
   scene grows with its content (bookings form, leadership carousel, expanded
   <details> panels) and the page-stack scrolls inside. We pin the background
   image + scrim to ``position: fixed`` so neither resizes when content reflows
   — without this, opening a collapsible or activating a leadership card
   would re-scale the cover image as ``.page-scene`` gets taller. */
body.public-site .page-scene--scrollable {
  min-height: 100dvh;
  justify-content: flex-start;
}

body.public-site .page-scene--scrollable > .page-scene__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body.public-site .page-scene--scrollable > .page-scene__bg .page-scene__bg-img {
  width: 100%;
  height: 100%;
}

body.public-site .page-scene--scrollable > .page-scene__scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

body.public-site .page-scene--scrollable .page-scene__content {
  min-height: calc(100dvh - 5.5rem);
  padding-top: 5.5rem;
  padding-bottom: 0;
}

body.public-site .page-scene--scrollable .page-scene__scroll {
  max-height: none;
  overflow-y: auto;
  padding-bottom: 2rem;
}

.wellness-classes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wellness-class-card {
  display: grid;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .wellness-class-card {
    grid-template-columns: 1fr auto;
    gap: 1.25rem;
  }
}

.wellness-class-card__cta {
  min-width: 11rem;
}

.physio-page-section {
  padding: 1.25rem 1.5rem;
}

@media (min-width: 640px) {
  .physio-page-section {
    padding: 1.5rem 1.75rem;
  }
}

/* Native <details>-based collapsible used for "Treatment techniques" and
   "Conditions we treat" on /services. Keeps the glass-card chrome; just
   makes the header a clickable summary with a +/− toggle. */
.physio-collapsible > summary.physio-collapsible__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.physio-collapsible > summary.physio-collapsible__summary::-webkit-details-marker {
  display: none;
}

.physio-collapsible__toggle {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--siyara-orange);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  transition: transform 180ms ease;
}

.physio-collapsible[open] .physio-collapsible__toggle {
  transform: rotate(45deg);
}

.physio-collapsible[open] .physio-collapsible__panel {
  margin-top: 0.75rem;
}

/* ----- /team Leadership carousel (Altana-style row) -----------------------
   One card is "active" at any time — wider, with the full bio. Siblings render
   as compact cards (photo + name + title only). Clicking a compact card or
   pressing the prev / next arrow buttons promotes it to active; the row
   scroll-snaps so the active card sits flush on the left.

   Smoothing: bio + qualifications stay in the DOM at all times (max-height +
   opacity transitions instead of ``display:none``) so promoting/demoting
   animates rather than popping. Width uses a longer cubic-bezier easing
   coordinated with the page-stack's smooth horizontal scroll. */

.leadership-row__scroller {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0.25rem 0.25rem 1rem;
  margin: 0 -0.25rem;
}

.leadership-row__scroller::-webkit-scrollbar {
  display: none;
}

.leadership-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem;
  transition:
    width 420ms cubic-bezier(0.22, 1, 0.36, 1),
    background 220ms ease,
    border-color 220ms ease;
}

.leadership-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  filter: saturate(0.96);
}

.leadership-card__head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.leadership-card__name {
  font-family: 'EB Garamond', 'Cormorant Garamond', serif;
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  margin: 0;
}

.leadership-card__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  line-height: 1.35;
}

.leadership-card__quals {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  line-height: 1.4;
}

.leadership-card__bio {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0;
}

/* CSS Grid trick: animating ``grid-template-rows`` from ``0fr`` to ``1fr``
   lets the browser interpolate to the exact intrinsic content height — no
   ``max-height`` cap, no overshoot delay on collapse. Combined with an
   opacity fade so the bio "lights up" rather than just sliding in. */
.leadership-card__expand {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.leadership-card__expand > * {
  min-height: 0;
  overflow: hidden;
  opacity: 1;
  transition: opacity 260ms ease 120ms;
}

.leadership-card--compact .leadership-card__expand {
  grid-template-rows: 0fr;
}

.leadership-card--compact .leadership-card__expand > * {
  opacity: 0;
  transition: opacity 160ms ease;
}

/* --- Active card (full width + bio) ---------------------------------------- */
.leadership-card--active {
  width: 24rem;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.leadership-card--active .leadership-card__name {
  font-size: 1.6rem;
}

@media (min-width: 768px) {
  .leadership-card--active {
    width: 28rem;
  }
  .leadership-card--active .leadership-card__name {
    font-size: 1.85rem;
  }
}

/* --- Compact card (no bio, click-to-activate) ------------------------------ */
.leadership-card--compact {
  width: 15rem;
  cursor: pointer;
}

.leadership-card--compact .leadership-card__name {
  font-size: 1.15rem;
}

.leadership-card--compact .leadership-card__title {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
}

.leadership-card--compact:hover,
.leadership-card--compact:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}

.leadership-card--compact:focus-visible {
  outline: 2px solid var(--siyara-orange-soft);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .leadership-card--compact {
    width: 17rem;
  }
}

/* Honor reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  .leadership-card,
  .leadership-card__expand,
  .leadership-card__expand > * {
    transition: none;
  }
  .leadership-row__scroller {
    scroll-behavior: auto;
  }
}

/* --- Pager dots + prev/next nav -------------------------------------------- */
.leadership-row__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  gap: 1rem;
}

.leadership-pager {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.leadership-pager__dot {
  width: 1.75rem;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 180ms ease, width 180ms ease;
}

.leadership-pager__dot.is-active {
  background: var(--siyara-orange);
  width: 2.5rem;
}

.leadership-pager__dot:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.32);
}

.leadership-nav {
  display: inline-flex;
  gap: 0.5rem;
}

.leadership-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.leadership-nav__btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.leadership-nav__btn:focus-visible {
  outline: 2px solid var(--siyara-orange-soft);
  outline-offset: 2px;
}

.leadership-nav__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.physio-page-cta {
  display: flex;
  justify-content: center;
}

@media (min-width: 640px) {
  .physio-page-cta {
    justify-content: flex-start;
  }
}

body.public-site .eyebrow,
body.public-site .eyebrow-light {
  color: var(--siyara-orange);
}

body.public-site .eyebrow-light {
  color: var(--siyara-orange-soft);
}

.page-stack {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.page-scene {
  position: relative;
  min-height: 100dvh;
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.page-scene__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-scene__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-scene__bg-img--kenburns {
  animation: heroKenBurns 18s ease-out forwards;
}

.page-scene__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(13, 13, 13, 0.78) 0%,
    rgba(13, 13, 13, 0.52) 45%,
    rgba(13, 13, 13, 0.82) 100%
  );
  pointer-events: none;
}

.page-scene__scrim--deep {
  background: linear-gradient(
    165deg,
    rgba(13, 13, 13, 0.86) 0%,
    rgba(13, 13, 13, 0.72) 50%,
    rgba(13, 13, 13, 0.92) 100%
  );
}

.page-scene__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 5.5rem 0 2rem;
}

.page-scene--center .page-scene__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100dvh - 5.5rem);
}

.page-scene__scroll {
  max-height: calc(100dvh - 7rem);
  overflow-y: auto;
  padding-right: 0.25rem;
}

.scene-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.scene-reveal--d1 { transition-delay: 0.06s; }
.scene-reveal--d2 { transition-delay: 0.12s; }

.scene-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scene-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .scene-actions {
    justify-content: flex-start;
  }
}

.scene-actions__btn {
  min-width: min(100%, 14rem);
}

.tag-pill--on-dark {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--siyara-orange-soft);
}

.page-scene__scroll-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

.page-scene__scroll-hint:hover {
  color: var(--siyara-orange);
}

.page-scene__scroll-hint-arrow {
  animation: heroFloat 2.5s ease-in-out infinite;
}

.glass-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.25rem;
  padding: 1.5rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass-card .input-base,
.glass-card input:not([type="radio"]):not([type="checkbox"]):not(.phone-group__input),
.glass-card select,
.glass-card textarea {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--siyara-ink);
  box-sizing: border-box;
}
/* Phone-group inputs sit *inside* a pill-shaped wrapper, so the inner
   element must stay transparent — the wrapper owns the border + radius. */
.glass-card .phone-group__input {
  background: transparent;
  border: 0;
}

/* Stacked fields on dark glass cards (reviews, contact, etc.) */
.glass-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.glass-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.glass-form-field > label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
}

.glass-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: start;
}

/* Reserve two lines for the side-by-side labels so a label that wraps
   (e.g. "Condition or class (optional)") keeps both its label top and its
   input box aligned with the shorter neighbour ("City / area"). */
.glass-form-row > .glass-form-field > label {
  min-height: 2.4em;
}

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

  /* Stacked single column — no neighbour to align to, drop the reserved space. */
  .glass-form-row > .glass-form-field > label {
    min-height: 0;
  }
}

.glass-form .input-base,
.glass-form input:not([type="radio"]):not([type="checkbox"]).input-base,
.glass-form select.input-base,
.glass-form textarea.input-base,
.glass-card .glass-form-field .input-base,
.glass-card .glass-form-field input:not([type="radio"]):not([type="checkbox"]).input-base,
.glass-card .glass-form-field select.input-base,
.glass-card .glass-form-field textarea.input-base {
  width: 100%;
  margin-top: 0;
  min-height: 2.75rem;
  padding: 0.75rem 1.1rem;
  border-radius: 9999px;
  line-height: 1.4;
}

.glass-form textarea.input-base,
.glass-card .glass-form-field textarea.input-base {
  min-height: 6.5rem;
  resize: vertical;
  border-radius: 1.25rem;
}

.glass-form select.input-base,
.glass-card .glass-form-field select.input-base {
  appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b6b6b' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px 8px;
}

/* date/time inputs in book form */
.glass-card .glass-form-field input[type="date"].input-base,
.glass-card .glass-form-field input[type="time"].input-base {
  min-height: 2.75rem;
}

.glass-form-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.glass-form-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.glass-form-submit {
  margin-top: 0.25rem;
}

body.public-site .disclosure--on-dark {
  border-top-color: rgba(255, 255, 255, 0.15);
}

body.public-site .disclosure--on-dark .disclosure__summary {
  color: var(--siyara-orange-soft);
}

body.public-site .scene-mini-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .page-stack {
    scroll-snap-type: none;
  }
  .page-scene__bg-img--kenburns {
    animation: none;
  }
  .page-scene__scroll-hint-arrow {
    animation: none;
  }
  .scene-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Services catalogue (techniques + conditions side by side) ---- */

.services-catalog__grid {
  align-items: start;
}

@media (min-width: 1024px) {
  .services-catalog__techniques,
  .services-catalog__conditions {
    align-self: stretch;
  }
}

@media (max-width: 1023px) {
  .services-catalog__conditions {
    padding-top: 0.5rem;
    border-top: 1px solid var(--siyara-line);
  }
}

/* ---- Disclosure (native details) ---- */

.disclosure {
  margin-top: 1rem;
  border-top: 1px solid var(--siyara-line);
}

.disclosure__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--siyara-orange);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.disclosure__summary::-webkit-details-marker {
  display: none;
}

.disclosure__summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1;
  color: var(--siyara-orange);
  transition: transform 150ms ease;
}

.disclosure[open] .disclosure__summary::after {
  content: "−";
}

.disclosure__panel {
  padding-bottom: 0.25rem;
}

.disclosure--on-dark {
  border-top-color: var(--siyara-graphite);
}

.disclosure--on-dark .disclosure__summary {
  color: var(--siyara-orange-soft);
}

.disclosure--on-dark .disclosure__summary::after {
  color: var(--siyara-orange-soft);
}

.disclosure--on-orange {
  border-top-color: rgba(255, 255, 255, 0.25);
}

.disclosure--on-orange .disclosure__summary {
  color: white;
}

.disclosure--on-orange .disclosure__summary::after {
  color: white;
}

html[lang="te"] .disclosure__summary,
html[lang="hi"] .disclosure__summary {
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background-color: var(--siyara-orange-soft);
  color: var(--siyara-orange-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag-pill-dark {
  background-color: rgba(255,255,255,0.08);
  color: white;
}

/* Status variants (staff patient chart, etc.) — replace prior inline styles. */
.tag-pill--active {
  background-color: #DCEFE0;
  color: #1F6F45;
}
.tag-pill--inactive {
  background-color: var(--siyara-line);
  color: var(--siyara-muted);
}

/* ---- Form niceties for member portal + booking ---- */

/* Inputs follow a pill-shape, dark-brown bordered system that pairs with
   the warm bone/cream page backgrounds. Glass-form overrides further down
   adapt the same shape for the dark-photo physio booking page. */
.input-base {
  width: 100%;
  padding: 0.75rem 1.1rem;
  border: 1.5px solid #7a6650;
  border-radius: 9999px;
  background-color: var(--siyara-bone);
  color: var(--siyara-ink);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
.input-base::placeholder { color: #8a8478; opacity: 1; }
.input-base:focus {
  outline: none;
  border-color: var(--siyara-orange);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(242, 97, 34, 0.18);
}
/* Keyboard focus: restore a visible ring (the box-shadow above is suppressed
   on some platforms / for forced-colors users). Mouse focus stays ring-free. */
.input-base:focus-visible {
  outline: 2px solid var(--siyara-orange);
  outline-offset: 2px;
}
/* Multi-line + native pickers keep their rectangle so options stay legible. */
textarea.input-base,
select[multiple].input-base {
  border-radius: 1.25rem;
}
textarea.input-base { min-height: 5rem; resize: vertical; }

.label-base {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--siyara-muted);
  margin-bottom: 0.4rem;
  padding-left: 0.5rem;
}

/* ---- Member portal + login (wellness photo background) ---- */

body.member-portal {
  background-color: var(--siyara-ink);
  background-image:
    linear-gradient(120deg, rgba(13, 13, 13, 0.58) 0%, rgba(13, 13, 13, 0.42) 50%, rgba(13, 13, 13, 0.55) 100%),
    url('/static/images/auth/member-login-background.webp');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.login-page main,
body.member-portal main {
  background: transparent;
  padding-top: 5.5rem;
  flex: 1;
}

body.member-portal .site-footer {
  margin-top: 0;
  background: rgba(13, 13, 13, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* The shared footer partial carries Tailwind `mt-24` (6rem) for the marketing
   site. On the staff login page the hero scene already fills the viewport, so
   that margin renders as a cream band between the scene and the footer — drop
   it (mirrors the member-portal override above). */
body.login-page .site-footer {
  margin-top: 0;
}

body.login-page .site-header,
body.member-portal .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(13, 13, 13, 0.55);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.login-page .site-header .site-nav-link,
body.member-portal .site-header .site-nav-link {
  color: rgba(255, 255, 255, 0.92);
}

body.login-page .site-header .site-nav-link:hover,
body.member-portal .site-header .site-nav-link:hover {
  color: var(--siyara-orange);
}

body.login-page .site-header .site-nav-meta,
body.member-portal .site-header .site-nav-meta {
  color: rgba(255, 255, 255, 0.55);
}

body.login-page .site-header .site-nav-meta:hover,
body.member-portal .site-header .site-nav-meta:hover {
  color: var(--siyara-orange);
}

body.login-page .site-header__toggle,
body.member-portal .site-header__toggle {
  color: #fff;
}

body.login-page .site-logo-img--on-light,
body.member-portal .site-logo-img--on-light {
  display: none !important;
}

body.login-page .site-logo-img--on-dark,
body.member-portal .site-logo-img--on-dark {
  display: block !important;
  /* 80% of prior clamp(48px, 8vw, 64px) */
  height: clamp(38px, 6.4vw, 51px);
  width: auto;
  max-width: min(380px, 52vw);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

body.member-portal .member-portal-shell {
  min-height: calc(100vh - 5.5rem);
}

/* Member portal header — beats pre-compiled Tailwind button/text resets on te/hi pages. */
body.member-portal .member-portal-header .member-portal-header__eyebrow,
html[lang="te"] body.member-portal .member-portal-header .eyebrow,
html[lang="hi"] body.member-portal .member-portal-header .eyebrow {
  color: var(--siyara-gold-bright) !important;
}

body.member-portal .member-portal-header .member-portal-header__greeting,
body.member-portal .member-portal-header h1.display-font,
html[lang="te"] body.member-portal .member-portal-header h1,
html[lang="hi"] body.member-portal .member-portal-header h1 {
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

body.member-portal .member-portal-header button.btn-logout,
body.member-portal button.btn-logout[type="submit"] {
  -webkit-appearance: none;
  appearance: none;
  border: 2px solid var(--siyara-orange) !important;
  color: #fff !important;
  background-color: rgba(242, 97, 34, 0.42) !important;
  padding: 0.55rem 1.15rem !important;
  min-height: 40px !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 2px 14px rgba(242, 97, 34, 0.4) !important;
}

body.member-portal .member-portal-header button.btn-logout:hover,
body.member-portal button.btn-logout[type="submit"]:hover {
  background-color: var(--siyara-orange) !important;
  border-color: var(--siyara-orange-deep) !important;
  color: #fff !important;
}

html[lang="te"] body.member-portal .btn-logout,
html[lang="hi"] body.member-portal .btn-logout {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: condensed;
  text-transform: uppercase;
}

body.member-portal .member-chart-label {
  color: rgba(255, 255, 255, 0.9) !important;
}

body.member-portal .member-chart-name {
  color: #fff !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

/* Page toolbars on photo background (above white cards — physio/wellness reports, etc.). */
body.member-portal .member-page-toolbar .member-page-toolbar__title,
body.member-portal .member-page-toolbar h2,
html[lang="te"] body.member-portal .member-page-toolbar h2,
html[lang="hi"] body.member-portal .member-page-toolbar h2 {
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

body.member-portal .member-page-toolbar .member-page-toolbar__lede,
body.member-portal .member-page-toolbar p {
  color: rgba(255, 255, 255, 0.88) !important;
}

body.member-portal .member-page-toolbar .btn-secondary-light {
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

body.member-portal .member-page-toolbar .btn-secondary-light:hover {
  background: #fff !important;
  color: var(--siyara-ink) !important;
  border-color: #fff !important;
}

html[lang="te"] body.member-portal .member-page-toolbar .btn-secondary-light,
html[lang="hi"] body.member-portal .member-page-toolbar .btn-secondary-light {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
}

.login-page-scene {
  position: relative;
  min-height: calc(100vh - 5.5rem);
}

body.member-portal .login-page-scene--member {
  background: transparent;
}

.login-page-scene--member .login-page-scene__copy {
  color: #fff;
}

.login-page-scene--member .login-page-scene__eyebrow {
  color: var(--siyara-gold-bright);
}

.login-page-scene--member .login-page-scene__lede {
  color: rgba(255, 255, 255, 0.82);
}

.login-page-scene--member .login-page-scene__card {
  background-image:
    linear-gradient(rgba(251, 248, 243, 0.93), rgba(251, 248, 243, 0.96)),
    url('/static/images/auth/member-login-background.webp');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.login-page-scene--staff {
  position: relative;
  /* Fill behind the translucent fixed header. main has padding-top:5.5rem to
     clear the header, but the header's actual height is logo-driven (responsive
     clamp) and a few px shorter, leaving a cream sliver. Pulling the hero up by
     that padding (and re-adding it as internal padding) makes the dark hero run
     under the header — immersive, and no gap regardless of header height. */
  margin-top: -5.5rem;
  padding-top: 5.5rem;
  min-height: 100vh;
  background-image:
    linear-gradient(120deg, rgba(13, 13, 13, 0.78) 0%, rgba(13, 13, 13, 0.52) 48%, rgba(13, 13, 13, 0.72) 100%),
    url('/static/images/staff/login-background.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.login-page-scene__inner {
  position: relative;
  z-index: 1;
}

.login-page-scene--staff .login-page-scene__copy {
  color: #fff;
}

.login-page-scene--staff .login-page-scene__eyebrow {
  color: var(--siyara-gold-bright);
}

.login-page-scene--staff .login-page-scene__lede {
  color: rgba(255, 255, 255, 0.82);
}

/* Same staff photo inside the sign-in card (cream veil keeps fields readable). */
.login-page-scene--staff .login-page-scene__card {
  background-image:
    linear-gradient(rgba(251, 248, 243, 0.93), rgba(251, 248, 243, 0.96)),
    url('/static/images/staff/login-background.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* ---- Staff portal shell (sidebar nav) ---- */

body.staff-portal .site-header,
body.staff-portal .site-footer {
  display: none;
}

body.staff-portal main {
  flex: 1;
  min-height: 100vh;
}

.staff-shell {
  display: flex;
  min-height: calc(100vh - 0px);
  background: var(--siyara-bone);
}

.staff-sidebar {
  width: 15rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--siyara-charcoal);
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  align-self: flex-start;
  min-height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
}

.staff-sidebar__brand {
  padding: 1.25rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.staff-sidebar__logo-img {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  filter:
    brightness(1.08)
    contrast(1.1)
    drop-shadow(0 1px 4px rgba(0, 0, 0, 0.4));
}

.staff-sidebar__user {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.staff-sidebar__role {
  margin: 0.15rem 0 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

.staff-sidebar__nav {
  flex: 1;
  padding: 0.75rem 0.5rem 1rem;
}

/* Section groups — each clinical area carries its own accent colour so staff
   can scan the nav by colour. Inactive links stay neutral for readability; the
   accent shows on the label swatch and on hover/active states. The colour is a
   custom property so it cascades to the links inside each group. */
.staff-sidebar__group {
  --section-color: rgba(255, 255, 255, 0.55);
  margin-top: 0.55rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.staff-sidebar__group:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.staff-sidebar__group--clinical { --section-color: #6db4e0; }
.staff-sidebar__group--wellness { --section-color: #74c98a; }
.staff-sidebar__group--admin    { --section-color: #b196e6; }
.staff-sidebar__group--billing  { --section-color: #e8a24a; }
.staff-sidebar__group--finance  { --section-color: #46c0a8; }
.staff-sidebar__group--public   { --section-color: #e98aa8; }

.staff-sidebar__section {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0.5rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--section-color);
}

/* Colour swatch keying the section to its links. */
.staff-sidebar__section::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 1px;
  background: var(--section-color);
  flex-shrink: 0;
  box-shadow: 0 0 6px color-mix(in srgb, var(--section-color) 65%, transparent);
}

.staff-sidebar__link {
  display: block;
  padding: 0.5rem 0.75rem;
  margin: 0.1rem 0;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.staff-sidebar__link:hover {
  background: color-mix(in srgb, var(--section-color) 14%, transparent);
  color: #fff;
  border-left-color: color-mix(in srgb, var(--section-color) 55%, transparent);
}

.staff-sidebar__link.is-active {
  background: color-mix(in srgb, var(--section-color) 22%, transparent);
  color: #fff;
  border-left-color: var(--section-color);
}

.staff-sidebar__signout {
  padding: 0.75rem 1rem 1.25rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.staff-portal .staff-sidebar button.btn-logout,
body.staff-portal .staff-sidebar__signout-btn.btn-logout {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  justify-content: center;
  font-size: 0.75rem !important;
  border: 2px solid var(--siyara-orange) !important;
  color: #fff !important;
  background-color: rgba(242, 97, 34, 0.42) !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  box-shadow: 0 2px 14px rgba(242, 97, 34, 0.4) !important;
}

body.staff-portal .staff-sidebar button.btn-logout:hover,
body.staff-portal .staff-sidebar__signout-btn.btn-logout:hover {
  background-color: var(--siyara-orange) !important;
  border-color: var(--siyara-orange-deep) !important;
  color: #fff !important;
}

.staff-main {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 1.75rem 2.5rem;
  max-width: 100%;
}

.staff-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.5rem 0.25rem 1rem;
  margin: -0.5rem 0 0.75rem;
  border-bottom: 1px solid var(--siyara-line);
}

/* Sign out in the top-left of the staff header (in addition to the sidebar) —
   outline orange pill that reads on the cream main background. */
body.staff-portal .staff-top-header__signout {
  margin: 0;
}

body.staff-portal .staff-top-header button.btn-logout {
  -webkit-appearance: none;
  appearance: none;
  border: 2px solid var(--siyara-orange);
  color: var(--siyara-orange);
  background-color: transparent;
  padding: 0.4rem 1rem;
  min-height: 36px;
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

body.staff-portal .staff-top-header button.btn-logout:hover {
  background-color: var(--siyara-orange);
  color: #fff;
}

/* Patient-document upload — styled drag-and-drop file picker (staff chart),
   replacing the raw browser file input. */
body.staff-portal .doc-upload {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

body.staff-portal .doc-upload__drop {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
  padding: 1.5rem 1.25rem;
  border: 2px dashed rgba(13, 13, 13, 0.18);
  border-radius: 14px;
  background: rgba(13, 13, 13, 0.02);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

body.staff-portal .doc-upload__drop:hover,
body.staff-portal .doc-upload__drop:focus-within,
body.staff-portal .doc-upload__drop.is-dragover {
  border-color: var(--siyara-orange);
  background: rgba(242, 97, 34, 0.06);
}

body.staff-portal .doc-upload__drop.has-file {
  border-style: solid;
  border-color: var(--siyara-orange);
  background: rgba(242, 97, 34, 0.05);
}

body.staff-portal .doc-upload__icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--siyara-orange);
  margin-bottom: 0.1rem;
}

body.staff-portal .doc-upload__cta {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--siyara-ink);
}

body.staff-portal .doc-upload__cta b {
  color: var(--siyara-orange);
  font-weight: 700;
}

body.staff-portal .doc-upload__hint {
  font-size: 0.72rem;
  color: var(--siyara-muted);
}

body.staff-portal .doc-upload__name {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--siyara-orange);
  word-break: break-all;
}

/* Visually hide the native input but keep it focusable/accessible. */
body.staff-portal .doc-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.staff-active-location {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  font-size: 0.85rem;
}

.staff-active-location__form,
.staff-active-location__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.staff-active-location__label {
  color: var(--siyara-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
  font-weight: 600;
}

.staff-active-location__select {
  appearance: auto;
  background: #fff;
  border: 1px solid var(--siyara-line);
  border-radius: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  color: inherit;
  min-width: 11rem;
}

.staff-active-location__value {
  font-weight: 600;
  color: inherit;
}

.staff-active-location__submit {
  border: 1px solid var(--siyara-line);
  border-radius: 0.5rem;
  padding: 0.2rem 0.6rem;
  background: #fff;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .staff-shell {
    flex-direction: column;
  }

  .staff-sidebar {
    width: 100%;
    min-height: auto;
    max-height: none;
    position: static;
    flex-direction: column;
  }

  .staff-sidebar__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    padding-bottom: 0.5rem;
  }

  /* Flatten the group wrappers so the label + links wrap as before; the accent
     colour still cascades to children through the (display:contents) element. */
  .staff-sidebar__group {
    display: contents;
  }

  .staff-sidebar__section {
    width: 100%;
  }

  .staff-sidebar__link {
    display: inline-block;
    width: auto;
  }

  .staff-sidebar__signout {
    margin-top: 0;
  }
}

/* ---- Staff schedule: Google Calendar–style hour grid ---- */

.staff-calendar-card {
  overflow: hidden;
}

.staff-calendar__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.staff-calendar__header {
  display: grid;
  grid-template-columns: 3.5rem repeat(auto-fit, minmax(5.5rem, 1fr));
  min-width: 36rem;
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--siyara-cream);
  border-bottom: 1px solid var(--siyara-line);
}

.staff-calendar__gutter {
  border-right: 1px solid var(--siyara-line);
}

.staff-calendar__day-head {
  padding: 0.5rem 0.35rem;
  text-align: center;
  border-right: 1px solid var(--siyara-line);
}

.staff-calendar__day-head.is-today .staff-calendar__date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  min-height: 1.75rem;
  border-radius: 999px;
  background: var(--siyara-orange);
  color: #fff;
  padding: 0 0.35rem;
}

.staff-calendar__weekday {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--siyara-muted);
}

.staff-calendar__date {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

.staff-calendar__body {
  display: flex;
  min-width: 36rem;
}

.staff-calendar__times {
  width: 3.5rem;
  flex-shrink: 0;
  border-right: 1px solid var(--siyara-line);
}

.staff-calendar__time-label {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--siyara-muted);
  transform: translateY(-0.45rem);
  box-sizing: border-box;
}

.staff-calendar__columns {
  display: flex;
  flex: 1;
  min-width: 0;
}

.staff-calendar__day-col {
  flex: 1;
  min-width: 5.5rem;
  position: relative;
  border-right: 1px solid var(--siyara-line);
}

.staff-calendar__grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.staff-calendar__hour-line {
  height: var(--staff-cal-hour-px, 52px);
  border-top: 1px solid var(--siyara-line);
  box-sizing: border-box;
}

.staff-calendar__events {
  position: relative;
  z-index: 1;
}

.staff-cal-event {
  position: absolute;
  left: 3px;
  right: 3px;
  z-index: 2;
  display: block;
  padding: 0.2rem 0.35rem;
  border-radius: 0.35rem;
  font-size: 0.65rem;
  line-height: 1.25;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transition: box-shadow 120ms ease, transform 120ms ease;
}

.staff-cal-event:hover {
  z-index: 4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transform: scale(1.01);
}

.staff-cal-event--appointment {
  background: var(--siyara-sage);
  color: #fff;
  border-left: 3px solid var(--siyara-sage-deep);
}

.staff-cal-event--request {
  background: var(--siyara-orange-soft);
  color: var(--siyara-charcoal);
  border: 2px dashed var(--siyara-orange);
}

.staff-cal-event__time {
  display: block;
  font-weight: 700;
  opacity: 0.95;
}

.staff-cal-event__title {
  display: block;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-cal-event__sub {
  display: block;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Phone input with locked +91 prefix ── */
.phone-group {
  display: flex;
  align-items: stretch;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  border-radius: 9999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  min-height: 2.75rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.phone-group:focus-within {
  border-color: var(--siyara-orange);
  box-shadow: 0 0 0 3px rgba(242, 97, 34, 0.18);
}
/* Keyboard focus: the inner input clears its own outline (below), so draw a
   visible ring on the pill wrapper only when focus arrives via keyboard. */
.phone-group:has(.phone-group__input:focus-visible) {
  outline: 2px solid var(--siyara-orange);
  outline-offset: 2px;
}
.phone-group__prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 1rem 0 1.1rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-right: 1.5px solid rgba(255, 255, 255, 0.32);
  user-select: none;
}
.phone-group__input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0.65rem 1.1rem;
  outline: none;
  font: inherit;
  width: 100%;
  min-width: 0;
}
/* Light-background variant for member-portal / mobile screens */
.phone-group--light {
  border-color: #7a6650;
  background: var(--siyara-bone);
}
.phone-group--light .phone-group__prefix {
  background: white;
  color: var(--siyara-ink);
  border-right-color: #7a6650;
}
.phone-group--light .phone-group__input {
  color: var(--siyara-ink);
  background: transparent;
}

/* ── Time picker (HH : MM with AM/PM in hour label) ── */
.time-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.time-group .time-group__hour,
.time-group .time-group__minute {
  flex: 1;
  min-width: 0;
}
.time-group__sep {
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
}

/* On white-pill glass-card forms (e.g. the physio booking panel) the phone
   field must read as one solid white pill matching its sibling inputs —
   "+91 | 10-digit mobile" — not the translucent dark-glass variant. */
.glass-card .phone-group {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.28);
  min-height: 2.75rem;
}
.glass-card .phone-group__prefix {
  background: transparent;
  color: var(--siyara-ink);
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  font-weight: 600;
  padding: 0 0.8rem 0 1.1rem;
}
.glass-card .phone-group__input {
  color: var(--siyara-ink);
  background: transparent;
  border: 0;
}

/* Keep Hour : Min as two small selects side by side. Without this the
   generic `select.input-base { width: 100% }` rule forces each to fill the
   column, stacking them vertically. */
.glass-card .glass-form-field .time-group {
  flex-wrap: nowrap;
}
.glass-card .glass-form-field .time-group select.input-base {
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  padding-left: 0.85rem;
  padding-right: 1.9rem;
  background-position: right 0.55rem center;
}
.glass-card .glass-form-field .time-group .time-group__sep {
  color: var(--siyara-ink);
  flex: 0 0 auto;
}

/* ---- Submit / pending button state (form-submit-state.js) ----
   The script sets aria-busy="true" (and disables) the submitter while a form
   posts, so slow PhonePe / Resend round-trips don't read as "frozen" and
   double-submits are prevented. These rules just supply the busy affordance. */
.btn-primary[aria-busy="true"],
.btn-secondary[aria-busy="true"],
button[aria-busy="true"] {
  opacity: .65;
  cursor: progress;
}

/* ---- Reusable empty state (web) ---- */
.empty-state {
  text-align: center;
  padding: 1.5rem 1rem;
}
.empty-state__title {
  font-weight: 700;
  color: var(--siyara-ink);
  margin-bottom: .25rem;
}
.empty-state__text {
  font-size: .9rem;
  color: var(--siyara-muted);
}

/* ============================================================
   Physio day calendar (staff schedule) — per-doctor columns,
   30-min slot rows, click-to-book, double-click to view/delete.
   ============================================================ */
.day-cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.day-cal-datenav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.day-cal-step {
  padding: 0.4rem 0.7rem;
  font-size: 0.95rem;
  line-height: 1;
}
.day-cal-dateinput {
  border: 1px solid var(--siyara-line);
  border-radius: 0.6rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.9rem;
  background: #fff;
}
.day-cal-today {
  font-size: 0.8rem;
  text-decoration: underline;
  color: var(--siyara-muted);
}
.day-cal-docfilter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.day-cal-docselect {
  border: 1px solid var(--siyara-line);
  border-radius: 0.6rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
  background: #fff;
}

.day-cal-scroll {
  overflow-x: auto;
  border: 1px solid var(--siyara-line);
  border-radius: 0.9rem;
  background: #fff;
}
.day-cal {
  display: grid;
  grid-template-columns: 4.75rem repeat(var(--day-cal-cols, 1), minmax(12rem, 1fr));
  min-width: max-content;
}
.day-cal__corner {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 3;
  background: var(--siyara-cream);
  border-bottom: 1px solid var(--siyara-line);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--siyara-muted);
  padding: 0.6rem 0.5rem;
  display: flex;
  align-items: center;
}
.day-cal__doc {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--siyara-cream);
  border-bottom: 1px solid var(--siyara-line);
  border-left: 1px solid var(--siyara-line);
  padding: 0.6rem 0.6rem;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}
.day-cal__time {
  border-bottom: 1px solid var(--siyara-line);
  padding: 0.45rem 0.5rem;
  font-size: 0.72rem;
  color: var(--siyara-muted);
  white-space: nowrap;
  background: color-mix(in srgb, var(--siyara-cream) 50%, #fff);
}
.day-cal__cell {
  border-bottom: 1px solid var(--siyara-line);
  border-left: 1px solid var(--siyara-line);
  padding: 0.4rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  min-height: 4.5rem;
  align-items: stretch;
}
.day-cal__break {
  grid-column: 1 / -1;
  background: repeating-linear-gradient(
    45deg,
    color-mix(in srgb, var(--siyara-line) 40%, #fff),
    color-mix(in srgb, var(--siyara-line) 40%, #fff) 8px,
    #fff 8px,
    #fff 16px
  );
  border-bottom: 1px solid var(--siyara-line);
  border-top: 1px solid var(--siyara-line);
  padding: 0.45rem 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--siyara-muted);
  text-align: center;
}

/* a patient chip + the "+ add" placeholder share the half-width sizing so
   the two-per-slot capacity renders side by side */
.appt-chip,
.appt-add {
  flex: 1 1 calc(50% - 0.2rem);
  min-width: 0;
  border-radius: 0.55rem;
  padding: 0.5rem 0.55rem;
  font-size: 0.85rem;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  border: 1px solid transparent;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
}
.appt-add {
  justify-content: center;
}
.appt-chip {
  background: var(--siyara-sage);
  color: #fff;
  border-left: 3px solid var(--siyara-sage-deep);
  font-weight: 600;
}
.appt-chip:hover {
  filter: brightness(0.96);
}
.appt-add {
  background: transparent;
  color: var(--siyara-muted);
  border: 1px dashed var(--siyara-line);
}
.appt-add:hover {
  border-color: var(--siyara-orange);
  color: var(--siyara-orange);
  background: color-mix(in srgb, var(--siyara-orange-soft) 40%, #fff);
}

/* ---- appointment modal ---- */
body.modal-open { overflow: hidden; }
.appt-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.appt-modal[hidden] { display: none; }
.appt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.45);
}
.appt-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* ---- patient typeahead (existing patients only) ---- */
.appt-typeahead { position: relative; }
.appt-typeahead__input {
  width: 100%;
  margin-top: 0.25rem;
  border: 1px solid var(--siyara-line);
  border-radius: 0.6rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
}
.appt-typeahead__results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  z-index: 5;
  background: #fff;
  border: 1px solid var(--siyara-line);
  border-radius: 0.6rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  max-height: 14rem;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0.25rem;
}
.appt-typeahead__item {
  padding: 0.5rem 0.6rem;
  border-radius: 0.45rem;
  cursor: pointer;
  font-size: 0.88rem;
}
.appt-typeahead__item:hover,
.appt-typeahead__item:focus {
  background: var(--siyara-cream);
  outline: none;
}
.appt-typeahead__name { font-weight: 600; }
.appt-typeahead__meta { color: var(--siyara-muted); font-size: 0.8rem; }
.appt-typeahead__empty {
  padding: 0.6rem;
  font-size: 0.82rem;
  color: var(--siyara-muted);
}

/* ---- sidebar "Appointment requests" live badge ---- */
.staff-sidebar__link--badged {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--siyara-orange);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  animation: nav-badge-pulse 2.2s ease-in-out infinite;
}
.nav-badge[hidden] { display: none; }
@keyframes nav-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--siyara-orange) 55%, transparent); }
  70% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--siyara-orange) 0%, transparent); }
}

/* Brief attention flash on the Appointment-requests tab when a brand-new
   request arrives via Realtime while you're on another page. */
.staff-sidebar__link--pulse {
  animation: staff-tab-flash 1s ease-in-out 0s 6;
  border-radius: 0.5rem;
}
@keyframes staff-tab-flash {
  0%, 100% { background: transparent; }
  50% { background: color-mix(in srgb, var(--siyara-orange) 22%, transparent); }
}

/* read-only "N free" marker on the appointment-requests availability grid */
.appt-free {
  flex: 1 1 calc(50% - 0.2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
  border: 1px dashed var(--siyara-line);
  color: var(--siyara-muted);
  font-size: 0.75rem;
  padding: 0.5rem 0.4rem;
}

/* ---- public booking: fixed 30-min slot chips (dark glass panel) ---- */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr));
  gap: 0.4rem;
}
.slot-chip { position: relative; display: block; }
.slot-chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.slot-chip span {
  display: block;
  text-align: center;
  padding: 0.45rem 0.3rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.slot-chip input:hover + span { border-color: rgba(255, 255, 255, 0.6); }
.slot-chip input:checked + span {
  background: var(--siyara-orange);
  border-color: var(--siyara-orange);
  color: #fff;
  font-weight: 600;
}
.slot-chip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.slot-chip input:disabled + span {
  opacity: 0.4;
  text-decoration: line-through;
  cursor: not-allowed;
}
