:root {
  --aubergine: #49213f;
  --aubergine-deep: #31142b;
  --rose: #c65f8d;
  --rose-soft: #f8e9f0;
  --lilac: #eeeaf5;
  --white: #ffffff;
  --ink: #29252a;
  --muted: #726a72;
  --line: rgba(73, 33, 63, 0.14);
  --shell: min(1180px, calc(100% - 40px));
  --radius: 30px;
  --font: "Alexandria", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--font); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
body:not(.is-arabic) { --font: "Manrope", sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.lang-en { display: none !important; }
body:not(.is-arabic) .lang-ar { display: none !important; }
body:not(.is-arabic) .lang-en { display: revert !important; }
.skip-link { position: fixed; inset-block-start: 12px; inset-inline-start: 12px; z-index: 100; padding: 10px 16px; color: white; background: var(--aubergine); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.1; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; color: white; background: var(--aubergine); border-radius: 50% 50% 42% 58% / 55% 45% 55% 45%; font: 700 0.9rem/1 "Manrope", sans-serif; }
.brand-copy { display: grid; gap: 5px; }
.brand-copy strong { color: var(--aubergine); font: 700 1rem/1 "Manrope", sans-serif; letter-spacing: -0.02em; }
.brand-copy small { color: var(--muted); font-size: 0.68rem; }
.desktop-nav { display: flex; align-items: center; gap: 27px; }
.desktop-nav a { position: relative; color: #4d464d; font-size: 0.86rem; font-weight: 500; text-decoration: none; }
.desktop-nav a::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: -10px; height: 2px; background: var(--rose); transform: scaleX(0); transition: transform 180ms ease; }
.desktop-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.language-toggle { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 8px; font: 600 0.78rem/1 "Manrope", sans-serif; }
.is-arabic .toggle-ar, body:not(.is-arabic) .toggle-en { color: var(--aubergine); }

.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 12px 24px; border: 1px solid var(--aubergine); border-radius: 999px; color: white; background: var(--aubergine); font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: transform 180ms ease, background 180ms ease; }
.button:hover { transform: translateY(-2px); background: var(--aubergine-deep); }
.button-small { min-height: 43px; padding: 9px 19px; font-size: 0.78rem; }
.button.light { color: var(--aubergine); background: var(--white); border-color: var(--white); }
.button.light:hover { background: var(--rose-soft); }

.hero { position: relative; overflow: hidden; padding: 64px 0 78px; background: linear-gradient(90deg, white 0 48%, #f8f5f8 48% 100%); }
[dir="ltr"] .hero { background: linear-gradient(90deg, white 0 52%, #f8f5f8 52% 100%); }
.hero::before { content: ""; position: absolute; width: 420px; height: 420px; inset-inline-start: -250px; bottom: -230px; border: 70px solid var(--rose-soft); border-radius: 50%; }
.hero-grid { position: relative; display: grid; grid-template-columns: 0.92fr 1.08fr; align-items: center; gap: clamp(42px, 7vw, 90px); }
.hero-copy { padding-block: 30px; }
.availability { width: fit-content; display: flex; align-items: center; gap: 9px; margin: 0 0 25px; color: var(--aubergine); font-size: 0.78rem; font-weight: 600; }
.availability-dot { width: 8px; height: 8px; background: var(--rose); border-radius: 50%; box-shadow: 0 0 0 5px var(--rose-soft); }
.hero h1 { max-width: 690px; margin: 0; color: var(--aubergine); font-size: clamp(3rem, 6.2vw, 6rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.055em; }
.is-arabic .hero h1 { letter-spacing: -0.045em; }
.hero-lede { max-width: 590px; margin: 28px 0 0; color: #5d555c; font-size: clamp(1rem, 1.45vw, 1.2rem); line-height: 1.95; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 34px; }
.text-link, .map-link { color: var(--aubergine); font-weight: 600; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.hero-meta { display: flex; align-items: center; gap: 13px; margin-top: 38px; color: var(--muted); font-size: 0.78rem; font-weight: 500; }
.hero-meta i { width: 26px; height: 1px; background: var(--rose); }
.hero-visual { position: relative; max-width: 580px; justify-self: end; }
[dir="ltr"] .hero-visual { justify-self: start; }
.image-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 200px 200px var(--radius) var(--radius); background: var(--rose-soft); box-shadow: 0 30px 90px rgba(73, 33, 63, 0.16); }
.image-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,0.5); border-radius: inherit; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.doctor-card { position: absolute; inset-inline-start: -58px; bottom: 35px; display: flex; align-items: center; gap: 13px; min-width: 260px; padding: 16px 20px; background: rgba(255,255,255,0.93); border: 1px solid rgba(255,255,255,0.8); border-radius: 18px; box-shadow: 0 18px 50px rgba(73,33,63,0.16); backdrop-filter: blur(12px); }
.doctor-monogram { width: 45px; height: 45px; display: grid; place-items: center; color: white; background: var(--rose); border-radius: 50%; font-size: 1.2rem; font-weight: 600; }
.doctor-card p { display: grid; margin: 0; line-height: 1.45; }
.doctor-card strong { color: var(--aubergine); font-size: 0.85rem; }
.doctor-card small { color: var(--muted); font-size: 0.68rem; }

.section { padding: 105px 0; }
.section-heading { display: grid; grid-template-columns: 1.3fr 0.7fr; align-items: end; gap: 60px; margin-bottom: 48px; }
.kicker { margin: 0 0 12px; color: var(--rose); font-size: 0.78rem; font-weight: 700; }
.section-heading h2, .doctor-copy h2, .contact-panel h2 { margin: 0; color: var(--aubergine); font-size: clamp(2rem, 4vw, 4rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.04em; }
.section-heading > p { max-width: 470px; margin: 0; color: var(--muted); }
.services { background: var(--white); }
.service-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 20px; }
.service-group { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.service-group > header { display: flex; gap: 16px; align-items: flex-start; padding: 30px; border-bottom: 1px solid var(--line); }
.service-group h3 { margin: 0; color: var(--aubergine); font-size: 1.25rem; font-weight: 600; }
.service-group header p { margin: 4px 0 0; color: var(--muted); font-size: 0.8rem; }
.group-symbol { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: white; background: var(--aubergine); border-radius: 50%; font: 400 1.5rem/1 "Manrope"; }
.group-symbol.soft { color: var(--aubergine); background: var(--rose-soft); }
.medical-group { background: #faf9fb; }
.service-list { padding: 8px 30px 18px; }
.service-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.service-item:last-child { border-bottom: 0; }
.service-item > span { color: var(--rose); font: 600 0.67rem/1.8 "Manrope", sans-serif; }
.service-item h4 { margin: 0 0 7px; color: var(--aubergine); font-size: 1rem; }
.service-item p { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.7; }
.aesthetic-grid { display: grid; grid-template-columns: 1fr 1fr; }
.mini-service { min-height: 142px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 24px 26px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); transition: background 180ms ease; }
.mini-service:nth-child(even) { border-inline-end: 0; }
.mini-service:hover { background: var(--rose-soft); }
.mini-service b { color: var(--aubergine); font-size: 0.9rem; }
.mini-service small { color: var(--muted); font-size: 0.72rem; line-height: 1.6; }
.mini-service.wide { grid-column: 1 / -1; border-bottom: 0; border-inline-end: 0; min-height: 110px; }

.doctor { overflow: hidden; color: white; background: var(--aubergine); }
.doctor-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 90px; }
.doctor-statement { position: relative; display: grid; color: transparent; font: 700 clamp(5rem, 12vw, 9.5rem)/0.78 "Manrope", sans-serif; letter-spacing: -0.08em; -webkit-text-stroke: 1px rgba(255,255,255,0.2); direction: ltr; }
.doctor-statement span:last-child { color: var(--rose); -webkit-text-stroke: 0; margin-inline-start: 55px; }
.doctor-copy .kicker { color: #efadca; }
.doctor-copy h2 { color: white; }
.doctor-copy > p:not(.kicker) { max-width: 600px; margin: 28px 0 0; color: rgba(255,255,255,0.72); }
.care-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 35px; }
.care-points span { padding: 9px 14px; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; }
.care-points b { font-size: 0.72rem; font-weight: 500; }

.branches { background: #faf8fa; }
.branch-heading { align-items: center; }
.branch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.branch-card { min-height: 480px; display: flex; flex-direction: column; padding: 36px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.branch-card.featured { color: white; background: var(--aubergine); border-color: var(--aubergine); }
.branch-topline { display: flex; align-items: center; gap: 12px; color: var(--rose); font-size: 0.8rem; font-weight: 700; }
.branch-number { font: 700 0.72rem/1 "Manrope", sans-serif; }
.branch-card h3 { margin: 35px 0 16px; color: var(--aubergine); font: 600 clamp(1.6rem, 3vw, 2.6rem)/1.2 "Manrope", sans-serif; }
.branch-card.featured h3 { color: white; }
.branch-card address { min-height: 96px; color: var(--muted); font-style: normal; }
.branch-card.featured address { color: rgba(255,255,255,0.7); }
.phones { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 27px 0; direction: ltr; justify-content: flex-end; }
[dir="ltr"] .phones { justify-content: flex-start; }
.phones a { font: 600 0.9rem/1.5 "Manrope", sans-serif; text-underline-offset: 4px; }
.branch-actions { display: flex; align-items: center; gap: 22px; margin-top: auto; }
.map-link { font-size: 0.84rem; }
.light-link { color: white; }

.contact { padding-top: 0; background: #faf8fa; }
.contact-panel { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 52px 58px; color: white; background: var(--rose); border-radius: var(--radius); }
.contact-panel .kicker { color: white; opacity: 0.8; }
.contact-panel h2 { color: white; font-size: clamp(1.8rem, 3.5vw, 3rem); }
.contact-panel p:not(.kicker) { max-width: 670px; margin: 18px 0 0; color: rgba(255,255,255,0.86); }
.contact-panel .button { flex: 0 0 auto; }

.site-footer { padding: 58px 0 32px; color: rgba(255,255,255,0.72); background: var(--aubergine-deep); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-bottom: 42px; }
.footer-brand .brand-mark { color: var(--aubergine); background: white; }
.footer-brand .brand-copy strong { color: white; }
.footer-brand .brand-copy small { color: rgba(255,255,255,0.55); }
.social-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 24px; }
.social-links a { font: 500 0.75rem/1 "Manrope", sans-serif; text-underline-offset: 5px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.11); }
.footer-bottom p { max-width: 700px; margin: 0; font-size: 0.7rem; }
.mobile-booking { display: none; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr 0.9fr; gap: 34px; }
  .hero h1 { font-size: clamp(3rem, 8vw, 5rem); }
  .doctor-card { inset-inline-start: -25px; }
  .service-layout { grid-template-columns: 1fr; }
  .doctor-grid { gap: 40px; }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 28px, 1180px); --radius: 22px; }
  body { padding-bottom: 72px; }
  .header-inner { min-height: 70px; }
  .brand-copy small, .header-actions .button { display: none !important; }
  .brand-mark { width: 39px; height: 39px; }
  .hero { padding: 38px 0 54px; background: linear-gradient(180deg, white 0 48%, #f8f5f8 48% 100%); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(2.85rem, 14vw, 4.6rem); }
  .hero-lede { margin-top: 20px; }
  .hero-actions { margin-top: 27px; }
  .hero-actions .button { min-height: 48px; padding-inline: 20px; }
  .hero-meta { margin-top: 26px; }
  .hero-visual { width: 88%; justify-self: end; }
  [dir="ltr"] .hero-visual { justify-self: start; }
  .doctor-card { inset-inline-start: -12%; bottom: 22px; min-width: 230px; padding: 13px 15px; }
  .section { padding: 74px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 32px; }
  .section-heading h2, .doctor-copy h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .service-group > header { padding: 24px 22px; }
  .service-list { padding-inline: 22px; }
  .aesthetic-grid { grid-template-columns: 1fr; }
  .mini-service, .mini-service:nth-child(even) { min-height: 120px; border-inline-end: 0; }
  .mini-service.wide { grid-column: auto; }
  .doctor-grid { grid-template-columns: 1fr; }
  .doctor-statement { font-size: clamp(4.6rem, 25vw, 7rem); }
  .doctor-copy { padding-top: 10px; }
  .branch-grid { grid-template-columns: 1fr; }
  .branch-card { min-height: 440px; padding: 28px 23px; }
  .branch-card address { min-height: auto; }
  .branch-actions { gap: 16px; }
  .contact-panel { align-items: flex-start; flex-direction: column; padding: 36px 26px; }
  .footer-grid, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .social-links { justify-content: flex-start; gap: 18px; }
  .mobile-booking { position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: block; padding: 10px 14px; background: rgba(255,255,255,0.94); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
  .mobile-booking a { min-height: 50px; display: grid; place-items: center; color: white; background: var(--aubergine); border-radius: 999px; font-size: 0.86rem; font-weight: 600; text-decoration: none; }
}

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