:root {
  --ink: #0b1220;
  --paper: #f4f7fb;
  --mist: #5a6b7c;
  --navy: #112e72;
  --navy-deep: #0c2258;
  --ice: #c8daf5;
  --ice-soft: #e8effa;
  --wa: #128c7e;
  --line: rgba(11, 18, 32, 0.1);
  --shadow: 0 18px 50px rgba(11, 18, 32, 0.14);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Outfit", system-ui, sans-serif;
  --display: "Playfair Display", Georgia, serif;
  --ar: "IBM Plex Sans Arabic", "Outfit", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  padding-bottom: 96px;
}
html[lang="ar"] body { font-family: var(--ar); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.75rem 1rem; border-radius: 8px;
}
.skip:focus { top: 1rem; }

.demo-bar {
  text-align: center; font-size: 0.72rem; letter-spacing: 0.06em;
  padding: 0.5rem 1rem; background: #05080f; color: var(--ice);
}

/* Floating Mattar-style nav */
.nav {
  position: sticky; top: 0.65rem; z-index: 70;
  padding: 0 0.75rem; pointer-events: none;
}
.nav-shell {
  pointer-events: auto;
  width: min(1120px, 100%);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 64px; padding: 0.55rem 0.85rem 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.25s var(--ease);
}
.nav.is-solid .nav-shell { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12); }
.brand img { height: 36px; width: auto; }
.nav-links {
  display: flex; gap: 1.15rem; font-size: 0.88rem; font-weight: 600; color: var(--mist);
}
.nav-links a {
  min-height: 44px; display: inline-flex; align-items: center;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--navy); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-phone {
  font-size: 0.82rem; font-weight: 700; color: var(--navy);
  display: none; min-height: 44px; align-items: center;
}
.lang {
  min-height: 44px; padding: 0.4rem 0.9rem; border: 1px solid var(--line);
  border-radius: 12px; font-weight: 600; background: #fff;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.8rem 1.3rem; font-size: 0.9rem; font-weight: 700;
  border-radius: 12px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid rgba(17, 46, 114, 0.35); outline-offset: 3px; }
.btn-lg { min-height: 54px; padding: 1rem 1.5rem; font-size: 0.98rem; }
.btn-navy {
  background: var(--navy); color: #fff;
  box-shadow: 0 10px 28px rgba(17, 46, 114, 0.32);
}
.btn-navy:hover { background: var(--navy-deep); }
.btn-light {
  background: #fff; color: var(--ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.4); color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.btn-outline {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.btn-wa {
  background: var(--wa); color: #fff;
  box-shadow: 0 10px 24px rgba(18, 140, 126, 0.28);
}

/* Dark prestige hero with real clinic photo */
.hero {
  position: relative;
  margin-top: -4.5rem;
  padding: 8.5rem 0 4rem;
  min-height: min(92svh, 820px);
  display: grid; align-items: center;
  background: #05080f;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  background: url("images/clinic-2.jpg") center 45%/cover;
  transform: scale(1.04);
}
.hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 8, 15, 0.45) 0%, rgba(5, 8, 15, 0.62) 42%, rgba(5, 8, 15, 0.92) 100%),
    radial-gradient(700px 380px at 50% 20%, rgba(17, 46, 114, 0.28), transparent 65%);
}
.hero-stage {
  position: relative; z-index: 1;
  text-align: center; max-width: 44rem;
}
.hero-badge {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.5rem; margin: 0 0 1.35rem; padding: 0.45rem 0.95rem;
  border-radius: 999px; background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem; font-weight: 700; color: var(--ice);
}
.stars { letter-spacing: 0.08em; color: #f0d48a; }
.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  font-weight: 700; line-height: 1.08;
}
html[lang="ar"] .hero h1 { font-family: var(--ar); }
.hero-line-1 { display: block; color: #fff; }
.hero-line-2 { display: block; color: var(--ice); }
.hero-sub {
  margin: 0 auto 1.7rem; max-width: 42ch;
  color: rgba(255, 255, 255, 0.72); font-size: 1.05rem;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  justify-content: center; margin-bottom: 2.4rem;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; max-width: 40rem; margin-inline: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.4rem;
}
.hstat { text-align: center; padding: 0 0.5rem; }
.hstat + .hstat { border-inline-start: 1px solid rgba(255, 255, 255, 0.12); }
.hstat strong {
  display: block; font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.15;
}
html[lang="ar"] .hstat strong { font-family: var(--ar); }
.hstat span { font-size: 0.72rem; color: rgba(255, 255, 255, 0.5); font-weight: 600; }

.book-bar {
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(11, 18, 32, 0.05);
}
.book-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.15rem 0;
}
.book-inner strong { display: block; font-size: 1.05rem; }
.book-inner span { color: var(--mist); font-size: 0.9rem; }
.book-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.section { padding: 5.2rem 0; }
.section.soft { background: var(--ice-soft); }
.section.dark {
  background: var(--ink); color: #fff;
  background-image: radial-gradient(600px 280px at 20% 0%, rgba(17, 46, 114, 0.35), transparent 60%);
}
.section-head { max-width: 36rem; margin-bottom: 2.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.row {
  display: flex; justify-content: space-between; gap: 1.5rem;
  align-items: end; max-width: none;
}
.section-head.light .lead { color: rgba(255, 255, 255, 0.65); }
.label {
  margin: 0 0 0.5rem; font-size: 0.74rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--navy); font-weight: 800;
}
.section.dark .label { color: var(--ice); }
.label.soft { color: #8aa0c4; letter-spacing: 0.1em; }
h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  font-weight: 700; line-height: 1.2;
  font-family: var(--display);
}
html[lang="ar"] h2 { font-family: var(--ar); }
.lead { margin: 0; color: var(--mist); font-size: 1.05rem; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.spec {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(11, 18, 32, 0.05);
  display: flex; flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.spec:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.spec.featured { grid-column: span 2; grid-row: span 2; }
.spec-photo {
  width: 100%; aspect-ratio: 16/11; object-fit: cover;
  background: #1a2f5c;
}
.spec.featured .spec-photo { aspect-ratio: 16/10; min-height: 220px; }
.spec-visual {
  min-height: 140px;
  background: linear-gradient(145deg, #1a2f5c, #0b1220);
}
.spec.featured .spec-visual { min-height: 220px; }
.spec-body { padding: 1.25rem 1.2rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.spec-body h3 {
  margin: 0 0 0.45rem; font-size: 1.2rem;
  font-family: var(--display);
}
html[lang="ar"] .spec-body h3 { font-family: var(--ar); }
.spec.featured h3 { font-size: 1.55rem; }
.spec-body p { margin: 0 0 1rem; color: var(--mist); font-size: 0.95rem; flex: 1; }
.text-link {
  font-weight: 700; color: var(--navy); font-size: 0.9rem;
  margin-top: auto;
}
.text-link:hover { text-decoration: underline; }

.why-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: center;
}
.checks { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.65rem; }
.checks li {
  padding: 0.95rem 1.05rem 0.95rem 2.4rem; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); position: relative;
}
html[dir="rtl"] .checks li { padding: 0.95rem 2.4rem 0.95rem 1.05rem; }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 1rem; top: 50%;
  width: 10px; height: 10px; border-radius: 50%; background: var(--navy);
  transform: translateY(-50%);
}
.why-photo {
  position: relative; margin: 0; border-radius: 22px; overflow: hidden;
  min-height: 420px; box-shadow: var(--shadow);
}
.why-photo > img {
  width: 100%; height: 100%; min-height: 420px; object-fit: cover;
}
.why-score-overlay {
  position: absolute; inset-inline: 1rem; bottom: 1rem;
  background: rgba(11, 18, 32, 0.88); color: #fff;
  border-radius: 18px; padding: 1.4rem 1.3rem; text-align: center;
  backdrop-filter: blur(8px);
}
.why-score {
  margin: 0; font-family: var(--display);
  font-size: 3.2rem; line-height: 1; color: var(--ice);
}
html[lang="ar"] .why-score { font-family: var(--ar); }
.why-stars { margin: 0.15rem 0 0.7rem; color: #f0d48a; letter-spacing: 0.12em; }
.why-score-overlay p:not(.why-score):not(.why-stars) {
  margin: 0 0 1rem; color: rgba(255, 255, 255, 0.72); font-size: 0.92rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.gal {
  margin: 0; position: relative; border-radius: 16px; overflow: hidden;
  min-height: 180px; background: #111;
}
.gal.wide { grid-column: span 2; grid-row: span 2; min-height: 380px; }
.gal img {
  width: 100%; height: 100%; min-height: inherit; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gal:hover img { transform: scale(1.04); }
.gal figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 1.4rem 0.9rem 0.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff; font-size: 0.85rem; font-weight: 700;
}

.tech-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.tech-grid article {
  padding: 1.4rem 1.25rem; border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.tech-grid h3 {
  margin: 0 0 0.45rem; font-size: 1.15rem;
  font-family: var(--display); color: var(--ice);
}
html[lang="ar"] .tech-grid h3 { font-family: var(--ar); }
.tech-grid p { margin: 0; color: rgba(255, 255, 255, 0.65); font-size: 0.95rem; }

.score-pill {
  text-align: center; padding: 0.85rem 1.2rem; border-radius: 16px;
  background: var(--ice-soft); border: 1px solid var(--line); min-width: 110px;
}
.score-pill strong {
  display: block; font-family: var(--display); font-size: 2rem; color: var(--navy); line-height: 1;
}
html[lang="ar"] .score-pill strong { font-family: var(--ar); }
.score-pill span { font-size: 0.75rem; color: var(--mist); font-weight: 600; }

.reviews {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.reviews blockquote {
  margin: 0; padding: 1.35rem 1.2rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(11, 18, 32, 0.04);
}
.reviews p { margin: 0.5rem 0 1rem; color: var(--mist); }
.reviews footer { font-size: 0.78rem; font-weight: 700; color: var(--navy); }

.visit-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: stretch;
}
.meta { margin: 1.4rem 0; display: grid; gap: 0.9rem; }
.meta div {
  padding-bottom: 0.85rem; border-bottom: 1px solid var(--line);
}
.meta dt {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy); font-weight: 800; margin-bottom: 0.25rem;
}
.meta dd { margin: 0; }
.meta a { color: var(--navy); font-weight: 700; }
.visit-cta { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.map-card {
  border-radius: 22px; min-height: 320px; position: relative; overflow: hidden;
  box-shadow: var(--shadow); background: #0b1220;
}
.map-card > img {
  width: 100%; height: 100%; min-height: 320px; object-fit: cover;
}
.map-pin {
  position: absolute; inset-inline-start: 1.3rem; bottom: 1.3rem;
  background: rgba(255, 255, 255, 0.95); color: var(--ink);
  padding: 1rem 1.15rem; border-radius: 14px; max-width: 16rem;
}
.map-pin strong { display: block; font-size: 1.05rem; margin-bottom: 0.2rem; }
.map-pin span { color: var(--mist); font-size: 0.88rem; }

.cta-band {
  background: #05080f; color: #fff; text-align: center;
  padding: 4.5rem 0;
  background-image: radial-gradient(600px 280px at 50% 0%, rgba(17, 46, 114, 0.5), transparent 65%);
}
.cta-inner h2 {
  margin: 0 0 0.7rem; color: #fff;
}
.cta-inner p {
  margin: 0 auto 1.5rem; max-width: 38ch; color: rgba(255, 255, 255, 0.68);
}

.footer {
  background: #fff; border-top: 1px solid var(--line); padding: 2rem 0 1.5rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: end;
}
.footer-logo { filter: none; margin-bottom: 0.5rem; }
.footer p { margin: 0; color: var(--mist); font-size: 0.9rem; }
.copy { font-size: 0.8rem !important; }

.mobile-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 80;
  display: none; gap: 0.55rem; padding: 0.75rem 0.9rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.mobile-bar .btn { flex: 1; }

.reveal {
  opacity: 0; transform: translateY(16px);
  animation: up 0.7s var(--ease) forwards;
}
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
@keyframes up {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .spec:hover { transform: none; }
}

@media (min-width: 900px) {
  .nav-phone { display: inline-flex; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .spec.featured { grid-column: span 2; grid-row: auto; }
  .why-grid, .visit-grid, .tech-grid, .reviews { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gal.wide { grid-column: span 2; grid-row: auto; min-height: 240px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 1rem 0; }
  .hstat + .hstat { border-inline-start: 0; }
  .hstat:nth-child(odd) { border-inline-end: 1px solid rgba(255, 255, 255, 0.12); }
}

@media (max-width: 640px) {
  .spec-grid { grid-template-columns: 1fr; }
  .spec.featured { grid-column: auto; }
  .gallery { grid-template-columns: 1fr; }
  .gal.wide { grid-column: auto; }
  .section-head.row { flex-direction: column; align-items: start; }
  .mobile-bar { display: flex; }
  .hero { padding-top: 7.5rem; min-height: auto; }
  .nav-phone { display: none; }
}
