/* ajitkpandey.com.np — one stylesheet for both languages. Linked as style.css?v=N; bump N when you edit.
   Palette: warm paper, slate ink, stone grey, "Phewa" lake blue. Type: Newsreader
   (English display), Noto Serif Devanagari (Nepali display), Mukta (body, both).
   Sections in order: fonts, tokens, base, masthead, hero, horizon ornament,
   sections, hospitals register, about, help list, contact, footer, call bar. */

/* ---------- Fonts (self-hosted; unicode-range keeps each page to the subsets it uses) ---------- */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/newsreader-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Noto Serif Devanagari"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(fonts/noto-serif-devanagari.woff2) format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }

@font-face { font-family: "Mukta"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/mukta-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/mukta-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: "Mukta"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/mukta-500-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/mukta-500-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --paper: #f5f0e6;      /* page */
  --snow: #fdfbf7;       /* cards */
  --ink: #1b2630;        /* text */
  --stone: #5a6472;      /* secondary text, 5.3:1 on paper */
  --rule: #d8cfc0;       /* hairlines */
  --lake: #1f5a7a;       /* accent, 6.6:1 on paper */
  --lake-deep: #16455e;
  --lake-tint: #e7eef1;  /* contact band */
  --font-body: "Mukta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Newsreader", "Noto Serif Devanagari", Georgia, "Times New Roman", serif;
  --measure: 62ch;
  --gutter: 1.25rem;
  --max: 70rem;
  color-scheme: light;
}
/* Nepali page: serif Devanagari display, no Newsreader (so no Latin font download), looser leading.
   Everything that is weight 500 in English is weight 400 here. */
html[lang="ne"] {
  --font-display: "Noto Serif Devanagari", "Kohinoor Devanagari", "Noto Sans Devanagari", Georgia, serif;
  /* Body text uses the phone's own Devanagari sans (Noto Sans Devanagari on Android, Kohinoor on
     iOS); Mukta covers only the Latin fragments. This keeps the page ~60 KB lighter on 4G. */
  --font-body: "Mukta", "Noto Sans Devanagari", "Kohinoor Devanagari", "Nirmala UI", system-ui, sans-serif;
  --measure: 58ch;
}
html[lang="ne"] :is(.eyebrow, .nav, .btn, .tag, .facts dt, .contact small, .brand) { font-weight: 400; }
html[lang="ne"] .latin { font-family: var(--font-body); font-weight: 400; } /* phone number, email */
@media (min-width: 48em) { :root { --gutter: 2rem; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  font-feature-settings: "kern";
}
html[lang="ne"] body { line-height: 1.8; }
@media (min-width: 48em) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; }
p { margin: 0 0 1rem; max-width: var(--measure); }
a { color: var(--lake); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--lake-deep); }
:focus-visible { outline: 3px solid var(--lake); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -999rem; top: .5rem; z-index: 20;
  background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: .25rem; text-decoration: none;
}
.skip:focus { left: .5rem; }

/* Small-caps label used above headings and in the facts strip */
.eyebrow {
  margin: 0 0 .5rem; font: 500 .8125rem/1.4 var(--font-body);
  letter-spacing: .12em; text-transform: uppercase; color: var(--lake);
}
html[lang="ne"] .eyebrow { letter-spacing: 0; font-size: .9375rem; }

h1, h2, h3 { margin: 0; font-weight: 400; font-family: var(--font-display); }
html[lang="ne"] :is(h1, h2, h3) { font-weight: 500; }
h2 { font-size: clamp(1.875rem, 4.5vw, 2.75rem); line-height: 1.12; letter-spacing: -.01em; margin-bottom: 1.5rem; max-width: 22ch; text-wrap: balance; }
html[lang="ne"] h2 { letter-spacing: 0; line-height: 1.3; }
h3 { font-size: 1.375rem; line-height: 1.25; }
html[lang="ne"] h3 { line-height: 1.45; }

/* ---------- Masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--rule);
  background: rgba(245, 240, 230, .9); -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; flex-direction: column; justify-content: center; gap: .3rem; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand-name { font: 500 1.3125rem/1 var(--font-display); letter-spacing: -.005em; }
.brand-role { font: 500 .6875rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--lake); }
html[lang="ne"] .brand-role { letter-spacing: 0; font-size: .8125rem; }
.btn-sm { min-height: 2.75rem; padding: .5rem 1.125rem; font-size: .9375rem; }
.nav .head-call, .nav .head-call:hover { color: #fff; }
.nav .head-call { margin-left: .25rem; }
.brand-role { white-space: nowrap; }
@media (max-width: 40em) { .nav .head-call { display: none; } }
section[id] { scroll-margin-top: 5.5rem; }
.nav { display: flex; align-items: center; gap: 1.25rem; font-size: .9375rem; font-weight: 500; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--stone); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav .lang {
  color: var(--lake); border: 1px solid var(--rule); border-radius: 999px;
  padding: 0 .875rem; min-height: 2.75rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Kohinoor Devanagari", "Noto Sans Devanagari", sans-serif;
}
.nav .lang:hover { border-color: var(--lake); color: var(--lake-deep); }
@media (max-width: 40em) { .nav .section-link { display: none; } }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr auto; gap: 1.25rem 1rem;
  grid-template-areas: "title portrait" "body body";
  align-items: start; padding-block: 2.25rem 2.5rem;
}
.hero-title { grid-area: title; align-self: end; }
.hero-body { grid-area: body; }
.hero-portrait { grid-area: portrait; width: clamp(8.5rem, 36vw, 11rem); margin-top: .25rem; }
.hero h1 { font-size: clamp(2.875rem, 11.5vw, 6rem); line-height: .98; letter-spacing: -.02em; }
html[lang="ne"] .hero h1 { font-size: clamp(2.5rem, 10vw, 5.25rem); line-height: 1.2; letter-spacing: 0; }
.hero h1 span { display: block; }
.lead { margin: 0; font: 400 clamp(1.25rem, 2.3vw, 1.5rem)/1.4 var(--font-display); max-width: 30ch; }
html[lang="ne"] .lead { font-weight: 500; line-height: 1.55; max-width: 30ch; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .75rem 1.375rem; border-radius: .375rem; border: 1px solid transparent;
  font: 500 1.0625rem/1.2 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--lake); color: #fff; }
.btn-primary:hover { background: var(--lake-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
@media (max-width: 30em) { .actions .btn { flex: 1 1 100%; } }

.facts { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.facts > div { margin: 0; }
.facts dt { font: 500 .8125rem/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--stone); }
html[lang="ne"] .facts dt { letter-spacing: 0; font-size: .9375rem; }
.facts dd { margin: .125rem 0 0; font: 400 1.75rem/1.1 var(--font-display); font-variant-numeric: lining-nums; }
html[lang="ne"] .facts dd { font-weight: 500; line-height: 1.3; }

@media (min-width: 60em) {
  .hero {
    grid-template-columns: 7fr 5fr; grid-template-areas: "title portrait" "body portrait";
    gap: 2rem 5rem; align-items: center; padding-block: 4.5rem 5rem;
  }
  .hero-title { align-self: end; }
  .hero-body { align-self: start; }
  .hero-portrait { width: min(100%, 25rem); justify-self: end; margin-top: 0; }
  .actions { margin-top: 2rem; }
  .facts { margin-top: 2.5rem; }
}

/* Portrait: the photo on a hairline "mount" offset to the lower-right, like a print on a board */
.portrait { position: relative; margin: 0; isolation: isolate; }
.portrait img { display: block; width: 100%; height: auto; border-radius: .25rem; background: var(--rule); }
.portrait::before {
  content: ""; position: absolute; z-index: -1; border: 1px solid var(--rule); border-radius: .25rem;
  inset: .625rem -.625rem -.625rem .625rem;
}

/* ---------- Horizon ornament: a hairline with the Machhapuchhre peak, used once per page ---------- */
.horizon { position: relative; height: 2.1rem; margin-block: 0; }
.horizon::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; border-top: 1px solid var(--rule); }
.horizon svg { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 9rem; height: 2.025rem; overflow: visible; }

/* ---------- Sections ---------- */
.section { padding-block: 3.25rem; }
.section + .section { border-top: 1px solid var(--rule); }
@media (min-width: 48em) { .section { padding-block: 5rem; } }
.section-head { margin-bottom: 2rem; }
.note { color: var(--stone); font-size: .9375rem; }

/* ---------- Hospitals register ---------- */
.register { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--rule); }
.register li {
  display: grid; grid-template-columns: 3.25rem 1fr; gap: 0 .75rem; align-items: start;
  padding: 1.5rem 0; border-bottom: 1px solid var(--rule);
}
.register .num { font: 400 2rem/1 var(--font-display); color: var(--lake); font-variant-numeric: lining-nums tabular-nums; padding-top: .125rem; }
.register h3 { font-size: 1.375rem; }
.register .aka { color: var(--stone); font-weight: 400; }
.register p { margin: .375rem 0 0; color: var(--stone); font-size: .9375rem; max-width: none; }
.register-note { margin-top: 1.25rem; }
.tag {
  display: inline-block; vertical-align: .15em; margin-left: .5rem;
  font: 500 .6875rem/1.6 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--lake); border: 1px solid currentColor; border-radius: 999px; padding: 0 .5rem;
}
html[lang="ne"] .tag { letter-spacing: 0; font-size: .8125rem; vertical-align: .1em; }
@media (min-width: 48em) {
  .register { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; }
  .register li { padding: 1.75rem 0; }
  .register .num { font-size: 2.5rem; }
}

/* ---------- About ---------- */
.about { display: grid; gap: 2.5rem; }
.about .portrait { max-width: 20rem; }
.details {
  display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.5rem; margin: 2rem 0 0;
  padding-top: 1.25rem; border-top: 1px solid var(--rule); font-size: .9375rem;
}
.details dt { color: var(--stone); }
.details dd { margin: 0; }
@media (min-width: 48em) {
  .about { grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; }
  .about .portrait { max-width: 22rem; }
}

/* ---------- What physiotherapy can help with ---------- */
.help { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 1px solid var(--rule); max-width: var(--measure); }
.help li { padding: .875rem 0; border-bottom: 1px solid var(--rule); font: 400 1.25rem/1.3 var(--font-display); }
html[lang="ne"] .help li { font-weight: 500; line-height: 1.5; }
@media (min-width: 48em) {
  .help { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; max-width: none; }
}

/* ---------- Contact ---------- */
.contact-band { background: var(--lake-tint); border-top: 1px solid var(--rule); }
.contacts { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .875rem; }
.contact {
  display: block; background: var(--snow); border: 1px solid var(--rule); border-radius: .5rem;
  padding: 1.125rem 1.25rem; color: var(--ink); text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.contact:hover { border-color: var(--lake); color: var(--ink); box-shadow: 0 1px 0 var(--lake); }
.contact small { display: block; font: 500 .75rem/1.4 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--lake); margin-bottom: .25rem; }
html[lang="ne"] .contact small { letter-spacing: 0; font-size: .875rem; }
.contact strong { display: block; font: 400 1.375rem/1.25 var(--font-display); overflow-wrap: anywhere; }
html[lang="ne"] .contact strong { font-weight: 500; }
.contact span { display: block; color: var(--stone); font-size: .9375rem; margin-top: .375rem; }
@media (min-width: 48em) { .contacts { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--rule); padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; color: var(--stone); font-size: .9375rem; }
.footer p { margin: 0; }
.footer a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: .2em; }
.footer a:hover { text-decoration-color: currentColor; }
.footer .name { margin: 0 0 .35rem; font: 400 1.375rem/1.3 var(--font-display); color: var(--ink); }
html[lang="ne"] .footer .name { font-weight: 500; }
.footer-grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: 1fr 1fr; }
.f-brand { grid-column: 1 / -1; }
.f-h { margin: 0 0 .6rem !important; font: 500 .75rem/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--lake); }
html[lang="ne"] .f-h { letter-spacing: 0; font-size: .875rem; }
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.f-col li { line-height: 1.45; }
.f-bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; align-items: baseline;
            margin-top: clamp(2rem, 5vw, 3rem); padding-top: 1.25rem; font-size: .8125rem; position: relative; }
.f-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--rule); }
.footer .lang { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Kohinoor Devanagari", "Noto Sans Devanagari", sans-serif; }
@media (min-width: 48em) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1.4fr .8fr; }
  .f-brand { grid-column: auto; }
}
.hero h1 .eyebrow { display: block; margin-bottom: .75rem; }

/* ---------- Call bar (phones only; shown by site.js once the hero buttons scroll away) ---------- */
.callbar {
  position: fixed; inset: auto 0 0 0; z-index: 10; display: flex; gap: .625rem;
  padding: .625rem var(--gutter) calc(.625rem + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--rule);
  transform: translateY(105%); transition: transform .2s ease-out;
}
.callbar[hidden] { display: none; }
.callbar.is-visible { transform: none; }
.callbar .btn { flex: 1; min-height: 2.75rem; padding-block: .5rem; }
body.callbar-on { padding-bottom: 4.5rem; }
@media (min-width: 48em) { .callbar, .callbar.is-visible { display: none; } body.callbar-on { padding-bottom: 0; } }

/* ---------- 404 ---------- */
.notfound { padding-block: 4rem 6rem; }
.notfound h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); line-height: 1; letter-spacing: -.02em; margin-bottom: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}


/* ---------- In the clinic: three equal photos, captions underneath ---------- */
.lede-sm { max-width: 38rem; color: var(--stone); margin-block: .5rem 0; }
.gallery { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); margin-top: clamp(1.5rem, 4vw, 2.5rem);
           grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
               border-radius: .25rem; background: var(--rule); }
.gallery figcaption { margin-top: .6rem; font-size: .875rem; line-height: 1.4; color: var(--stone); }

.register h3 a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .18em; text-decoration-thickness: 1px; }
.register h3 a:hover { text-decoration-color: var(--lake); color: var(--lake-deep); }

/* Language pill: lighter visually, full 44px tap area kept with an invisible halo */
.nav .lang { position: relative; min-height: 2.25rem; padding: 0 .9rem; font-size: .9375rem; line-height: 1; }
.nav .lang::after { content: ""; position: absolute; inset: -.25rem; }
