/* Dr Imane DARI BENGHANEM — Pneumo-phtisiologie & allergologie, Casablanca */

:root {
  /* Palette taken from the practice's card: deep navy, coral lungs, warm paper */
  --paper: #f7f4ee;
  --paper-2: #efe9df;
  --white: #ffffff;
  --sky: #e6eef5;
  --sky-2: #d5e2ee;
  --ink: #0f2a44;
  --ink-2: #1c3d5e;
  --ink-soft: #3d5670;
  --muted: #62758a;
  --line: rgba(15, 42, 68, .12);
  --line-2: rgba(15, 42, 68, .2);
  --coral: #d9574a;
  --coral-d: #bf4538;
  --coral-soft: #fbe6e2;
  --wa: #1f9d55;
  --wa-d: #178446;
  --ok: #1f9d55;
  --warn: #c2410c;

  --f-display: "Fraunces", "Georgia", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --shadow-s: 0 1px 2px rgba(15, 42, 68, .06), 0 4px 14px rgba(15, 42, 68, .06);
  --shadow: 0 2px 6px rgba(15, 42, 68, .05), 0 18px 40px -12px rgba(15, 42, 68, .18);
  --shadow-l: 0 30px 70px -20px rgba(15, 42, 68, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
  --gutter: clamp(16px, 4vw, 40px);
}

[lang="ar"] {
  --f-display: "Noto Kufi Arabic", "Tahoma", sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Tahoma", system-ui, sans-serif;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[lang="ar"] body { font-size: 17px; line-height: 1.85; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4 { letter-spacing: 0; line-height: 1.45; font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
em { font-style: italic; }
h1 em, h2 em { color: var(--coral); font-weight: 400; }
[lang="ar"] h1 em, [lang="ar"] h2 em { font-style: normal; font-weight: 600; }
::selection { background: var(--coral); color: #fff; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; top: -60px; inset-inline-start: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------------ type helpers */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--coral);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .92rem; }
.eyebrow--light { color: #ff9f93; }

.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--sky { background: var(--sky); }
.section--sand { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #dfe8f1; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink h2 em { color: #ff9f93; }

.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.section__head > p { margin-top: 18px; color: var(--ink-soft); font-size: 1.08rem; max-width: 620px; }
.section--ink .section__head p { color: #b9c9d9; }
.section__head--split { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.section__head--split > p { margin: 0; }
.section__head--start { margin-bottom: 0; }
.section__head--start .btn { margin-top: 30px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: .98rem; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--lg { padding: 16px 28px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--coral { --bg: var(--coral); box-shadow: 0 10px 24px -10px rgba(217, 87, 74, .7); }
.btn--coral:hover { --bg: var(--coral-d); }
.btn--ink { --bg: var(--ink); }
.btn--ink:hover { --bg: var(--ink-2); box-shadow: var(--shadow); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-2); }
.btn--ghost:hover { --bg: var(--white); --bd: var(--white); box-shadow: var(--shadow-s); }
.btn--ghost .icon--fill { color: var(--wa); }
.btn--wa { --bg: var(--wa); box-shadow: 0 10px 24px -12px rgba(31, 157, 85, .8); }
.btn--wa:hover { --bg: var(--wa-d); }
.btn--light { --bg: rgba(255, 255, 255, .1); --fg: #fff; --bd: rgba(255, 255, 255, .28); }
.btn--light:hover { --bg: #fff; --fg: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.header.is-scrolled { background: rgba(247, 244, 238, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
.header__inner { display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  background: var(--ink); color: #ff9f93;
}
.brand__mark .icon { width: 26px; height: 26px; stroke-width: 1.6; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-family: var(--f-display); font-weight: 600; font-size: 1.06rem; line-height: 1.15; white-space: nowrap; letter-spacing: -.005em; }
.brand__tag { font-size: .74rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
[lang="ar"] .brand__tag { letter-spacing: 0; font-size: .8rem; text-transform: none; }
.brand--light .brand__mark { background: rgba(255, 255, 255, .08); }
.brand--light .brand__tag { color: #9fb2c6; }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; gap: 4px; }
.nav__link { position: relative; display: block; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .94rem; color: var(--ink-soft); transition: color .2s, background-color .2s; }
.nav__link:hover { color: var(--ink); background: rgba(15, 42, 68, .05); }
.nav__link.is-active { color: var(--ink); background: var(--white); box-shadow: var(--shadow-s); }
.nav__item--compact, .lang-mobile { display: none; }

.header__actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(15, 42, 68, .06); }
.lang a, .lang-mobile a { min-width: 34px; padding: 5px 9px; text-align: center; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--muted); transition: background-color .2s, color .2s; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current], .lang-mobile a[aria-current] { background: var(--ink); color: #fff; }

.menu-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--ink); cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: calc(var(--header-h) + clamp(32px, 6vw, 72px)) 0 clamp(48px, 6vw, 72px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 88%; z-index: -2;
  background:
    radial-gradient(60% 70% at 85% 20%, rgba(213, 226, 238, .95), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(251, 230, 226, .7), transparent 70%);
}
[dir="rtl"] .hero::before { transform: scaleX(-1); }
.hero__rings { position: absolute; z-index: -1; top: 46%; inset-inline-end: 22%; width: 0; height: 0; pointer-events: none; }
.hero__rings span {
  position: absolute; left: 50%; top: 50%; border-radius: 50%;
  border: 1.5px solid rgba(15, 42, 68, .08);
  transform: translate(-50%, -50%) scale(.92);
  animation: breathe 7s ease-in-out infinite;
}
.hero__rings span:nth-child(1) { width: 520px; height: 520px; }
.hero__rings span:nth-child(2) { width: 760px; height: 760px; animation-delay: .5s; border-color: rgba(15, 42, 68, .06); }
.hero__rings span:nth-child(3) { width: 1000px; height: 1000px; animation-delay: 1s; border-color: rgba(217, 87, 74, .08); }
@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(.92); opacity: .7; }
  50% { transform: translate(-50%, -50%) scale(1.04); opacity: 1; }
}

.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.8rem, 6.6vw, 5.4rem); line-height: 1.02; letter-spacing: -.025em; font-weight: 450; margin-bottom: 26px; }
[lang="ar"] .hero__title { font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.35; letter-spacing: 0; }
.hero__title em { display: inline-block; }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft); max-width: 540px; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__phone { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-weight: 700; font-size: 1.05rem; color: var(--ink); padding-bottom: 2px; border-bottom: 1.5px solid var(--line-2); transition: border-color .2s, color .2s; }
.hero__phone .icon { color: var(--coral); }
.hero__phone:hover { border-color: var(--coral); color: var(--coral-d); }

.hero__media { position: relative; }
.hero__frame {
  position: relative; border-radius: 220px 220px var(--r-lg) var(--r-lg);
  overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: var(--shadow-l);
  background: var(--sky-2);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.hero__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15, 42, 68, .35)); }

.hero__status {
  position: absolute; inset-inline-start: -28px; bottom: 44px;
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: var(--r); padding: 14px 18px 14px 16px;
  box-shadow: var(--shadow); min-width: 220px;
  animation: float 6s ease-in-out infinite;
}
.hero__status strong { display: block; font-size: .95rem; line-height: 1.25; }
.hero__status span:not(.dot) { display: block; font-size: .84rem; color: var(--muted); }
.hero__chip {
  position: absolute; inset-inline-end: -14px; top: 72px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 16px;
  font-weight: 600; font-size: .9rem; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite; animation-delay: -3s;
}
.hero__chip .icon { color: #ff9f93; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; position: relative; }
.is-open .dot { background: var(--ok); }
.is-open .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: ping 2s ease-out infinite; }
.is-closed .dot { background: var(--coral); }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

.facts {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-s);
  border: 1px solid var(--line);
}
.fact { display: flex; align-items: center; gap: 16px; padding: 24px 28px; }
.fact + .fact { border-inline-start: 1px solid var(--line); }
.fact__icon { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral); flex: none; }
.fact:nth-child(2) .fact__icon { background: var(--sky); color: var(--ink-2); }
.fact:nth-child(3) .fact__icon { background: var(--paper-2); color: var(--ink); }
.fact__icon .icon { width: 26px; height: 26px; }
.fact strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; line-height: 1.25; }
.fact span { display: block; font-size: .9rem; color: var(--muted); }

/* ------------------------------------------------------------------ intro */
.intro { padding-top: clamp(40px, 6vw, 80px); }
.intro__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro__card {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff; border-radius: var(--r-lg);
  padding: 34px 30px 30px; display: flex; flex-direction: column; gap: 6px;
}
.intro__card::after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  inset-inline-end: -110px; top: -110px; border: 1.5px solid rgba(255, 159, 147, .25);
  box-shadow: 0 0 0 36px rgba(255, 255, 255, .03), 0 0 0 72px rgba(255, 255, 255, .02);
}
.intro__mark { width: 58px; height: 58px; border-radius: 18px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #ff9f93; margin-bottom: 18px; }
.intro__mark .icon { width: 32px; height: 32px; }
.intro__card strong { font-family: var(--f-display); font-size: 1.45rem; font-weight: 500; line-height: 1.2; }
.intro__card span:last-child { color: #b9c9d9; font-size: .95rem; }
.intro__text h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: 28px; }
.intro__text p { font-size: 1.12rem; color: var(--ink-soft); }
.intro__text p:first-child::first-letter { font-family: var(--f-display); float: inline-start; font-size: 3.6em; line-height: .9; padding-inline-end: 10px; color: var(--coral); font-weight: 500; }
[lang="ar"] .intro__text p:first-child::first-letter { float: none; font-size: inherit; padding: 0; color: inherit; }

/* ------------------------------------------------------------------ specialties */
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.spec {
  position: relative; overflow: hidden;
  background: var(--white); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-s); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.spec:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.spec__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.spec__icon { width: 72px; height: 72px; border-radius: 24px; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral); }
.spec--1 .spec__icon { background: var(--sky); color: var(--ink-2); }
.spec__icon .icon { width: 38px; height: 38px; stroke-width: 1.5; }
.spec__num { font-family: var(--f-display); font-size: 3.6rem; font-weight: 400; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--line-2); }
.spec h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 12px; }
.spec > p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 28px; }
.spec__list { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 26px; border-top: 1px dashed var(--line-2); }
.spec__list li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--paper); font-size: .92rem; font-weight: 600; }
.spec__list .icon { width: 1em; height: 1em; color: var(--coral); stroke-width: 2.4; }
.spec--1 .spec__list .icon { color: var(--ink-2); }

/* ------------------------------------------------------------------ exams */
.section--ink { overflow: hidden; }
.section--ink::before {
  content: ""; position: absolute; width: 900px; height: 900px; border-radius: 50%;
  inset-inline-end: -420px; top: -380px;
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 80px rgba(255, 255, 255, .015), 0 0 0 160px rgba(255, 255, 255, .012);
}
.exams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.exam {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--r-lg); padding: 30px 26px;
  transition: background-color .3s, transform .4s var(--ease), border-color .3s;
}
.exam:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 159, 147, .35); transform: translateY(-4px); }
.exam__icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--coral); color: #fff; margin-bottom: 26px; }
.exam__icon .icon { width: 28px; height: 28px; }
.exam h3 { font-size: 1.28rem; margin-bottom: 10px; }
.exam p { font-size: .96rem; color: #b9c9d9; }

/* ------------------------------------------------------------------ gallery */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(150px, 17vw, 230px); gap: 16px; }
.gallery__item { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--sky); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption {
  position: absolute; inset-inline-start: 14px; bottom: 14px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700;
}
.g0 { grid-column: span 4; grid-row: span 2; }
.g1 { grid-column: span 2; }
.g2 { grid-column: span 2; }
.g3 { grid-column: span 4; }
.g4 { grid-column: span 2; }
.g4 img { object-position: 50% 30%; }

/* ------------------------------------------------------------------ booking */
.booking__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.form { position: relative; background: var(--white); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-s); border: 1px solid var(--line); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: .92rem; padding: 0; }
.field legend { margin-bottom: 7px; }
.req { color: var(--coral); }
.opt { color: var(--muted); font-weight: 500; }
.input {
  width: 100%; padding: 13px 16px; border-radius: 14px;
  border: 1.5px solid var(--line-2); background: var(--paper);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  min-height: 50px;
}
.input::placeholder { color: #93a2b1; }
.input:hover { border-color: rgba(15, 42, 68, .32); }
.input:focus { outline: none; border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 4px rgba(15, 42, 68, .08); }
select.input {
  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' stroke='%230f2a44' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-inline-end: 40px;
}
[dir="rtl"] select.input { background-position: left 16px center; }
textarea.input { resize: vertical; min-height: 96px; }
.field__hint { font-size: .82rem; color: var(--muted); }
.field__error { font-size: .84rem; color: var(--warn); font-weight: 600; min-height: 0; }
.field__error:empty { display: none; }
.has-error .input { border-color: var(--warn); background: #fff7f3; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--paper); font-weight: 600; font-size: .92rem; transition: all .2s; }
.choice:hover span { border-color: var(--ink); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.choice input:disabled + span { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--ink); flex: none; }
.form__foot { margin-top: 28px; }
.form__note { margin-top: 12px; font-size: .84rem; color: var(--muted); text-align: center; }
.form__success { display: none; margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: #e8f6ee; color: #135a33; font-size: .94rem; }
.form__success.is-visible { display: block; }
.form__success a { text-decoration: underline; font-weight: 700; }

.aside-card { background: var(--ink); color: #dfe8f1; border-radius: var(--r-xl); padding: clamp(24px, 3vw, 34px); }
.aside-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.aside-card h3 { color: #fff; font-size: 1.4rem; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: .82rem; font-weight: 700; }
.status__sub { margin: 10px 0 18px; font-size: .9rem; color: #9fb2c6; min-height: 1.4em; }

.hours__table { width: 100%; border-collapse: collapse; }
.hours__table th, .hours__table td { padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .08); text-align: start; font-size: .94rem; vertical-align: middle; }
.hours__table th { font-weight: 600; color: #fff; width: 32%; position: relative; }
.hours__table td { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; color: #dfe8f1; }
.hours__table td > span:last-child { text-align: end; white-space: nowrap; }
.hours__table td.closed { color: #7f94aa; }
.hbar { position: relative; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.hbar i { position: absolute; top: 0; bottom: 0; inset-inline-start: calc(var(--a) * 100%); width: calc((var(--b) - var(--a)) * 100%); border-radius: 6px; background: #6f8fae; }
.hours__table tr.is-today th, .hours__table tr.is-today td { color: #fff; }
.hours__table tr.is-today th::after { content: attr(data-today); display: inline-block; margin-inline-start: 8px; padding: 1px 8px; border-radius: 999px; background: var(--coral); font-size: .7rem; font-weight: 700; vertical-align: 2px; }
.hours__table tr.is-today .hbar i { background: #ff9f93; }

.phone-list { display: grid; gap: 10px; margin-top: 22px; }
.phone-list a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); transition: background-color .2s; }
.phone-list a:hover { background: rgba(255, 255, 255, .12); }
.phone-list .icon { width: 22px; height: 22px; color: #ff9f93; }
.phone-list .icon--fill { color: #4ade80; }
.phone-list small { display: block; font-size: .78rem; color: #9fb2c6; }
.phone-list b { font-size: 1.08rem; color: #fff; }

.notice { display: flex; gap: 12px; margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: var(--coral-soft); color: #7a2a21; font-size: .9rem; }
.notice .icon { color: var(--coral); margin-top: 2px; }

/* ------------------------------------------------------------------ access */
.access__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.access__maps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(32px, 5vw, 56px); align-items: stretch; }
.access__maps .plan { display: flex; flex-direction: column; }
.access__maps .plan img { flex: 1; object-fit: cover; }
.access__maps .map { aspect-ratio: auto; min-height: 340px; }
.address { display: flex; gap: 18px; align-items: flex-start; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.address__icon { width: 56px; height: 56px; border-radius: 18px; background: var(--coral); color: #fff; display: grid; place-items: center; flex: none; }
.address__icon .icon { width: 28px; height: 28px; }
.address address { font-family: var(--f-display); font-size: 1.28rem; line-height: 1.45; }
[lang="ar"] .address address { font-size: 1.15rem; line-height: 1.8; }
.access__list { display: grid; gap: 4px; padding: 20px 0; }
.access__list li { display: flex; gap: 16px; align-items: center; padding: 10px 0; }
.access__list .icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--sky); color: var(--ink-2); }
.access__list small { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
[lang="ar"] .access__list small { text-transform: none; letter-spacing: 0; font-size: .86rem; }
.access__list strong { font-weight: 600; font-size: 1.02rem; }
.landmarks__title { font-family: var(--f-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin: 8px 0 12px; }
[lang="ar"] .landmarks__title { letter-spacing: 0; font-size: .92rem; }
.landmarks { display: grid; gap: 8px; margin-bottom: 30px; }
.landmarks li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--white); border-radius: 14px; border: 1px solid var(--line); font-weight: 500; font-size: .96rem; }
.landmarks .icon { color: var(--coral); }

.access__media { display: grid; gap: 16px; }
.plan { margin: 0; position: relative; background: var(--white); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow-s); border: 1px solid var(--line); }
.plan img { border-radius: 16px; width: 100%; }
.plan figcaption { display: flex; align-items: center; gap: 8px; padding: 12px 6px 2px; font-size: .88rem; font-weight: 700; color: var(--ink-soft); }
.plan figcaption .icon { color: var(--coral); }
.map { border-radius: var(--r-lg); overflow: hidden; background: var(--sky); box-shadow: var(--shadow-s); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85); }

/* ------------------------------------------------------------------ google reviews */
.greviews { background: var(--paper-2); }
.greviews__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.greviews__text h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); margin-bottom: 18px; }
.greviews__text > p { color: var(--ink-soft); font-size: 1.08rem; max-width: 560px; }
.gsteps { display: grid; gap: 12px; margin: 30px 0 34px; }
.gsteps li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.gsteps li span { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--white); border: 1.5px solid var(--line-2); font-family: var(--f-display); font-size: .95rem; color: var(--coral); }
.btn .icon--fill { width: 1.1em; height: 1.1em; }

.gcard { position: relative; background: var(--white); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.gcard__head { display: flex; align-items: center; gap: 14px; }
.gcard__g {
  width: 52px; height: 52px; border-radius: 16px; flex: none; display: grid; place-items: center;
  font: 700 1.6rem/1 var(--f-body); color: #fff;
  background: conic-gradient(from -45deg, #ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0);
}
.gcard__head strong { display: block; font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.gcard__head span { display: block; font-size: .88rem; color: var(--muted); }
.gcard__stars { display: flex; gap: 4px; margin: 20px 0 6px; color: #f5b301; }
.gcard__stars .icon { width: 26px; height: 26px; }
.gcard__list { display: grid; gap: 4px; margin: 14px 0 24px; border-top: 1px solid var(--line); }
.gcard__list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0 4px; }
.gcard__list > li > .icon { width: 22px; height: 22px; color: var(--coral); margin-top: 3px; }
.gcard__list small { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
[lang="ar"] .gcard__list small { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.gcard__list span, .gcard__list a { display: block; font-size: .95rem; }
.gcard__list a { font-weight: 700; font-size: 1.05rem; }
.gcard__status { display: inline-flex !important; align-items: center; gap: 8px; margin-top: 8px; padding: 4px 12px; border-radius: 999px; background: var(--paper); font-size: .84rem !important; font-weight: 600; }
.gcard__status span { display: inline !important; font-size: inherit !important; }

/* ------------------------------------------------------------------ reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { margin: 0; background: var(--white); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-s); }
.review__stars { color: #e0a33a; letter-spacing: 2px; margin-bottom: 12px; }
.review blockquote { margin: 0 0 14px; font-family: var(--f-display); font-size: 1.12rem; line-height: 1.5; }
.review figcaption { font-weight: 700; font-size: .9rem; color: var(--muted); }

/* ------------------------------------------------------------------ faq */
.faq__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__grid .section__head { position: sticky; top: calc(var(--header-h) + 24px); }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border-radius: 20px; border: 1px solid var(--line); transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow-s); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq__plus { width: 34px; height: 34px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; flex: none; transition: transform .35s var(--ease), background-color .3s, color .3s; }
.faq__plus .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.faq details[open] .faq__plus { transform: rotate(45deg); background: var(--coral); color: #fff; }
.faq__a { padding: 0 24px 22px; color: var(--ink-soft); }

/* ------------------------------------------------------------------ cta band */
.cta-band { background: var(--coral); color: #fff; padding: clamp(48px, 7vw, 80px) 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  inset-inline-start: -160px; top: -260px; border: 1.5px solid rgba(255, 255, 255, .22);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, .05), 0 0 0 120px rgba(255, 255, 255, .03);
}
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.cta-band h2 em { color: var(--ink); }
.cta-band p { margin-top: 8px; color: rgba(255, 255, 255, .88); font-size: 1.06rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn--wa { --bg: var(--ink); box-shadow: none; }
.cta-band .btn--wa:hover { --bg: var(--ink-2); }

/* ------------------------------------------------------------------ footer */
.footer { background: var(--ink); color: #b9c9d9; padding: clamp(56px, 7vw, 88px) 0 28px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer__about .brand { color: #fff; margin-bottom: 18px; }
.footer__about p { max-width: 380px; }
.footer h4 { font-family: var(--f-body); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
[lang="ar"] .footer h4 { letter-spacing: 0; font-size: .95rem; }
.footer ul { display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer__social { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.footer__social h4 { width: 100%; margin-bottom: 4px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .84rem; color: #7f94aa; }

.wa-float {
  position: fixed; z-index: 40; bottom: 22px; inset-inline-end: 22px;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 14px 30px -10px rgba(31, 157, 85, .8);
  transition: transform .3s var(--ease), background-color .2s;
}
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); background: var(--wa-d); }

/* ------------------------------------------------------------------ motion */
.js .in { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * .1s + .05s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * .08s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero__media.in { animation-name: rise-media; }
@keyframes rise-media { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .in, .js .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .brand__tag { display: none; }
  .nav__link { padding: 8px 10px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: block; }
  .lang { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 49;
    background: var(--paper); padding: 24px var(--gutter) 40px;
    display: flex; flex-direction: column; gap: 24px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; gap: 2px; }
  .nav__link { font-family: var(--f-display); font-size: 1.7rem; font-weight: 500; padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: none !important; box-shadow: none !important; }
  .nav__item--compact { display: block; }
  .nav__item--compact .nav__link { color: var(--coral); }
  .lang-mobile { display: flex; gap: 8px; }
  .lang-mobile a { padding: 10px 16px; border: 1.5px solid var(--line-2); font-size: .95rem; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; width: 100%; margin: 0 auto; }
  .hero__frame { aspect-ratio: 4 / 3.3; border-radius: 180px 180px var(--r-lg) var(--r-lg); }
  .hero__status { inset-inline-start: 12px; bottom: 16px; }
  .hero__chip { inset-inline-end: 12px; top: 20px; }
  .hero__rings { top: 30%; inset-inline-end: 10%; }

  .intro__grid, .faq__grid, .access__grid, .booking__grid, .greviews__grid { grid-template-columns: 1fr; }
  .faq__grid .section__head { position: static; }
  .exams { grid-template-columns: 1fr 1fr; }
  .section__head--split { grid-template-columns: 1fr; gap: 16px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .header__cta { display: none; }
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { border-inline-start: 0; border-top: 1px solid var(--line); }
  .fact { padding: 18px 20px; }
  .specs { grid-template-columns: 1fr; }
  .spec { border-radius: var(--r-lg); }
  .spec__num { font-size: 2.6rem; }
  .spec__icon { width: 60px; height: 60px; border-radius: 20px; }
  .exams { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 10px; }
  .access__maps { grid-template-columns: 1fr; }
  .g0 { grid-column: 1 / -1; grid-row: span 2; }
  .g1, .g2 { grid-column: span 1; }
  .g3 { grid-column: 1 / -1; }
  .g4 { grid-column: 1 / -1; grid-row: span 2; }
  .gallery__item { border-radius: var(--r); }
  .form__grid { grid-template-columns: 1fr; }
  .form { border-radius: var(--r-lg); }
  .aside-card { border-radius: var(--r-lg); }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__status { min-width: 0; padding: 12px 14px; }
  .hero__chip { font-size: .82rem; padding: 8px 12px; }
  .cta-band__actions, .cta-band__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .wa-float { width: 54px; height: 54px; bottom: 16px; inset-inline-end: 16px; }
  .brand__name { font-size: .98rem; }
}

@media (max-width: 400px) {
  .brand__mark { width: 38px; height: 38px; border-radius: 12px; }
  .brand__name { font-size: .9rem; }
  .hero__title { font-size: 2.5rem; }
  .hours__table td { grid-template-columns: 1fr; gap: 6px; }
  .hours__table td > span:last-child { text-align: start; }
}
