/* =========================================================================
   AFIA  عافية  : Damascus specialist medical center (demo)
   A Wojoodi portfolio demonstration. Fictional clinic.
   Design system: airy off-white + calm healing blue + deep petrol, soft and
   rounded. Signature: the quatrefoil mark, soft-shadow rounded plates, calm
   whitespace. One stylesheet drives LTR + RTL via logical properties.
   ========================================================================= */

:root {
  /* palette */
  --bg:        #F4F6F4;   /* airy off-white page */
  --bg-2:      #E9EEEC;
  --paper:     #FFFFFF;   /* cards */
  --blue:      #2F6E8F;   /* calm healing accent */
  --blue-lit:  #5A97B8;   /* accent on dark */
  --blue-soft: #E6EFF3;   /* tints, icon chips */
  --sage:      #5F9079;   /* gentle secondary */
  --deep:      #16323B;   /* deep petrol: dark band */
  --deep-2:    #0F262D;   /* footer */
  --ink:       #1D2A2F;   /* text on light */
  --ink-soft:  #586A6E;   /* muted on light */
  --stone:     #C7D0CD;
  --line:      rgba(47,110,143,0.16);
  --line-d:    rgba(233,240,240,0.14);
  --cream:     #E9F0F0;   /* text on deep */
  --cream-soft:#9DB2B4;

  /* type */
  --f-display:    "Newsreader", Georgia, "Times New Roman", serif;
  --f-body:       "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --f-label:      "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --f-ar-display: "Cairo", "Tajawal", sans-serif;
  --f-ar-body:    "Almarai", "Tajawal", sans-serif;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --r: 16px; --r-sm: 11px; --r-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.72; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; }

/* ---- type primitives ---- */
/* editorial label in the house serif, no templated dash, used sparingly */
.eyebrow {
  font-family: var(--f-display); font-optical-sizing: auto; font-style: italic; font-size: 1.05rem;
  letter-spacing: 0.01em; text-transform: none; font-weight: 500;
  color: var(--blue); display: inline-block;
}
.display {
  font-family: var(--f-display); font-optical-sizing: auto; font-weight: 500;
  letter-spacing: -0.01em; line-height: 1.12; font-size: clamp(2rem, 4.4vw, 3.3rem); color: var(--ink);
}
.lead {
  font-family: var(--f-display); font-optical-sizing: auto; font-weight: 400; font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem); line-height: 1.45; color: var(--ink-soft);
}
.display, .hero-title, .hero-tag, .lead, .quote-text { text-wrap: balance; }

/* ---- layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(68px, 9vw, 130px); position: relative; }
.section--tint { background: var(--bg-2); }
.section--deep { background: var(--deep); color: var(--cream); }
.section--deep .display { color: var(--cream); }
.section--deep .eyebrow { color: var(--blue-lit); }

.sec-head { max-width: 640px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.sec-head .display { margin-top: 14px; }
.sec-head.left { text-align: start; margin-inline: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; }

/* soft rounded image plate with a gentle shadow */
.plate { position: relative; overflow: hidden; border-radius: var(--r); background: var(--bg-2); box-shadow: 0 30px 60px -38px rgba(22,50,59,0.4); }
.plate img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.plate:hover img { transform: scale(1.04); }

.mark { display: inline-block; color: var(--blue); }
.mark svg { display: block; width: 100%; height: 100%; }

/* ---- buttons / links ---- */
.btn {
  font-family: var(--f-label); font-size: 0.82rem; letter-spacing: 0.02em; font-weight: 700;
  padding: 0.95em 1.7em; display: inline-flex; align-items: center; gap: 0.6em; border-radius: var(--r-pill);
  border: 1.5px solid var(--blue); background: var(--blue); color: #FBFDFD; cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn:hover { background: #245874; border-color: #245874; transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(47,110,143,0.7); }
.btn--ghost { background: transparent; color: var(--blue); }
.section--deep .btn--ghost { color: var(--cream); border-color: rgba(233,240,240,0.5); }
.btn--ghost:hover { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: none; }
.ulink {
  font-family: var(--f-label); font-size: 0.8rem; letter-spacing: 0.01em; font-weight: 700; color: var(--blue);
  display: inline-flex; align-items: center; gap: 0.45em; position: relative; padding-bottom: 3px;
}
.ulink::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 100%; height: 2px; border-radius: 2px;
  background: var(--blue); transform: scaleX(0.3); transform-origin: left; transition: transform 0.4s var(--ease); }
.ulink:hover::after { transform: scaleX(1); }

/* ---- nav (light theme) ---- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter); transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.scrolled { background: rgba(244,246,244,0.9); backdrop-filter: blur(10px); padding-block: 11px; box-shadow: 0 1px 0 var(--line), 0 12px 28px -22px rgba(22,50,59,0.45); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand .mark { width: 36px; height: 36px; flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-en { font-family: var(--f-display); font-weight: 600; font-size: 1.28rem; letter-spacing: 0.01em; }
.brand-sub { font-family: var(--f-label); font-size: 0.55rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--blue); margin-top: 2px; font-weight: 600; }
.brand-ar { font-family: var(--f-ar-display); font-size: 1.42rem; font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn):not(.lang) {
  font-family: var(--f-label); font-size: 0.84rem; letter-spacing: 0.01em; font-weight: 600; color: var(--ink);
  position: relative; padding: 4px 0; transition: color 0.3s var(--ease);
}
.nav-links a:not(.btn):not(.lang):hover { color: var(--blue); }
.nav-links a:not(.btn):not(.lang)::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -2px; width: 100%; height: 2px; border-radius: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav-links a:not(.btn):not(.lang):hover::after { transform: scaleX(1); }
.nav-links .btn { padding: 0.62em 1.25em; font-size: 0.78rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 34px; height: 24px; position: relative; z-index: 1200; }
.nav-toggle span { position: absolute; inset-inline-start: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--ink); transition: 0.4s var(--ease); }
.nav-toggle span:nth-child(1) { top: 3px; } .nav-toggle span:nth-child(2) { top: 11px; } .nav-toggle span:nth-child(3) { top: 19px; }
body.menu-open .nav-toggle span { background: var(--cream); }
body.menu-open .nav-toggle span:nth-child(1) { top: 11px; transform: rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* language pill */
.nav-links a.lang {
  font-family: var(--f-label); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
  color: var(--blue); background: var(--blue-soft); border: 1.5px solid transparent; border-radius: var(--r-pill);
  padding: 0.5em 0.95em; display: inline-flex; align-items: center; gap: 0.45em; line-height: 1;
  transition: color 0.35s var(--ease), background 0.35s var(--ease);
}
.nav-links a.lang:hover { color: #fff; background: var(--blue); }
.lang .globe { width: 14px; height: 14px; flex: none; }
.lang .globe svg { width: 100%; height: 100%; display: block; }
.lang::after { display: none !important; }

/* ---- hero (split) ---- */
.hero { padding: clamp(120px, 16vh, 168px) 0 clamp(54px, 7vw, 84px); position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 60% at 100% 0%, rgba(47,110,143,0.07), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(34px, 5vw, 76px); align-items: center; position: relative; }
.hero-title { font-family: var(--f-display); font-optical-sizing: auto; font-weight: 500; letter-spacing: -0.015em;
  font-size: clamp(2.5rem, 5.4vw, 4.1rem); line-height: 1.04; color: var(--ink); margin: 18px 0 0; }
.hero-tag { font-family: var(--f-display); font-style: italic; font-size: clamp(1.2rem, 2.3vw, 1.55rem); color: var(--ink-soft); margin-top: 18px; line-height: 1.45; max-width: 42ch; }
.hero-cta { margin-top: 30px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-meta { margin-top: 30px; display: flex; gap: clamp(18px, 3vw, 36px); flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-meta .m { display: flex; flex-direction: column; gap: 3px; }
.hero-meta .n { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; color: var(--blue); line-height: 1; }
.hero-meta .l { font-family: var(--f-label); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.hero-photo { aspect-ratio: 5 / 4.5; }

.reveal-load { opacity: 1; transform: none; }                     /* default: visible (fail-open) */
html.js .reveal-load { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1 { animation-delay: 0.1s; } .d2 { animation-delay: 0.24s; } .d3 { animation-delay: 0.38s; } .d4 { animation-delay: 0.52s; } .d5 { animation-delay: 0.66s; }
html.js .hero-photo.reveal-load { animation-delay: 0.3s; }

/* ---- trust strip ---- */
.trust { background: var(--blue-soft); }
.trust .wrap { padding-block: clamp(30px, 4vw, 44px); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.trust-line { font-family: var(--f-display); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--blue); max-width: 30ch; }
/* provenance: a quiet line of record, not a dashboard stat strip */
.provenance { font-family: var(--f-display); font-optical-sizing: auto; font-style: italic; font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  color: var(--ink-soft); line-height: 1.75; max-width: 44ch; }
.provenance .pf { font-style: normal; font-weight: 600; color: var(--blue); }

/* ---- specialties ---- */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
.spec { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px 24px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.spec:hover { transform: translateY(-4px); border-color: var(--blue); }   /* one treatment: hairline edge, no soft shadow */
.spec-ico { width: 50px; height: 50px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.spec-ico svg { width: 26px; height: 26px; }
.spec h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; color: var(--ink); margin-bottom: 7px; }
.spec p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }

/* ---- about ---- */
.about-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.about-photo { aspect-ratio: 4 / 3.5; }
.about-copy p { color: var(--ink-soft); margin: 1.05em 0; }
.about-copy p:first-of-type { font-family: var(--f-display); font-style: italic; font-size: 1.28rem; line-height: 1.5; color: var(--ink); }
.about-copy .display { margin: 14px 0 6px; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.checks li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--ink); }
.checks svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 2px; }

/* ---- why band (deep) ---- */
.why { position: relative; overflow: hidden; }
.why .bg { position: absolute; inset: 0; }
.why .bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.14; }
.why .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--deep) 10%, rgba(15,38,45,0.7) 100%); }
.why .wrap { position: relative; }
.why-statement { text-align: center; max-width: 30ch; margin: 0 auto clamp(40px, 5vw, 64px); }
.why-statement .mark { width: 34px; height: 34px; color: var(--blue-lit); margin: 0 auto 22px; }
.why-statement .quote-text { font-family: var(--f-display); font-style: italic; font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.32; color: var(--cream); }
.why-statement .quote-text .hl { color: var(--blue-lit); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.why-item { text-align: center; }
.why-item .wi-ico { width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 14px; background: rgba(90,151,184,0.16); color: var(--blue-lit); display: grid; place-items: center; }
.why-item .wi-ico svg { width: 24px; height: 24px; }
.why-item h4 { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; color: var(--cream); margin-bottom: 6px; }
.why-item p { font-size: 0.88rem; color: var(--cream-soft); line-height: 1.6; margin: 0; }

/* ---- team ---- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.doc-photo { aspect-ratio: 4 / 4.6; margin-bottom: 16px; }
.doc-name { font-family: var(--f-display); font-weight: 600; font-size: 1.22rem; color: var(--ink); }
.doc-spec { font-family: var(--f-label); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); font-weight: 700; margin-top: 6px; }
.doc-cred { font-size: 0.9rem; color: var(--ink-soft); margin-top: 8px; }

/* ---- visit (hours + map) ---- */
.visit-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 4vw, 64px); align-items: stretch; }
.info-block { margin-bottom: 24px; }
.info-block h4 { font-family: var(--f-label); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; font-weight: 700; }
.info-block p { margin: 0; color: var(--ink-soft); }
.hours-row { display: flex; justify-content: space-between; max-width: 320px; padding: 4px 0; color: var(--ink); }
.hours-row span:last-child { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.clinic-map { min-height: 380px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.clinic-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---- appointment ---- */
.appt-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(34px, 5vw, 76px); align-items: start; }
.appt-intro .display { margin: 14px 0 18px; }
.appt-intro p { color: var(--ink-soft); max-width: 38ch; }
.contact-lines { margin-top: 26px; display: flex; flex-direction: column; gap: 15px; }
.cline { display: flex; gap: 12px; align-items: flex-start; }
.cline svg { width: 18px; height: 18px; color: var(--blue); flex: none; margin-top: 3px; }
.cline .k { font-family: var(--f-label); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.cline .v { color: var(--ink); }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 32px); }   /* one treatment: hairline edge */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--f-label); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--f-body); font-size: 0.98rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 13px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,110,143,0.14); }
.field textarea { resize: vertical; min-height: 84px; }
.form-grid .btn { grid-column: 1 / -1; justify-content: center; }

/* grid children can shrink (prevents overflow both directions) */
.hero-grid > *, .spec-grid > *, .about-grid > *, .why-grid > *, .team-grid > *, .visit-grid > *,
.appt-grid > *, .form-grid > *, .trust .wrap > *, .footer-top > *, .checks > * { min-width: 0; }

/* ---- footer ---- */
.footer { background: var(--deep-2); color: var(--cream-soft); padding: clamp(54px, 7vw, 88px) 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer .brand { color: var(--cream); margin-bottom: 16px; }
.footer .brand-sub { color: var(--blue-lit); }
.footer-blurb { max-width: 36ch; font-size: 0.95rem; line-height: 1.7; }
.footer h5 { font-family: var(--f-label); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-lit); margin: 0 0 14px; font-weight: 700; }
.footer-col a { display: block; padding: 5px 0; font-size: 0.94rem; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--cream); }
.socials { display: flex; gap: 11px; margin-top: 8px; }
.socials a { width: 38px; height: 38px; border-radius: var(--r-pill); border: 1px solid var(--line-d); display: grid; place-items: center; color: var(--blue-lit); transition: 0.35s var(--ease); }
.socials a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.socials svg { width: 17px; height: 17px; }
.footer-base { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line-d);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--f-label); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--cream-soft); }
.credit { display: inline-flex; align-items: center; gap: 11px; }
.credit-label { font-family: var(--f-label); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-soft); font-weight: 600; }
.wlogo { display: inline-flex; align-items: center; gap: 11px; opacity: 0.9; transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.wlogo-mark { height: 38px; width: auto; display: block; }
.wlogo-word { height: 26px; width: auto; display: block; }
.wlogo:hover { opacity: 1; transform: translateY(-1px); }   /* restrained, no glow */

/* ---- modal ---- */
.modal { position: fixed; inset: 0; z-index: 5000; display: none; place-items: center; padding: 24px; }
.modal.open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,38,45,0.66); backdrop-filter: blur(4px); animation: fade 0.4s var(--ease); }
.modal-card { position: relative; background: var(--paper); max-width: 460px; width: 100%; padding: 44px 38px 36px; text-align: center;
  border-radius: var(--r); box-shadow: 0 40px 90px -30px rgba(0,0,0,0.5); animation: pop 0.5s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
.modal-card .mark { width: 44px; height: 44px; margin: 0 auto 18px; color: var(--blue); }
.modal-card h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; color: var(--ink); margin-bottom: 13px; }
.modal-card p { color: var(--ink-soft); font-size: 1.02rem; margin: 0 auto 24px; max-width: 38ch; }
.modal-close { font-family: var(--f-label); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--blue); background: none; border: 0; cursor: pointer; padding: 8px; }

/* ---- reveal ---- */
.reveal { opacity: 1; transform: none; }                          /* default: visible (fail-open if JS/observer never fires) */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal.d2 { transition-delay: 0.1s; } html.js .reveal.d3 { transition-delay: 0.2s; } html.js .reveal.d4 { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) { html.js .reveal, html.js .reveal-load { opacity: 1 !important; transform: none !important; animation: none !important; } }

/* ---- LTR islands ---- */
.lat { direction: ltr; unicode-bidi: isolate; font-family: var(--f-label); letter-spacing: 0; }
.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }

/* ---- responsive ---- */
@media (max-width: 1040px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .nav-links { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: var(--deep); opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0.4s var(--ease); }
  body.menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a:not(.btn):not(.lang) { color: var(--cream); font-size: 0.95rem; }
  .nav-links a:not(.btn):not(.lang):hover { color: var(--blue-lit); }
  .nav-links a.lang { color: var(--cream); background: rgba(90,151,184,0.18); margin-top: 6px; }
  .nav-toggle { display: block; }
  .hero-grid, .about-grid, .visit-grid, .appt-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; aspect-ratio: 16 / 10; }
  .about-photo { order: -1; aspect-ratio: 16 / 10; max-width: 560px; margin-inline: auto; }
  .trust .wrap { flex-direction: column; align-items: flex-start; gap: 22px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .spec-grid, .why-grid, .team-grid, .form-grid { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-base { justify-content: center; text-align: center; }
  .hero-meta { gap: 18px; }
}

/* =========================================================================
   RTL + Arabic typography (Cairo display, Almarai body), one stylesheet.
   ========================================================================= */
[dir="rtl"] { font-family: var(--f-ar-body); }
[dir="rtl"] body { font-family: var(--f-ar-body); font-size: 18px; line-height: 1.9; }
[dir="rtl"] p { line-height: 1.9; }
[dir="rtl"] .field input, [dir="rtl"] .field select, [dir="rtl"] .field textarea { font-family: var(--f-ar-body); font-size: 1rem; }
[dir="rtl"] .lat, [dir="rtl"] .num { font-family: var(--f-label); }
[dir="rtl"] .brand-en, [dir="rtl"] .brand-sub { font-family: var(--f-display); }
[dir="rtl"] .credit, [dir="rtl"] .credit a { font-family: var(--f-label); }

/* Arabic display in Cairo */
[dir="rtl"] .display, [dir="rtl"] .hero-title, [dir="rtl"] .quote-text, [dir="rtl"] .spec h3,
[dir="rtl"] .doc-name, [dir="rtl"] .why-item h4, [dir="rtl"] .modal-card h3, [dir="rtl"] .brand-ar,
[dir="rtl"] .hero-meta .n, [dir="rtl"] .provenance .pf {
  font-family: var(--f-ar-display); letter-spacing: 0; font-style: normal; font-weight: 700;
}
[dir="rtl"] .display { line-height: 1.35; }
[dir="rtl"] .hero-title { line-height: 1.22; }
[dir="rtl"] .quote-text, [dir="rtl"] .trust-line, [dir="rtl"] .lead { font-style: normal; }
[dir="rtl"] .quote-text { line-height: 1.5; }

/* Arabic running text in Almarai */
[dir="rtl"] .hero-tag, [dir="rtl"] .lead, [dir="rtl"] .about-copy p, [dir="rtl"] .about-copy p:first-of-type,
[dir="rtl"] .appt-intro p, [dir="rtl"] .spec p, [dir="rtl"] .why-item p, [dir="rtl"] .doc-cred,
[dir="rtl"] .footer-blurb, [dir="rtl"] .modal-card p, [dir="rtl"] .trust-line {
  font-family: var(--f-ar-body); font-style: normal; letter-spacing: 0;
}

/* small Arabic labels: no uppercase, no letterspacing, sized up */
[dir="rtl"] .eyebrow, [dir="rtl"] .btn, [dir="rtl"] .ulink, [dir="rtl"] .nav-links a:not(.btn):not(.lang),
[dir="rtl"] .field label, [dir="rtl"] .doc-spec, [dir="rtl"] .info-block h4, [dir="rtl"] .footer h5,
[dir="rtl"] .footer-col a, [dir="rtl"] .hero-meta .l, [dir="rtl"] .cline .k,
[dir="rtl"] .brand-sub, [dir="rtl"] .modal-close {
  font-family: var(--f-ar-body); letter-spacing: 0; text-transform: none; font-weight: 700;
}
[dir="rtl"] .eyebrow { font-size: 0.96rem; font-style: normal; }
[dir="rtl"] .provenance { font-family: var(--f-ar-body); font-style: normal; }
[dir="rtl"] .nav-links a:not(.btn):not(.lang) { font-size: 1rem; font-weight: 600; }
[dir="rtl"] .btn { font-size: 0.94rem; }
[dir="rtl"] .ulink { font-size: 0.94rem; }
[dir="rtl"] .field label { font-size: 0.9rem; }
[dir="rtl"] .doc-spec { font-size: 0.82rem; }
[dir="rtl"] .info-block h4 { font-size: 0.92rem; }
[dir="rtl"] .footer h5 { font-size: 0.94rem; }
[dir="rtl"] .footer-col a { font-size: 1rem; }
[dir="rtl"] .nav-links a.lang { font-size: 0.7rem; }
[dir="rtl"] .brand-sub { font-size: 0.6rem; }
[dir="rtl"] .hero-meta .l { font-size: 0.74rem; }

/* directional flourishes flip */
[dir="rtl"] .ulink::after, [dir="rtl"] .nav-links a:not(.btn):not(.lang)::after { transform-origin: right; }
