:root {
  --blue: #2370b5;
  --blue-deep: #14467a;
  --teal: #19a59c;
  --teal-soft: #e6f6f4;
  --ink: #0f2a3d;
  --muted: #5b7083;
  --line: #e3ecf2;
  --bg: #ffffff;
  --bg-alt: #f5fafb;
  --grad: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  --radius: 22px;
  --shadow: 0 18px 50px -20px rgba(20, 70, 122, .35);
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Tajawal", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.latin { font-family: "Poppins", sans-serif; direction: ltr; unicode-bidi: isolate; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px; background: var(--grad);
  display: grid; place-items: center; flex-shrink: 0;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-text { line-height: 1.15; }
.brand-text b { display: block; font-family: "Poppins", sans-serif; font-size: 19px; font-weight: 600; letter-spacing: .3px; direction: ltr; text-align: right; }
.brand-text b span { color: var(--teal); }
.brand-text small { color: var(--muted); font-size: 13px; }
.nav { display: flex; gap: 28px; font-weight: 500; font-size: 16px; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--blue); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 16px;
  transition: transform .2s, box-shadow .2s, background .2s;
  font-family: inherit; border: 0; cursor: pointer;
}
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 28px -12px rgba(25, 165, 156, .8); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(35, 112, 181, .8); }
.btn-ghost { background: #fff; color: var(--blue-deep); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.header .btn { padding: 10px 20px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(25, 165, 156, .13), transparent 70%),
    radial-gradient(700px 500px at 0% 90%, rgba(35, 112, 181, .10), transparent 70%);
  z-index: -1;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 60px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-soft); color: var(--teal);
  padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.25; font-weight: 800; margin: 20px 0 8px; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.script { font-family: "Great Vibes", cursive; font-size: clamp(30px, 3.4vw, 42px); color: var(--blue); direction: ltr; display: block; text-align: right; line-height: 1.3; }
.hero p.lead { color: var(--muted); font-size: 19px; margin: 18px 0 30px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.creds { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cred {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 10px 16px; font-size: 14.5px; font-weight: 500;
}
.cred i { width: 34px; height: 34px; border-radius: 10px; background: var(--teal-soft); display: grid; place-items: center; color: var(--teal); flex-shrink: 0; }
.cred i svg { width: 18px; height: 18px; }

.hero-media { position: relative; }
.hero-photo {
  position: relative; border-radius: 200px 200px var(--radius) var(--radius);
  overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow);
  background: var(--grad);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero-badge {
  position: absolute; background: #fff; border-radius: 18px; box-shadow: var(--shadow);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-size: 14px;
}
.hero-badge b { display: block; font-size: 22px; line-height: 1.1; color: var(--blue-deep); }
.hero-badge.b1 { bottom: 40px; right: -30px; }
.hero-badge.b2 { top: 60px; left: -30px; }
.hero-badge .dot { width: 42px; height: 42px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; }
.hero-badge .dot svg { width: 22px; height: 22px; }
.foot-deco { position: absolute; width: 140px; opacity: .12; top: -30px; right: -40px; z-index: -1; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.alt { background: var(--bg-alt); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.35; margin-top: 14px; }
.sec-head p { color: var(--muted); margin-top: 12px; }

/* About */
.about .wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.about-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-gallery img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; }
.about-gallery .tall { grid-row: span 2; aspect-ratio: 3 / 5; }
.about-gallery .sq { aspect-ratio: 1; }
.about h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; line-height: 1.35; margin: 14px 0 18px; }
.about p { color: var(--muted); margin-bottom: 16px; }
.checks { list-style: none; display: grid; gap: 14px; margin-top: 26px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checks li::before {
  content: ""; width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; margin-top: 3px;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.svc .ic { width: 58px; height: 58px; border-radius: 18px; background: var(--grad); display: grid; place-items: center; color: #fff; margin-bottom: 20px; }
.svc .ic svg { width: 28px; height: 28px; }
.svc h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.svc p { color: var(--muted); font-size: 15.5px; }

/* Cases */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case { border-radius: var(--radius); overflow: hidden; background: #0b1c2a; position: relative; aspect-ratio: 4 / 5; }
.case img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; opacity: .92; }
.case:hover img { transform: scale(1.05); }
.case span {
  position: absolute; bottom: 14px; right: 14px; background: rgba(255, 255, 255, .92);
  padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--blue-deep);
}
.case.wide { grid-column: span 2; aspect-ratio: 8 / 5; }
.note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }

/* Reviews */
.reviews-top { display: flex; align-items: center; justify-content: center; gap: 14px; margin: -30px 0 46px; flex-wrap: wrap; }
.rec { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 700; }
.rec b { color: var(--teal); font-size: 20px; }
.reviews-grid { columns: 3 320px; column-gap: 22px; }
.review {
  break-inside: avoid; margin-bottom: 22px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px 24px; position: relative;
}
.review::before {
  content: "”"; position: absolute; top: 4px; left: 20px; font-size: 80px; line-height: 1;
  font-family: Georgia, serif; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .4;
}
.review p { color: #2c4356; font-size: 16px; }
.review footer { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: "Poppins", sans-serif; font-size: 15px; }
.review footer b { display: block; font-size: 15px; font-family: "Poppins", sans-serif; direction: ltr; text-align: right; }
.review footer small { color: var(--muted); font-size: 13px; }
.stars { color: #f5b301; letter-spacing: 2px; font-size: 14px; margin-inline-start: auto; }

/* Clinics */
.clinics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.clinic {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .25s;
}
.clinic:hover { box-shadow: var(--shadow); }
.clinic-head { background: var(--grad); color: #fff; padding: 24px 26px; position: relative; overflow: hidden; }
.clinic-head::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; border: 26px solid rgba(255, 255, 255, .1); left: -50px; top: -60px; }
.clinic-head small { opacity: .85; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.clinic-head small svg { width: 16px; height: 16px; }
.clinic-head h3 { font-size: 24px; font-weight: 800; margin-top: 4px; }
.clinic-body { padding: 24px 26px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.addr { color: var(--muted); font-size: 15.5px; display: flex; gap: 10px; }
.addr svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--teal); margin-top: 4px; }
.hours { list-style: none; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.hours li { display: flex; justify-content: space-between; padding: 10px 16px; font-size: 15.5px; }
.hours li:nth-child(odd) { background: var(--bg-alt); }
.hours li b { font-weight: 700; }
.hours li span { color: var(--blue-deep); font-weight: 500; }
.tag { align-self: flex-start; background: var(--teal-soft); color: var(--teal); font-weight: 700; font-size: 13.5px; padding: 5px 12px; border-radius: 999px; }
.phones { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.phone {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-radius: 14px; background: var(--bg-alt); font-weight: 700; transition: background .2s, color .2s;
}
.phone:hover { background: var(--teal); color: #fff; }
.phone svg { width: 18px; height: 18px; }
.phone .latin { font-size: 17px; letter-spacing: .5px; }
.map-link { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); font-weight: 700; color: var(--blue); transition: border-color .2s; }
.map-link:hover { border-color: var(--blue); }
.map-link svg { width: 18px; height: 18px; }

/* CTA */
.cta-band { padding: 0 0 96px; }
.cta-box {
  background: var(--grad); border-radius: 32px; color: #fff; padding: 56px 60px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; position: relative; overflow: hidden;
}
.cta-box::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, .08); left: -100px; bottom: -160px; }
.cta-box h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; line-height: 1.35; }
.cta-box p { opacity: .9; margin-top: 8px; }
.cta-box .btn { background: #fff; color: var(--blue-deep); position: relative; z-index: 1; }
.cta-box .btn:hover { transform: translateY(-2px); }

/* Footer */
.footer { background: #0c2235; color: #b9cad8; padding: 64px 0 28px; }
.footer .wrap.top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .brand-text b { color: #fff; }
.footer .brand-text small { color: #8ea6ba; }
.footer p { margin-top: 18px; font-size: 15px; max-width: 360px; }
.footer h4 { color: #fff; font-size: 17px; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; font-size: 15px; }
.footer ul a:hover { color: #fff; }
.social { display: flex; gap: 12px; margin-top: 4px; }
.social a { width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .07); display: grid; place-items: center; transition: background .2s, transform .2s; color: #fff; }
.social a:hover { background: var(--teal); transform: translateY(-3px); }
.social svg { width: 21px; height: 21px; }
.m2-signature {
  --m2-sig-text: #eaf4f8;
  --m2-sig-accent: #3cc9bd;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-family: "Poppins", sans-serif; font-size: 14px; letter-spacing: .2px; text-align: center;
}
.m2-signature__logo { display: inline-flex; align-items: center; line-height: 0; transition: opacity .25s ease, transform .25s ease; }
.m2-signature__logo:hover { opacity: .85; transform: translateY(-2px); }
.m2-signature__logo img { height: 18px; width: auto; max-width: 52px; object-fit: contain; }
.m2-signature__mark {
  display: inline-flex; width: 16px; height: 16px; color: var(--m2-sig-accent);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--m2-sig-accent) 55%, transparent));
  animation: m2-sig-pulse 3.4s ease-in-out infinite;
}
.m2-signature__mark svg { width: 100%; height: 100%; display: block; }
@keyframes m2-sig-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: .9; }
  50% { transform: scale(1.12) rotate(45deg); opacity: 1; }
}
.m2-signature__tag, .m2-signature__tag strong { color: var(--m2-sig-text); font-size: 13px; }
.m2-signature__year { color: color-mix(in srgb, var(--m2-sig-text) 78%, transparent); font-size: 13px; }
@media (max-width: 575px) { .m2-signature { gap: 8px 10px; } }

/* Floating actions */
.fabs { position: fixed; bottom: 22px; right: 22px; z-index: 60; display: flex; flex-direction: column; gap: 12px; }
.fab {
  width: 58px; height: 58px; border-radius: 50%; color: #fff; display: grid; place-items: center;
  transition: transform .2s;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 26px; height: 26px; }
.fab-call { background: var(--grad); box-shadow: 0 14px 30px -10px rgba(25, 165, 156, .9); animation: pulse 2.4s infinite; }
.fab-wa { background: #25d366; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .9); }
.fab-wa svg { width: 29px; height: 29px; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(25, 165, 156, .55); }
  70% { box-shadow: 0 0 0 18px rgba(25, 165, 156, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 165, 156, 0); }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .fab-call { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .services-grid, .clinics-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-badge.b1 { right: -10px; }
  .hero-badge.b2 { left: -10px; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .hero { padding: 40px 0 70px; }
  .hero .wrap, .about .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { max-width: 420px; margin-inline: auto; width: 100%; }
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .case.wide { grid-column: span 2; }
  .cta-box { grid-template-columns: 1fr; padding: 40px 28px; text-align: center; }
  .cta-box .btn { justify-self: center; }
  .footer .wrap.top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .fabs { bottom: 16px; right: 16px; gap: 10px; }
  .fab { width: 52px; height: 52px; }
  .footer { padding-bottom: 140px; }
  .services-grid, .clinics-grid { grid-template-columns: 1fr; }
  .header .wrap { height: 66px; }
  .header .btn span { display: none; }
  .header .btn { padding: 10px 12px; }
  .brand-text small { display: none; }
  .hero-badge { padding: 10px 12px; font-size: 12.5px; }
  .hero-badge b { font-size: 18px; }
  .hero-badge .dot { width: 34px; height: 34px; }
  .hero-badge.b1 { right: 0; bottom: 20px; }
  .hero-badge.b2 { left: 0; top: 30px; }
  .cred { width: 100%; }
}
