/* Dr Pulgaonkar Bone Joint & Medical Clinic
   Palette and fonts come from copy/brand-kit.md */

:root {
  /* colours taken from the clinic logo: navy + teal */
  --bg: #F4F7F9;
  --surface: #FFFFFF;
  --surface-2: #E7EFF2;
  --text: #0F2C55;
  --muted: #4A5D78;
  --accent: #0E7D7A;          /* logo teal, darkened for readable buttons */
  --accent-dark: #0A6260;
  --accent-rgb: 14, 125, 122;
  --accent-2: #1F9A98;        /* logo teal, decorative only */
  --line: #D0DCE3;
  --ink: #0F2C55;             /* logo navy */
  --film: #0B2246;
  --film-text: #D3E0EE;
  --film-blue: #5FD3CB;
  --warn: #B4690E;

  --font: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-tag: "Montserrat", var(--font);
  --font-sign: "Outfit", "Montserrat", var(--font);   /* lettering of the clinic's wall sign */

  --wrap: 1160px;
  --gutter: 20px;
  --header-h: 84px;
  --radius: 14px;
  --radius-sm: 10px;
  --axis-x: 40px;      /* axis position inside the wrap's left padding */
  --content-x: 88px;   /* where content starts when the axis shows */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html, body { overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: 0; color: var(--ink); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
.ic { width: 1.2em; height: 1.2em; flex: none; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: .7em 1em; border-radius: var(--radius-sm);
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.25em;
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-family: var(--font); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--text); }
.btn--light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255, 255, 255, .22); border-color: #fff; }

/* ---------- top bar ---------- */
.topbar { background: var(--ink); color: #D3E0EE; font-size: .92rem; }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; min-height: 40px; padding-block: 6px; }
.topbar p { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.topbar .ic { width: 1.05em; height: 1.05em; color: var(--film-blue); }
.topbar__links { margin-left: auto !important; gap: 20px !important; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; color: #fff; text-decoration: none; font-weight: 700; min-height: 32px; }
.topbar a:hover { color: var(--film-blue); }
@media (max-width: 759px) { .topbar { display: none; } }
.btn--sm { min-height: 44px; padding: .55em 1em; }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 20px -14px rgba(15, 44, 85, .35);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand__mark { width: auto; height: 62px; flex: none; aspect-ratio: 514 / 700; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; font-family: var(--font-sign); }
.brand__text > span { white-space: nowrap; }
.brand__name { font-weight: 700; font-size: 2rem; line-height: 1; letter-spacing: -.012em; color: var(--ink); }
.brand__sub { font-weight: 700; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-top: 5px; }
.brand__tag { font-weight: 600; font-size: .62rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink); margin-top: 4px; }
.brand__tag span { color: var(--accent); font-weight: 700; margin-inline: .2em; }
.site-nav .btn { white-space: nowrap; }
@media (min-width: 1180px) and (max-width: 1319px) {
  .brand__mark { width: auto; height: 52px; }
  .brand__name { font-size: 1.7rem; }
  .brand__sub { font-size: .66rem; }
  .brand__tag { display: none; }
  .site-nav { gap: 14px; }
  .nav-list { gap: 2px; }
  .site-nav a:not(.btn) { font-size: .95rem; }
}
@media (min-width: 1100px) {
  /* the header is a little wider than the content and doesn't need the axis gutter */
  .site-header .wrap, .topbar .wrap { max-width: 1280px; padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 559px) {
  .brand { gap: 9px; }
  .brand__mark { width: auto; height: 48px; }
  .brand__name { font-size: 1.55rem; }
  .brand__sub { font-size: .62rem; letter-spacing: .06em; }
  .brand__tag { display: none; }
  .menu-btn__label { display: none; }
  .menu-btn { padding: 0 12px; min-width: 48px; justify-content: center; }
}

.menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px;
  background: transparent; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 700; font-size: 1rem;
}
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -6px; }
.menu-btn__bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul { list-style: none; }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 700; font-size: 1rem; }
.site-nav a:not(.btn):hover { color: var(--accent); }
.sub-btn {
  display: grid; place-items: center; padding: 0; border: 0; background: transparent;
  color: var(--text); cursor: pointer; border-radius: 8px;
}
.sub-btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.sub-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub-btn:hover { color: var(--accent); }
.sub__h { margin: 0; font-family: var(--font-tag); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

@media (max-width: 1179px) {
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    box-shadow: 0 18px 30px -18px rgba(16, 52, 63, .35);
  }
  .site-nav.is-open { display: block; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li > a { display: flex; align-items: center; min-height: 52px; }
  .nav-list > li > a[aria-current="page"] { color: var(--accent); }
  .has-sub { display: grid; grid-template-columns: 1fr 52px; }
  .sub-btn { width: 52px; height: 52px; }
  .sub { grid-column: 1 / -1; display: none; padding: 0 0 12px 14px; border-left: 3px solid var(--accent-2); margin-bottom: 12px; }
  .sub-btn[aria-expanded="true"] + .sub { display: block; }
  .sub a { display: flex; align-items: center; min-height: 44px; font-weight: 400 !important; }
  .sub__h { margin-top: 10px; }
  .sub__all { margin-top: 8px; }
  .sub__all a { font-weight: 700 !important; }
  .site-nav .btn { width: 100%; margin-top: 16px; }
}
@media (min-width: 1180px) {
  .menu-btn { display: none; }
  .site-nav { display: flex; align-items: center; gap: 22px; }
  .nav-list { display: flex; align-items: center; gap: 6px; }
  .nav-list > li { position: relative; display: flex; align-items: center; }
  .nav-list > li > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
  .nav-list > li > a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent-2); }
  .has-sub > a { padding-right: 0; }
  .sub-btn { width: 26px; height: 44px; }
  .sub {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 250px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 26px 50px -20px rgba(15, 44, 85, .45);
    padding: 10px;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
  .has-sub:hover > .sub, .sub-btn[aria-expanded="true"] + .sub { opacity: 1; visibility: visible; transform: none; }
  .sub ul { list-style: none; display: grid; gap: 2px; }
  .sub a { display: flex; align-items: center; min-height: 40px; padding: 6px 12px; border-radius: 8px; font-size: .98rem; }
  .sub a:hover { background: var(--bg); }
  .sub__h { padding: 8px 12px 4px; }
  .sub--mega { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; width: 600px; left: 50%; transform: translate(-50%, 8px); }
  .has-sub:hover > .sub--mega, .sub-btn[aria-expanded="true"] + .sub--mega { transform: translate(-50%, 0); }
  .sub__all { grid-column: 1 / -1; display: flex !important; gap: 4px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
  .sub__all a { color: var(--accent) !important; }
}

/* ---------- signature: the alignment axis ---------- */
#main { position: relative; }
.sec-head { position: relative; font-size: clamp(1.85rem, 3.4vw, 2.6rem); margin-bottom: .7em; padding-left: 26px; }
.sec-head::before {
  content: ""; position: absolute; left: 0; top: .32em;
  width: 13px; height: 13px; border-radius: 50%;
  border: 2.5px solid var(--accent-2); background: var(--bg);
  transition: background-color .5s ease, box-shadow .5s ease;
}
.sec-head::after {
  content: ""; position: absolute; left: 6px; top: calc(.32em + 15px); bottom: -.35em;
  width: 1px; background: var(--line);
}
.in .sec-head::before { background: var(--accent-2); box-shadow: 0 0 0 5px rgba(31, 154, 152, .16); }

@media (min-width: 1100px) {
  .wrap { padding-left: var(--content-x); padding-right: 32px; }
  #main::before {
    content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; pointer-events: none;
    left: max(var(--axis-x), calc(50% - var(--wrap) / 2 + var(--axis-x)));
    width: 13px; transform: translateX(-50%);
    background:
      linear-gradient(var(--line), var(--line)) 50% 0 / 1px 100% no-repeat,
      repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 24px) 100% 0 / 6px 100% no-repeat,
      repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 120px) 0 0 / 13px 100% no-repeat;
  }
  .sec-head { padding-left: 0; }
  .sec-head::before { left: calc(var(--axis-x) - var(--content-x)); transform: translateX(-50%); z-index: 2; }
  .sec-head::after { display: none; }
}

/* ---------- hero: full-width clinic photo ---------- */
.hero {
  position: relative; z-index: 2; overflow: hidden; isolation: isolate;
  min-height: clamp(560px, 78vh, 760px);
  display: flex; align-items: center;
  padding: clamp(56px, 8vw, 110px) 0 clamp(110px, 12vw, 150px);
  background: var(--ink);
}
.hero__media {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 44%; }
@media (min-width: 1180px) {
  /* photo panel on the right half, framed on the lit logo sign */
  .hero { background: var(--film); }
  /* The photo is as tall as the hero; it is then slid so the centre of the lit logo
     (50.4% across the photo) sits at 60% across the panel, clear of the text. */
  .hero__media { left: 48%; }
  .hero__img { inset: auto; top: 0; left: 60%; width: auto; height: 100%; object-fit: fill; transform: translateX(-50.4%); }
  .hero::before {
    background:
      linear-gradient(90deg, var(--film) 0%, var(--film) 47%, rgba(11, 34, 70, .75) 50%, rgba(11, 34, 70, .2) 55%, rgba(11, 34, 70, 0) 59%),
      linear-gradient(0deg, rgba(11, 34, 70, .55) 0%, rgba(11, 34, 70, 0) 26%) !important;
  }
  .hero .hero__copy { max-width: 580px; }
}
@media (min-width: 1180px) and (max-width: 1365px) {
  /* narrower desktops: keep text and buttons clear of the logo */
  .hero .hero__copy { max-width: 540px; }
  .hero__img { left: 64%; }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 34, 70, .92) 0%, rgba(11, 34, 70, .78) 38%, rgba(11, 34, 70, .25) 72%, rgba(11, 34, 70, .1) 100%),
    linear-gradient(0deg, rgba(11, 34, 70, .55) 0%, rgba(11, 34, 70, 0) 35%);
}
.hero__inner { width: 100%; }
.hero__copy { max-width: 760px; color: #fff; text-shadow: 0 1px 2px rgba(5, 15, 35, .55), 0 6px 26px rgba(5, 15, 35, .45); }
.hero__copy h1 { display: flex; flex-direction: column; align-items: flex-start; margin: 0 0 12px; color: #fff; font-family: var(--font-sign); }
/* name block lettered like the clinic's wall sign: three lines of about equal width */
.hero__name {
  font-family: var(--font-sign); font-weight: 700; color: #fff;
  font-size: clamp(2.6rem, 5.2vw, 4.6rem); line-height: 1; letter-spacing: -.012em;
}
@media (min-width: 420px) { .hero__name, .hero__clinic { white-space: nowrap; } }
.hero__clinic {
  font-family: var(--font-sign); font-weight: 700; color: var(--film-blue); text-transform: uppercase;
  font-size: clamp(.95rem, 1.92vw, 1.7rem); line-height: 1.15; letter-spacing: .1em; margin-top: .5em;
}
.hero__tagline {
  font-family: var(--font-sign); font-weight: 600; text-transform: uppercase;
  font-size: clamp(.8rem, 1.6vw, 1.42rem); letter-spacing: .15em; color: #fff;
  margin: 0 0 22px;
}
.hero__tagline span { margin-inline: .2em; color: var(--film-blue); font-weight: 700; }
.hero__lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: #E4ECF5; max-width: 34em; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero__actions .btn { text-shadow: none; }

.status { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; font-size: 1rem; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.status.is-open .status__dot { background: #1E9E5A; box-shadow: 0 0 0 4px rgba(30, 158, 90, .18); }
.status.is-closed .status__dot { background: var(--warn); }
.status--hero {
  padding: .45em .9em; border-radius: 999px; color: #fff; text-shadow: none;
  background: rgba(8, 26, 54, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.status--hero.is-closed .status__dot { background: #F2A541; }

@media (max-width: 759px) {
  .hero { min-height: 0; padding: 48px 0 64px; }
  .hero__media { background-position: 30% 50%; }
  .hero::before { background: linear-gradient(180deg, rgba(11, 34, 70, .82) 0%, rgba(11, 34, 70, .88) 100%); }
  .hero__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__media { animation: hero-drift 20s ease-in-out infinite alternate; }
}
@keyframes hero-drift { from { transform: scale(1); } to { transform: scale(1.06); } }

/* ---------- highlights (overlap the hero) ---------- */
.highlights { position: relative; z-index: 3; margin-top: clamp(-90px, -7vw, -60px); }
.highlights__grid { list-style: none; display: grid; gap: 14px; }
@media (min-width: 640px) { .highlights__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .highlights__grid { grid-template-columns: repeat(4, 1fr); } }
.hl {
  background: var(--surface); border-radius: var(--radius); padding: 22px 22px 20px;
  box-shadow: 0 18px 40px -22px rgba(15, 44, 85, .45);
  border-top: 4px solid var(--accent-2);
}
.hl .ic { width: 34px; height: 34px; color: var(--accent); margin-bottom: 12px; }
.hl__title { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; color: var(--ink); margin: 0 0 4px; line-height: 1.2; }
.hl p:last-child { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.45; }
@media (max-width: 759px) { .highlights { margin-top: 0; padding-top: 20px; } }

/* section photos */
.welcome__side { display: grid; gap: 20px; }
/* About Us photo slider */
.slider { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); box-shadow: 0 18px 40px -26px rgba(15, 44, 85, .5); }
.slider__track {
  list-style: none; margin: 0; padding: 0; display: flex;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track:focus-visible { outline: 3px solid var(--accent-2); outline-offset: -3px; }
.slider__slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.slider__slide img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--ink);
  box-shadow: 0 6px 18px -6px rgba(15, 44, 85, .55);
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}
.slider__btn svg { width: 22px; height: 22px; }
.slider__btn:hover { background: var(--accent); color: #fff; }
.slider__btn:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.slider__btn--prev { left: 12px; }
.slider__btn--next { right: 12px; }
.slider__btn[disabled] { opacity: .35; cursor: default; }
.slider__dots {
  position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2;
  display: flex; justify-content: center; gap: 2px;
}
.slider__dot {
  width: 30px; height: 30px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.slider__dot::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, .6); box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
  transition: width .25s ease, background-color .25s ease;
}
.slider__dot[aria-current="true"]::before { width: 24px; border-radius: 6px; background: #fff; }
.slider__dot:focus-visible { outline: 2px solid #fff; outline-offset: -4px; border-radius: 8px; }
@media (prefers-reduced-motion: no-preference) { .slider__track { scroll-behavior: smooth; } }

.welcome__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 60%; border-radius: var(--radius); background: var(--surface-2); }
.svc__img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 18px; background: var(--surface-2); }
.svc { border-top: 0; padding-top: 0; }
.svc__title { padding-top: 14px; border-top: 3px solid var(--accent); }
.svc + .svc .svc__title { border-top-color: var(--accent-2); }

/* pharmacy + laboratory */
.svc-extra { display: grid; gap: 16px; margin-top: 8px; }
@media (min-width: 700px) {
  .svc-extra { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .svc-extra__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.svc-extra__item { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent-2); border-radius: var(--radius); padding: 20px; }
.svc-extra__item .ic { width: 36px; height: 36px; color: var(--accent); }
.svc-extra__item h3 { font-size: 1.3rem; margin-bottom: 4px; }
.svc-extra__item p { margin: 0; color: var(--muted); }

/* floating WhatsApp (phones use the bottom action bar instead) */
.float-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 55;
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px;
  border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700;
  box-shadow: 0 14px 30px -10px rgba(10, 98, 96, .6);
}
.float-wa .ic { width: 24px; height: 24px; }
.float-wa:hover { background: var(--accent-dark); }
@media (max-width: 759px) { .float-wa { display: none; } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.prose p { max-width: 38em; }
.lead { font-size: clamp(1.2rem, 1.9vw, 1.4rem); line-height: 1.45; color: var(--ink); font-weight: 700; }

/* welcome */
.welcome__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .welcome__grid { grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; } }
.glance { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.glance__title { font-size: 1.25rem; margin-bottom: 14px; }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ic { color: var(--accent); margin-top: .2em; }

/* doctors */
.doctors { background: var(--surface-2); }
.doctors .sec-head::before { background: var(--surface-2); }
.doctors.in .sec-head::before { background: var(--accent-2); }
.doctors__grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .doctors__grid { grid-template-columns: 1fr 1fr; } }
.doc { background: var(--surface); border-radius: var(--radius); padding: 28px; display: grid; gap: 22px; align-content: start; }
@media (min-width: 560px) and (max-width: 899px) { .doc { grid-template-columns: 190px 1fr; } }
@media (min-width: 900px) {
  .doc { grid-template-columns: 200px 1fr; column-gap: 24px; row-gap: 0; }
  .doc__photo { grid-column: 1; grid-row: 1; width: 200px; }
  .doc__body { display: contents; }
  .doc__head { grid-column: 2; grid-row: 1; align-self: end; }
  .doc__body > :not(.doc__head) { grid-column: 1 / -1; }
  .doc .quals { margin-top: 22px; }
}
.doc__photo {
  position: relative; width: 190px; max-width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-sm);
  background: var(--ink); display: grid; place-items: center; overflow: hidden;
}
.doc__photo::before {
  content: ""; position: absolute; top: 12px; bottom: 12px; left: 50%; width: 1px;
  background: repeating-linear-gradient(to bottom, var(--film-blue) 0 4px, transparent 4px 9px); opacity: .45;
}
.doc__photo span { position: relative; font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; color: #F3F6F5; letter-spacing: .02em; background: var(--ink); padding: 0 .1em; }
.doc__photo--alt { background: var(--accent); }
.doc__photo--alt span { background: var(--accent); }
.doc__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.doc__photo:has(img) { background: #C9CDD0; }
.doc__name { font-size: 1.6rem; }
.doc__role { color: var(--accent); font-weight: 700; margin: 4px 0 14px; }
.doc__reg { margin: -6px 0 16px; font-size: .92rem; color: var(--muted); }
.quals { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.quals li { font-size: .92rem; font-weight: 700; padding: .3em .7em; border: 1.5px solid var(--line); border-radius: 8px; background: var(--bg); }
.doc__body p { margin: 0; color: var(--muted); }
.doc__body p + p { margin-top: .8em; }

/* services */
.services__grid { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .services__grid { grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
  .services__intro { position: sticky; top: calc(var(--header-h) + 32px); }
}
.services__intro p { color: var(--muted); margin-bottom: 24px; }
.services__groups { display: grid; gap: 24px; }
@media (min-width: 700px) { .services__groups { grid-template-columns: 1fr 1fr; } }
.svc__title { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 14px; }
.svc__title .ic { color: var(--accent); width: 1.4em; height: 1.4em; }
.svc + .svc .svc__title .ic { color: var(--accent-2); }
.svc__list { list-style: none; }
.svc__list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.svc__list strong { color: var(--text); }

/* procedures */
.procedures { background: var(--surface); }
.procedures .sec-head::before { background: var(--surface); }
.procedures.in .sec-head::before { background: var(--accent-2); }
.proc-group + .proc-group { margin-top: 56px; }
.proc-group__title { font-size: 1.35rem; margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.proc-group__title span { font-family: var(--font); font-size: 1rem; font-weight: 700; color: var(--accent); letter-spacing: 0; }
.proc { margin: 16px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.proc > div {
  display: flex; flex-direction: column; gap: 8px; padding: 22px 20px;
  background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--accent-2); border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.proc > div:hover { border-color: var(--accent); box-shadow: 0 16px 30px -22px rgba(15, 44, 85, .5); }
/* treatment cards with pictures */
.treat { list-style: none; margin: 18px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.treat__card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 30px -24px rgba(15, 44, 85, .45);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.treat__card:hover { transform: translateY(-3px); border-color: var(--accent-2); box-shadow: 0 22px 40px -24px rgba(15, 44, 85, .55); }
.treat__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; background: var(--surface-2); }
.treat__img--top { object-position: 50% 30%; }
/* Dr Rajendra's services: wide pictures (600 x 218) */
.treat--wide .treat__img { aspect-ratio: 600 / 218; }
.treat__img--icon {
  display: grid; place-content: center; justify-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--ink), #16457A); color: #fff;
}
.treat__img--icon .ic { width: 56px; height: 56px; color: var(--film-blue); }
.treat__img--icon span { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; letter-spacing: .04em; text-transform: uppercase; }
.treat__body { padding: 18px 20px 22px; border-top: 4px solid var(--accent-2); }
.treat__body h4 { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; line-height: 1.2; color: var(--ink); margin: 0 0 8px; }
.treat__body p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .treat__card:hover { transform: none; } }

.proc dt { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; line-height: 1.2; color: var(--ink); }
.proc dd { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.5; }

/* conditions */
.conditions__grid { display: grid; gap: 40px; }
@media (min-width: 860px) {
  .conditions__grid { grid-template-columns: 1fr 1fr; gap: 0 56px; }
  .conditions__grid > .cond-notes { grid-column: 1 / -1; }
}
.cond-title { font-size: 1.25rem; margin-bottom: 16px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  display: inline-flex; align-items: center; min-height: 44px; padding: .45em 1em;
  background: var(--surface); border: 1.5px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 8px; font-weight: 700;
}
.chips--alt li { border-left-color: var(--accent-2); }
.chips .chip--wide { background: var(--surface-2); }
.cond-note { margin-top: 24px; color: var(--muted); }
@media (min-width: 860px) { .cond-notes { padding-top: 24px; } }
.cond-note--urgent { margin-top: -8px; font-size: 1rem; color: #8A2A1F; }

/* booking */
.book { background: var(--surface-2); }
.book .sec-head::before { background: var(--surface-2); }
.book.in .sec-head::before { background: var(--accent-2); }
.book + .visit { border-top: 1px solid var(--line); }
.book__grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .book__grid { grid-template-columns: 7fr 4fr; gap: 48px; align-items: start; } }
.book__intro { color: var(--muted); max-width: 36em; }
.book__panel .form, .form-done { background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }

.form { display: grid; gap: 18px; }
@media (min-width: 600px) { .form { grid-template-columns: 1fr 1fr; } .form > .field:not(.field--half), .form > .btn, .form > .form__small { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 1rem; padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .65em .8em;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 1.05rem;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(31, 154, 152, .25); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field__hint { margin: 0; font-size: .9rem; color: var(--muted); }
.field__error { margin: 0; font-size: .95rem; font-weight: 700; color: #B3261E; }
.field__label { margin: 0; font-weight: 700; font-size: 1rem; }
.slot-box {
  display: flex; flex-direction: column; justify-content: center; min-height: 50px; margin: 0; padding: .45em .8em;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: rgba(var(--accent-rgb), .06); font-weight: 700; line-height: 1.25;
}
.slot-box small { font-weight: 400; font-size: .85rem; color: var(--muted); }
.radios { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.radio { position: relative; cursor: pointer; }
.radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.radio span {
  display: flex; flex-direction: column; justify-content: center; min-height: 50px; padding: .45em .8em;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-weight: 700; line-height: 1.25;
}
.radio small { font-weight: 400; font-size: .85rem; color: var(--muted); }
.radio input:checked + span { border-color: var(--accent); background: rgba(var(--accent-rgb), .08); box-shadow: inset 0 0 0 1px var(--accent); }
.radio input:focus-visible + span { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.form__small { margin: 0; font-size: .9rem; color: var(--muted); }

.form-done { text-align: left; }
.form-done:focus { outline: none; }
.form-done__ic { width: 44px; height: 44px; color: #fff; background: var(--accent); border-radius: 50%; padding: 10px; margin-bottom: 16px; }
.form-done h3 { font-size: 1.5rem; margin-bottom: 8px; }
.form-done p { color: var(--muted); }
.form-done__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }

.book__side { display: grid; gap: 16px; }
.side-block { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.side-block h3 { font-size: 1.2rem; margin-bottom: 12px; }
.side-block p { margin: 0; color: var(--muted); }
.side-link {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 0;
  text-decoration: none; color: var(--text); border-top: 1px solid var(--line);
}
.side-link:first-of-type { border-top: 0; }
.side-link .ic { width: 1.5em; height: 1.5em; color: var(--accent); }
.side-link span { display: flex; flex-direction: column; font-size: .95rem; color: var(--muted); line-height: 1.3; }
.side-link strong { font-size: 1.15rem; color: var(--text); }
.side-link:hover strong { color: var(--accent); }

.hours { margin: 0; display: grid; gap: 10px; }
.hours > div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.hours > div:last-child { border-bottom: 0; padding-bottom: 0; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; text-align: right; color: var(--muted); }

/* blog */
.blog { background: var(--surface-2); }
.blog .sec-head::before { background: var(--surface-2); }
.blog.in .sec-head::before { background: var(--accent-2); }
.blog__intro { color: var(--muted); margin-top: -.6em; margin-bottom: 32px; }
.posts { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.post__title { font-size: 1.3rem; margin-bottom: 8px; }
.post__meta { font-size: .92rem; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.post__excerpt { color: var(--muted); }
.post__more summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 700; color: var(--accent); cursor: pointer; list-style: none;
}
.post__more summary::-webkit-details-marker { display: none; }
.post__more summary::after {
  content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .2s ease;
}
.post__more[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.post__more .prose { padding-top: 12px; border-top: 1px solid var(--line); margin-top: 8px; font-size: 1.05rem; }
.post__more .prose ul { padding-left: 1.2em; margin: 0 0 1em; display: grid; gap: 6px; }
.post__more .prose p:last-child { margin-bottom: 0; }

/* hospitals: dark band */
.hospitals { background: var(--ink); color: #E8F0EE; }
.hospitals .sec-head { color: #fff; }
.hospitals .sec-head::before { background: var(--ink); border-color: var(--film-blue); }
.hospitals.in .sec-head::before { background: var(--film-blue); box-shadow: 0 0 0 5px rgba(120, 184, 240, .18); }
.hospitals .sec-head::after { background: rgba(204, 217, 214, .3); }
.hospitals p { color: #C3D2E3; max-width: 32em; }
.hospitals__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .hospitals__grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; } }
.nowrap { white-space: nowrap; }
.hosp-list { list-style: none; display: grid; gap: 12px; }
@media (min-width: 600px) {
  .hosp-list { grid-template-columns: 1fr 1fr; }
  .hosp-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.hosp-list li {
  display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 16px 20px;
  border: 1px solid rgba(204, 217, 214, .25); border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: #fff;
}
.hosp-list .ic { color: var(--film-blue); width: 1.5em; height: 1.5em; }

/* visit */
.visit__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .visit__grid { grid-template-columns: 5fr 7fr; gap: 56px; align-items: stretch; } }
.addr { display: flex; gap: 12px; font-size: 1.2rem; line-height: 1.5; }
.addr .ic { color: var(--accent); width: 1.4em; height: 1.4em; margin-top: .15em; }
.visit .status { margin: 4px 0 20px; }
.visit .hours { max-width: 420px; margin-bottom: 28px; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.visit__map { min-height: 360px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.visit__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }
@media (min-width: 900px) { .visit__map, .visit__map iframe { min-height: 460px; } }

/* footer */
.site-footer { background: #0A1E3C; color: #B9C8DA; padding: 64px 0 0; font-size: 1rem; }
.site-footer a { color: #E8F0EE; }
.footer__grid { display: grid; gap: 32px; padding-bottom: 40px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 2fr 2fr 1.5fr 1.5fr; gap: 40px; } }
.footer__name { font-family: var(--font-sign); font-weight: 700; font-size: 1.75rem; color: #fff; line-height: 1.1; letter-spacing: -.01em; margin-bottom: 10px; }
.footer__sub { display: block; margin-top: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--film-blue); }
.footer__tag { color: #E4ECF5; font-family: var(--font-sign); font-weight: 600; font-size: .76rem; letter-spacing: .15em; text-transform: uppercase; }
.footer__tag span { color: var(--film-blue); font-weight: 700; margin-inline: .2em; }
.footer__logo { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 12px; padding: 7px; margin-bottom: 14px; }

.footer__h { font-family: var(--font); font-size: 1rem; color: #fff; margin-bottom: 10px; letter-spacing: 0; }
.footer__links { list-style: none; display: grid; gap: 2px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__base { border-top: 1px solid rgba(204, 217, 214, .18); padding-block: 22px 28px; font-size: .9rem; display: grid; gap: 6px; }
.footer__base p { margin: 0; }

/* ================= multi-page parts (Home, About, Services, Gallery, Contact) ================= */

/* page banner */
.page-hero {
  position: relative; z-index: 2; color: #fff;
  padding: clamp(40px, 6vw, 76px) 0 clamp(36px, 5vw, 60px);
  background:
    radial-gradient(circle at 88% 12%, rgba(31, 154, 152, .38), transparent 46%),
    linear-gradient(135deg, var(--film) 0%, var(--ink) 100%);
}
.page-hero h1 { color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(2.4rem, 5.4vw, 3.8rem); line-height: 1; }
.page-hero > .wrap > p { color: #C9D6E6; max-width: 40em; margin: 14px 0 0; font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; font-size: .95rem; color: #A9BCD3; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { color: var(--film-blue); font-weight: 700; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.jump__label { margin: 22px 0 8px !important; font-family: var(--font-tag); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--film-blue) !important; }
.jump { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 22px; }
.jump__label + .jump { margin-top: 0; }
.jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .35em 1em;
  border: 1.5px solid rgba(255, 255, 255, .32); border-radius: 999px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: .98rem;
  transition: background-color .2s ease, border-color .2s ease;
}
.jump a:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* section helpers */
.sec-intro { color: var(--muted); max-width: 42em; margin: -.4em 0 28px; }
.sec-foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.sub-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 1.35rem; margin: 36px 0 14px; }
.sub-head:first-of-type { margin-top: 8px; }
.sub-head span { font-family: var(--font); font-size: 1rem; font-weight: 700; color: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; }
.text-link .ic { transition: transform .2s ease; }
.text-link:hover .ic { transform: translateX(3px); }

/* home: service tiles */
.home-services { background: var(--surface); }
.home-services .sec-head::before { background: var(--surface); }
.home-services.in .sec-head::before { background: var(--accent-2); }
.tiles { list-style: none; display: grid; gap: 16px; align-items: start; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tile {
  overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 30px -24px rgba(15, 44, 85, .45);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.tile:has(summary:hover) { border-color: var(--accent-2); box-shadow: 0 22px 40px -24px rgba(15, 44, 85, .55); }
.tile img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; background: var(--surface-2); }
/* the card title is the toggle: tap it or its chevron to read the description */
.tile__more summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: var(--tile-title-h, 79px); padding: 14px 16px; border-top: 4px solid var(--accent-2);
  list-style: none; cursor: pointer; color: var(--ink);
  font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; line-height: 1.2;
}
.tile__more summary:focus-visible { outline: 3px solid var(--accent-2); outline-offset: -3px; }
.tile__more summary::-webkit-details-marker { display: none; }
.tile__more summary .ic { flex: none; width: 20px; height: 20px; color: var(--accent); transition: transform .2s ease; }
.tile__more[open] summary .ic { transform: rotate(180deg); }
.tile__more p { min-height: var(--tile-panel-h, 0); margin: 0; padding: 0 16px 16px; color: var(--muted); font-size: .98rem; line-height: 1.5; }

/* home: doctor previews */
.docs-mini { display: grid; gap: 20px; }
@media (min-width: 900px) { .docs-mini { grid-template-columns: 1fr 1fr; } }
/* large photos so patients can recognise the doctors */
.doc-mini { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 24px; }
.doc-mini .doc__photo { width: 220px; box-shadow: 0 18px 36px -22px rgba(15, 44, 85, .55); }
.doc-mini .doc__photo span { font-size: 3.6rem; }
@media (min-width: 900px) and (max-width: 1099px) { .doc-mini { grid-template-columns: 180px 1fr; gap: 20px; } .doc-mini .doc__photo { width: 180px; } }
.doc-mini .doc__role { margin-bottom: 8px; }
.doc-mini p:not(.doc__role) { color: var(--muted); margin: 0 0 4px; font-size: 1.02rem; }

/* gallery */
.gallery-band { background: var(--film); color: var(--film-text); }
.gallery-band .sec-head { color: #fff; }
.gallery-band .sec-head::before { background: var(--film); border-color: var(--film-blue); }
.gallery-band.in .sec-head::before { background: var(--film-blue); box-shadow: 0 0 0 5px rgba(95, 211, 203, .18); }
.gallery-band .sec-intro { color: #B9C8DA; }
.gallery-band .gal__cap { color: #DCE6F2; }
.gal { list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gal--preview { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gal__link {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  background: #071733; border: 1px solid rgba(95, 211, 203, .18); border-radius: var(--radius-sm);
}
.gal__link img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.gal__link:hover img { transform: scale(1.04); }
.gal__link::after {
  content: ""; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7' fill='none' stroke='%230F2C55' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0; transition: opacity .2s ease;
}
.gal__link:hover::after, .gal__link:focus-visible::after { opacity: 1; }
.gal__cap { margin: 8px 0 0; font-weight: 700; font-size: .98rem; color: var(--ink); }
.gal-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.gal-filter__btn {
  min-height: 44px; padding: .4em 1.1em; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 1rem;
}
.gal-filter__btn span { margin-left: 4px; font-weight: 400; color: var(--muted); }
.gal-filter__btn:hover { border-color: var(--ink); }
.gal-filter__btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gal-filter__btn[aria-pressed="true"] span { color: #C9D6E6; }
.gal-note { margin: 28px 0 0; color: var(--muted); font-size: 1rem; max-width: 46em; }

/* full-size X-ray viewer */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(4, 13, 28, .95); color: #fff; overflow: hidden;
}
.lightbox::backdrop { background: rgba(4, 13, 28, .7); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__fig { margin: 0; display: grid; gap: 14px; justify-items: center; padding: 64px 88px 28px; }
.lightbox__img { width: auto; height: auto; max-width: min(100%, 1100px); max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 8px; }
.lightbox__cap { font-weight: 700; font-size: 1.1rem; text-align: center; }
.lightbox__count { position: absolute; top: 20px; left: 22px; margin: 0; color: #C9D6E6; font-weight: 700; }
.lightbox__close, .lightbox__btn {
  position: absolute; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--ink);
}
.lightbox__close { top: 12px; right: 14px; width: 48px; height: 48px; }
.lightbox__close .ic { width: 22px; height: 22px; }
.lightbox__btn { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__btn--prev { left: 18px; }
.lightbox__btn--next { right: 18px; }
.lightbox__close:hover, .lightbox__btn:hover { background: var(--accent); color: #fff; }
html:has(.lightbox[open]) { overflow: hidden; }

/* testimonials */
.testimonials { background: var(--surface-2); }
.testimonials .sec-head::before { background: var(--surface-2); }
.testimonials.in .sec-head::before { background: var(--accent-2); }
.quote-empty { display: grid; gap: 6px; max-width: 760px; background: var(--surface); border-left: 4px solid var(--accent-2); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.quote-empty > .ic { width: 40px; height: 40px; color: var(--accent-2); }
.quote-empty p { margin: 0; color: var(--muted); }
.quote-empty .lead { color: var(--ink); }
.quote-empty p:last-child { margin-top: 14px; }
.quotes { list-style: none; display: grid; gap: 20px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { background: var(--surface); border-radius: var(--radius); padding: 26px; border-top: 4px solid var(--accent-2); }
.quote__who { margin: 0; font-weight: 700; color: var(--ink); }
.quote__who span { display: block; font-weight: 400; color: var(--muted); font-size: .95rem; }

/* home: timings and contact */
/* areas we serve: stops along a route line */
.areas-band { background: var(--surface); }
.areas-band .sec-head::before { background: var(--surface); }
.areas-band.in .sec-head::before { background: var(--accent-2); }
.areas { list-style: none; display: grid; margin: 28px 0 0; padding: 0; }
.area { position: relative; padding: 0 0 26px 28px; border-left: 2px solid var(--line); }
.area:last-child { padding-bottom: 4px; }
.area::before {
  content: ""; position: absolute; left: -8px; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--accent-2);
}
.area h3 { font-size: 1.25rem; margin: 0 0 6px; }
.area p { margin: 0; color: var(--muted); }
.area .area__time { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 6px; }
.area__time strong { font-family: var(--font-sign); font-size: 1.2rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
.area__time span { font-size: .92rem; white-space: nowrap; }
@media (min-width: 1000px) {
  .areas { grid-template-columns: repeat(5, 1fr); margin-top: 40px; }
  .area, .area:last-child { padding: 26px 20px 0 0; border-left: 0; border-top: 2px solid var(--line); }
  .area:last-child { padding-right: 0; }
  .area::before { left: 0; top: -8px; }
  .area .area__time { flex-direction: column; gap: 0; }
}

.home-visit__grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .home-visit__grid { grid-template-columns: repeat(3, 1fr); } }
.visit-card { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.visit-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.visit-card h3 .ic { color: var(--accent); width: 1.3em; height: 1.3em; }
.visit-card > p:not(.status) { margin: 0; color: var(--muted); }
.visit-card .btn { margin-top: auto; align-self: flex-start; }
.visit-card .hours { margin-top: 4px; }
.visit-card .hours dd { white-space: nowrap; }

/* services page: card you jumped to */
.treat__card:target { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 154, 152, .4), 0 22px 40px -24px rgba(15, 44, 85, .55); }
.svc-extra:target .svc-extra__item:not(#physiotherapy):not(#digital-xray), .svc-extra__item:target { border-color: var(--accent); }

@media (max-width: 759px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile__more summary { min-height: var(--tile-title-h, 78px); padding: 10px 12px; gap: 6px; font-size: 1rem; }
  .tile__more p { padding: 0 12px 14px; font-size: .95rem; }
  /* phones: photo across the top of the card */
  .doc-mini { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .doc-mini .doc__photo { width: 100%; aspect-ratio: 4 / 3; }
  .doc-mini .doc__photo img { object-position: 50% 18%; }
  .doc-mini .doc__name { font-size: 1.3rem; }
  .gal, .gal--preview { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gal__cap { font-size: .9rem; }
  .lightbox__fig { padding: 60px 10px 100px; }
  .lightbox__img { max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); }
  .lightbox__btn { top: auto; bottom: 22px; transform: none; }
  .lightbox__btn--prev { left: calc(50% - 66px); }
  .lightbox__btn--next { right: calc(50% - 66px); }
  .page-hero { padding: 32px 0 30px; }
  .jump a { font-size: .92rem; min-height: 44px; padding: .3em .85em; }
}

/* phone action bar */
.action-bar { display: none; }
@media (max-width: 759px) {
  body { padding-bottom: 72px; }
  .action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr 1.2fr;
    background: var(--ink); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
    box-shadow: 0 -8px 24px rgba(16, 52, 63, .2);
  }
  .action-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
    color: #fff; text-decoration: none; font-weight: 700; border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .08);
  }
  .action-bar .action-bar__book { background: var(--accent); }
}

/* small screens */
@media (max-width: 559px) {
  .hero__actions .btn { width: 100%; }
  .doc__photo { width: 112px; }
}

/* ---------- phone refinements (mobile audit, 18 Nov 2026) ---------- */
@media (max-width: 759px) {
  /* shorter sticky header = more room for content */
  :root { --header-h: 66px; }
  .brand { min-height: 48px; }
  .brand__mark { width: auto; height: 46px; }
  .brand__name { font-size: 1.68rem; }
  .brand__sub { font-size: .69rem; letter-spacing: .06em; }

  /* readable small text: nothing under 14px */
  .hero__tagline { font-size: .875rem; letter-spacing: .12em; }
  .radio small { font-size: .875rem; }
  .footer__tag { font-size: .875rem; letter-spacing: .1em; }

  /* a little less vertical padding between sections */
  .section { padding: 56px 0; }

  /* highlights: 2 x 2 compact boxes instead of 4 tall ones */
  .highlights__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hl { padding: 14px 14px 14px; }
  .hl .ic { width: 26px; height: 26px; margin-bottom: 8px; }
  .hl__title { font-size: 1.05rem; }
  .hl p:last-child { font-size: .9rem; line-height: 1.4; }

  /* treatment cards: picture beside the text, so the list is much shorter */
  .treat { grid-template-columns: 1fr; gap: 12px; }
  .treat__card { flex-direction: row; align-items: stretch; }
  .treat__img { width: 38%; flex: none; aspect-ratio: auto; height: auto; min-height: 128px; object-fit: cover; }
  .treat__img--top { object-position: 50% 45%; }
  .treat__body { border-top: 0; border-left: 4px solid var(--accent-2); padding: 12px 14px; align-self: center; }
  .treat__body h4 { font-size: 1.12rem; margin-bottom: 4px; }
  .treat__body p { font-size: .94rem; line-height: 1.45; }
  .treat__card:hover { transform: none; }
  /* wide pictures stay on top, as a short banner, so nobody gets cropped out */
  .treat--wide .treat__card { flex-direction: column; }
  .treat--wide .treat__img { width: 100%; min-height: 0; aspect-ratio: 600 / 218; }
  .treat--wide .treat__body { border-left: 0; border-top: 4px solid var(--accent-2); align-self: stretch; }

  /* Dr Rajendra's treatment list: tighter cards */
  .proc { gap: 10px; }
  .proc > div { padding: 14px 16px; }

  /* footer: comfortable tap targets */
  .footer__links a { min-height: 44px; }
  .site-footer p a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 419px) {
  .hero__name { font-size: 2.5rem; white-space: nowrap; }
  .hero__clinic { font-size: .92rem; letter-spacing: .08em; }
  .hero__tagline { font-size: .8rem; letter-spacing: .1em; }
}
@media (max-width: 359px) {
  .brand__name { font-size: 1.45rem; }
  .brand__sub { font-size: .6rem; letter-spacing: .04em; }
  .hero__name { font-size: 2.1rem; }
  .hero__clinic { font-size: .78rem; letter-spacing: .06em; }
  .hero__tagline { font-size: .7rem; letter-spacing: .08em; }
  .highlights__grid { grid-template-columns: 1fr; }
}

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

/* ROLLBACK: HEADING DOTS OFF (22 Nov 2026).
   Delete from this comment to END ROLLBACK to bring the dots back. */
.sec-head { padding-left: 0; }
.sec-head::before, .sec-head::after { display: none; }
/* END ROLLBACK */

/* section backgrounds after the hero alternate between the two light palette colours */
#main > section.section:nth-of-type(even) { background: var(--bg); }
#main > section.section:nth-of-type(odd) { background: var(--surface-2); }
.chips .chip--wide { background: rgba(var(--accent-rgb), .1); }
/* the two sections that used to be deep blue */
.hospitals, .gallery-band { color: var(--text); }
.hospitals .sec-head, .gallery-band .sec-head { color: var(--ink); }
.hospitals p, .gallery-band .sec-intro { color: var(--muted); }
.gallery-band .gal__cap { color: var(--text); }
.hosp-list li { background: var(--surface); border-color: var(--line); color: var(--ink); }
.hosp-list .ic { color: var(--accent); }

/* ---------- pre-launch mode, enquiry privacy and policy pages (28 Nov 2026) ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.launch-badge {
  display: inline-flex; align-items: center; margin: 0 0 18px; padding: .55em 1.05em; border-radius: 999px;
  font-family: var(--font-tag); font-weight: 600; font-size: clamp(.78rem, 1.1vw, .92rem); letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: var(--accent); border: 1px solid rgba(95, 211, 203, .75); text-shadow: none;
}
.launch-card {
  max-width: 880px; display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line);
  border-left: 6px solid var(--accent-2); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px);
}
.launch-card .sec-head { margin-bottom: 2px; }
.launch-card p { margin: 0; }
.launch-card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.status--soon .status__dot { background: var(--film-blue); }
.status--light.status--soon .status__dot { background: var(--accent-2); }
.tag {
  display: inline-block; vertical-align: middle; margin-left: .35em; padding: .22em .65em; border-radius: 999px;
  font-family: var(--font-tag); font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-dark); background: rgba(var(--accent-rgb), .12);
}
.tag-note { color: var(--muted); font-size: 1rem; }
.sub-head a { font-family: var(--font); font-size: 1rem; font-weight: 700; color: var(--accent); }
.form__privacy { margin: 0; font-size: .9rem; color: var(--muted); }
@media (min-width: 600px) { .form > .form__privacy { grid-column: 1 / -1; } }
.form-fallback { background: var(--surface); border-radius: var(--radius); padding: 20px; margin: 0; }
.policy { max-width: 46em; }
.policy h2 { font-size: 1.45rem; margin: 1.6em 0 .5em; }
.policy__updated { color: var(--muted); }
@media (max-width: 559px) { .launch-card__actions .btn { width: 100%; } }
/* larger tap areas for small stand-alone links (older patients, touch screens) */
.footer__grid p > a { display: inline-flex; align-items: center; min-height: 32px; }
.sub-head a, .crumbs a { display: inline-block; padding-block: 5px; }
@media (max-width: 759px) { .footer__grid p > a { min-height: 44px; } }
