/* ============================================================
   Noorjan Medical Center — stylesheet
   Sections: 1 tokens · 2 reset · 3 layout · 4 header · 5 hero
             6 components · 7 forms · 8 footer · 9 responsive
             10 motion preferences
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* brand */
  --primary: #ed2128;
  --primary-hover: #d4141b;
  --primary-press: #ab1016;
  --primary-soft: #ffdedf;
  /* small red text (< 24px, or < 18.66px bold) must use these to clear 4.5:1 */
  --primary-text: #ab1016;
  --primary-text-hover: #7d0d11;
  --on-primary: #ffffff;

  /* surfaces */
  --canvas: #fffaf5;
  --surface-soft: #fbf3ec;
  --surface-card: #f6ede4;
  --surface-strong: #efe4d9;
  --hairline: #e8e0d6;
  --hairline-strong: #d9cfc2;

  /* ink */
  --text-ink: #14181a;
  --text-body: #32393b;
  --text-muted: #5f6a6c;
  --text-muted-soft: #8b9597;
  --text-on-color: #ffffff;

  /* feature card tones */
  --card-red: #ed2128;
  --card-teal: #10393b;
  --card-sky: #a6c6e8;
  --card-ochre: #ebb54a;

  /* status */
  --success: #1e9e6a;
  --success-soft: #e2f6ed;
  --warning: #e08a00;
  --warning-soft: #fdf1dc;
  --error: #c81e14;
  --error-soft: #ffe6e4;
  --focus-ring: #f45258;

  /* type */
  --font-display: "Baloo Bhaijaan 2", "Plus Jakarta Sans", sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Baloo Bhaijaan 2", sans-serif;

  /* spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 96px;
  --container-max: 1280px;
  --gutter: 24px;
  --nav-height: 64px;

  /* shape */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-hover: 0 6px 20px rgba(20, 24, 26, 0.07);
  --ease: cubic-bezier(0.2, 0.6, 0.25, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body {
  font-family: var(--font-arabic);
  line-height: 1.8;
}

/* --font-body leads with Plus Jakarta Sans, which has no Arabic coverage —
   re-apply the Arabic face to every component that sets --font-body directly.
   (Headings are fine: --font-display leads with Baloo Bhaijaan 2.) */
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .btn,
html[dir="rtl"] .feature__eyebrow,
html[dir="rtl"] .panel__title,
html[dir="rtl"] .site-footer h3 { font-family: var(--font-arabic); }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-ink);
  letter-spacing: -0.5px;
}

h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.03; letter-spacing: -2px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -1px; }
h3 { font-size: 22px; line-height: 1.3; }

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; }

a { color: var(--primary-text); text-decoration: none; transition: color 180ms ease-out; }
a:hover { color: var(--primary-text-hover); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

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

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.band { padding: var(--space-section) 0; }
.band--soft { background: var(--surface-soft); }
.band--tight { padding: 56px 0; }

.stack { display: flex; flex-direction: column; gap: var(--space-lg); }
.stack--sm { gap: var(--space-sm); }

.grid { display: grid; gap: var(--space-lg); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--space-xxl); }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--wide-cards { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

.section-head { display: flex; flex-direction: column; gap: var(--space-sm); margin-bottom: 40px; }
.eyebrow {
  align-self: start;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--surface-card);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.lead { font-size: 18px; line-height: 1.7; color: var(--text-body); max-width: 68ch; }
.page-head { background: var(--surface-soft); padding: 72px 0; }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-ink); }
.brand img { display: block; height: 40px; width: auto; }
.brand__name { font-family: var(--font-display); font-size: 17px; font-weight: 500; white-space: nowrap; }

.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: var(--space-lg); }
.main-nav a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  color: var(--text-body);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms var(--ease);
}
.main-nav a[aria-current="page"] { color: var(--primary-text); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: var(--space-sm); }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.header-phone span { direction: ltr; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  color: var(--text-ink);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 180ms ease-out, background-color 180ms ease-out;
}
.nav-drawer-actions { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  color: var(--text-ink);
  cursor: pointer;
}

/* ---------- 5. Hero + slideshow ---------- */
.hero { padding: 56px 0 0; }
.hero__copy { display: flex; flex-direction: column; gap: 20px; }
.hero__sub { font-size: 20px; line-height: 1.7; max-width: 52ch; color: var(--text-body); }
.hero__note { font-size: 14px; color: var(--text-muted); }
.hero__note span { direction: ltr; unicode-bidi: isolate; }

.slideshow {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.slideshow__slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 700ms var(--ease);
}
.slideshow__slide.is-active { opacity: 1; }
.slideshow__slide--cover { object-fit: cover; object-position: 22% center; }

.slideshow__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  color: var(--text-ink);
  cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out;
}
.slideshow__arrow--prev { inset-inline-start: 16px; }
.slideshow__arrow--next { inset-inline-end: 16px; }

.slideshow__dots {
  position: absolute;
  inset-inline: 0;
  bottom: 16px;
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
}
.slideshow__dot {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(20, 24, 26, 0.28);
  cursor: pointer;
  transition: width 220ms var(--ease), background-color 220ms ease-out;
}
.slideshow__dot.is-active { width: 24px; background: var(--primary); }

/* ---------- 6. Components ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms ease-out, border-color 180ms ease-out,
              color 180ms ease-out, transform 180ms var(--ease);
}
/* white text needs a darker fill than --primary (4.33:1) to clear 4.5:1 */
.btn--primary { background: var(--primary-hover); color: var(--on-primary); }
.btn--secondary { background: var(--canvas); border-color: var(--hairline); color: var(--text-ink); }
.btn--on-color { background: #fff; color: var(--text-ink); }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 15px; }
.btn--block { width: 100%; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--surface-soft);
  border-radius: var(--radius-xl);
}
.stats__value {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -1.5px;
  color: var(--primary);
  direction: ltr;
  unicode-bidi: isolate;
}
/* direction: ltr keeps the digits in order; align them back to the reading side */
[dir="rtl"] .stats__value { text-align: right; }
.stats__label { margin-top: var(--space-xs); font-size: 15px; color: var(--text-muted); }

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  transition: border-color 200ms ease-out, transform 200ms var(--ease), box-shadow 200ms ease-out;
}
.card h3 { font-size: 24px; }
.card p { font-size: 16px; line-height: 1.65; color: var(--text-muted); }

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  flex: none;
  background: var(--primary-soft);
  border-radius: var(--radius-md);
  color: var(--primary);
}
.icon-chip--sm { width: 40px; height: 40px; }

.feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
}
.feature h3 { font-size: 26px; }
.feature p { font-size: 16px; line-height: 1.65; }
.feature .icon-chip { background: rgba(255, 255, 255, 0.18); color: inherit; }
/* body copy on this card is 16px white, so the fill matches the button red (5.3:1) */
.feature--red { background: var(--primary-hover); color: var(--text-on-color); }
.feature--red h3, .feature--teal h3 { color: var(--text-on-color); }
.feature--teal { background: var(--card-teal); color: var(--text-on-color); }
.feature--sky { background: var(--card-sky); color: var(--text-ink); }
.feature--ochre { background: var(--card-ochre); color: var(--text-ink); }
.feature--sky .icon-chip, .feature--ochre .icon-chip { background: rgba(255, 255, 255, 0.45); }
.feature__eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
/* white on --card-red caps at 4.33:1, so the label sits on a darker red plate */
.feature--red .feature__eyebrow {
  align-self: start;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--primary-press);
  color: #fff;
}
/* only the light tones can carry a muted label and stay above 4.5:1 */
.feature--sky .feature__eyebrow,
.feature--ochre .feature__eyebrow { opacity: 0.75; }

.bullets { display: grid; gap: 10px; }
.bullets li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text-body); }
.bullets li::before {
  content: "";
  width: 5px; height: 5px;
  margin-top: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--primary);
}
.bullets--plain li::before { background: currentColor; opacity: 0.55; }

.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--text-body); }
.check-list svg { flex: none; margin-top: 3px; color: var(--primary); }

.panel {
  padding: 28px;
  background: var(--surface-soft);
  border-radius: var(--radius-lg);
}
.panel__title {
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.media-frame {
  display: grid;
  place-items: center;
  gap: var(--space-xs);
  aspect-ratio: 4 / 3;
  padding: var(--space-lg);
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  text-align: center;
}
.media-frame span { font-size: 13px; font-weight: 500; }

.map-embed {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-card);
}
.map-embed iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; }
.map-link { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-sm); font-size: 14px; font-weight: 600; }

.doctor-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color 200ms ease-out, transform 200ms var(--ease);
}
.doctor-card__media { overflow: hidden; border-bottom: 1px solid var(--hairline); background: #fff; }
.doctor-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  transition: transform 240ms var(--ease);
}
.doctor-card__body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 28px; }
.doctor-card__name { font-size: 26px; }
.doctor-card__specialty { font-size: 15px; font-weight: 600; color: var(--primary-text); line-height: 1.5; }
.doctor-card__cred { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.doctor-card__meta {
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doctor-card__location { display: flex; gap: var(--space-xs); align-items: flex-start; font-size: 14px; color: var(--text-muted); }
.doctor-card__location svg { flex: none; margin-top: 2px; color: var(--primary); }
.phone-chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; }
.phone-chips > svg { color: var(--primary); }
.phone-chip {
  padding: 6px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  color: var(--text-ink);
  font-size: 14px;
  font-weight: 600;
  direction: ltr;
  transition: background-color 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out;
}

.doctor-preview { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-lg); overflow: hidden; transition: border-color 200ms ease-out, transform 200ms var(--ease); }
.doctor-preview__media { overflow: hidden; }
.doctor-preview img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #fff; transition: transform 220ms var(--ease); }
.doctor-preview__body { display: flex; flex-direction: column; gap: 6px; padding: 20px; }
.doctor-preview__body h3 { font-size: 19px; line-height: 1.35; }
.doctor-preview__body p { font-size: 14px; color: var(--text-muted); }

.timeline li {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-lg);
  padding: 28px 0;
  border-top: 1px solid var(--hairline-strong);
}
.timeline h3 { color: var(--primary); font-size: 24px; }
.timeline p { font-size: 17px; line-height: 1.7; color: var(--text-body); }

.dept-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 40px;
  padding-bottom: var(--space-section);
  border-bottom: 1px solid var(--hairline);
}
.dept-row:last-child { border-bottom: 0; }
.dept-row__copy { display: flex; flex-direction: column; gap: var(--space-md); }
.dept-row__copy h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.6px; }

.cta-band {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-xxl);
  background: var(--surface-soft);
  border-radius: var(--radius-xl);
}
.cta-band p { font-size: 18px; line-height: 1.7; color: var(--text-body); max-width: 60ch; }
.button-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

.phone-table {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.phone-table li {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 20px;
  border-bottom: 1px solid var(--hairline);
  background: var(--canvas);
  transition: background-color 180ms ease-out;
}
.phone-table li:last-child { border-bottom: 0; }
.phone-table a { font-size: 17px; font-weight: 600; color: var(--text-ink); direction: ltr; }
.phone-table span { font-size: 14px; color: var(--text-muted); }

.social-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 10px 16px;
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  color: var(--text-ink);
  font-size: 15px;
  font-weight: 600;
  transition: border-color 180ms ease-out, transform 180ms var(--ease);
}
.social-link svg { color: var(--primary); }

.note-box { display: flex; gap: 14px; align-items: flex-start; padding: var(--space-lg); background: var(--surface-soft); border-radius: var(--radius-lg); }
.note-box svg { flex: none; margin-top: 2px; color: var(--primary); }
.note-box p { font-size: 16px; line-height: 1.7; color: var(--text-body); }

.alert { display: flex; flex-direction: column; gap: 4px; padding: var(--space-md) 20px; border-radius: var(--radius-md); font-size: 15px; line-height: 1.6; }
.alert strong { font-weight: 600; }
.alert--success { background: var(--success-soft); color: #10553a; }
.alert--warning { background: var(--warning-soft); color: #6b4300; }

/* ---------- 7. Forms ---------- */
.booking-card {
  padding: var(--space-xl);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
}
.form { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: var(--space-xs); }
.field > label { font-size: 16px; font-weight: 600; color: var(--text-ink); }
.field .required { color: var(--primary-text); }
.field__help { font-size: 14px; color: var(--text-muted); }
.field__error { font-size: 14px; color: var(--error); }
.field__error:empty { display: none; }

.control {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  color: var(--text-ink);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 180ms ease-out, box-shadow 180ms ease-out;
}
textarea.control { min-height: 110px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); outline: none; }
.control[aria-invalid="true"] { border-color: var(--error); }

/* ---------- 8. Footer ---------- */
.site-footer { background: var(--surface-soft); border-top: 1px solid var(--hairline); padding: var(--space-section) 0 var(--space-xl); }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: var(--space-xl); }
.site-footer h3 { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-md); }
.site-footer li + li { margin-top: var(--space-xs); }
.site-footer li a { color: var(--text-body); font-size: 15px; }
.footer-clinic p { font-size: 15px; line-height: 1.7; color: var(--text-muted); }
.footer-clinic a { font-weight: 600; }
.nowrap { white-space: nowrap; }
.site-footer__legal {
  margin-top: var(--space-xxl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--hairline-strong);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: center;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ---------- 9. Responsive ---------- */
@media (max-width: 1000px) {
  :root { --space-section: 64px; --gutter: 20px; }

  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    padding: var(--space-md) var(--gutter) var(--space-lg);
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-hover);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
  .header-actions { margin-inline-start: auto; }

  .timeline li { grid-template-columns: 1fr; gap: var(--space-xs); }
  .dept-row { padding-bottom: 48px; gap: var(--space-lg); }
  .cta-band { padding: var(--space-xl) var(--space-lg); }
  .stats { padding: var(--space-lg); }
}

@media (max-width: 700px) {
  .header-phone,
  .header-actions .btn { display: none; }

  .main-nav .nav-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-md);
  }
  .nav-drawer-actions .header-phone { display: inline-flex; }
  .nav-drawer-actions .btn { display: inline-flex; }
}

@media (max-width: 600px) {
  .brand__name { display: none; }
  .grid--2,
  .grid--cards,
  .grid--wide-cards,
  .dept-row { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .hero__sub { font-size: 18px; }
  .stats__value { font-size: 36px; }
  .doctor-card__body, .booking-card { padding: 20px; }
  .card, .feature, .panel { padding: 20px; }
  .button-row .btn { width: 100%; }
  .slideshow__arrow { width: 40px; height: 40px; }
}

/* ---------- 10. Hover + motion preferences ---------- */
@media (hover: hover) and (pointer: fine) {
  .main-nav a:hover { color: var(--primary-text); }
  .main-nav a:hover::after { transform: scaleX(1); }
  .btn--primary:hover { background: var(--primary-press); }
  .btn--secondary:hover { background: var(--surface-soft); border-color: var(--hairline-strong); }
  .btn--on-color:hover { background: var(--surface-soft); }
  .btn:hover { transform: translateY(-2px); }
  .lang-switch:hover { background: var(--surface-soft); border-color: var(--primary); }
  .nav-toggle:hover { border-color: var(--primary); color: var(--primary-text); }
  .card:hover, .doctor-card:hover, .doctor-preview:hover { border-color: var(--primary); transform: translateY(-3px); }
  .doctor-card:hover .doctor-card__media img { transform: scale(1.04); }
  .doctor-preview:hover img { transform: scale(1.03); }
  .slideshow__arrow:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
  .phone-chip:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
  .phone-table li:hover { background: var(--surface-soft); }
  .social-link:hover { border-color: var(--primary); transform: translateY(-2px); }
  .site-footer li a:hover { color: var(--primary-text); }
}

.btn:active { transform: none; }
.btn--primary:active { background: var(--primary-press); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .card:hover, .doctor-card:hover, .doctor-preview:hover, .social-link:hover { transform: none; }
  .slideshow__slide { transition: none; }
}

.video-band { max-width: 920px; margin: 0 auto; }
.video-frame {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #14100c;
}
.video-frame video { display: block; width: 100%; aspect-ratio: 832 / 464; object-fit: cover; }
.video-caption { margin-top: var(--space-sm); font-size: 14px; color: var(--text-muted); text-align: center; }

.video-frame--portrait { max-width: 340px; margin-inline: auto; }
.video-frame--portrait video { aspect-ratio: 686 / 1280; object-fit: contain; }

/* Header video band */
.hero-video { position: relative; overflow: hidden; background: #14100c; border-bottom: 1px solid var(--hairline); }
.hero-video__media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hero-video__inner { position: relative; min-height: 620px; display: flex; align-items: center; padding: 96px 0; }
.hero-video__panel {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl, 24px);
  padding: 44px;
  max-width: 620px;
  display: flex; flex-direction: column; gap: var(--space-md, 16px);
}
.hero-video__controls {
  position: absolute; inset-inline-end: 24px; bottom: 24px;
  display: flex; gap: 8px;
}
.hero-video__btn {
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--hairline); background: #fff; color: var(--text-ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background-color 180ms cubic-bezier(.2,.6,.25,1), color 180ms cubic-bezier(.2,.6,.25,1), border-color 180ms cubic-bezier(.2,.6,.25,1);
}
@media (hover: hover) {
  .hero-video__btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
}
@media (max-width: 900px) {
  .hero-video__inner { min-height: 520px; padding: 64px 0; }
  .hero-video__panel { padding: 32px; }
}
@media (max-width: 600px) {
  .hero-video__inner { min-height: 440px; padding: 40px 0; }
  .hero-video__panel { padding: 24px; }
}


/* ---------- 11. Health packages ---------- */
.pkg-tiles { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.pkg-tile {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 22px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 200ms ease-out, transform 200ms var(--ease), box-shadow 200ms ease-out;
}
.pkg-tile:hover { border-color: var(--hairline-strong); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.pkg-tile__dot { width: 34px; height: 6px; border-radius: var(--radius-pill); margin-bottom: 6px; }
.pkg-tile__name { font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -0.5px; color: var(--text-ink); }
.pkg-tile__price { font-size: 20px; font-weight: 700; color: var(--primary-text); }
.pkg-tile__price small { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.pkg-tile__meta { font-size: 14px; color: var(--text-muted); }
.pkg-note { margin-top: var(--space-lg); font-size: 15px; line-height: 1.7; color: var(--text-muted); max-width: 70ch; }

.pkg-sheet { border: 1px solid var(--hairline); border-radius: var(--radius-xl); overflow: hidden; background: var(--canvas); scroll-margin-top: 88px; }
.pkg-sheet__head {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg);
  padding: 26px 28px;
  color: var(--text-on-color);
}
.pkg-sheet__head--ink { color: var(--text-ink); }
.pkg-sheet__id { display: flex; align-items: center; gap: var(--space-sm); }
.pkg-sheet__name { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -0.8px; }
.pkg-pill { padding: 5px 13px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.2); font-size: 14px; font-weight: 600; white-space: nowrap; }
.pkg-sheet__head--ink .pkg-pill { background: rgba(20,24,26,0.14); }
.pkg-sheet__line { flex: 1 1 260px; font-size: 15px; line-height: 1.65; opacity: 0.92; }
.pkg-sheet__price { font-size: 26px; font-weight: 700; white-space: nowrap; }
.pkg-sheet__price small { font-size: 13px; font-weight: 600; opacity: 0.85; }

.pkg-groups { display: grid; gap: var(--space-xl) var(--space-xxl); grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); padding: 30px 28px; }
.pkg-group__title {
  margin-bottom: var(--space-sm);
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--primary-text);
}
.pkg-tests { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.pkg-test { display: flex; gap: 10px; align-items: flex-start; }
.pkg-test svg { flex: none; margin-top: 4px; color: var(--primary); }
.pkg-test strong { display: block; font-size: 15px; font-weight: 600; color: var(--text-ink); line-height: 1.45; }
.pkg-test span { display: block; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

.pkg-sheet__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md);
  padding: 20px 28px;
  background: var(--surface-soft);
  border-top: 1px solid var(--hairline);
}
.pkg-sheet__foot p { font-size: 15px; font-weight: 600; color: var(--text-body); }

@media (max-width: 640px) {
  .pkg-sheet__head, .pkg-groups, .pkg-sheet__foot { padding-inline: 20px; }
  .pkg-sheet__price { font-size: 22px; }
}
