/* ==========================================================
   Anmol Physiotherapy Clinic — main stylesheet
   Colours taken from the clinic logo (navy + gold on cream)
   ========================================================== */
:root {
  --navy: #0f3460;
  --navy-dark: #0a2443;
  --navy-soft: #1d4f86;
  --gold: #b8895a;
  --gold-light: #e2c9a3;
  --gold-pale: #f6eee2;
  --cream: #fdfbf7;
  --white: #ffffff;
  --ink: #1c2633;
  --muted: #5b6676;
  --line: #e9e2d6;
  --wa: #25d366;

  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(15, 52, 96, .08);
  --shadow-lg: 0 20px 50px rgba(15, 52, 96, .14);
  --container: 1180px;

  --font-head: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
svg.ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; }
.section--tight { padding: 60px 0; }
.section--white { background: var(--white); }
.section--pale { background: var(--gold-pale); }
.section--navy { background: var(--navy); color: #dfe7f2; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 999; }
.skip:focus { left: 10px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--gold); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 50px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: .25s ease; font-family: inherit;
  line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--navy); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--gold); color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--light:hover { background: #fff; color: var(--navy); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #1da851; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-dark); color: #c9d4e3; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--gold-light); }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; color: var(--gold-light); }
.topbar-left { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Header / nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 251, 247, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.header.scrolled { box-shadow: 0 6px 24px rgba(15,52,96,.08); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 56px; height: 56px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-size: 1.55rem; font-weight: 700; color: var(--navy); letter-spacing: .04em; }
.brand-sub { font-size: .62rem; letter-spacing: .28em; color: var(--gold); font-weight: 600; text-transform: uppercase; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a { display: block; padding: 10px 14px; font-weight: 500; font-size: .93rem; color: var(--ink); border-radius: 8px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--navy); font-weight: 600; }
.nav .btn { margin-left: 10px; padding: 11px 22px; color: #fff; }
.nav .btn::after { display: none; }

.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--navy); margin: 6px 0; transition: .3s; border-radius: 2px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(184,137,90,.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(15,52,96,.08), transparent 40%),
    var(--cream);
  padding: 80px 0 100px;
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero h1 span { color: var(--gold); }
.hero .lead { margin-bottom: 30px; }
.hero-tag { font-family: var(--font-head); letter-spacing: .3em; color: var(--gold); font-size: .9rem; margin-bottom: 18px; text-transform: uppercase; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-badge {
  position: absolute; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 600; color: var(--navy);
}
.hero-badge .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--gold-pale); color: var(--gold); display: grid; place-items: center; }
.hero-badge .ico svg { width: 20px; height: 20px; }
.hero-badge small { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; }
.hero-badge--1 { top: 8%; left: -4%; }
.hero-badge--2 { bottom: 10%; right: -4%; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--gold); }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy) 55%, var(--navy-soft));
  color: #d7e1ee; padding: 70px 0; position: relative; overflow: hidden;
}
.page-banner::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  border: 3px solid rgba(226,201,163,.35);
}
.page-banner h1 { color: #fff; margin-bottom: 10px; }
.breadcrumb { font-size: .88rem; }
.breadcrumb a { color: var(--gold-light); }

/* ---------- Urdu strip ---------- */
.urdu-strip { background: var(--navy); color: #fff; padding: 22px 0; }
.urdu-strip ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; }
.urdu-strip li { font-family: var(--font-urdu); font-size: 1.25rem; padding: 4px 22px; border-left: 1px solid rgba(226,201,163,.5); line-height: 2.1; }
.urdu-strip li:last-child { border-left: 0; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; transition: .3s ease; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: linear-gradient(90deg, var(--gold), var(--navy)); transition: width .35s; }
.card:hover::before { width: 100%; }
.card p { color: var(--muted); font-size: .95rem; }
.card .more { font-weight: 600; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.card .urdu { font-family: var(--font-urdu); color: var(--gold); font-size: 1.05rem; direction: rtl; margin: -6px 0 10px; line-height: 2; }

.icon-circle {
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft)); color: #fff;
  box-shadow: 0 0 0 6px var(--gold-pale);
}
.icon-circle svg { width: 32px; height: 32px; }
.card:hover .icon-circle { background: linear-gradient(135deg, var(--gold), #9a7046); }

/* ---------- Feature / about split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-visual {
  border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--navy), var(--navy-soft));
  min-height: 420px; position: relative; overflow: hidden; display: grid; place-items: center; padding: 40px;
}
.split-visual::before {
  content: ""; position: absolute; width: 140%; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgba(226,201,163,.25); left: -20%; top: 30%;
}
.split-visual .panel { position: relative; background: rgba(255,255,255,.96); border-radius: var(--radius-lg); padding: 30px; text-align: center; max-width: 320px; }
.split-visual .panel img { width: 120px; margin: 0 auto 14px; }
.split-visual .panel strong { font-family: var(--font-head); color: var(--navy); font-size: 1.4rem; display: block; }
.split-visual .panel span { color: var(--gold); letter-spacing: .2em; font-size: .75rem; text-transform: uppercase; }

.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 3px; }
.check-list.two-col { grid-template-columns: 1fr 1fr; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 20px; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-head); font-size: 2.4rem; color: var(--gold-light); line-height: 1.2; }
.stat span { font-size: .9rem; }

/* ---------- Conditions chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 50px;
  background: #fff; border: 1px solid var(--line); font-weight: 500; font-size: .92rem; color: var(--navy); transition: .25s;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Conditions page cards */
.cond-card { background: #fff; border-radius: var(--radius); padding: 26px; border-left: 4px solid var(--gold); box-shadow: var(--shadow); }
.cond-card h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 1.1rem; }
.cond-card h3 .urdu { font-family: var(--font-urdu); color: var(--gold); font-size: .95rem; font-weight: 400; direction: rtl; line-height: 2; }
.cond-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter-bar button { font-family: inherit; border: 1px solid var(--line); background: #fff; padding: 9px 20px; border-radius: 50px; cursor: pointer; font-weight: 500; color: var(--navy); transition: .2s; }
.filter-bar button.active, .filter-bar button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.cond-card.hide { display: none; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { text-align: center; padding: 20px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: #fff;
  width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px;
  background: var(--navy); box-shadow: 0 0 0 8px var(--gold-pale);
}
.step p { color: var(--muted); font-size: .93rem; }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  border-radius: var(--radius-lg); padding: 56px; color: #d7e1ee;
  display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta::after { content: ""; position: absolute; right: -80px; bottom: -140px; width: 320px; height: 320px; border-radius: 50%; border: 3px solid rgba(226,201,163,.35); }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { margin: 0; }
.cta .btn-row { position: relative; z-index: 1; }

/* ---------- Service detail blocks ---------- */
.service-block { display: grid; grid-template-columns: 340px 1fr; gap: 50px; align-items: start; padding: 50px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.service-block:last-child { border-bottom: 0; }
.service-side {
  background: linear-gradient(150deg, var(--navy), var(--navy-soft)); color: #fff; border-radius: var(--radius-lg); padding: 36px; position: sticky; top: 110px;
}
.service-side .icon-circle { background: #fff; color: var(--navy); box-shadow: 0 0 0 6px rgba(226,201,163,.35); }
.service-side h2 { color: #fff; font-size: 1.6rem; margin-bottom: 4px; }
.service-side .urdu { font-family: var(--font-urdu); color: var(--gold-light); font-size: 1.3rem; direction: rtl; line-height: 2.1; }
.service-body h3 { margin-top: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag { background: var(--gold-pale); color: #8a6339; padding: 5px 14px; border-radius: 50px; font-size: .82rem; font-weight: 500; }

.service-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.service-nav a { padding: 10px 20px; border-radius: 50px; background: #fff; border: 1px solid var(--line); font-weight: 500; font-size: .9rem; }
.service-nav a:hover { background: var(--navy); color: #fff; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq summary { padding: 18px 24px; font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--gold); line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 500; font-size: .88rem; margin-bottom: 6px; color: var(--navy); }
input, select, textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .95rem; background: var(--cream); color: var(--ink); transition: .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(184,137,90,.15); }
textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 400; color: var(--ink); background: var(--cream); margin: 0; }
.radio-row input { width: auto; }
.radio-row label:has(input:checked) { border-color: var(--gold); background: var(--gold-pale); }

/* ---------- Contact ---------- */
.info-list { display: grid; gap: 18px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); }
.info-item .ico { width: 50px; height: 50px; border-radius: 12px; background: var(--gold-pale); color: var(--gold); display: grid; place-items: center; flex: none; }
.info-item .ico svg { width: 24px; height: 24px; }
.info-item h3 { font-size: 1rem; margin-bottom: 4px; }
.info-item p { margin: 0; color: var(--muted); font-size: .94rem; }
.map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.map iframe { width: 100%; height: 420px; border: 0; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; font-weight: 500; color: var(--navy); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); color: #aebbd0; padding: 70px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--gold); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: #aebbd0; }
.footer a:hover { color: var(--gold-light); }
.footer .brand-name { color: #fff; }
.footer .brand img { background: var(--cream); border-radius: 50%; padding: 4px; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold-light); flex: none; margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; padding: 20px 0; font-size: .84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.socials a:hover { background: var(--gold); color: #fff; }
.socials svg { width: 18px; height: 18px; }

/* ---------- Clinic photos ---------- */
.hero-photo { position: relative; width: min(420px, 100%); aspect-ratio: 4 / 5; }
.hero-photo::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 2px solid var(--gold-light);
  border-radius: 210px 210px 28px 28px;
}
.hero-photo figure {
  position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease;
  border-radius: 210px 210px 24px 24px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.hero-photo figure.active { opacity: 1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s ease; }
.hero-photo figure.active img { transform: scale(1); }
.hero-photo figcaption {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); white-space: nowrap;
  background: rgba(10, 36, 67, .82); color: #fff; font-size: .82rem; font-weight: 500;
  padding: 7px 16px; border-radius: 50px; backdrop-filter: blur(4px);
}
.hero-dots { position: absolute; left: 0; right: 0; bottom: -34px; display: flex; justify-content: center; gap: 8px; }
.hero-dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--gold-light); transition: width .3s, background .3s;
}
.hero-dots button[aria-selected="true"] { width: 28px; background: var(--gold); }
.hero-thumb {
  position: absolute; left: -10px; bottom: 16%; width: 128px; height: 128px; border-radius: 50%;
  border: 6px solid #fff; overflow: hidden; box-shadow: var(--shadow-lg); z-index: 2;
}
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; }

.photo-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.photo-frame--wide img { aspect-ratio: 4 / 3; }
.photo-caption {
  position: absolute; left: 18px; bottom: 18px; right: 18px; background: rgba(255,255,255,.95);
  border-radius: var(--radius); padding: 14px 18px; display: flex; align-items: center; gap: 12px;
  font-weight: 600; color: var(--navy); font-size: .92rem; line-height: 1.35;
}
.photo-caption small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.photo-caption .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--gold-pale); color: var(--gold); display: grid; place-items: center; flex: none; }
.photo-caption .ico svg { width: 20px; height: 20px; }

.service-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 26px; box-shadow: var(--shadow); }

.page-banner { background-size: cover; background-position: center; }
.page-banner--about       { background-image: linear-gradient(110deg, rgba(10,36,67,.95) 30%, rgba(15,52,96,.75)), url(../img/clinic/banner-about.jpg); }
.page-banner--services    { background-image: linear-gradient(110deg, rgba(10,36,67,.95) 30%, rgba(15,52,96,.75)), url(../img/clinic/banner-services.jpg); }
.page-banner--conditions  { background-image: linear-gradient(110deg, rgba(10,36,67,.95) 30%, rgba(15,52,96,.75)), url(../img/clinic/banner-conditions.jpg); }
.page-banner--appointment { background-image: linear-gradient(110deg, rgba(10,36,67,.95) 30%, rgba(15,52,96,.75)), url(../img/clinic/banner-appointment.jpg); }
.page-banner--contact     { background-image: linear-gradient(110deg, rgba(10,36,67,.95) 30%, rgba(15,52,96,.75)), url(../img/clinic/banner-contact.jpg); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 16px; }
.gallery a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.gallery figure { margin: 0; height: 100%; }
.gallery a.tall { grid-row: span 2; }
.gallery a.wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px; color: #fff; font-size: .88rem; font-weight: 500;
  background: linear-gradient(transparent, rgba(10,36,67,.85));
}
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(6, 20, 38, .92); }
.lightbox img { max-width: 94vw; max-height: 82vh; border-radius: var(--radius); margin: 0 auto; }
.lightbox p { color: #fff; text-align: center; margin: 12px 0 0; }
.lightbox button {
  position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1;
}
.lightbox button:hover { background: var(--gold); }
.lightbox .lb-prev { left: 16px; }
.lightbox .lb-next { right: 16px; }
.lightbox .lb-close { top: 30px; right: 16px; transform: none; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45);
  animation: pulse 2.4s infinite;
}
.wa-float:hover { color: #fff; transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-block { grid-template-columns: 1fr; gap: 26px; }
  .service-side { position: static; }
}
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .35s ease; box-shadow: var(--shadow);
  }
  .menu-open .nav { max-height: 520px; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 22px; gap: 2px; }
  .nav a { padding: 12px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a::after { display: none; }
  .nav .btn { display: flex; margin: 14px 0 0; border-radius: 50px; border-bottom: 0; }
  .hero .container, .split { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 80px; }
  .hero .container { gap: 40px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .btn-row, .hero-points { justify-content: center; }
  .hero-photo { width: min(340px, 80%); }
  .hero-thumb { left: 2%; width: 96px; height: 96px; border-width: 4px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .split-visual { min-height: 320px; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .topbar-left { display: none; }
  .topbar .container { justify-content: center; }
  .topbar a { white-space: nowrap; }
  .grid-2, .grid-3, .grid-4, .form-grid, .footer-grid, .check-list.two-col { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.3rem; }
  .brand img { width: 46px; height: 46px; }
  .hero-badge { display: none; }
  .hero h1 { font-size: 1.85rem; }
  .hero-tag { font-size: .75rem; letter-spacing: .22em; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .hero-photo { width: 78%; }
  .hero-thumb { width: 80px; height: 80px; left: -2%; }
  .hero-photo figcaption { font-size: .75rem; padding: 6px 12px; }
  .cta { padding: 36px 26px; }
  .form-card { padding: 26px 20px; }
  .urdu-strip li { font-size: 1.05rem; padding: 2px 12px; }
  .stat b { font-size: 1.9rem; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 10px; }
  .gallery a.wide { grid-column: span 2; }
  .lightbox button { width: 40px; height: 40px; font-size: 1.3rem; }
}
