/* =========================================================================
   Dr. Batoul Reffai Medical Clinic — site styles
   Desktop values are the Figma "01 — HOME" frame measurements (1440px wide).
   --u scales every measurement down proportionally below 1440px.
   ========================================================================= */

:root {
  --gold: #b89652;          /* buttons, nav active, eyebrows */
  --gold-deep: #99772e;     /* hero title, See Profile */
  --gold-soft: #b49468;     /* department label bars, result labels */
  --ink: #1f1d1b;           /* headings, body text, footer */
  --muted: #6e6b63;         /* descriptions, subtitles */
  --cream: #f2eee4;         /* contact section */
  --paper: #faf8f4;         /* page background */
  --night: #0f0f0f;         /* before & after band */
  --night-text: #f0ebe3;
  --link: #4881fb;
  --u: min(1px, calc(100vw / 1440));
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --arimo: 'Arimo', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main { display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; font-family: var(--sans); font-weight: 700; color: #fff; white-space: nowrap; transition: background .2s, transform .2s, box-shadow .2s; }
.btn-gold { background: var(--gold); }
.btn-gold:hover { background: #a6843f; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(184, 150, 82, .3); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.eyebrow-small { margin: 0; font-family: var(--arimo); font-weight: 500; font-size: max(11px, calc(11 * var(--u))); line-height: 1.5; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); }

/* ---------- Header (MAIN HEADER — FIXED) ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: calc(112 * var(--u)); max-width: 1440px; margin: 0 auto; pointer-events: none; }
.site-header > * { pointer-events: auto; }
.site-header { transition: transform .35s ease; }
.site-header.is-hidden { transform: translateY(-140%); }
.site-header.is-hidden.nav-open { transform: none; }
.site-logo { position: absolute; left: calc(57 * var(--u)); top: calc(41 * var(--u)); width: calc(245 * var(--u)); transition: top .3s; }
.site-logo img { width: 100%; height: auto; }
.main-nav { position: absolute; left: calc(355 * var(--u)); top: 0; right: 0; height: calc(112 * var(--u)); display: flex; align-items: center; gap: calc(37 * var(--u)); padding-left: calc(96 * var(--u)); border-radius: calc(33 * var(--u)) 0 0 calc(33 * var(--u)); background: rgba(255, 255, 255, .26); transition: background .3s, backdrop-filter .3s; }
.main-nav a { font-weight: 700; font-size: calc(14 * var(--u)); color: var(--ink); letter-spacing: 0; transition: color .2s; }
.main-nav a:hover { color: var(--gold); }
.main-nav a.is-active { color: var(--gold); font-size: calc(16 * var(--u)); }
.main-nav .nav-cta { margin-left: calc(-10 * var(--u)); width: calc(250 * var(--u)); height: calc(52 * var(--u)); border-radius: calc(20 * var(--u)); font-size: calc(16 * var(--u)); color: #fff; }
.main-nav .nav-cta:hover { color: #fff; }
.site-header.is-scrolled .main-nav { background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 6px 30px rgba(31, 29, 27, .06); }
.site-header.is-scrolled .site-logo { background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 16px; padding: 6px 10px; top: calc(26 * var(--u)); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; height: calc(1045 * var(--u)); overflow: hidden; max-width: 1440px; margin: 0 auto; }
.hero-bg { position: absolute; left: calc(-67 * var(--u)); top: calc(1 * var(--u)); width: calc(1508 * var(--u)); max-width: none; height: calc(1044 * var(--u)); object-fit: cover; object-position: center top; }
.hero-inner { position: absolute; inset: 0; }
.hero-eyebrow { position: absolute; left: calc(84 * var(--u)); top: calc(197 * var(--u)); margin: 0; font-weight: 700; font-size: calc(11 * var(--u)); color: var(--gold); }
.hero-title { position: absolute; left: calc(71 * var(--u)); top: calc(240 * var(--u)); margin: 0; font-weight: 900; font-size: calc(55 * var(--u)); line-height: 1.3; color: var(--gold-deep); white-space: nowrap; }
.hero-title .light { font-weight: 200; }
.hero-desc { position: absolute; left: calc(71 * var(--u)); top: calc(401 * var(--u)); margin: 0; font-size: calc(17 * var(--u)); color: var(--muted); white-space: nowrap; }
.hero-intro { position: absolute; left: calc(84 * var(--u)); top: calc(452 * var(--u)); width: calc(169 * var(--u)); margin: 0; font-size: calc(38 * var(--u)); line-height: 1.3; color: var(--ink); }
.hero-card { position: absolute; left: calc(259 * var(--u)); top: calc(440 * var(--u)); width: calc(442 * var(--u)); height: calc(582 * var(--u)); background: #fff; border-radius: calc(28 * var(--u)); overflow: hidden; }
.hero-card-media { position: absolute; left: calc(20 * var(--u)); top: calc(27 * var(--u)); width: calc(400 * var(--u)); height: calc(533 * var(--u)); background: #111; border-radius: calc(16 * var(--u)); overflow: hidden; }
.hero-card-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-media .ba-line { height: calc(390 * var(--u)); }
.hero-card-fade { position: absolute; left: 0; right: 0; top: calc(326 * var(--u)); height: calc(207 * var(--u)); background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); }
.hero-btn { position: absolute; left: calc(786 * var(--u)); top: calc(860 * var(--u)); width: calc(250 * var(--u)); height: calc(52 * var(--u)); border-radius: calc(20 * var(--u)); font-size: calc(20 * var(--u)); }

/* ---------- Section headings ---------- */
.section-head h2, .section-title { margin: 0; font-weight: 400; font-size: calc(46 * var(--u)); line-height: 1.3; color: var(--ink); font-variation-settings: 'opsz' 9; }
.section-sub { margin: 0; font-size: calc(15 * var(--u)); line-height: 1.3; color: var(--muted); font-variation-settings: 'opsz' 9; }

/* ---------- Departments ---------- */
.departments { max-width: 1440px; margin: 0 auto; padding-top: calc(101 * var(--u)); }
.departments .section-head { width: max-content; margin: 0 auto; }
.departments .section-sub { text-align: right; margin-top: calc(10 * var(--u)); }
.dept-grid { display: grid; grid-template-columns: repeat(3, calc(432 * var(--u))); column-gap: calc(32 * var(--u)); row-gap: calc(88 * var(--u)); justify-content: center; margin-top: calc(20 * var(--u)); }
.dept-card { position: relative; display: block; height: calc(332 * var(--u)); }
.dept-media { position: absolute; inset: 0; border-radius: calc(25 * var(--u)); overflow: hidden; }
.dept-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.dept-card:hover .dept-media img { transform: scale(1.04); }
.dept-label { position: absolute; left: 0; right: 0; bottom: 0; height: calc(64 * var(--u)); display: flex; align-items: center; justify-content: center; border-radius: calc(25 * var(--u)); background: linear-gradient(to right, var(--gold-soft) 40.385%, rgba(0, 0, 0, 0)); font-weight: 900; font-size: calc(24 * var(--u)); color: #fff; }
.dept-open { position: absolute; right: calc(38 * var(--u)); bottom: calc(-21 * var(--u)); font-size: calc(17 * var(--u)); line-height: calc(23 * var(--u)); color: var(--gold); transition: transform .2s; }
.dept-card:hover .dept-open { transform: translate(2px, -2px); }

/* ---------- Before & After band ---------- */
.results-kicker { margin-top: calc(97 * var(--u)); }
.results-band { margin-top: calc(24 * var(--u)); background: var(--night); padding: calc(81 * var(--u)) 0; overflow: hidden; }
.results-head { max-width: 1440px; margin: 0 auto; padding: 0 calc(76 * var(--u)); }
.results-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: calc(14 * var(--u)); }
.results-title { margin: 0; font-family: var(--arimo); font-weight: 400; font-size: calc(46.656 * var(--u)); line-height: calc(51.322 * var(--u)); color: var(--night-text); }
.results-title em { font-style: italic; color: #c8b898; }
.results-hint { margin: 0; width: calc(300 * var(--u)); padding-bottom: 4px; font-family: var(--arimo); font-size: calc(13 * var(--u)); line-height: 1.7; text-align: right; color: rgba(240, 235, 227, .45); }
.ba-scroller { margin-top: calc(52 * var(--u)); padding: calc(4 * var(--u)) calc(76 * var(--u)) calc(8 * var(--u)); overflow-x: auto; scrollbar-width: none; cursor: grab; scroll-snap-type: x proximity; scroll-padding-inline: calc(76 * var(--u)); }
.ba-scroller::-webkit-scrollbar { display: none; }
.ba-scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.ba-scroller.is-dragging .ba-card { pointer-events: none; }
.ba-track { display: flex; gap: calc(24 * var(--u)); width: max-content; }
.results-foot { display: flex; align-items: center; gap: 24px; max-width: 1440px; margin: 0 auto; padding: calc(52 * var(--u)) calc(76 * var(--u)) 0; }
.results-foot span { flex: 1; height: 1px; background: rgba(240, 235, 227, .08); }
.results-foot p { margin: 0; font-family: var(--arimo); font-size: max(10px, calc(11 * var(--u))); letter-spacing: .16em; text-transform: uppercase; color: rgba(240, 235, 227, .2); }

/* Before & After card — states BEFORE / HOVER_AFTER / PINNED_AFTER / PINNED_BEFORE */
.ba-card { --w: calc(300 * var(--u)); position: relative; display: block; flex: 0 0 var(--w); width: var(--w); padding: 0; border: 0; background: none; text-align: left; cursor: pointer; scroll-snap-align: start; color: inherit; }
.ba-media { position: relative; display: block; height: calc(390 * var(--u)); border-radius: calc(16 * var(--u)); overflow: hidden; background: #111; }
.ba-media img, .ba-before { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { position: absolute; inset: 0; transform: translateX(100%); transition: transform .55s cubic-bezier(.65, 0, .35, 1); }
.ba-line { position: absolute; left: 0; top: 0; z-index: 2; width: 2px; height: 100%; background: rgba(255, 255, 255, .6); }
.ba-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 23%; background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); pointer-events: none; }
.ba-badge { position: absolute; top: calc(18 * var(--u)); z-index: 3; display: flex; align-items: center; height: 20px; width: 68px; border-radius: 20px; background: rgba(0, 0, 0, .45); font-family: var(--arimo); font-size: 10px; line-height: 15px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255, 255, 255, .9); }
.ba-badge-before { left: calc(14 * var(--u)); padding-left: 10px; font-weight: 600; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ba-badge-after { right: calc(14 * var(--u)); justify-content: center; font-weight: 700; opacity: 0; transition: opacity .3s .2s; }
.ba-meta { display: block; padding: 18px 0 0 4px; }
.ba-area { display: block; font-family: var(--arimo); font-weight: 500; font-size: 10px; line-height: 15px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ba-title { display: block; padding-top: 6px; font-family: var(--arimo); font-size: 20px; line-height: 25px; color: var(--night-text); }
@media (hover: hover) {
  .ba-card:not(.pin-before):hover .ba-after { transform: translateX(0); }
  .ba-card:not(.pin-before):hover .ba-badge-after { opacity: 1; }
}
.ba-card.pin-after .ba-after { transform: translateX(0); }
.ba-card.pin-after .ba-badge-after { opacity: 1; }

/* ---------- Doctors ---------- */
.doctors { max-width: 1440px; margin: 0 auto; padding-top: calc(24 * var(--u)); }
.doctors .section-head { padding-left: calc(71 * var(--u)); }
.doctors .section-sub { margin-top: calc(-2 * var(--u)); }
.doctor-grid { display: grid; grid-template-columns: repeat(4, calc(322 * var(--u))); gap: calc(20 * var(--u)); margin-top: calc(36 * var(--u)); padding-left: calc(41 * var(--u)); }
.doctor-card { position: relative; display: block; height: calc(488 * var(--u)); padding: calc(8 * var(--u)) calc(7 * var(--u)) 0; background: #fff; border-radius: calc(28 * var(--u)); transition: transform .3s, box-shadow .3s; }
.doctor-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31, 29, 27, .08); }
.doctor-media { display: block; height: calc(403 * var(--u)); border-radius: calc(22 * var(--u)); overflow: hidden; background: #eee8dc; }
.doctor-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.doctor-name { display: block; margin: calc(12 * var(--u)) 0 0 calc(15 * var(--u)); font-weight: 500; font-size: calc(24 * var(--u)); line-height: 1.3; color: var(--ink); }
.doctor-role { display: block; margin: calc(3 * var(--u)) 0 0 calc(15 * var(--u)); font-weight: 300; font-size: calc(16 * var(--u)); color: var(--muted); }
.doctor-link { position: absolute; left: calc(253 * var(--u)); top: calc(436 * var(--u)); font-weight: 700; font-size: max(9px, calc(9 * var(--u))); color: var(--gold-deep); }
.doctor-card:hover .doctor-link { text-decoration: underline; }

/* ---------- Contact + booking ---------- */
.contact-kicker { margin: calc(90 * var(--u)) 0 0; font-weight: 700; font-size: calc(24 * var(--u)); color: var(--gold); scroll-margin-top: 120px; }
.contact { margin-top: calc(27 * var(--u)); background: var(--cream); }
.contact-inner { position: relative; max-width: 1440px; margin: 0 auto; height: calc(1028 * var(--u)); }
.contact-portrait { position: absolute; left: calc(223 * var(--u)); top: calc(4 * var(--u)); width: calc(531 * var(--u)); height: calc(944 * var(--u)); object-fit: cover; }
.contact-heading { position: absolute; left: calc(55 * var(--u)); top: calc(142 * var(--u)); width: calc(678 * var(--u)); margin: 0; font-weight: 400; font-size: calc(64 * var(--u)); line-height: 1.3; color: var(--ink); font-variation-settings: 'opsz' 9; }
.contact-details { position: absolute; left: calc(48 * var(--u)); top: calc(699 * var(--u)); width: calc(400 * var(--u)); font-weight: 600; font-size: calc(16 * var(--u)); line-height: 1.3; }
.contact-details p { margin: 0 0 calc(21 * var(--u)) calc(7 * var(--u)); }
.contact-details p a, .contact-details p span { display: block; }
.contact-details .contact-eyebrow { margin: 0 0 calc(32 * var(--u)); font-weight: 700; font-size: calc(24 * var(--u)); color: var(--gold); }
.social-links { display: flex; flex-wrap: wrap; align-items: center; }
.social-links a { display: inline !important; color: var(--link); text-decoration: underline; }
.social-links i { font-style: normal; color: var(--link); padding: 0 .45em; }

.booking-card { position: absolute; left: calc(754 * var(--u)); top: calc(79 * var(--u)); width: calc(616 * var(--u)); min-height: calc(794 * var(--u)); padding: calc(30 * var(--u)) calc(44 * var(--u)) calc(40 * var(--u)); border-radius: 15px; background: rgba(31, 29, 27, .87); color: #fff; }
.booking-card h2 { margin: 0; font-weight: 900; font-size: calc(40 * var(--u)); line-height: 1.3; color: #fff; }
.booking-sub { margin: calc(9 * var(--u)) 0 calc(14 * var(--u)); font-weight: 500; font-size: calc(16 * var(--u)); line-height: 1.3; color: var(--gold); }
.booking-error { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: rgba(200, 70, 60, .25); font-size: 14px; }
.booking-card .field { display: block; width: calc(528 * var(--u)); margin-bottom: calc(10.5 * var(--u)); }
.booking-card input, .booking-card select, .booking-card textarea { display: block; width: 100%; height: calc(56 * var(--u)); min-height: 44px; padding: 0 calc(23 * var(--u)); border: 1px solid rgba(242, 238, 228, .57); border-radius: 15px; background: rgba(31, 29, 27, .52); color: #fff; font-family: var(--sans); font-size: max(16px, calc(16 * var(--u))); font-variation-settings: 'opsz' 9; transition: border-color .2s, background .2s; }
.booking-card textarea { height: calc(89 * var(--u)); min-height: 72px; padding-top: calc(18 * var(--u)); resize: vertical; }
.booking-card input::placeholder, .booking-card textarea::placeholder { color: #fff; opacity: 1; }
.booking-card input:focus, .booking-card select:focus, .booking-card textarea:focus { outline: none; border-color: var(--gold); background: rgba(31, 29, 27, .7); }
.booking-card select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 22px center; }
.booking-card select option { color: var(--ink); }
.booking-submit { justify-content: flex-start; width: calc(253 * var(--u)); height: calc(45 * var(--u)); min-height: 40px; margin-top: calc(6 * var(--u)); padding-left: calc(17 * var(--u)); border-radius: 20px; font-size: max(13px, calc(16 * var(--u))); }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--paper); }
/* Dark footer background runs the full screen width; content stays in the 1440px layout */
.site-footer::before { content: ''; position: absolute; inset: 0; background: var(--ink); border-radius: calc(130 * var(--u)) calc(130 * var(--u)) 0 0; }
.page-home .site-footer { background: var(--cream); }
.footer-inner { position: relative; max-width: 1440px; margin: 0 auto; height: calc(502 * var(--u)); background: transparent; color: #fff; font-size: calc(16 * var(--u)); line-height: 1.3; }
.footer-logo { position: absolute; left: 50%; top: calc(66 * var(--u)); width: calc(250 * var(--u)); height: calc(60 * var(--u)); object-fit: contain; transform: translateX(-50%); }
.footer-cols { position: absolute; inset: calc(207 * var(--u)) 0 auto 0; }
.footer-brand { position: absolute; left: calc(127 * var(--u)); top: calc(20 * var(--u)); }
.footer-brand strong { display: block; font-weight: 700; }
.footer-brand span { display: block; margin-top: calc(6 * var(--u)); font-variation-settings: 'opsz' 9; }
.footer-col { position: absolute; display: flex; flex-direction: column; font-weight: 600; }
.footer-col:nth-child(2) { left: calc(447 * var(--u)); }
.footer-col:nth-child(3) { left: calc(720 * var(--u)); }
.footer-col.footer-contact { left: calc(1050 * var(--u)); width: calc(320 * var(--u)); }
.footer-col h4 { margin: 0 0 1.3em; font-size: inherit; font-weight: 600; }
.footer-col a:hover { color: var(--gold); }
.footer-contact p { margin: 0 0 1.3em; }
.footer-contact p a, .footer-contact p span { display: block; }
.footer-contact .social-links a { color: var(--link); }
.footer-bottom { position: absolute; left: calc(66 * var(--u)); top: calc(451 * var(--u)); display: flex; gap: calc(38 * var(--u)); font-variation-settings: 'opsz' 9; }
.footer-bottom a:hover { color: var(--gold); }

/* =========================================================================
   Inner pages (Figma frames: DEPARTMENT, RESULTS, DOCTORS, PROFILE, ABOUT, CONTACT, PRIVACY)
   ========================================================================= */
.page { max-width: 1440px; margin: 0 auto; padding: calc(152 * var(--u)) calc(56 * var(--u)) calc(110 * var(--u)); }
.page.narrow { max-width: 760px; padding-top: 200px; }
.page-title { margin: 0; font-weight: 400; font-size: calc(66 * var(--u)); line-height: 1.3; color: var(--ink); font-variation-settings: 'opsz' 9; }
.page-sub { margin: 0; font-size: calc(17 * var(--u)); color: var(--muted); font-variation-settings: 'opsz' 9; }
.page-eyebrow { margin: 0; font-weight: 700; font-size: max(10px, calc(10 * var(--u))); color: var(--gold); letter-spacing: .02em; }
.page-cta { width: calc(250 * var(--u)); height: calc(52 * var(--u)); min-height: 44px; border-radius: 20px; font-size: max(14px, calc(16 * var(--u))); }
.page-foot { display: flex; align-items: center; justify-content: space-between; margin-top: calc(48 * var(--u)); }
.page-foot.right { justify-content: flex-end; }
.page-foot .eyebrow-small { margin-left: calc(575 * var(--u)); }
.empty-note { color: var(--muted); text-align: center; padding: 60px 0; }

/* Rich text produced by the admin's simple text format */
.rich p { margin: 0 0 1.25em; }
.rich h3 { margin: 1.4em 0 .5em; font-size: 1em; font-weight: 800; }
.rich h3:first-child { margin-top: 0; }
.rich ul { margin: 0 0 1.25em; padding-left: 1.5em; }
.rich strong { font-weight: 800; }
.rich a { text-decoration: underline; }

/* Departments grid page (DEPARTMENT — 7) */
.departments-page { padding-top: calc(168 * var(--u)); }
.page-head.center { width: max-content; max-width: 100%; margin: 0 auto calc(20 * var(--u)); }
.page-head.center .section-sub { text-align: right; margin-top: calc(10 * var(--u)); }

/* Department detail (DEPARTMENT — 01 … 06) */
.dept-page { padding-left: calc(56 * var(--u)); padding-right: calc(56 * var(--u)); }
.dept-head { position: relative; margin-bottom: calc(24 * var(--u)); }
.dept-head .page-sub { margin-top: calc(2 * var(--u)); }
.dept-head .page-eyebrow { margin-top: calc(6 * var(--u)); }
.dept-body { display: grid; grid-template-columns: calc(631 * var(--u)) 1fr; gap: calc(70 * var(--u)); align-items: start; }
.dept-hero { margin: 0; }
.dept-hero img { width: 100%; height: calc(750 * var(--u)); object-fit: cover; border-radius: 25px; }
.dept-hero figcaption { margin-top: calc(25 * var(--u)); text-align: center; font-size: calc(40 * var(--u)); }
.dept-tagline { margin: 0 0 calc(30 * var(--u)) calc(-10 * var(--u)); font-weight: 400; font-size: calc(48 * var(--u)); line-height: 1.3; color: var(--ink); font-variation-settings: 'opsz' 9; }
.dept-text { padding-top: calc(10 * var(--u)); max-width: calc(585 * var(--u)); font-size: calc(20 * var(--u)); line-height: 1.3; color: var(--ink); }
.dept-page.is-compact .dept-text { font-size: max(14px, calc(15 * var(--u))); }
.dept-page.is-compact .dept-text .rich > ul:first-of-type { font-weight: 900; }
.dept-page .page-foot { margin-top: calc(25 * var(--u)); }

/* Aesthetic Technology device grid (DEPARTMENT — 04) */
.dept-page.has-devices .dept-head { text-align: center; }
.dept-page.has-devices .dept-head .page-cta { position: absolute; right: calc(-4 * var(--u)); top: calc(37 * var(--u)); }
.device-group { margin-top: calc(28 * var(--u)); }
.device-group h2 { margin: 0 0 calc(24 * var(--u)); font-weight: 800; font-size: max(17px, calc(20 * var(--u))); }
.device-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(40 * var(--u)) calc(30 * var(--u)); }
.device h3 { margin: 0 0 calc(14 * var(--u)); font-weight: 800; font-size: max(14px, calc(15 * var(--u))); }
.device-row { display: flex; gap: calc(16 * var(--u)); align-items: center; }
.device-media { flex: 0 0 calc(232 * var(--u)); height: calc(266 * var(--u)); border-radius: 25px; overflow: hidden; background: #fff; }
.device-media img { width: 100%; height: 100%; object-fit: contain; }
.device-text { margin: 0; font-size: max(13px, calc(15 * var(--u))); line-height: 1.3; }
.device-loc { margin: calc(8 * var(--u)) 0 0 calc(6 * var(--u)); font-size: max(13px, calc(15 * var(--u))); }

/* Results page (03 — RESULTS) */
.results-page .results-band { margin-top: 0; min-height: calc(1200 * var(--u)); padding-top: calc(295 * var(--u)); }

/* Doctors page (04 — DOCTORS) */
.doctors-page { padding: calc(191 * var(--u)) calc(104 * var(--u)) calc(110 * var(--u)); }
.doctors-page .page-head { padding-left: calc(30 * var(--u)); margin-bottom: calc(40 * var(--u)); }
.doctors-page .page-title { margin-top: calc(10 * var(--u)); }
.doctor-wide-grid { display: grid; grid-template-columns: repeat(2, calc(540 * var(--u))); column-gap: calc(110 * var(--u)); row-gap: calc(37 * var(--u)); }
.doctor-wide { position: relative; display: block; height: calc(294 * var(--u)); padding: calc(14 * var(--u)) calc(12 * var(--u)) 0; background: #fff; border-radius: 28px; transition: transform .3s, box-shadow .3s; }
.doctor-wide:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31, 29, 27, .08); }
.doctor-wide-media { display: block; height: calc(240 * var(--u)); border-radius: 30px; overflow: hidden; background: #eee8dc; }
.doctor-wide-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.doctor-wide-name { position: absolute; left: calc(27 * var(--u)); bottom: calc(14 * var(--u)); font-weight: 500; font-size: max(14px, calc(16 * var(--u))); }
.doctor-wide-link { position: absolute; right: calc(25 * var(--u)); bottom: calc(14 * var(--u)); font-weight: 700; font-size: max(14px, calc(16 * var(--u))); color: var(--gold); }
.doctor-wide-link i { font-style: normal; font-weight: 400; margin-left: 8px; }

/* Doctor profile (DOCTOR PROFILE — 1 … 4) */
.doctor-page { padding: calc(142 * var(--u)) calc(70 * var(--u)) calc(110 * var(--u)); }
.doctor-head { position: relative; text-align: center; margin-bottom: calc(56 * var(--u)); }
.doctor-head .page-eyebrow { position: absolute; left: calc(37 * var(--u)); top: calc(15 * var(--u)); }
.doctor-title { margin: 0; font-weight: 400; font-size: calc(42 * var(--u)); line-height: 1.3; font-variation-settings: 'opsz' 9; }
.doctor-head .page-sub { font-size: max(14px, calc(16 * var(--u))); }
.doctor-body { display: grid; grid-template-columns: calc(570 * var(--u)) 1fr; gap: calc(60 * var(--u)); align-items: start; }
.doctor-ecard { padding: calc(25 * var(--u)) calc(25 * var(--u)) calc(32 * var(--u)); background: #fff; border-radius: 28px; }
.doctor-portrait { width: 100%; height: calc(584 * var(--u)); object-fit: cover; object-position: center top; border-radius: 25px; }
.doctor-specialty { margin: calc(24 * var(--u)) 0 0 calc(12 * var(--u)); font-weight: 400; font-size: calc(42 * var(--u)); line-height: 1.2; font-variation-settings: 'opsz' 9; }
.doctor-addr { margin: calc(26 * var(--u)) 0 calc(18 * var(--u)) calc(12 * var(--u)); font-weight: 600; font-size: max(14px, calc(16 * var(--u))); line-height: 1.3; }
.doctor-addr span { display: block; }
.doctor-ecard .social-links { margin: 0 0 0 calc(12 * var(--u)); font-weight: 600; font-size: max(14px, calc(16 * var(--u))); }
.doctor-main { padding-top: calc(96 * var(--u)); }
.doctor-bio { max-width: calc(574 * var(--u)); font-size: calc(20 * var(--u)); line-height: 1.3; color: var(--muted); font-variation-settings: 'opsz' 9; }
.doctor-work { display: flex; gap: calc(20 * var(--u)); margin-top: calc(20 * var(--u)); }
.doctor-work span { width: calc(185 * var(--u)); height: calc(262 * var(--u)); border-radius: 30px; overflow: hidden; background: #eee8dc; }
.doctor-work img { width: 100%; height: 100%; object-fit: cover; }
.doctor-main .page-cta { margin: calc(96 * var(--u)) 0 0 calc(366 * var(--u)); }

/* About (05 — ABOUT US) */
.about-page { position: relative; min-height: calc(1200 * var(--u)); padding: calc(164 * var(--u)) calc(70 * var(--u)) calc(80 * var(--u)) calc(622 * var(--u)); overflow: hidden; }
.about-head { position: absolute; left: calc(163 * var(--u)); top: calc(164 * var(--u)); }
.about-head .page-eyebrow { margin-top: calc(-2 * var(--u)); padding-left: calc(2 * var(--u)); }
.about-photo { position: absolute; left: calc(-131 * var(--u)); bottom: 0; width: calc(775 * var(--u)); height: calc(838 * var(--u)); max-width: none; object-fit: cover; object-position: center top; }
.about-text { position: relative; max-width: calc(716 * var(--u)); padding-top: calc(14 * var(--u)); font-size: calc(20 * var(--u)); line-height: 1.3; color: var(--muted); font-variation-settings: 'opsz' 9; }
.about-heading { margin: 0 0 calc(12 * var(--u)); font-weight: 400; font-size: calc(40 * var(--u)); line-height: 1.3; color: var(--ink); }
.about-text .rich p { margin-bottom: calc(18 * var(--u)); }
.about-values { color: var(--gold-deep); margin-top: calc(26 * var(--u)); }
.about-btn { height: calc(56 * var(--u)); min-height: 44px; padding: 0 calc(18 * var(--u)); border-radius: 20px; font-size: max(14px, calc(16 * var(--u))); margin-top: calc(6 * var(--u)); }
.about-closing { margin: calc(4 * var(--u)) 0 0 calc(156 * var(--u)); max-width: calc(689 * var(--u)); font-size: calc(40 * var(--u)); line-height: 1.3; color: var(--ink); }

/* Contact & submitted (05 — Contact US / 05 — submitted) */
.contact-page .contact { margin-top: 0; padding-top: calc(118 * var(--u)); }
.submitted-page .contact { background: var(--paper); padding-top: calc(187 * var(--u)); }
.submitted-page .contact-heading { left: calc(778 * var(--u)); top: 0; width: calc(620 * var(--u)); }
.submitted-page .contact-portrait { top: 0; border-radius: 25px; }
.submitted-page .contact-details { top: calc(695 * var(--u)); }
.thanks-card { top: calc(181 * var(--u)) !important; min-height: calc(572 * var(--u)) !important; padding: calc(149 * var(--u)) calc(44 * var(--u)) 40px !important; }
.thanks-card .booking-sub { margin: calc(49 * var(--u)) 0 calc(32 * var(--u)) calc(16 * var(--u)); }
.thanks-card .booking-submit { margin-left: calc(4 * var(--u)); justify-content: center; padding-left: 0; }

/* Privacy (06 — PRIVACY & TERMS) */
.privacy-page { padding: calc(271 * var(--u)) calc(194 * var(--u)) calc(110 * var(--u)); }
.privacy-head { position: relative; text-align: center; margin-bottom: calc(129 * var(--u)); }
.privacy-head .page-eyebrow { position: absolute; left: 0; top: 0; }
.privacy-text { max-width: calc(1034 * var(--u)); margin: 0 auto; text-align: center; font-size: max(15px, calc(16 * var(--u))); line-height: 1.3; font-variation-settings: 'opsz' 9; }
.privacy-text h3 { font-weight: 700; margin-top: 1.6em; }
.privacy-text h3:first-child { font-size: 1.4em; }
.privacy-text ul { list-style-position: inside; padding: 0; }

/* Desktop-only / mobile-only helpers, hidden labels */
.m-only { display: none !important; }
.field-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.about-values { list-style: none; margin: calc(26 * var(--u)) 0 calc(18 * var(--u)); padding: 0; color: var(--gold-deep); }
.about-values strong { font-weight: 400; }
.doctor-work-label { display: none; }

/* =========================================================================
   Phones & tablets (below 1024px) — Figma mobile frames (403px wide):
   hOME MOBILE, MobileNav, MOBILE DPRTMNT 1–6, RESULTS MOBILE, DOCTORS MOBILE,
   DOCTOR 1–4 MOBILE, DOCTORS1 MOBILE (About), BOOK MOBILE, SUBMITTING PAGE MOBILE, PRIVACY MOBILE
   ========================================================================= */
@media (max-width: 1023px) {
  :root { --u: 1px; --gutter: 20px; }
  .m-only { display: revert !important; }
  .btn.m-only { display: inline-flex !important; }
  .d-only { display: none !important; }
  .page, .departments-page, .dept-page, .doctors-page, .doctor-page, .privacy-page, .about-page { max-width: 760px; margin: 0 auto; }

  /* Header: floating white pill (MobileLayout 70:2896) */
  .site-header { height: auto; padding: 12px 16px 0; }
  .site-header::before { content: ''; position: absolute; left: 16px; right: 16px; top: 12px; height: 68px; border-radius: 22px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .1); transition: opacity .25s; }
  .site-logo, .site-header.is-scrolled .site-logo { position: absolute; z-index: 2; display: block; left: 32px; top: 30px; width: 133px; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; }
  .site-logo img { width: 133px; height: 32px; object-fit: contain; object-position: left center; }
  .nav-toggle { position: absolute; z-index: 2; right: 32px; top: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-open::before { opacity: 0; }

  /* Full-screen menu (MobileNav 2052:28512) */
  .main-nav, .site-header.is-scrolled .main-nav { position: fixed; inset: 0; z-index: 1; height: 100vh; height: 100dvh; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 106px 24px 32px; border-radius: 0; background: var(--paper); backdrop-filter: none; box-shadow: none; opacity: 0; visibility: hidden; transform: none; transition: opacity .25s, visibility .25s; overflow-y: auto; }
  .nav-open .main-nav { opacity: 1; visibility: visible; }
  .main-nav a, .main-nav a.is-active { padding: 18px 0; border-bottom: 1px solid rgba(31, 29, 27, .1); font-size: 15px; font-weight: 700; letter-spacing: .08em; color: var(--ink); }
  .main-nav a.is-active { color: var(--gold); }
  .main-nav a:nth-last-child(2) { border-bottom: 0; }
  .main-nav .nav-cta { margin: auto 0 0; width: 100%; height: 52px; border: 0; border-radius: 18px; font-size: 15px; letter-spacing: .02em; color: #fff; }
  body.menu-open { overflow: hidden; }

  /* Hero: full-screen photo, text at the bottom (70:2863) */
  .hero { height: auto; min-height: 874px; min-height: min(874px, 100svh); padding: 0; display: flex; }
  .hero-bg { left: 0; top: 0; width: 100%; height: 100%; object-position: 66% top; }
  .hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(251, 249, 244, .15) 0%, rgba(251, 249, 244, 0) 50%, rgba(251, 249, 244, .6) 100%); }
  .hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; padding: 88px 20px 40px; }
  .hero-inner > * { position: static !important; }
  .hero-eyebrow { position: absolute !important; left: 0; right: 0; top: 97px; text-align: center; font-size: 11px; line-height: 16.5px; letter-spacing: 2px; }
  .hero-title { margin: 0; padding-top: 12px; font-size: clamp(30px, 9.4vw, 38px); line-height: 1.25; white-space: normal; }
  .hero-title .light { display: block; font-weight: 300; font-size: 28px; line-height: 35px; }
  .hero-desc { margin: 8px 0 0; width: 280px; max-width: 100%; font-size: 15px; line-height: 20.625px; color: #fff; white-space: normal; }
  .hero-intro { width: auto; margin: 0; padding: 24px 0 32px; font-size: 26px; line-height: 32.5px; }
  .hero-card { display: none; }
  .hero-btn { align-self: flex-start; width: 165px; height: 53px; margin: 0; border-radius: 18px; font-size: 14px; }

  /* Section headings */
  .section-head h2, .section-title { font-size: 30px; line-height: 37.5px; }
  .section-sub { margin-top: 4px; font-size: 14px; line-height: 21px; }

  /* Homepage departments: 2-column grid (70:1913) */
  .departments { padding: 48px 16px 40px; }
  .departments .section-head { width: auto; }
  .departments .section-head.center { text-align: left; }
  .departments .section-sub { text-align: left; margin-top: 4px; }
  .dept-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; justify-content: stretch; }
  .dept-card { height: auto; aspect-ratio: 180 / 135; }
  .dept-media, .dept-media img { border-radius: 20px; }
  .dept-label { left: 0; right: 0; height: auto; min-height: 48px; padding: 12px 34px 12px 12px; justify-content: flex-start; align-items: flex-end; border-radius: 0 0 20px 20px; background: linear-gradient(90deg, #b49468 0%, #b49468 50%, rgba(180, 148, 104, 0) 100%); font-size: 12px; line-height: 15px; text-align: left; }
  .dept-open { right: 12px; bottom: 12px; font-size: 16px; line-height: 16px; color: #fff; }
  /* Departments page: single column of large cards */
  .departments-page { padding: 108px 20px 48px; }
  .departments-page .dept-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .departments-page .dept-card { aspect-ratio: 432 / 260; }
  .departments-page .dept-label { min-height: 56px; justify-content: center; padding: 14px 40px; font-size: 18px; line-height: 22px; text-align: center; }
  .departments-page .dept-open { bottom: 18px; right: 16px; }
  .page-head.center { width: auto; text-align: left; margin-bottom: 24px; }
  .page-head.center .section-sub { text-align: left; }
  .page-foot { flex-direction: column-reverse; align-items: stretch; gap: 20px; margin-top: 32px; }
  .page-foot .eyebrow-small { margin-left: 0; text-align: center; }

  /* Buttons on inner pages: full width (Figma mobile) */
  .page-cta { width: 100%; height: 52px; padding: 0 20px; border-radius: 18px; font-size: 14px; }

  /* Before & After (70:1989, 85:3784) */
  .results-kicker { display: none; }
  .results-band { margin-top: 0; padding: 40px 0 40px; }
  .results-head, .results-foot { padding-left: 20px; padding-right: 20px; }
  .results-head .eyebrow-small { font-size: 11px; letter-spacing: .22em; }
  .results-head-row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 12px; }
  .results-title { font-size: 32px; line-height: 40px; }
  .results-hint { display: none; }
  .ba-arrows { display: flex !important; gap: 8px; padding-bottom: 4px; }
  .ba-arrow { width: 36px; height: 36px; border-radius: 50%; border: 1.1px solid rgba(240, 235, 227, .2); background: none; color: var(--night-text); font-size: 16px; line-height: 1; cursor: pointer; }
  .ba-arrow:hover { border-color: var(--gold); }
  .ba-scroller { margin-top: 24px; padding: 4px 20px 8px; scroll-padding-inline: 20px; scroll-snap-type: x mandatory; }
  .ba-track { gap: 24px; }
  .ba-card { --w: min(300px, 76vw); }
  .ba-media { height: calc(var(--w) * 1.3); border-radius: 16px; }
  .results-hint-mobile { margin: 20px 20px 0; padding-top: 12px; border-top: 1px solid rgba(240, 235, 227, .08); font-family: var(--arimo); font-size: 12px; line-height: 17px; color: rgba(240, 235, 227, .45); }
  .results-foot { gap: 16px; padding-top: 24px; }
  .results-foot p { font-size: 10px; }
  .results-page .results-band { min-height: 100svh; padding-top: 104px; }
  .results-page .results-hint-mobile { border-top: 0; }

  /* Homepage doctors: 2-column cards (70:2565) */
  .doctors { padding: 48px 16px; }
  .doctors .section-head { padding-left: 0; }
  .doctor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; padding-left: 0; }
  .doctor-card { height: auto; padding: 8px 8px 16px; border-radius: 22px; }
  .doctor-media { height: auto; aspect-ratio: 162 / 200; border-radius: 18px; }
  .doctor-name { margin: 12px 4px 0; font-size: 15px; line-height: 20.6px; }
  .doctor-role { margin: 2px 4px 0; font-size: 12px; line-height: 16.5px; }
  .doctor-link { position: static; display: inline-block; margin: 8px 4px 0; font-size: 10px; }
  .doctor-link::after { content: ' ↗'; }

  /* Contact + booking (70:2643, BOOK MOBILE) */
  .contact-kicker { display: none; }
  .contact { margin-top: 0; padding: 0; overflow: hidden; }
  .contact-inner { height: auto; display: flex; flex-direction: column; padding: 0 20px 40px; max-width: 760px; }
  .contact-inner > * { position: relative !important; left: auto !important; top: auto !important; }
  .contact-portrait { order: 1; width: auto; max-width: none; height: 340px; margin: 0 -20px; object-fit: cover; object-position: center 30%; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%); border-radius: 0 !important; }
  .contact-heading { order: 2; width: auto !important; margin: -32px 0 0; font-size: 34px; line-height: 42.5px; }
  .contact-details { order: 3; width: auto; max-width: none; padding: 0; font-size: 14px; line-height: 21px; }
  .contact-details .contact-eyebrow { margin: 12px 0 24px; font-size: 20px; line-height: 30px; }
  .contact-details p { margin: 0 0 8px; }
  .contact-details p span { font-size: 13px; line-height: 21px; }
  .contact-details .social-links { gap: 12px; margin-top: 12px; font-size: 13px; }
  .social-links i { display: none; }
  .booking-card { order: 4; width: 100%; min-height: 0; margin-top: 32px; padding: 20px; border-radius: 18px; }
  .booking-card h2 { font-size: 22px; line-height: 33px; }
  .booking-sub { margin: 4px 0 8px; font-size: 14px; line-height: 19.25px; }
  .booking-sub br { display: none; }
  .booking-card .field { width: 100%; margin: 12px 0 0; }
  .booking-card .field-label { position: static; display: block; width: auto; height: auto; clip: auto; padding-bottom: 4px; font-size: 14px; line-height: 21px; color: #fff; }
  .booking-card input, .booking-card select { height: 47px; min-height: 0; padding: 0 16px; border-radius: 12px; font-size: 16px; }
  .booking-card input::placeholder, .booking-card textarea::placeholder { color: transparent; }
  .booking-card select { font-size: 14px; background-position: right 16px center; }
  .booking-card textarea { height: 89px; padding: 12px 16px; border-radius: 12px; font-size: 16px; }
  .booking-submit { width: 100%; height: 53px; min-height: 0; margin-top: 20px; padding: 0; justify-content: center; border-radius: 16px; font-size: 14px; }
  .contact-page .contact { padding-top: 0; }
  .contact-page .contact-inner { padding-top: 0; }
  /* Thank-you (SUBMITTING PAGE MOBILE): card before the contact details */
  .is-thanks .thanks-card { order: 3; margin-top: 24px; padding: 20px 16px 24px !important; min-height: 0 !important; top: auto !important; }
  .is-thanks .contact-details { order: 4; margin-top: 24px; }
  .thanks-card h2 { font-size: 22px; line-height: 30px; }
  .thanks-card .booking-sub { margin: 16px 0 24px; }
  .thanks-card .booking-submit { margin: 0; }
  .submitted-page .contact { background: var(--paper); padding-top: 0; }
  .submitted-page .contact-portrait { -webkit-mask-image: none; mask-image: none; }
  .submitted-page .contact-heading { margin-top: 24px; }

  /* Footer (70:2758) */
  .site-footer::before { border-radius: 40px 40px 0 0; }
  .footer-inner { height: auto; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; padding: 48px 24px 32px; font-size: 13px; line-height: 19.5px; }
  .footer-inner > *, .footer-cols > * { position: static !important; transform: none !important; }
  .footer-cols { display: contents; }
  .footer-logo { grid-column: 1; grid-row: 1; width: 100%; max-width: 167px; height: 40px; margin: 0; object-fit: contain; object-position: left center; }
  .footer-brand { grid-column: 2; grid-row: 1; align-self: center; }
  .footer-brand strong { font-size: 14px; line-height: 17.5px; }
  .footer-brand span { margin: 0; font-size: 12px; line-height: 18px; }
  .footer-col { margin-top: 32px; }
  .footer-col:nth-child(2) { grid-column: 1; grid-row: 2; }
  .footer-col:nth-child(3) { grid-column: 2; grid-row: 2; }
  .footer-col.footer-contact { grid-column: 1 / -1; grid-row: 3; width: auto; }
  .footer-col h4 { margin: 0 0 4px; font-size: 13px; color: #fff; }
  .footer-col a { padding: 4px 0; font-weight: 400; color: rgba(255, 255, 255, .6); }
  .footer-contact p { margin: 0 0 8px; font-weight: 400; color: rgba(255, 255, 255, .6); }
  .footer-contact .social-links { gap: 12px; }
  .footer-contact .social-links a { font-weight: 600; }
  .footer-bottom { grid-column: 1 / -1; grid-row: 4; flex-wrap: wrap; gap: 4px 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 11px; line-height: 17.9px; color: rgba(255, 255, 255, .4); }

  /* Inner page headings */
  .page-title { font-size: 34px; line-height: 1.2; }
  .page-sub { margin-top: 6px; font-size: 14px; line-height: 21px; }
  .page-eyebrow { font-size: 11px; letter-spacing: .08em; }

  /* Department detail (MOBILE DPRTMNT 1–6) */
  .dept-page { padding: 104px 20px 40px; }
  .dept-head { display: flex; flex-direction: column; margin-bottom: 20px; }
  .dept-head .page-eyebrow { order: -1; margin: 0 0 6px; }
  .dept-body { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .dept-hero { display: contents; }
  .dept-hero img { order: 1; height: auto; aspect-ratio: 363 / 272; max-height: none; border-radius: 20px; }
  .dept-page.is-compact .dept-hero img { aspect-ratio: 363 / 456; }
  .dept-text { order: 2; max-width: none; padding-top: 0; font-size: 15px; line-height: 1.6; }
  .dept-page.is-compact .dept-text { font-size: 14px; }
  .dept-tagline { margin: 28px 0 20px; font-size: 26px; line-height: 1.25; }
  .dept-hero figcaption { order: 3; margin: 32px 0 0; text-align: left; font-size: 26px; line-height: 1.25; }
  .dept-text .rich > p:first-child strong:only-child { font-size: 15px; }
  .rich ul { padding-left: 1.2em; }
  .rich li { margin-bottom: 6px; }
  .rich li::marker { color: var(--gold); }
  .dept-page .page-foot { margin-top: 24px; }
  /* Aesthetic Technology devices (MOBILE DPRTMNT5) */
  .dept-page.has-devices .dept-head { text-align: center; align-items: center; }
  .dept-page.has-devices .dept-head .page-cta { display: none; }
  .dept-page.has-devices::after { content: ''; display: block; }
  .device-group { margin-top: 28px; }
  .device-group h2 { margin: 0 0 16px; font-size: 18px; line-height: 1.3; }
  .device-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .device { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 12px; padding: 16px; background: #fff; border-radius: 20px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
  .device h3 { grid-column: 2; grid-row: 1; margin: 0 0 4px; font-size: 14px; }
  .device-row { display: contents; }
  .device-media { grid-column: 1; grid-row: 1 / 3; width: 96px; height: 120px; flex: none; border-radius: 12px; }
  .device-text { grid-column: 2; grid-row: 2; font-size: 13px; line-height: 1.5; }
  .device-sub { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; color: var(--gold); }
  .device-text br { display: none; }
  .device-loc { grid-column: 1 / -1; margin: 12px 0 0; font-size: 12px; }

  /* Doctors page (DOCTORS MOBILE) */
  .doctors-page { padding: 104px 16px 48px; }
  .doctors-page .page-head { padding-left: 4px; margin-bottom: 24px; }
  .doctors-page .page-title { margin-top: 6px; font-size: 30px; }
  .doctor-wide-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .doctor-wide { height: auto; padding: 0 0 72px; overflow: hidden; border-radius: 22px; }
  .doctor-wide-media { aspect-ratio: 370 / 240; border-radius: 0; }
  .doctor-wide-name { left: 16px; bottom: 26px; font-size: 15px; }
  .doctor-wide-link { right: 16px; bottom: 26px; font-size: 14px; }
  .doctor-wide-link i { margin-left: 4px; }

  /* Doctor profile (DOCTOR 1–4 MOBILE) */
  .doctor-page { padding: 100px 16px 40px; }
  .doctor-head { text-align: left; margin: 0 4px 20px; }
  .doctor-head .page-eyebrow { position: static; margin-bottom: 6px; }
  .doctor-title { font-size: 30px; line-height: 1.25; }
  .doctor-body { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .doctor-ecard { padding: 0 0 28px; overflow: hidden; border-radius: 24px; }
  .doctor-portrait { height: auto; aspect-ratio: 371 / 280; border-radius: 0; object-position: center 15%; }
  .doctor-specialty { margin: 20px 20px 0; font-size: 26px; line-height: 1.25; }
  .doctor-addr { margin: 14px 20px 12px; font-size: 13px; line-height: 21px; }
  .doctor-ecard .social-links { margin: 0 20px; gap: 0; font-size: 13px; }
  .doctor-ecard .social-links i { display: inline; padding: 0 .9em; }
  .doctor-main { display: flex; flex-direction: column; padding-top: 0; min-width: 0; }
  .doctor-body > * { min-width: 0; }
  .doctor-bio { max-width: none; padding: 20px; background: #fff; border-radius: 24px; font-size: 16px; line-height: 1.75; }
  .doctor-bio p { margin: 0; }
  .doctor-work-label { display: block !important; margin: 28px 0 10px; }
  .doctor-work { gap: 12px; margin: 0 -16px; padding: 0 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .doctor-work::-webkit-scrollbar { display: none; }
  .doctor-work span { flex: 0 0 160px; width: 160px; height: 228px; aspect-ratio: auto; border-radius: 18px; scroll-snap-align: start; }
  .doctor-main .page-cta { margin: 28px 0 0; }

  /* About (DOCTORS1 MOBILE frame) */
  .about-page { min-height: 0; display: flex; flex-direction: column; padding: 100px 20px 40px; overflow: visible; }
  .about-head { position: static; display: flex; flex-direction: column; }
  .about-head .page-eyebrow { order: -1; margin: 0 0 6px; padding: 0; }
  .about-photo { position: static; order: 0; width: calc(100% + 40px); max-width: none; height: 340px; margin: 12px -20px 0; object-fit: contain; object-position: center bottom; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
  .about-text { display: flex; flex-direction: column; max-width: none; padding: 20px 0 0; font-size: 14px; line-height: 1.7; }
  .about-heading { margin-bottom: 16px; font-size: 22px; line-height: 1.35; }
  .about-text .rich p { margin-bottom: 16px; }
  .about-values { margin: 8px 0 0; display: flex; flex-direction: column; gap: 12px; color: var(--muted); }
  .about-values li { padding: 14px 12px; border-radius: 14px; background: #f2eee4; font-size: 13px; line-height: 1.45; }
  .about-values strong { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--gold-deep); }
  .about-closing { order: 2; margin: 32px 0 0; font-size: 26px; line-height: 1.3; }
  .about-btn { order: 3; width: 100%; height: 52px; margin-top: 20px; border-radius: 18px; font-size: 14px; }

  /* Privacy (PRIVACY MOBILE) */
  .privacy-page { padding: 100px 20px 48px; }
  .privacy-head { text-align: left; margin-bottom: 28px; }
  .privacy-head .page-eyebrow { position: static; margin-bottom: 6px; }
  .privacy-text { text-align: left; font-size: 14px; line-height: 1.65; }
  .privacy-text ul { list-style-position: outside; padding-left: 1.3em; }
  .privacy-text h3:first-child { font-size: 18px; }
}

/* Tablets (600–1023px): same mobile design with more columns */
@media (min-width: 600px) and (max-width: 1023px) {
  .hero-desc { width: 420px; }
  .departments, .doctors { max-width: 760px; margin: 0 auto; }
  .dept-grid { grid-template-columns: repeat(3, 1fr); }
  .departments-page .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .doctor-grid { grid-template-columns: repeat(4, 1fr); }
  .doctor-wide-grid { grid-template-columns: repeat(2, 1fr); }
  .device-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-portrait { height: 460px; }
  .booking-card { max-width: 560px; }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer-col.footer-contact { grid-column: 3; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
