:root {
  --navy: #13213a;
  --navy-2: #1c2e4f;
  --navy-deep: #0c1628;
  --gold: #d4a02a;
  --gold-light: #e9c46a;
  --cream: #faf6ee;
  --cream-2: #f3ebdb;
  --text: #1d2433;
  --muted: #5d6679;
  --radius: 20px;
  --shadow: 0 18px 50px -20px rgba(19, 33, 58, 0.35);
  --font: "Tajawal", system-ui, sans-serif;
  --font-latin: "Marcellus", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

.gold { color: var(--gold); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-latin);
  font-size: .95rem;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: 10px;
  position: relative;
  padding-inline: 34px;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  height: 1.5px;
  background: currentColor;
}
.eyebrow::before { right: 0; }
.eyebrow::after { left: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  box-shadow: 0 12px 30px -10px rgba(212, 160, 42, .65);
}
.btn--gold:hover { box-shadow: 0 16px 36px -10px rgba(212, 160, 42, .8); }
.btn--ghost { border: 1.5px solid rgba(19, 33, 58, .25); color: var(--navy); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--sm { padding: 9px 20px; font-size: .95rem; }
.ico { width: 22px; height: 22px; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(19, 33, 58, .07);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand img { height: 60px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; font-weight: 500; }
.nav a:not(.btn) { position: relative; color: var(--navy); }
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .3s ease;
}
.nav a:not(.btn):hover::after { width: 100%; }
.nav-toggle, .nav-burger { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; }
.hero__glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(212, 160, 42, .22), transparent 65%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; color: var(--navy); }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 0 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats {
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
  display: flex;
  gap: 40px;
}
.hero__stats li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__stats strong { direction: ltr; font-family: var(--font-latin); font-size: 2.2rem; color: var(--gold); line-height: 1.1; }
.hero__stats span { color: var(--muted); font-size: .95rem; }

.hero__media { position: relative; justify-self: center; width: min(360px, 100%); }
.hero__case {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
  transform: rotate(-2.5deg);
}
.hero__logo-card {
  position: absolute;
  z-index: 2;
  bottom: -30px;
  right: -40px;
  width: 170px;
  padding: 16px;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }

/* Sections */
.section { padding: 100px 0; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--navy); font-weight: 800; }
.section__head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section__head--light h2 { color: #fff; }
.section__head--light p { color: rgba(255, 255, 255, .7); }

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px -12px rgba(19, 33, 58, .18);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

/* Services */
.services { background: #fff; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service { padding: 34px 30px; background: var(--cream); border: 1px solid rgba(212, 160, 42, .15); box-shadow: none; }
.service__icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--navy);
  margin-bottom: 20px;
}
.service__icon svg { width: 28px; height: 28px; fill: var(--gold); }
.service h3 { font-size: 1.25rem; color: var(--navy); }
.service p { margin: 0; color: var(--muted); }

/* Results */
.results {
  background:
    radial-gradient(circle at 15% 10%, rgba(212, 160, 42, .18), transparent 40%),
    linear-gradient(160deg, var(--navy), var(--navy-deep));
}
.results__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.result {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(233, 196, 106, .25);
  cursor: zoom-in;
}
.result img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s ease; }
.result:hover img { transform: scale(1.05); }

/* Team */
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.doctor { overflow: hidden; display: flex; flex-direction: column; }
.doctor__img { display: block; overflow: hidden; background: var(--cream-2); cursor: zoom-in; }
.doctor__img img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; transition: transform .6s ease; }
.doctor:hover .doctor__img img { transform: scale(1.04); }
.doctor__body { padding: 24px 26px 28px; border-top: 3px solid var(--gold); flex: 1; }
.doctor h3 { font-family: var(--font-latin); font-size: 1.3rem; color: var(--navy); margin-bottom: 4px; direction: ltr; text-align: right; }
.doctor__role { color: var(--gold); font-weight: 700; margin: 0 0 12px; }
.doctor ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.doctor li { position: relative; padding-right: 18px; margin-bottom: 4px; }
.doctor li::before {
  content: "";
  position: absolute;
  right: 0;
  top: .75em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* Contact */
.contact { padding-top: 0; }
.contact__box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 60px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 90% 0%, rgba(212, 160, 42, .25), transparent 45%),
    var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}
.contact__text h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; }
.contact__text p { color: rgba(255, 255, 255, .75); margin: 0 0 18px; }
.contact__phone {
  display: block;
  font-family: var(--font-latin);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gold-light);
  margin-bottom: 22px;
  text-align: right;
}
.contact__social h3 { font-size: 1.2rem; margin-bottom: 20px; }
.social { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.social__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  font-weight: 700;
  direction: ltr;
  justify-content: flex-end;
  transition: background .25s ease, transform .25s ease, border-color .25s ease;
}
.social__item svg { width: 24px; height: 24px; flex-shrink: 0; }
.social__item:hover { transform: translateY(-3px); border-color: transparent; }
.social__item--fb:hover { background: #1877f2; }
.social__item--ig:hover { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.social__item--tt:hover { background: #000; }
.social__item--sc:hover { background: #fffc00; color: #000; }
.social__item--wa:hover { background: #25d366; }
.social__item--wa { grid-column: 1 / -1; }

/* Footer */
.footer { background: var(--navy-deep); color: #f5efe2; padding: 60px 0 30px; }
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer__logo {
  width: 140px;
  height: auto;
  padding: 14px;
  background: #fff;
  border-radius: 20px;
}
.footer__tagline { font-family: var(--font-latin); letter-spacing: .18em; color: var(--gold); margin: 18px 0 14px; text-transform: uppercase; font-size: .9rem; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: rgba(245, 239, 226, .75); }
.footer__nav a:hover { color: var(--gold); }

/* M2 signature */
.m2-signature {
  --m2-sig-text: #f5efe2;
  --m2-sig-accent: #d4a02a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  letter-spacing: 0.2px;
  text-align: center;
}
.m2-signature__logo { display: inline-flex; align-items: center; line-height: 0; transition: opacity 0.25s ease, transform 0.25s ease; }
.m2-signature__logo:hover { opacity: 0.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: 0.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; }

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .7);
  animation: wa-pulse 2.4s ease-out infinite;
}
.wa-float svg { width: 32px; height: 32px; }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 14, 26, .92);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; max-width: min(900px, 100%); width: auto; border-radius: 16px; cursor: default; }
.lightbox__close {
  position: absolute;
  top: 16px;
  left: 20px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 70px; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta, .hero__stats { justify-content: center; }
  .hero__logo-card { right: -10px; width: 140px; }
  .services__grid, .results__grid, .team__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__box { grid-template-columns: 1fr; padding: 44px 32px; }

  .nav-burger {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    cursor: pointer;
    border-radius: 12px;
    background: var(--navy);
  }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gold);
    position: relative;
    transition: transform .3s ease, background .3s ease;
  }
  .nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; }
  .nav-burger span::before { top: -7px; }
  .nav-burger span::after { top: 7px; }
  .nav-toggle:checked + .nav-burger span { background: transparent; }
  .nav-toggle:checked + .nav-burger span::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span::after { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: absolute;
    top: 78px;
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 24px;
    background: var(--cream);
    border-bottom: 1px solid rgba(19, 33, 58, .08);
    box-shadow: 0 20px 30px -20px rgba(19, 33, 58, .3);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
  }
  .nav a:not(.btn) { width: 100%; padding: 14px 0; border-bottom: 1px solid rgba(19, 33, 58, .07); text-align: center; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; }
  .nav-toggle:checked ~ .nav { opacity: 1; visibility: visible; transform: none; }
}

@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 70px; }
  .hero__stats { gap: 26px; }
  .hero__stats strong { font-size: 1.8rem; }
  .services__grid, .team__grid { grid-template-columns: 1fr; }
  .results__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .result { border-radius: 14px; }
  .contact__box { padding: 36px 22px; border-radius: 24px; }
  .social { grid-template-columns: 1fr; }
  .btn { padding: 13px 22px; }
  .wa-float { width: 54px; height: 54px; bottom: 18px; right: 18px; }
  .m2-signature { gap: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
