/* Zainab Hospital - site styles
   Colours are provisional until the logo is supplied. Change the
   values in :root only; everything else reads from these tokens. */

:root {
  /* Colours taken from the Zainab Hospital logo */
  --ink: #201868;          /* logo wordmark indigo: headings, text, dark bands */
  --ink-soft: #3a3478;
  --primary: #0148a0;      /* logo figure blue: buttons and links */
  --primary-dark: #013a82;
  --green: #008a47;        /* logo leaves: ticks and small accents */
  --orange: #fd7400;       /* logo ring: decorative only (fails contrast as text) */
  --yellow: #ffe603;
  --sky: #eef3fa;          /* quiet section tint */
  --line: #d6deec;
  --stone: #4f5868;        /* secondary text */
  --paper: #ffffff;
  --error: #b42318;
  --ok: #146c43;

  --font: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", serif;

  --step-0: 1.125rem;      /* 18px body, generous for older readers */
  --step-1: 1.375rem;
  --step-2: 1.75rem;
  --step-3: 2.25rem;
  --step-4: 2.75rem;

  --wrap: 72rem;
  --measure: 68ch;
  --gap: 1.5rem;
  --radius: 6px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p, ul, ol, dl { margin: 0 0 1rem; }
p, li { max-width: var(--measure); }

a { color: var(--primary); text-underline-offset: 0.18em; }
a:hover { color: var(--primary-dark); }

:focus-visible {
  outline: 3px solid #f2b705;
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; inset-inline-start: 1rem; top: -4rem;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 100;
  border-radius: var(--radius);
}
.skip:focus { top: 1rem; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.6rem 1.2rem;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  border-radius: var(--radius); border: 2px solid var(--primary);
  background: var(--primary); color: #fff; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--primary); }
.btn--ghost:hover { background: var(--sky); color: var(--primary-dark); }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--sky); border-color: var(--sky); color: var(--ink); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 20; }
.site-header::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--orange), var(--yellow)); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); margin-inline-end: auto; }
.brand__logo { height: 3.25rem; width: 3.25rem; }
.brand__mark {
  width: 2.6rem; height: 2.6rem; border-radius: var(--radius); background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 1.25rem;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 700; font-size: 1.15rem; }
.brand__place { font-size: 0.85rem; color: var(--stone); }

.nav-toggle {
  display: none; min-height: 44px; padding: 0.4rem 0.8rem; font: inherit; font-weight: 700; font-size: 1rem;
  background: transparent; border: 2px solid var(--line); border-radius: var(--radius); color: var(--ink); cursor: pointer;
}

.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.15rem; }
.site-nav a, .site-nav .dd-btn {
  display: block; padding: 0.55rem 0.7rem; color: var(--ink); text-decoration: none; font-size: 1rem;
  border-radius: var(--radius); font-weight: 400; background: none; border: 0; font-family: inherit; cursor: pointer; line-height: 1.4;
}
.site-nav a:hover, .site-nav .dd-btn:hover { background: var(--sky); color: var(--ink); }
.site-nav a[aria-current="page"], .site-nav .is-active > .dd-btn {
  font-weight: 700; box-shadow: inset 0 -3px 0 var(--primary); border-radius: 0;
}
.site-nav .nav-call { margin-inline-start: 0.5rem; }
.site-nav .nav-call a { background: var(--primary); color: #fff; font-weight: 700; padding-inline: 1rem; border-radius: var(--radius); }
.site-nav .nav-call a:hover { background: var(--primary-dark); color: #fff; }

.dd { position: relative; }
.dd-btn::after { content: ""; display: inline-block; margin-inline-start: 0.4rem; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.dd-menu {
  display: none; position: absolute; inset-inline-start: 0; top: 100%; min-width: 17rem;
  list-style: none; margin: 0.25rem 0 0; padding: 0.4rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 24px -12px rgba(16, 41, 75, 0.35);
}
.dd-menu a { padding: 0.55rem 0.75rem; }
.dd-menu .dd-all { border-top: 1px solid var(--line); margin-top: 0.3rem; padding-top: 0.3rem; }
.dd.is-open .dd-menu { display: block; }

/* ---------- Page heading band ---------- */
.page-head { background: var(--sky); padding: 1.75rem 0 2rem; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 0.35rem; }
.page-head p { color: var(--ink-soft); margin: 0; font-size: var(--step-1); line-height: 1.45; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0; margin: 0 0 0.9rem; font-size: 0.95rem; }
.crumbs li { color: var(--stone); }
.crumbs li + li::before { content: "/"; margin-inline-end: 0.35rem; color: var(--stone); }
.crumbs a { color: var(--stone); }

main { display: block; }
.section { padding: 2.75rem 0; }
.section--tint { background: var(--sky); }
.section > .wrap > h2:first-child { margin-bottom: 1rem; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); }

/* ---------- Home hero ---------- */
.hero { padding: 2.75rem 0 4.75rem; background: linear-gradient(180deg, #fff 0%, var(--sky) 100%); }
.hero__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; }
.hero__urdu {
  font-family: var(--font-urdu); font-size: clamp(2.4rem, 5.5vw, 3.8rem); line-height: 1.9;
  color: var(--ink); margin: 0; direction: rtl; text-align: start;
}
.hero__kicker {
  display: flex; align-items: center; gap: 0.75rem; margin: 0 0 0.5rem;
  font-weight: 700; color: var(--stone); font-size: 1rem;
}
.hero__kicker::before { content: ""; width: 2.25rem; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--orange), var(--yellow)); flex: none; }
[dir="rtl"] .hero__kicker::before { background: linear-gradient(270deg, var(--orange), var(--yellow)); }
.hero h1 { font-size: var(--step-4); margin-bottom: 0.6rem; }
.hero__intro { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 38ch; }

.hero__media { margin: 0; position: relative; }
.hero__media--logo {
  justify-self: center; width: min(100%, 22rem); aspect-ratio: 1; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 24px 60px -30px rgba(32, 24, 104, 0.45);
}
.hero__media--logo img { width: 66%; height: auto; }
.hero__media--photo::before {
  content: ""; position: absolute; inset: 1rem -1rem -1rem 1rem; border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
}
[dir="rtl"] .hero__media--photo::before { inset: 1rem 1rem -1rem -1rem; }
.hero__media--photo img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }

/* ---------- Info bar (overlaps the hero) ---------- */
.infobar { margin-top: -2.75rem; position: relative; z-index: 2; }
.infobar__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 18px 40px -28px rgba(32, 24, 104, 0.5);
}
.info { display: flex; gap: 0.9rem; padding: 1.4rem 1.5rem; }
.info + .info { border-inline-start: 1px solid var(--line); }
.info__icon { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--sky); color: var(--primary); display: grid; place-items: center; }
.info__icon svg { width: 1.3rem; height: 1.3rem; }
.info h2 { font-size: 1rem; color: var(--stone); margin: 0 0 0.25rem; }
.info p { margin: 0 0 0.35rem; }
.info__phones { display: flex; flex-direction: column; }
.info__phone { font-size: var(--step-1); font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.35; }
.info__phone:hover { color: var(--primary); text-decoration: underline; }
.info__wa { font-weight: 700; display: inline-flex; gap: 0.35rem; align-items: center; margin-top: 0.35rem; }
.info__wa svg { width: 1rem; height: 1rem; }

/* kept for the contact page */
.visit__phone { font-size: var(--step-3); font-weight: 700; color: var(--ink); text-decoration: none; display: inline-block; line-height: 1.1; margin-bottom: 0.35rem; }
.visit__phone:hover { color: var(--primary); }

/* ---------- Photo gallery ---------- */
.gallery { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
.gallery--1 { grid-template-columns: 1fr; max-width: 48rem; }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--sky); }
.gallery figcaption { font-size: 0.95rem; color: var(--stone); margin-top: 0.5rem; }

.about__logo { width: 9rem; height: auto; margin: 1.5rem auto 0; }
.footer-logo { display: inline-flex; background: #fff; border-radius: 12px; padding: 0.35rem; margin-bottom: 0.75rem; }
.footer-logo img { width: 3.5rem; height: 3.5rem; }

/* ---------- Directory board (the one bold element) ---------- */
.board { background: var(--ink); color: #fff; padding: 2.5rem 0 2.75rem; }
.board h2 { color: #fff; }
.board__intro { color: #cfcbea; margin-bottom: 1.5rem; }
.board__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,0.18); }
.board__list li { max-width: none; border-bottom: 1px solid rgba(255,255,255,0.18); }
.board__row {
  display: grid; grid-template-columns: minmax(14rem, 1fr) 2fr auto; gap: 1.25rem; align-items: center;
  padding: 1.05rem 0.25rem; color: #fff; text-decoration: none;
}
.board__row:hover { background: rgba(255,255,255,0.06); color: #fff; }
.board__name { font-size: var(--step-1); font-weight: 700; }
.board__sum { color: #cfcbea; font-size: 1rem; }
.board__go { font-size: 0.95rem; font-weight: 700; color: #ffa552; white-space: nowrap; }
.board__row:hover .board__go { text-decoration: underline; }
.board__foot { margin-top: 1.5rem; }

/* ---------- Generic blocks ---------- */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.split { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; align-items: start; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.5rem; background: #fff; }
.panel h2, .panel h3 { font-size: var(--step-1); }
.panel--side { position: sticky; top: 1rem; }

.ticks { list-style: none; padding: 0; columns: 2; column-gap: 2rem; }
.ticks li { position: relative; padding-inline-start: 1.6rem; margin-bottom: 0.55rem; break-inside: avoid; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0.15rem; top: 0.55em; width: 0.7rem; height: 0.38rem;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg);
}
.ticks--one { columns: 1; }

.dept-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2.5rem; border-top: 1px solid var(--line); }
.dept-list--3 { grid-template-columns: repeat(3, 1fr); }
.dept-list li { max-width: none; border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.dept-list h2, .dept-list h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
.dept-list p { color: var(--stone); margin-bottom: 0.5rem; }

.faq details { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0.6rem 0 0; }

.callout { border-inline-start: 5px solid var(--primary); background: var(--sky); padding: 1rem 1.25rem; border-radius: var(--radius); margin: 0 0 1.5rem; }
.callout p:last-child { margin-bottom: 0; }
.callout--warn { border-color: var(--error); background: #fdf1f0; }

.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px dashed var(--line); }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; }

/* ---------- Doctors ---------- */
.doc-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.5rem; }
.doc { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; max-width: none; }
.doc__photo { width: 5.5rem; height: 5.5rem; border-radius: 50%; object-fit: cover; background: var(--sky); margin-bottom: 0.5rem; }
.doc__initials { width: 5.5rem; height: 5.5rem; border-radius: 50%; background: var(--sky); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 1.6rem; margin-bottom: 0.5rem; }
.doc h3 { margin: 0; }
.doc__spec { color: var(--primary-dark); font-weight: 700; }
.doc dl { margin: 0.4rem 0 0.75rem; font-size: 1rem; }
.doc dt { font-weight: 700; color: var(--stone); font-size: 0.9rem; margin-top: 0.4rem; }
.doc dd { margin: 0; }
.doc .btn { margin-top: auto; align-self: flex-start; }
.empty { border: 2px dashed var(--line); border-radius: var(--radius); padding: 1.5rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; max-width: 40rem; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.field .hint { display: block; font-size: 0.95rem; color: var(--stone); margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; padding: 0.7rem 0.8rem; min-height: 48px;
  border: 2px solid #9fb3c4; border-radius: var(--radius); background: #fff; color: var(--ink);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); outline: 3px solid rgba(11,110,110,0.25); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .err { display: block; color: var(--error); font-size: 0.95rem; margin-top: 0.3rem; font-weight: 700; }
.field .err:empty { display: none; }
.check { display: flex; gap: 0.75rem; align-items: flex-start; }
.check input { width: 1.4rem; height: 1.4rem; min-height: 0; margin-top: 0.2rem; flex: none; accent-color: var(--primary); }
.check label { font-weight: 400; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-status { padding: 1rem 1.2rem; border-radius: var(--radius); font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-ok { background: #e7f5ee; color: var(--ok); border: 1px solid #9fd3b8; }
.form-status.is-err { background: #fdf1f0; color: var(--error); border: 1px solid #f0b4ae; }

.map-frame { width: 100%; aspect-ratio: 16 / 9; max-height: 26rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sky); }

/* ---------- Prose (legal pages) ---------- */
.prose h2 { font-size: var(--step-1); margin-top: 2rem; }
.prose ul { padding-inline-start: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #dbe5f0; padding: 2.75rem 0 1.5rem; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: 0.75rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.45rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.18); margin-top: 2rem; padding-top: 1.25rem; font-size: 0.95rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer-urdu { font-family: var(--font-urdu); font-size: 1.5rem; line-height: 2; color: #fff; }

html[dir="ltr"] .hero__urdu, html[dir="ltr"] .footer-urdu { text-align: left; }

.contact-phone { margin: 0 0 0.25rem; }
.contact-phone .visit__phone { font-size: var(--step-2); }
.contact-email { margin: 0 0 0.25rem; font-size: var(--step-1); font-weight: 700; overflow-wrap: anywhere; }
.contact-email a { color: var(--ink); }
.contact-email a:hover { color: var(--primary); }
.btn-row--stack { flex-direction: column; }

/* ---------- Language switch (footer, optional header link) ---------- */
.lang-switch {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 2rem;
  padding: 0.75rem 0; border-top: 1px solid rgba(255,255,255,0.18);
}
.lang-switch svg { width: 1.2rem; height: 1.2rem; color: #cfcbea; }
.lang-switch a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.3rem 1rem;
  border: 1px solid rgba(255,255,255,0.45); border-radius: 999px; text-decoration: none; color: #fff; font-weight: 700;
}
.lang-switch a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.lang-switch a[aria-current="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.lang-switch a[lang="ur"] { font-family: var(--font-urdu); font-weight: 600; line-height: 1.6; }
.lang-switch a[lang="en"] { font-family: var(--font); }
.site-nav .lang-link { display: inline-flex; align-items: center; gap: 0.35rem; }
.site-nav .lang-link svg { width: 1rem; height: 1rem; }
.lang-link[lang="ur"] { font-family: var(--font-urdu); }
.lang-link[lang="en"] { font-family: var(--font); }
.footer-legal { border-top: 0; margin-top: 0.5rem; }
.nf-ur { font-family: var(--font-urdu); margin-top: 0.75rem !important; line-height: 2.2 !important; }

/* ---------- Urdu pages ---------- */
html[lang="ur"] body { font-family: var(--font-urdu), var(--font); line-height: 2.15; font-size: 1.15rem; }
html[lang="ur"] .site-nav a, html[lang="ur"] .site-nav .dd-btn { padding-inline: 0.55rem; }
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3 { line-height: 1.85; letter-spacing: 0; }
html[lang="ur"] .hero h1 { line-height: 1.7; }
html[lang="ur"] .page-head p, html[lang="ur"] .lead, html[lang="ur"] .hero__intro { line-height: 2.1; }
html[lang="ur"] .btn { line-height: 1.9; padding-block: 0.35rem; font-weight: 600; }
html[lang="ur"] .site-nav a, html[lang="ur"] .site-nav .dd-btn { line-height: 2; padding-block: 0.3rem; }
html[lang="ur"] .brand__text { line-height: 1.7; }
html[lang="ur"] .brand__place { font-size: 0.8rem; }
html[lang="ur"] .board__name { line-height: 1.9; }
html[lang="ur"] .field input, html[lang="ur"] .field select, html[lang="ur"] .field textarea { line-height: 1.9; padding-block: 0.35rem; }
html[lang="ur"] .faq summary { line-height: 2; }
html[lang="ur"] p, html[lang="ur"] li { max-width: 60ch; }
html[lang="ur"] [dir="ltr"] { font-family: var(--font); unicode-bidi: isolate; }
html[lang="ur"] .visit__phone, html[lang="ur"] .info__phone, html[lang="ur"] .doc__initials { font-family: var(--font); }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 64rem) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .board__row { grid-template-columns: 1fr auto; }
  .board__sum { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 56rem) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px -16px rgba(16,41,75,0.4); }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; padding: 0.5rem 1.25rem 1rem; gap: 0; }
  .site-nav a, .site-nav .dd-btn { padding: 0.85rem 0.5rem; width: 100%; text-align: start; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a[aria-current="page"], .site-nav .is-active > .dd-btn { box-shadow: inset 4px 0 0 var(--primary); padding-inline-start: 0.9rem; }
  [dir="rtl"] .site-nav a[aria-current="page"], [dir="rtl"] .site-nav .is-active > .dd-btn { box-shadow: inset -4px 0 0 var(--primary); }
  .dd-menu { position: static; box-shadow: none; border: 0; padding: 0; padding-inline-start: 1rem; margin: 0; min-width: 0; }
  .dd-menu .dd-all { border-top: 0; margin-top: 0; padding-top: 0; }
  .site-nav .nav-call { margin: 0.75rem 0 0; }
  .site-nav .nav-call a { text-align: center; border-bottom: 0; }

  .hero__grid, .cols-2, .split { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding-bottom: 2.5rem; }
  .infobar { margin-top: 0; padding-top: 1.5rem; }
  .infobar__grid { grid-template-columns: 1fr; }
  .info + .info { border-inline-start: 0; border-top: 1px solid var(--line); }
  .gallery, .gallery--2 { grid-template-columns: 1fr 1fr; }
  .hero__media--photo::before { inset: 0.6rem -0.6rem -0.6rem 0.6rem; }
  [dir="rtl"] .hero__media--photo::before { inset: 0.6rem 0.6rem -0.6rem -0.6rem; }
  .cols-3 { grid-template-columns: 1fr; }
  .dept-list, .dept-list--3 { grid-template-columns: 1fr; }
  .ticks { columns: 1; }
  .panel--side { position: static; }

  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset-inline: 0; bottom: 0; z-index: 30;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px -12px rgba(16,41,75,0.45);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 56px; font-weight: 700; text-decoration: none; color: var(--ink); }
  .callbar a:first-child { background: var(--primary); color: #fff; }
  .callbar svg { width: 1.1em; height: 1.1em; }
  body { padding-bottom: 56px; }
}

@media (max-width: 40rem) {
  .board__row { grid-template-columns: 1fr; gap: 0.25rem; padding: 1rem 0; }
  .board__sum { grid-row: auto; }
  .board__go { display: none; }
}

@media (max-width: 40rem) {
  .hero__media--logo { display: none; }   /* logo is already in the header on phones */
  .gallery, .gallery--2 { grid-template-columns: 1fr; }
}

@media (max-width: 30rem) {
  :root { --step-3: 1.9rem; --step-4: 2.2rem; --step-2: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .visit__phone { font-size: 1.75rem; }
  .btn-row .btn { flex: 1 1 100%; }
}

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

@media print {
  .site-header, .site-footer, .callbar, .btn-row { display: none !important; }
  body { padding: 0; }
}
