/* ==========================================================================
   ماس ميديكال سولوشن — واجهة الموقع العام
   نظام بصري مستلهم من المرجع: تدرج تركوازي/كحلي، بطاقات بيضاء ومساحات مريحة.
   ========================================================================== */

:root {
  --teal: #0BB4AA;
  --teal-light: #25c8bf;
  --teal-pale: #eefafa;
  --navy: #092A43;
  --navy-soft: #164560;
  --gold: #d9a842;
  --gold-pale: #fff7e7;
  --ink: #173d53;
  --muted: #607b88;
  --line: #d9ece9;
  --surface: #ffffff;
  --background: #fbfefe;
  --shadow-sm: 0 10px 28px rgba(9, 42, 67, .08);
  --shadow: 0 20px 52px rgba(9, 66, 82, .13);
  --shadow-lg: 0 30px 72px rgba(9, 42, 67, .18);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 32px;
  --page-padding: clamp(20px, 6vw, 88px);
}

/* Base and accessibility -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--ink);
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  text-align: right;
}

body:has(dialog[open]) { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, h4 { margin: 0; }
section { padding: 74px var(--page-padding); }
section[id] { scroll-margin-top: 145px; }

[hidden] { display: none !important; }
.icon-definitions { display: none; }
.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 3px solid rgba(217, 168, 66, .82);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  right: 50%;
  z-index: 1000;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
  transform: translate(50%, -170%);
}

.skip-link:focus { transform: translate(50%, 0); }

/* Shared buttons and headings -------------------------------------------- */
.btn, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 9px;
  padding: 11px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 12px 24px rgba(9, 82, 91, .20);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.btn:hover, .button:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 17px 30px rgba(9, 70, 78, .26);
}

.btn:disabled, .button:disabled {
  cursor: not-allowed;
  opacity: .58;
  transform: none;
  box-shadow: none;
}

.dark-btn {
  background: linear-gradient(135deg, var(--navy), #123f5c);
  box-shadow: 0 12px 25px rgba(9, 42, 67, .22);
}

.button-primary { background: linear-gradient(135deg, var(--teal), var(--navy)); }
.compact { min-height: 42px; padding: 9px 18px; font-size: 13px; }

.section-head {
  max-width: 780px;
  margin: 0 auto 37px;
  text-align: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--teal);
  font-size: 18px;
  font-weight: 900;
}

.tag::before, .tag::after {
  width: 20px;
  height: 2px;
  content: "";
  border-radius: 2px;
  background: var(--gold);
}

.section-head h2 {
  margin-top: 4px;
  color: var(--navy);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.4;
}

.section-head p {
  max-width: 690px;
  margin: 9px auto 0;
  color: var(--muted);
  font-size: 15px;
}

/* Top bar and central-logo navigation ------------------------------------ */
.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 52px;
  padding: 7px var(--page-padding);
  background: linear-gradient(100deg, var(--teal) 0%, #118b9a 46%, var(--navy) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.topbar > div:first-child { min-width: 0; }
.topbar > div:first-child a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 7px;
}

.top-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  direction: ltr;
}

.top-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  color: #fff;
  opacity: .96;
  transition: color .2s ease, opacity .2s ease;
}

.top-social a:hover { color: #fff2ca; opacity: 1; }
.top-social .top-phone { width: auto; margin-inline-start: 4px; font-weight: 900; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 103px;
  padding: 0 var(--page-padding);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 22px rgba(9, 42, 67, .06);
  backdrop-filter: blur(16px);
}

.logo {
  position: relative;
  z-index: 3;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  width: 142px;
  height: 142px;
  margin-top: -39px;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 11px 29px rgba(9, 42, 67, .19), 0 0 0 1px rgba(217, 168, 66, .3);
  place-items: center;
}

.logo img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  object-position: center;
}

.site-nav {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(142px, 15vw, 230px);
  padding-inline: clamp(124px, 12vw, 174px);
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: clamp(13px, 1.75vw, 29px);
  white-space: nowrap;
}

.nav-group-start { justify-content: flex-start; }
.nav-group-end { justify-content: flex-end; }
.site-nav a { position: relative; padding: 8px 0; transition: color .2s ease; }
.site-nav a:first-child, .site-nav a:hover { color: var(--teal); }
.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 0;
  height: 2px;
  content: "";
  border-radius: 2px;
  background: var(--gold);
  transition: width .2s ease;
}
.site-nav a:hover::after { width: 100%; }

.header-book {
  z-index: 4;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  min-height: 43px;
  padding: 9px 17px;
  font-size: 13px;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--teal);
  box-shadow: 0 8px 20px rgba(9, 42, 67, .09);
}

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
  min-height: 525px;
  padding: 44px var(--page-padding) 52px;
  overflow: hidden;
  background:
    radial-gradient(circle at 3% 26%, rgba(11, 180, 170, .11), transparent 28%),
    radial-gradient(circle at 93% 93%, rgba(217, 168, 66, .11), transparent 23%),
    linear-gradient(180deg, #fff 0%, #f2fbfb 100%);
}

.hero-content { position: relative; z-index: 1; max-width: 600px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid #e7d4a4;
  border-radius: 999px;
  background: var(--gold-pale);
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.5;
}

.hero h1 {
  margin-bottom: 17px;
  color: var(--teal);
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -.025em;
}

.hero h1 span { color: var(--gold); }
.hero p { max-width: 565px; margin-bottom: 24px; color: var(--ink); font-size: 16px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 21px;
}

.hero-hours {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.hero-hours .icon { color: var(--teal); }

.hero-visual {
  position: relative;
  min-width: 0;
  padding: 10px 0 10px 18px;
}

.hero-visual::before {
  position: absolute;
  inset: 0 auto 0 -12px;
  width: 86%;
  content: "";
  border: 2px solid rgba(217, 168, 66, .64);
  border-right: 0;
  border-radius: 105px 0 0 105px;
  pointer-events: none;
}

.hero-visual > img {
  position: relative;
  width: 100%;
  min-height: 430px;
  max-height: 510px;
  object-fit: cover;
  object-position: center;
  border-radius: 92px 0 0 92px;
  box-shadow: var(--shadow-lg);
}

.glass-card {
  position: absolute;
  right: 25px;
  bottom: 34px;
  z-index: 2;
  width: min(240px, 58%);
  padding: 18px 19px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  color: var(--navy);
  box-shadow: 0 18px 38px rgba(9, 42, 67, .16);
  backdrop-filter: blur(12px);
}
.glass-card strong { display: block; font-size: 18px; font-weight: 900; }
.glass-card span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.65; }

/* Services: one wide image panel and two thumbnail tabs ------------------ */
#services { padding-bottom: 22px; }

.services-slider {
  position: relative;
  max-width: 1220px;
  min-height: 680px;
  margin: 0 auto;
  padding: 12px 76px 133px;
}

.services-grid {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  border-radius: 31px;
  background: var(--navy);
  box-shadow: 0 28px 65px rgba(9, 62, 70, .18);
}

.department-card {
  position: absolute;
  inset: 0;
  min-height: 530px;
  overflow: hidden;
  background: var(--navy);
  opacity: 0;
  pointer-events: none;
  transform: translateX(7%);
  transition: opacity .45s ease, transform .65s ease;
}

.department-card.is-active, .department-card:not([hidden]) {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.department-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .93;
  transition: transform .8s ease;
}
.department-card.is-active > img { transform: scale(1.025); }

.department-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(9, 42, 67, .05) 30%, rgba(9, 42, 67, .36) 100%);
  pointer-events: none;
}

.card-content {
  position: absolute;
  top: 50%;
  right: 46px;
  z-index: 2;
  width: min(445px, 47%);
  max-height: calc(100% - 54px);
  overflow: auto;
  padding: 27px 28px 28px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 25px;
  background: rgba(255, 255, 255, .91);
  box-shadow: 0 24px 55px rgba(0, 42, 52, .21);
  transform: translateY(-50%);
  backdrop-filter: blur(14px);
  scrollbar-width: thin;
  scrollbar-color: var(--teal) transparent;
}

.card-content::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  content: "";
  border-radius: 5px 0 0 5px;
  background: linear-gradient(180deg, var(--gold), var(--teal));
}

.service-icon {
  display: inline-grid;
  width: 62px;
  height: 62px;
  margin-bottom: 11px;
  border: 5px solid #e8f8f6;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: #fff;
  box-shadow: 0 9px 18px rgba(9, 76, 83, .22);
  place-items: center;
}
.service-icon .icon { width: 27px; height: 27px; }

.card-content h3 { margin-bottom: 7px; color: var(--teal); font-size: 26px; font-weight: 900; line-height: 1.35; }
.card-content > p { margin-bottom: 14px; color: #31566a; font-size: 14px; line-height: 1.82; }
.small-note { color: var(--muted) !important; font-size: 11px !important; }

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 13px 0 18px;
}

.service-list > div {
  padding: 7px 9px;
  border: 1px solid #dcefed;
  border-radius: 10px;
  background: rgba(244, 251, 250, .94);
  color: #29566b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.65;
}

/* Service cards inserted by app.js remain legible if the service list loads. */
.service-list .service-card {
  position: relative;
  min-height: 105px;
  padding: 12px 13px 11px;
  overflow: hidden;
  border: 1px solid #dcefed;
  border-radius: 13px;
  background: #f9fdfd;
}
.service-list .service-card.featured { border-color: rgba(217, 168, 66, .52); background: var(--gold-pale); }
.service-list .service-no { float: left; color: var(--gold); font-size: 10px; font-weight: 900; }
.service-list .service-icon { display: none; }
.service-list .service-card h3 { margin: 0 0 3px; color: var(--navy); font-size: 12px; }
.service-list .service-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.service-list .service-arrow { position: absolute; left: 10px; bottom: 7px; color: var(--teal); font-size: 14px; }

.illustrative-note {
  position: absolute;
  bottom: 14px;
  left: 21px;
  z-index: 2;
  max-width: min(48%, 440px);
  color: rgba(255, 255, 255, .91);
  font-size: 10px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .65);
}

.slider-btn {
  position: absolute;
  top: 240px;
  z-index: 3;
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, .96);
  color: var(--teal);
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(9, 42, 67, .16);
  transition: transform .2s ease, color .2s ease, background .2s ease;
  place-items: center;
}
.slider-btn:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.slider-next { right: 17px; }
.slider-prev { left: 17px; }

.department-tabs {
  position: absolute;
  right: 50%;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  width: min(620px, calc(100% - 150px));
  gap: 14px;
  transform: translateX(50%);
}

.department-tabs button {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  min-height: 90px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dcefed;
  border-radius: 17px;
  cursor: pointer;
  background: #fff;
  color: var(--navy);
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
  box-shadow: 0 12px 28px rgba(9, 66, 82, .09);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.department-tabs button:hover, .department-tabs button.is-active { border-color: rgba(217, 168, 66, .8); box-shadow: 0 17px 34px rgba(9, 66, 82, .15); transform: translateY(-3px); }
.department-tabs img { width: 74px; height: 90px; object-fit: cover; }
.department-tabs span { padding: 11px; }

/* Doctors ----------------------------------------------------------------- */
.doctors-section {
  overflow: hidden;
  background: linear-gradient(180deg, #f6fcfc 0%, #fff 100%);
}

.public-doctor-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: -13px auto 26px;
}

.public-search {
  display: flex;
  align-items: center;
  width: min(420px, 100%);
  min-height: 49px;
  gap: 9px;
  padding: 6px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--teal);
  box-shadow: 0 8px 20px rgba(9, 66, 82, .06);
}
.public-search input { min-width: 0; height: 35px; padding: 0; border: 0; background: transparent; color: var(--ink); outline: 0; }
.public-search input::placeholder { color: #86a0a9; }
.public-doctor-tools > span { color: var(--muted); font-size: 13px; font-weight: 800; }

.doctors-slider { position: relative; max-width: 1400px; margin: 0 auto; padding: 7px 57px 11px; }
.doctors-viewport {
  min-width: 0;
  padding: 4px 3px 20px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 180, 170, .55) transparent;
  scroll-behavior: smooth;
}
.doctors-viewport::-webkit-scrollbar { height: 8px; }
.doctors-viewport::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(11, 180, 170, .42); }

.doctor-list {
  display: flex;
  width: max-content;
  min-width: 100%;
  gap: 20px;
  direction: rtl;
}

.doctor-card {
  display: flex;
  flex: 0 0 calc((100vw - (2 * var(--page-padding)) - 174px) / 4);
  flex-direction: column;
  width: min(300px, calc((100vw - (2 * var(--page-padding)) - 174px) / 4));
  min-width: 225px;
  overflow: hidden;
  border: 1px solid rgba(11, 130, 125, .17);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 15px 36px rgba(9, 66, 82, .10);
  scroll-snap-align: start;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.doctor-card:hover { border-color: rgba(217, 168, 66, .6); box-shadow: 0 23px 48px rgba(9, 66, 82, .15); transform: translateY(-4px); }

.doctor-photo {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3.05;
  overflow: hidden;
  background: linear-gradient(135deg, #d8f2ef, #74cbc5);
  color: var(--navy);
  font-size: 38px;
  font-weight: 900;
  place-items: center;
}
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.doctor-info { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 16px 17px 17px; }
.doctor-label { display: block; margin-bottom: 3px; color: var(--teal); font-size: 10px; font-weight: 900; }
.doctor-card h3 { color: var(--navy); font-size: 18px; font-weight: 900; line-height: 1.42; }
.doctor-card p { margin-top: 2px; color: #3a6474; font-size: 13px; font-weight: 800; line-height: 1.7; }
.doctor-card small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.7; }

.doctor-book, .doctor-details-btn, .doctor-book-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  gap: 6px;
  margin-top: auto;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
}
.doctor-book, .doctor-book-btn { margin-top: 14px; background: var(--teal); color: #fff; }
.doctor-book:hover, .doctor-book-btn:hover { background: var(--navy); color: #fff; }
.doctor-details-btn { margin-top: 10px; border-color: var(--teal); background: #fff; color: var(--teal); }
.doctor-details-btn:hover { background: var(--teal-pale); color: var(--navy); }

.doctor-slider-btn {
  position: absolute;
  top: 42%;
  z-index: 3;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: #fff;
  color: var(--teal);
  font-size: 20px;
  box-shadow: 0 13px 29px rgba(9, 66, 82, .16);
  place-items: center;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.doctor-slider-btn:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.doctors-slider [data-doctors-prev] { right: 1px; }
.doctors-slider [data-doctors-next] { left: 1px; }

.doctor-empty, .empty-state {
  width: min(680px, 100%);
  padding: 31px;
  border: 1px dashed rgba(11, 180, 170, .55);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.doctor-empty { display: grid; gap: 8px; }
.doctor-empty strong { color: var(--navy); font-size: 18px; }
.doctor-empty .button { justify-self: start; margin-top: 8px; }

/* Information band and about --------------------------------------------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 27px var(--page-padding);
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(100deg, var(--teal), #087f8b 48%, var(--navy));
  color: #fff;
}
.stat-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  gap: 0 12px;
  min-width: 0;
  padding: 4px 20px;
  border-left: 1px solid rgba(255, 255, 255, .2);
}
.stat-item:last-child { border-left: 0; }
.stat-item .icon { grid-row: 1 / span 2; width: 34px; height: 34px; color: #ffe4a1; }
.stat-item strong { color: #fff0c6; font-size: clamp(15px, 1.55vw, 22px); font-weight: 900; line-height: 1.35; }
.stat-item span { color: rgba(255,255,255,.88); font-size: 11px; font-weight: 700; }

.about { padding-top: 78px; overflow: hidden; }
.about-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 38px; max-width: 1390px; margin: 0 auto; }
.about-media { position: relative; min-height: 540px; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy); box-shadow: var(--shadow-lg); isolation: isolate; }
.about-media::after { position: absolute; inset: 0; z-index: 1; content: ""; background: linear-gradient(180deg, rgba(9, 42, 67, .02), rgba(9, 42, 67, .5)); pointer-events: none; }
.about-media > img { width: 100%; height: 100%; min-height: 540px; object-fit: cover; object-position: center; }

.about-glass-card {
  position: absolute;
  top: 23px;
  left: 23px;
  z-index: 2;
  display: grid;
  justify-items: center;
  min-width: 158px;
  padding: 15px 18px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 19px;
  background: rgba(255, 255, 255, .82);
  color: var(--navy);
  box-shadow: 0 15px 35px rgba(9, 42, 67, .15);
  backdrop-filter: blur(14px);
}
.about-glass-card .icon { width: 26px; height: 26px; margin-bottom: 3px; color: var(--teal); }
.about-glass-card strong { color: var(--teal); font-size: 19px; font-weight: 900; }
.about-glass-card span { color: var(--ink); font-size: 11px; font-weight: 800; }

.about-feature-grid { position: absolute; right: 20px; bottom: 20px; left: 20px; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.about-feature-grid > div { display: grid; align-content: start; justify-items: center; gap: 4px; min-height: 112px; padding: 13px 8px; border: 1px solid rgba(255,255,255,.48); border-radius: 17px; background: rgba(255,255,255,.87); color: var(--navy); text-align: center; backdrop-filter: blur(12px); }
.about-feature-grid .icon { width: 23px; height: 23px; color: var(--teal); }
.about-feature-grid strong { font-size: 12px; font-weight: 900; line-height: 1.55; }
.about-feature-grid span { color: #547080; font-size: 10px; font-weight: 700; line-height: 1.55; }

.about-content { display: flex; flex-direction: column; min-width: 0; padding: 36px; border: 1px solid rgba(11, 180, 170, .12); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 20px 52px rgba(9, 66, 82, .09); }
.about-kicker { align-self: flex-start; width: max-content; max-width: 100%; margin-bottom: 8px; padding: 5px 13px; border: 1px solid rgba(217, 168, 66, .42); border-radius: 999px; background: var(--gold-pale); color: var(--teal); font-size: 12px; font-weight: 900; }
.about h2 { max-width: 600px; margin-bottom: 11px; color: var(--teal); font-size: clamp(25px, 2.8vw, 34px); font-weight: 900; line-height: 1.48; }
.about-content > p { max-width: 620px; margin-bottom: 20px; color: #345568; font-size: 14px; }
.about-points { display: grid; gap: 11px; margin-bottom: 23px; }
.about-value-card { position: relative; min-width: 0; padding: 17px 62px 17px 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 9px 22px rgba(9, 66, 82, .06); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.about-value-card:hover { border-color: rgba(217, 168, 66, .55); box-shadow: 0 15px 32px rgba(9, 66, 82, .1); transform: translateY(-2px); }
.about-value-card > .icon { position: absolute; top: 18px; right: 17px; width: 31px; height: 31px; padding: 6px; border-radius: 10px; background: var(--teal-pale); color: var(--teal); }
.about-value-card strong { display: block; margin-bottom: 3px; color: var(--navy); font-size: 15px; font-weight: 900; }
.about-value-card span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.75; }
.about-booking-btn { align-self: flex-start; margin-top: auto; }

/* Why us ------------------------------------------------------------------ */
#why { padding-top: 30px; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 19px; max-width: 1390px; margin: 0 auto; }
.why-card { min-width: 0; padding: 26px 18px 23px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: var(--shadow-sm); text-align: center; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.why-card:hover { border-color: rgba(217, 168, 66, .65); box-shadow: var(--shadow); transform: translateY(-4px); }
.why-card .icon { width: 34px; height: 34px; margin-bottom: 9px; color: var(--teal); }
.why-card h3 { margin-bottom: 5px; color: var(--navy); font-size: 17px; font-weight: 900; }
.why-card p { color: var(--muted); font-size: 13px; line-height: 1.8; }

/* Forms and booking ------------------------------------------------------- */
.booking-form-section { background: linear-gradient(180deg, #fff 0%, #f5fcfc 100%); }
.booking-wrap { display: grid; grid-template-columns: minmax(280px, .86fr) minmax(0, 1.14fr); align-items: stretch; gap: 28px; max-width: 1160px; margin: 0 auto; }
.booking-info { display: flex; flex-direction: column; align-items: flex-start; padding: 38px; border: 1px solid rgba(11, 180, 170, .17); border-radius: var(--radius); background: linear-gradient(145deg, var(--teal-pale), #fff); color: var(--navy); box-shadow: var(--shadow-sm); }
.large-icon { width: 46px; height: 46px; padding: 10px; border-radius: 15px; background: var(--teal); color: #fff; }
.booking-info h2 { margin: 17px 0 10px; color: var(--teal); font-size: 27px; font-weight: 900; line-height: 1.5; }
.booking-info > p { margin-bottom: 20px; color: #3a5c6b; font-size: 14px; }
.booking-mini { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 25px; color: var(--muted); font-size: 12px; font-weight: 800; }
.booking-mini .icon { color: var(--teal); }

#quick-booking-form, .appointment-form, #appointment-form { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid > label, .appointment-form > label, #appointment-form > label { display: grid; gap: 6px; min-width: 0; color: #456372; font-size: 12px; font-weight: 800; }
.form-full { grid-column: 1 / -1; }

input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #cfe6e3;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

select { cursor: pointer; }
textarea { min-height: 98px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #90a4aa; opacity: 1; }
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(11, 180, 170, .13); }
input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; border-color: #e3edec; background: #f1f5f5; color: #7a9096; opacity: .75; }
input[type="hidden"] { display: none !important; }
input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--teal); }
.consent { display: flex !important; align-items: flex-start; gap: 9px !important; padding: 3px 1px; color: var(--muted) !important; font-size: 11px !important; line-height: 1.75; }
.form-grid > button.form-full, .form-grid > a.form-full { width: 100%; }
.booking-message { margin: 0; padding: 10px 13px; border-radius: 10px; font-size: 12px; font-weight: 800; }
.booking-message.success { border: 1px solid #b9e7cc; background: #ecfaf1; color: #187044; }
.booking-message.error { border: 1px solid #f0c1be; background: #fff0ef; color: #ad3e39; }

/* Feedback, contact, map -------------------------------------------------- */
.reviews { padding-top: 54px; padding-bottom: 50px; }
.feedback-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; max-width: 890px; margin: 0 auto; padding: 23px 27px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.feedback-card > .icon { width: 42px; height: 42px; padding: 9px; border-radius: 50%; background: var(--teal-pale); color: var(--teal); }
.feedback-card h3 { color: var(--navy); font-size: 17px; font-weight: 900; }
.feedback-card p { margin-top: 2px; color: var(--muted); font-size: 13px; }

.contact { padding-top: 51px; background: #f8fcfc; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 1160px; margin: 0 auto; }
.contact-card { min-width: 0; padding: 31px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.contact-card h3 { margin-bottom: 15px; color: var(--teal); font-size: 21px; font-weight: 900; }
.contact-card > p { color: var(--muted); font-size: 14px; }
.contact-item { display: flex; align-items: flex-start; gap: 11px; padding: 11px 0; border-bottom: 1px solid #edf4f3; color: #365a6b; font-size: 13px; font-weight: 800; line-height: 1.8; }
.contact-item:last-child { border-bottom: 0; }
.contact-item .icon { margin-top: 2px; color: var(--teal); }
.contact-item a:hover { color: var(--teal); }
.social-big { display: flex; flex-wrap: wrap; gap: 10px; margin: 19px 0 14px; direction: ltr; }
.social-big a { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 12px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 12px; font-weight: 900; transition: transform .2s ease, background .2s ease; }
.social-big a:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.social-big a:nth-child(1) { background: #ba3475; }
.social-big a:nth-child(2) { background: #161616; }
.social-big a:nth-child(3) { background: #f0cd1d; color: #27333a; }
.social-handle { color: var(--navy); font-size: 13px; }

.map-box { max-width: 1160px; margin: 22px auto 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.map-placeholder { display: grid; min-height: 245px; padding: 25px; overflow: hidden; background: linear-gradient(120deg, rgba(238,250,248,.88), rgba(255,255,255,.84)), radial-gradient(circle at 80% 20%, rgba(11,180,170,.23), transparent 28%), radial-gradient(circle at 15% 82%, rgba(217,168,66,.20), transparent 24%); place-items: center; text-align: center; }
.map-placeholder > * { max-width: 100%; }
.map-placeholder .icon { width: 38px; height: 38px; margin: 0 auto 5px; color: var(--teal); }
.map-placeholder h3 { color: var(--navy); font-size: 21px; font-weight: 900; }
.map-placeholder p { margin: 3px 0 15px; color: var(--muted); font-size: 13px; font-weight: 800; }

/* Footer and floating contact actions ------------------------------------ */
.site-footer { margin-top: 26px; padding: 52px var(--page-padding) 0; border-radius: 32px 32px 0 0; background: linear-gradient(105deg, var(--teal), #087b86 44%, var(--navy) 100%); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.38fr repeat(3, minmax(0, 1fr)); gap: 28px; max-width: 1400px; margin: 0 auto; padding-bottom: 32px; }
.footer-brand { min-width: 0; }
.footer-brand > a { display: inline-grid; width: 92px; height: 92px; overflow: hidden; border: 3px solid rgba(255,255,255,.78); border-radius: 50%; background: var(--navy); place-items: center; }
.footer-brand img { width: 86%; height: 86%; object-fit: contain; }
.footer-brand strong { display: block; margin-top: 10px; font-size: 17px; font-weight: 900; }
.footer-brand p { max-width: 300px; margin-top: 4px; color: rgba(255,255,255,.82); font-size: 12px; }
.footer-links { display: grid; align-content: start; gap: 5px; min-width: 0; }
.footer-links h3 { margin-bottom: 5px; color: #fff5d7; font-size: 15px; font-weight: 900; }
.footer-links a { color: rgba(255,255,255,.83); font-size: 12px; font-weight: 700; transition: color .2s ease; }
.footer-links a:hover { color: #fff5ca; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; max-width: 1400px; margin: 0 auto; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.79); font-size: 11px; font-weight: 700; }

.floating-actions { position: fixed; bottom: 22px; left: 22px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.floating-actions a { display: grid; width: 52px; height: 52px; border: 2px solid rgba(255,255,255,.88); border-radius: 50%; background: var(--teal); color: #fff; box-shadow: 0 12px 26px rgba(9, 42, 67, .24); place-items: center; transition: transform .2s ease, background .2s ease; }
.floating-actions a:hover { background: var(--navy); color: #fff; transform: translateY(-3px); }
.floating-actions .floating-whatsapp { background: #25d366; color: #fff; }
.floating-actions .floating-whatsapp:hover { background: #159c49; }

/* Native booking/details dialogs ----------------------------------------- */
.appointment-dialog {
  position: fixed;
  inset: 50% auto auto 50%;
  width: min(690px, calc(100vw - 28px));
  max-height: min(780px, calc(100vh - 28px));
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 25px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 31px 100px rgba(1, 26, 42, .38);
  transform: translate(-50%, -50%);
  scrollbar-width: thin;
}
.appointment-dialog::backdrop { background: rgba(3, 35, 54, .64); backdrop-filter: blur(3px); }
.appointment-dialog:not([open]) { display: none; }
.appointment-form, #appointment-form { display: grid; gap: 16px; padding: 29px; border: 0; border-radius: 0; box-shadow: none; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.dialog-heading .eyebrow { margin-bottom: 5px; font-size: 11px; }
.dialog-heading h3 { color: var(--navy); font-size: 25px; font-weight: 900; }
.dialog-heading p { margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 700; }
.close-button { display: grid; flex: 0 0 auto; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; background: #fff; color: var(--teal); font-family: Arial, sans-serif; font-size: 26px; line-height: 1; place-items: center; transition: color .18s ease, background .18s ease; }
.close-button:hover { background: var(--teal-pale); color: var(--navy); }
.appointment-form > .btn, #appointment-form > .btn { width: 100%; }

.doctor-details-dialog, #doctor-details-dialog { width: min(760px, calc(100vw - 28px)); padding: 28px; }
.doctor-details-dialog > .close-button, #doctor-details-dialog > .close-button { position: sticky; top: 0; z-index: 2; float: left; margin: 0 0 10px 12px; }
#doctor-details-content { clear: both; min-width: 0; }
#doctor-details-content img, .doctor-details-image { width: min(180px, 100%); aspect-ratio: 1; margin: 0 auto 16px; border: 5px solid var(--teal-pale); border-radius: 50%; object-fit: cover; object-position: center top; }
#doctor-details-content h2, #doctor-details-content h3 { color: var(--navy); font-weight: 900; }
#doctor-details-content p, #doctor-details-content li { color: var(--muted); font-size: 14px; }
#doctor-details-content .doctor-details-header { padding: 8px 0 18px; border-bottom: 1px solid var(--line); text-align: center; }
#doctor-details-content .doctor-details-section { padding: 16px 0; border-bottom: 1px solid #edf4f3; }
#doctor-details-content .doctor-details-section:last-child { border-bottom: 0; }

/* Tablet and compact navigation ------------------------------------------ */
@media (max-width: 1100px) {
  :root { --page-padding: clamp(18px, 4.5vw, 48px); }

  .topbar { grid-template-columns: minmax(0, 1fr) auto; min-height: 48px; gap: 10px; padding-top: 6px; padding-bottom: 6px; }
  .top-social { gap: 6px; }

  .site-header { min-height: 82px; grid-template-columns: 1fr auto 1fr; }
  .logo { width: 103px; height: 103px; margin-top: -17px; border-width: 4px; }
  .site-header > .logo { grid-column: 2; }
  .header-book { grid-column: 1; min-height: 40px; padding: 8px 13px; }

  .menu-toggle {
    z-index: 4;
    grid-column: 3;
    grid-row: 1;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 9px;
    cursor: pointer;
    place-content: center;
    gap: 4px;
  }
  .menu-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle.is-open span:nth-child(1), .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2), .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:nth-child(3), .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: var(--page-padding);
    left: var(--page-padding);
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(255,255,255,.99);
    box-shadow: 0 19px 46px rgba(9, 42, 67, .17);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .nav-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .site-nav a { padding: 10px 9px; border-bottom: 1px solid #edf4f3; white-space: normal; }
  .nav-group:first-child a:nth-last-child(-n + 2) { border-bottom: 0; }
  .nav-group + .nav-group { border-top: 1px solid var(--line); }
  .nav-group:last-child a:nth-last-child(-n + 2) { border-bottom: 0; }

  .services-slider { min-height: 658px; padding-right: 58px; padding-left: 58px; }
  .department-tabs { width: min(620px, calc(100% - 116px)); }

  .doctor-card {
    flex-basis: min(31vw, calc((100vw - (2 * var(--page-padding)) - 134px) / 3));
    width: min(31vw, calc((100vw - (2 * var(--page-padding)) - 134px) / 3));
  }
  .why-grid, .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-item:nth-child(2) { border-left: 0; }
  .stat-item:nth-child(-n + 2) { padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,.2); }
  .stat-item:nth-child(n + 3) { padding-top: 15px; }
  .about-wrap { grid-template-columns: 1fr; max-width: 900px; }
  .about-content { min-height: auto; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  section { padding-top: 54px; padding-bottom: 54px; }
  section[id] { scroll-margin-top: 128px; }
  .topbar { font-size: 12px; }
  .topbar > div:first-child a { line-height: 1.55; }
  .top-social .icon { width: 19px; height: 19px; }

  .hero { grid-template-columns: 1fr; gap: 27px; min-height: auto; padding-top: 34px; }
  .hero-content { max-width: 650px; }
  .hero-visual { width: min(660px, 100%); margin-inline: auto; }
  .hero-visual > img { min-height: min(430px, 63vw); }
  .glass-card { right: 22px; bottom: 22px; }

  .services-slider { min-height: 0; padding: 4px 0 112px; }
  .services-grid { min-height: 0; overflow: visible; border-radius: 23px; background: transparent; box-shadow: none; }
  .department-card, .department-card.is-active, .department-card:not([hidden]) { position: relative; inset: auto; display: grid; grid-template-rows: 264px auto; min-height: 0; overflow: hidden; border-radius: 23px; background: var(--navy); transform: none; }
  .department-card > img { position: relative; height: 264px; transform: none !important; }
  .department-card::after { background: linear-gradient(180deg, rgba(9,42,67,.02), rgba(9,42,67,.36)); }
  .card-content { position: relative; top: auto; right: auto; width: 100%; max-height: none; min-height: 0; overflow: visible; padding: 22px 22px 25px; border: 0; border-radius: 0; transform: none; box-shadow: none; backdrop-filter: none; }
  .card-content::before { top: 14px; bottom: 14px; }
  .card-content h3 { font-size: 23px; }
  .slider-btn { top: 110px; width: 45px; height: 45px; font-size: 17px; }
  .slider-next { right: 9px; }
  .slider-prev { left: 9px; }
  .illustrative-note { bottom: auto; top: 236px; left: 13px; }
  .department-tabs { right: 0; bottom: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 9px; transform: none; }
  .department-tabs button { grid-template-columns: 57px minmax(0, 1fr); min-height: 76px; border-radius: 14px; font-size: 11px; }
  .department-tabs img { width: 57px; height: 76px; }

  .feedback-card { grid-template-columns: auto minmax(0, 1fr); padding: 20px; }
  .feedback-card .btn { grid-column: 1 / -1; justify-self: start; }
  .booking-wrap, .contact-grid { grid-template-columns: 1fr; }
  .booking-info { min-height: 0; }
  .map-placeholder { min-height: 225px; }
}

@media (max-width: 620px) {
  :root { --page-padding: 16px; }
  body { font-size: 15px; }
  .topbar { grid-template-columns: minmax(0, 1fr) auto; min-height: 49px; align-items: start; font-size: 10px; }
  .top-social { gap: 4px; max-width: 142px; }
  .top-social .top-phone { min-width: 100%; margin: 0; justify-content: flex-end; font-size: 11px; }
  .top-social .icon { width: 18px; height: 18px; }

  .site-header { min-height: 72px; }
  .logo { width: 78px; height: 78px; margin-top: -8px; }
  .header-book { min-height: 37px; padding: 7px 10px; font-size: 11px; }
  .header-book .icon { width: 17px; height: 17px; }
  .menu-toggle { width: 39px; height: 39px; padding: 7px; }
  .site-nav { right: 16px; left: 16px; }
  .site-nav a { padding: 9px 7px; font-size: 12px; }

  .section-head { margin-bottom: 28px; }
  .tag { font-size: 15px; }
  .section-head h2 { font-size: 23px; }
  .section-head p { font-size: 13px; }
  .hero { padding-top: 28px; padding-bottom: 39px; }
  .eyebrow { margin-bottom: 13px; padding: 5px 10px; font-size: 11px; }
  .hero h1 { font-size: clamp(30px, 9vw, 41px); }
  .hero p { margin-bottom: 19px; font-size: 14px; }
  .hero-actions { gap: 9px; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { padding-left: 9px; }
  .hero-visual::before { border-radius: 58px 0 0 58px; }
  .hero-visual > img { min-height: 285px; border-radius: 54px 0 0 54px; }
  .glass-card { right: 13px; bottom: 13px; width: min(208px, 70%); padding: 12px 13px; }
  .glass-card strong { font-size: 14px; }
  .glass-card span { font-size: 10px; }

  .department-card, .department-card.is-active, .department-card:not([hidden]) { grid-template-rows: 225px auto; }
  .department-card > img { height: 225px; }
  .card-content { padding: 18px 17px 21px; }
  .card-content h3 { font-size: 20px; }
  .card-content > p { font-size: 13px; }
  .service-list { grid-template-columns: 1fr; }
  .service-list > div { font-size: 11px; }
  .service-list .service-card { min-height: 85px; }
  .illustrative-note { top: 200px; font-size: 8px; }
  .slider-btn { top: 93px; width: 40px; height: 40px; }
  .department-tabs { padding-inline: 2px; }
  .department-tabs button { grid-template-columns: 46px minmax(0, 1fr); min-height: 65px; font-size: 10px; }
  .department-tabs img { width: 46px; height: 65px; }
  .department-tabs span { padding: 6px; }

  .public-doctor-tools { display: grid; justify-items: stretch; gap: 7px; margin-top: -6px; }
  .public-doctor-tools > span { text-align: center; }
  .doctors-slider { padding-inline: 37px; }
  .doctors-viewport { padding-bottom: 14px; }
  .doctor-list { gap: 12px; }
  .doctor-card { flex-basis: 100%; width: min(320px, calc(100vw - 90px)); min-width: calc(100vw - 90px); }
  .doctor-photo { aspect-ratio: 4 / 3; }
  .doctor-info { padding: 14px; }
  .doctor-card h3 { font-size: 17px; }
  .doctor-slider-btn { width: 36px; height: 36px; font-size: 15px; }

  .stats-band { padding: 19px 11px; }
  .stat-item { grid-template-columns: 30px minmax(0, 1fr); gap: 0 7px; padding-right: 9px; padding-left: 9px; }
  .stat-item .icon { width: 26px; height: 26px; }
  .stat-item strong { font-size: 13px; }
  .stat-item span { font-size: 9px; }

  .about { padding-top: 53px; }
  .about-media, .about-media > img { min-height: 430px; }
  .about-feature-grid { right: 10px; bottom: 10px; left: 10px; gap: 6px; }
  .about-feature-grid > div { min-height: 103px; padding: 9px 4px; border-radius: 13px; }
  .about-feature-grid strong { font-size: 10px; }
  .about-feature-grid span { font-size: 8px; }
  .about-glass-card { top: 12px; left: 12px; min-width: 132px; padding: 10px 12px; }
  .about-glass-card strong { font-size: 15px; }
  .about-content { padding: 22px 17px; border-radius: 23px; }
  .about h2 { font-size: 23px; }
  .about-content > p { font-size: 13px; }
  .about-value-card { padding: 14px 52px 14px 13px; }
  .about-value-card > .icon { top: 14px; right: 12px; width: 28px; height: 28px; }
  .about-value-card span { font-size: 11px; }

  .why-grid { grid-template-columns: 1fr; gap: 11px; }
  .why-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 10px; padding: 18px; text-align: right; }
  .why-card .icon { grid-row: 1 / span 2; width: 31px; height: 31px; margin: 2px 0 0; }
  .why-card h3 { margin-bottom: 1px; }
  .why-card p { font-size: 12px; }

  .booking-info, #quick-booking-form { padding: 22px 17px; }
  .booking-info h2 { font-size: 23px; }
  .booking-info > p { font-size: 13px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: auto; }
  .form-grid > button.form-full, .form-grid > a.form-full { grid-column: 1; }
  input:not([type="checkbox"]):not([type="radio"]), select { min-height: 46px; }
  textarea { min-height: 91px; }

  .feedback-card { grid-template-columns: 1fr; justify-items: start; gap: 9px; }
  .feedback-card > .icon { width: 38px; height: 38px; }
  .feedback-card .btn { grid-column: auto; width: 100%; }
  .contact-card { padding: 22px 17px; }
  .contact-card h3 { font-size: 19px; }
  .map-placeholder { min-height: 210px; padding: 18px; }
  .map-placeholder .btn { width: 100%; padding-inline: 11px; font-size: 12px; }

  .site-footer { margin-top: 18px; padding-top: 37px; border-radius: 22px 22px 0 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 25px 17px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { display: grid; gap: 4px; padding: 13px 0; font-size: 10px; }
  .floating-actions { bottom: 15px; left: 14px; gap: 8px; }
  .floating-actions a { width: 46px; height: 46px; }
  .floating-actions .icon { width: 20px; height: 20px; }

  .appointment-dialog, .doctor-details-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); border-radius: 20px; }
  .appointment-form, .doctor-details-dialog { padding: 20px 16px; }
  .dialog-heading { gap: 10px; }
  .dialog-heading h3 { font-size: 21px; }
}

@media (max-width: 390px) {
  .header-book { max-width: 116px; font-size: 10px; }
  .nav-group { grid-template-columns: 1fr; }
  .nav-group:first-child a:nth-last-child(-n + 2), .nav-group:last-child a:nth-last-child(-n + 2) { border-bottom: 1px solid #edf4f3; }
  .nav-group:first-child a:last-child, .nav-group:last-child a:last-child { border-bottom: 0; }
  .about-feature-grid > div { min-height: 94px; }
  .about-feature-grid span { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

/* Respect user motion preferences; page content remains fully visible. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .topbar, .site-header, .floating-actions, .slider-btn, .doctor-slider-btn, .department-tabs, .btn, .button { display: none !important; }
  body { background: #fff; color: #111; }
  section { padding: 20px 0; }
  .hero, .doctors-section, .booking-form-section { background: #fff; }
}
