/* =============================================================
   Dr. Ahmed Maki — "Turquoise Starry Night"
   Hand-written CSS. No build step. Logical properties throughout
   so the whole layout mirrors correctly in RTL.
   ============================================================= */

/* ---------------------------------------------------------- tokens
   Light theme: white paper, green ink.
   The names are historical — they are kept so every rule below still
   resolves — but the values are all light now. Read them as:
     --night-*   = page surfaces (lightest to slightly tinted)
     --white     = strongest text colour (near-black green)
     --mist      = body text
   -------------------------------------------------------------------- */
:root {
  --night-900: #F7FBF9;   /* page background */
  --night-800: #EDF7F1;   /* raised surface */
  --night-700: #DFF0E7;   /* sunken band     */

  /* These greens are chosen to clear 4.5:1 BOTH as text on white and as a
     fill behind white text, so one token can play either role safely. */
  --turquoise: #0E7A50;        /* primary green   — 5.4:1 either way */
  --turquoise-light: #0A6B47;  /* links + accents — 6.4:1 on white   */
  --turquoise-deep: #06563A;   /* hover / pressed */

  --green-glow: #4FD6A0;       /* decorative only — never behind text */

  /* The client's accent. At 1.6:1 on white it can never carry text, so it is
     used purely as a highlight: glows, gradients, underlines and small marks. */
  --lime: #70FC56;
  --lime-soft: rgba(112, 252, 86, .30);

  --white: #0C2820;   /* headings */
  --mist: #294A40;    /* body copy */
  --gold: #9A6A0E;

  /* derived */
  --text: var(--mist);
  --text-dim: #43625A;
  --text-faint: #5A756D;
  --line: rgba(20, 160, 106, .26);
  --line-soft: rgba(12, 40, 32, .10);

  --glass: rgba(255, 255, 255, .70);
  --glass-strong: rgba(255, 255, 255, .90);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;

  --shadow: 0 18px 44px -22px rgba(12, 60, 44, .28);
  --glow: 0 0 0 1px var(--line), 0 14px 36px -18px rgba(20, 160, 106, .30);

  --font-head: "Cormorant Garamond", "Amiri", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --section-y: clamp(3.5rem, 9vw, 7rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Arabic pairs a serif display face with a clean naskh body face. */
html[lang="ar"] {
  --font-head: "Amiri", "Cormorant Garamond", serif;
  --font-body: "Tajawal", "Segoe UI", sans-serif;
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.75;
  color: var(--text);
  background: var(--night-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body { line-height: 1.9; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  margin: 0 0 .5em;
  letter-spacing: .01em;
}
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 { line-height: 1.4; font-weight: 700; }

h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 1.3rem + 2.1vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); }

p { margin: 0 0 1.1em; }

a {
  color: var(--turquoise-light);
  text-decoration-color: rgba(20, 160, 106, .35);
  text-underline-offset: .22em;
  transition: color .25s var(--ease);
}
a:hover { color: var(--white); }

img { max-width: 100%; height: auto; display: block; }

/* Base size for every inline icon. Components below override it — this rule
   is deliberately first so single-class overrides win on source order. */
.icon {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  vertical-align: -.15em;
}

:focus-visible {
  outline: 2px solid var(--turquoise-light);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--turquoise-deep); color: var(--white); }

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--turquoise);
  color: var(--night-900);
  padding: .6rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

.wrap {
  width: min(100% - 2.4rem, var(--wrap));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); position: relative; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ==========================================================
   THE BACKDROP — soft green light on white paper.
   Fixed, behind everything, pointer-events none.
   ========================================================== */
.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 82% -10%, rgba(79, 214, 160, .20) 0%, transparent 58%),
    radial-gradient(100% 80% at 8% 6%, rgba(20, 160, 106, .13) 0%, transparent 62%),
    linear-gradient(178deg, #FFFFFF 0%, var(--night-900) 45%, #EAF6F0 100%);
}

/* Slow drifting "brushstroke" blobs. Transform+opacity only → GPU friendly. */
.sky__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .30;
  will-change: transform;
}
.sky__blob--1 {
  width: 46vmax; height: 46vmax;
  inset-block-start: -14vmax; inset-inline-start: -10vmax;
  background: radial-gradient(circle, var(--lime) 0%, transparent 68%);
  animation: drift-a 46s var(--ease) infinite alternate;
}
.sky__blob--2 {
  width: 38vmax; height: 38vmax;
  inset-block-start: 22%; inset-inline-end: -12vmax;
  background: radial-gradient(circle, #9BE7C6 0%, transparent 70%);
  opacity: .34;
  animation: drift-b 58s var(--ease) infinite alternate;
}
.sky__blob--3 {
  width: 34vmax; height: 34vmax;
  inset-block-end: -12vmax; inset-inline-start: 28%;
  background: radial-gradient(circle, var(--turquoise) 0%, transparent 72%);
  opacity: .16;
  animation: drift-c 52s var(--ease) infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vw, 5vh, 0) scale(1.15); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to   { transform: translate3d(-7vw, -4vh, 0) scale(.92); }
}
@keyframes drift-c {
  from { transform: translate3d(0, 0, 0) scale(.95); }
  to   { transform: translate3d(4vw, -6vh, 0) scale(1.2); }
}

/* Van Gogh swirl strokes (inline SVG), turning almost imperceptibly. */
.sky__swirls {
  position: absolute;
  inset: -18%;
  opacity: .16;
  animation: swirl-turn 190s linear infinite;
  will-change: transform;
}
.sky__swirls svg { width: 100%; height: 100%; }
@keyframes swirl-turn {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Faint paper texture — whisper light. */
.sky__grain {
  position: absolute;
  inset: 0;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Drifting motes — injected by main.js into .sky__stars.
   On white paper these read as soft green specks of light, not stars. */
.sky__stars { position: absolute; inset: 0; }
.star {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--green-glow);
  opacity: .35;
  animation: twinkle var(--dur, 4s) ease-in-out var(--delay, 0s) infinite;
}
.star--big {
  width: 8px; height: 8px;
  background: rgba(20, 160, 106, .35);
  filter: blur(1px);
}
.star--turq {
  width: 6px; height: 6px;
  background: rgba(79, 214, 160, .55);
}
@keyframes twinkle {
  0%, 100% { opacity: .12; transform: scale(.85); }
  50%      { opacity: .48; transform: scale(1.15); }
}

/* ==========================================================
   HEADER / NAV
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .94), rgba(255, 255, 255, .70) 70%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-block-end: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, .93);
  border-block-end-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  margin-inline-end: auto;
  /* A long name must never push the menu button off a narrow screen. */
  min-width: 0;
  overflow: hidden;
}
.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand__mark {
  width: 34px; height: 34px;
  flex: none;
  color: var(--turquoise);
  filter: drop-shadow(0 0 6px rgba(20, 160, 106, .6));
}

.nav {
  display: flex;
  align-items: center;
  gap: .1rem;
}
.nav a {
  position: relative;
  /* Ten sections plus the language toggle have to share one row before the
     drawer takes over at 1100px, so the horizontal padding is deliberately tight. */
  padding: .5rem .58rem;
  color: var(--text-dim);
  text-decoration: none;
  font-size: .9rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  inset-block-end: .22rem;
  inset-inline: .78rem;
  height: 1px;
  background: var(--turquoise);
  transform: scaleX(0);
  transform-origin: var(--origin, left);
  transition: transform .3s var(--ease);
}
html[dir="rtl"] .nav a::after { --origin: right; }
.nav a:hover { color: var(--white); background: rgba(20, 160, 106, .08); }
.nav a:hover::after,
.nav a[aria-current]::after { transform: scaleX(1); }
.nav a[aria-current] { color: var(--white); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--turquoise-light);
  background: rgba(20, 160, 106, .07);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.lang-toggle:hover { background: var(--turquoise); color: var(--night-900); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(20, 160, 106, .07);
  color: var(--mist);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Ten sections no longer fit on one row below ~1100px, so the drawer takes
   over earlier than the usual tablet breakpoint. */
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }

  /* A backdrop-filter on the header would make it the containing block for
     the fixed drawer below — trapping the drawer inside the 74px-tall bar and
     dragging the whole RTL layout sideways. Solid background on mobile. */
  .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(255, 255, 255, .96);
  }

  .nav {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    width: min(84vw, 340px);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: .3rem;
    padding: 2rem 1.4rem;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-inline-start: 1px solid var(--line);
    transform: translateX(var(--off, 110%));
    /* Hidden while closed so it cannot be tabbed into, intercept taps,
       or widen the page. */
    visibility: hidden;
    transition: transform .35s var(--ease), visibility .35s;
    z-index: 100;
  }
  html[dir="rtl"] .nav { --off: -110%; }
  .nav.is-open { transform: translateX(0); visibility: visible; }
  .nav a { font-size: 1.12rem; padding: .8rem 1rem; }
  .nav a::after { display: none; }
  .nav-scrim {
    position: fixed; inset: 0;
    background: rgba(12, 40, 32, .42);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
    z-index: 95;
  }
  .nav-scrim.is-open { opacity: 1; visibility: visible; }
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), color .25s var(--ease);
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(135deg, var(--turquoise) 0%, var(--turquoise-deep) 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 30px -12px rgba(20, 160, 106, .55), 0 0 0 0 var(--lime-soft);
}
.btn--primary:hover {
  color: #FFFFFF;
  box-shadow: 0 14px 34px -12px rgba(20, 160, 106, .6), 0 0 0 3px var(--lime-soft);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--mist);
  background: rgba(12, 40, 32, .04);
}
.btn--ghost:hover {
  color: var(--white);
  border-color: var(--turquoise);
  background: rgba(20, 160, 106, .12);
}

.btn--wa { background: #25D366; color: #06210f; }
.btn--wa:hover { color: #06210f; box-shadow: 0 16px 40px -14px rgba(37, 211, 102, .9); }

/* ==========================================================
   GLASS PANELS & CARDS
   ========================================================== */
.panel {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: clamp(1.3rem, 3vw, 2.4rem);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--glass);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line);
  box-shadow: var(--glow);
}
.card__media {
  position: relative;
  overflow: hidden;
  background: var(--night-800);
  aspect-ratio: 4 / 3;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 1.05rem 1.15rem 1.25rem; }
.card__title {
  font-family: var(--font-head);
  font-size: 1.22rem;
  color: var(--white);
  margin: 0 0 .3rem;
  line-height: 1.3;
}
.card__meta {
  font-size: .84rem;
  color: var(--text-faint);
  letter-spacing: .04em;
}
.card__text { font-size: .95rem; color: var(--text-dim); margin: .5rem 0 0; }

.tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 230px;
  padding: 1.5rem;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(90% 80% at 80% 0%, rgba(112, 252, 86, .28), transparent 65%);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--glow); }
.tile:hover::before { opacity: 1; }
.tile__icon { width: 34px; height: 34px; color: var(--turquoise); margin-block-end: auto; }
.tile h3 { margin: .9rem 0 .25rem; }
.tile p { margin: 0; color: var(--text-dim); font-size: .95rem; }
.tile__go {
  margin-block-start: .9rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--turquoise-light);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
html[dir="rtl"] .tile__go svg { transform: scaleX(-1); }

/* ==========================================================
   SECTION HEADINGS
   ========================================================== */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-block-end: .7rem;
}
html[lang="ar"] .eyebrow { letter-spacing: .08em; }

.section-head { max-width: 60ch; margin-block-end: clamp(1.8rem, 4vw, 3rem); }
.section-head p { color: var(--text-dim); margin: 0; }

.section-head--center { margin-inline: auto; text-align: center; }

.rule {
  background-image: linear-gradient(90deg, var(--turquoise), var(--lime));
  width: 74px; height: 2px;
  border: 0;
  margin: 1.4rem 0;
  background: linear-gradient(to right, var(--turquoise), transparent);
}
html[dir="rtl"] .rule {
  background-image: linear-gradient(90deg, var(--turquoise), var(--lime)); background: linear-gradient(to left, var(--turquoise), transparent); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 86vh, 900px);
  padding-block: 4rem 5rem;
  text-align: center;
}
.hero__inner { width: 100%; }
.hero__name {
  margin: 0 0 .35em;
  background: linear-gradient(180deg, #0C2820 18%, #12694A 55%, #14A06A 82%, #45D06A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(20, 160, 106, .18);
}
.hero__sub {
  max-width: 46ch;
  margin: 0 auto 2.2rem;
  font-size: clamp(1.02rem, .95rem + .45vw, 1.28rem);
  color: var(--text-dim);
}
.hero__roles {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-block-end: 1.6rem;
  font-family: var(--font-head);
  font-size: clamp(.95rem, .9rem + .3vw, 1.15rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--turquoise-light);
}
html[lang="ar"] .hero__roles { letter-spacing: .06em; text-transform: none; }
.hero__roles span:nth-child(2) {
  background: var(--lime);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px 3px rgba(244, 211, 94, .6);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  justify-content: center;
}
.hero__scroll {
  position: absolute;
  inset-block-end: 1.6rem;
  inset-inline: 0;
  margin-inline: auto;
  width: 26px;
  color: var(--text-faint);
  animation: bob 2.6s ease-in-out infinite;
}
a.hero__scroll { display: block; }
a.hero__scroll svg { display: block; width: 100%; }

/* One-page home: land section headings below the sticky header. */
.section[id], .guide[id] { scroll-margin-top: 84px; }

/* Successive one-page sections sit closer together than standalone pages. */
.hero + .section, .section + .section { padding-block-start: calc(var(--section-y) * .6); }

/* ---- treatments ---- */
.treatments {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: var(--gap);
}
.treatment {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: 1.3rem 1.4rem;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.treatment__icon { flex: none; width: 26px; height: 26px; color: var(--turquoise); margin-block-start: .15rem; }
.treatment__title { font-size: 1.12rem; margin: 0 0 .3rem; }
.treatment__text { margin: 0; color: var(--text-dim); font-size: .94rem; }

/* ---- FAQ ---- */
.faq { display: grid; gap: .8rem; max-width: 860px; }
.faq__item {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__title { font-size: 1.1rem; margin: 0; }
.faq__chev { flex: none; width: 20px; height: 20px; color: var(--turquoise); transition: transform .25s var(--ease); }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 1.3rem 1.2rem; color: var(--text-dim); }
.faq__a p { margin: 0; max-width: 75ch; }

/* JS filter on the one-page home hides items in place. */
[data-cat][hidden] { display: none !important; }
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: .45; }
  50%      { transform: translateY(7px); opacity: .9; }
}

/* ==========================================================
   GRIDS
   ========================================================== */
.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 265px), 1fr));
}
.grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }

/* Masonry for the art gallery — CSS columns, no JS. */
.masonry {
  column-width: 290px;
  column-gap: var(--gap);
}
.masonry > * {
  break-inside: avoid;
  margin-block-end: var(--gap);
  display: block;
}

/* ==========================================================
   FILTER PILLS
   ========================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-block-end: 2rem;
}
.pill {
  padding: .48rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s var(--ease);
}
.pill:hover { color: var(--white); border-color: var(--turquoise); }
.pill[aria-pressed="true"], .pill.is-active {
  background: var(--turquoise);
  border-color: var(--turquoise);
  color: #FFFFFF;
  font-weight: 600;
}

/* ==========================================================
   ARTWORK / MEDIA FIGURES
   ========================================================== */
.art {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--night-800);
  cursor: zoom-in;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.art:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--glow); }
.art img { width: 100%; display: block; transition: transform .8s var(--ease); }
.art:hover img { transform: scale(1.05); }
.art__cap {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 2.6rem .95rem .85rem;
  background: linear-gradient(to top, rgba(6, 11, 30, .92), transparent);
  color: var(--white);
  transform: translateY(12%);
  opacity: 0;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.art:hover .art__cap,
.art:focus-visible .art__cap { opacity: 1; transform: translateY(0); }
.art__cap strong { display: block; font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; }
.art__cap span { font-size: .82rem; color: var(--text-dim); }
@media (hover: none) {
  .art__cap { opacity: 1; transform: none; }
}

.zoom { cursor: zoom-in; }

.badge {
  display: inline-block;
  padding: .18rem .6rem;
  border-radius: 999px;
  background: rgba(20, 160, 106, .16);
  border: 1px solid var(--line);
  color: var(--turquoise-light);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
html[lang="ar"] .badge { letter-spacing: 0; text-transform: none; }

/* ==========================================================
   LIGHTBOX
   ========================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(.8rem, 3vw, 2.5rem);
  background: rgba(10, 32, 25, .93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure {
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin: 0;
}
.lightbox__img {
  max-height: 74vh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 90px -30px #000;
  object-fit: contain;
}
.lightbox__cap { text-align: center; color: var(--text-dim); }
.lightbox__cap strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--white);
}
.lightbox__cap p { margin: .4rem auto 0; max-width: 62ch; font-size: .95rem; }

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: var(--mist);
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.lightbox__btn:hover { background: var(--turquoise); color: var(--night-900); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { inset-block-start: 1rem; inset-inline-end: 1rem; }
.lightbox__prev { inset-inline-start: 1rem; }
.lightbox__next { inset-inline-end: 1rem; }
html[dir="rtl"] .lightbox__prev svg,
html[dir="rtl"] .lightbox__next svg { transform: scaleX(-1); }

/* ==========================================================
   ABOUT
   ========================================================== */
.about-grid {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 860px) {
  .about-grid { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
}
.portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--glow);
}
.portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

.prose-head {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.prose-head .icon { color: var(--turquoise); width: .85em; height: .85em; }

.prose { max-width: 68ch; }
.prose :is(h2, h3) { margin-block-start: 1.8em; }
.prose :is(h2, h3):first-child { margin-block-start: 0; }
.prose img { border-radius: var(--radius-sm); margin-block: 1.4rem; }
.prose blockquote {
  margin: 1.6rem 0;
  padding-inline-start: 1.2rem;
  border-inline-start: 2px solid var(--turquoise);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.2rem;
}
.prose ul, .prose ol { padding-inline-start: 1.4rem; }
.prose li { margin-block-end: .4rem; }
.prose a { text-decoration: underline; }

/* ==========================================================
   KIDS
   ========================================================== */
.kid__who {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  color: var(--turquoise-light);
  margin-block-start: .35rem;
}
.kid__who svg { width: 15px; height: 15px; }

/* ==========================================================
   BLOG
   ========================================================== */
.post-head { max-width: 70ch; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  color: var(--text-faint);
  font-size: .88rem;
  margin-block-end: 1.2rem;
}
.post-cover {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-block: 2rem;
}
.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; }

/* ==========================================================
   CERTIFICATES
   ========================================================== */
.cert {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.cert__frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--night-800);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}
.cert__frame img { width: 100%; height: 100%; object-fit: cover; }
.cert__pdf {
  display: grid;
  place-items: center;
  gap: .5rem;
  color: var(--turquoise-light);
  text-decoration: none;
  font-size: .9rem;
  padding: 1rem;
  text-align: center;
}
.cert__pdf svg { width: 42px; height: 42px; }


.beforeafter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.beforeafter figure { margin: 0; position: relative; }
.beforeafter figcaption {
  position: absolute;
  inset-block-start: .5rem;
  inset-inline-start: .5rem;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: rgba(10, 32, 25, .78);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact-grid {
  display: grid;
  gap: clamp(1.4rem, 3.5vw, 2.6rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem; }
.info-list li { display: flex; gap: .85rem; align-items: flex-start; }
.info-list svg { width: 20px; height: 20px; color: var(--turquoise); flex: none; margin-block-start: .3rem; }
.info-list strong { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
html[lang="ar"] .info-list strong { letter-spacing: .04em; text-transform: none; }
.info-list a { text-decoration: none; }

/* Phone numbers must read left-to-right even inside RTL text. */
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.socials { display: flex; gap: .6rem; margin-block-start: 1.4rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--mist);
  transition: all .25s var(--ease);
}
.socials a:hover { background: var(--turquoise); color: var(--night-900); border-color: var(--turquoise); }
.socials svg { width: 20px; height: 20px; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-block-start: 1.6rem;
  aspect-ratio: 16 / 10;
  background: var(--night-800);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------------------------------------------------------- forms */
.field { margin-block-end: 1.05rem; }
.field label {
  display: block;
  font-size: .86rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-block-end: .4rem;
}
.field .req { color: var(--turquoise); }

input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], input[type="number"], input[type="url"],
input[type="date"], select, textarea {
  width: 100%;
  padding: .78rem .95rem;
  font: inherit;
  font-size: .97rem;
  color: var(--white);
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--turquoise);
  box-shadow: 0 0 0 3px rgba(20, 160, 106, .18);
}
textarea { min-height: 150px; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232EC4C6' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: 18px;
  padding-inline-end: 2.4rem;
}
html[dir="rtl"] select { background-position: left .8rem center; padding-inline-end: .95rem; padding-inline-start: 2.4rem; }
::placeholder { color: var(--text-faint); }

.honeypot { position: absolute; inset-inline-start: -9999px; opacity: 0; height: 0; overflow: hidden; }

.notice {
  padding: .85rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(20, 160, 106, .1);
  margin-block-end: 1.2rem;
  font-size: .94rem;
}
.notice--error { border-color: rgba(255, 130, 130, .45); background: rgba(255, 90, 90, .1); }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  margin-block-start: var(--section-y);
  border-block-start: 1px solid var(--line-soft);
  background: linear-gradient(to bottom, transparent, rgba(20, 160, 106, .09));
  padding-block: 3rem 2rem;
  font-size: .93rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  margin-block-end: 2.2rem;
}
.footer-grid h2 {
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-block-end: .9rem;
}
html[lang="ar"] .footer-grid h2 { letter-spacing: .04em; text-transform: none; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-grid a { color: var(--text-dim); text-decoration: none; }
.footer-grid a:hover { color: var(--turquoise-light); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: space-between;
  align-items: center;
  padding-block-start: 1.4rem;
  border-block-start: 1px solid var(--line-soft);
  color: var(--text-faint);
  font-size: .86rem;
}

/* ==========================================================
   EMPTY STATE
   ========================================================== */
.empty {
  text-align: center;
  padding: clamp(2.5rem, 8vw, 5rem) 1rem;
  color: var(--text-faint);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ==========================================================
   SCROLL REVEAL
   ========================================================== */
/* Only hide content when JavaScript is present to bring it back —
   the .js class is set by an inline script in <head>. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal-stagger.is-in > * { opacity: 1; transform: none; }

/* ==========================================================
   REDUCED MOTION — the ambient sky goes completely still
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .sky__blob, .sky__swirls, .star, .hero__scroll { animation: none !important; }
  .star { opacity: .6 !important; }
  .reveal, .reveal-stagger > *,
  .js .reveal, .js .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================
   PRINT
   ========================================================== */
@media print {
  .sky, .site-header, .site-footer, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
}
