:root {
  --bg: #f7fbfa;
  --surface: #ffffff;
  --surface-2: #eef8f6;
  --text: #17332f;
  --muted: #637a76;
  --primary: #0f766e;
  --primary-2: #115e59;
  --accent: #c98b5f;
  --line: rgba(23, 51, 47, .12);
  --shadow: 0 20px 60px rgba(15, 76, 70, .12);
  --radius: 28px;
  --container: min(1160px, calc(100% - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Tahoma, Arial, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: var(--container); margin-inline: auto; }
.skip-link { position: fixed; inset-inline-start: 16px; top: -60px; z-index: 1000; background: #fff; padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 251, 250, .88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(23, 51, 47, .08);
}
.nav-wrap { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: #fff; font-weight: 800; letter-spacing: .5px; background: linear-gradient(135deg, var(--primary), #1aa397); box-shadow: 0 10px 25px rgba(15,118,110,.23); direction: ltr; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; }
.brand small { color: var(--muted); font-size: 11px; line-height: 1.3; }
.main-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 700; }
.main-nav a { transition: color .2s ease, transform .2s ease; }
.main-nav a:hover { color: var(--primary); transform: translateY(-1px); }
.nav-cta { background: var(--primary); color: #fff !important; padding: 10px 16px; border-radius: 14px; }
.menu-button { display: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--surface); box-shadow: 0 8px 24px rgba(23,51,47,.08); padding: 10px; cursor: pointer; }
.menu-button span { display: block; height: 2px; background: var(--text); margin: 5px 0; border-radius: 999px; }

.hero { min-height: 690px; position: relative; display: grid; align-items: center; overflow: hidden; background: #17332f; }
.hero-image { position: absolute; inset: 0; background: url('assets/doctor-ultrasound.webp') center 40%/cover no-repeat; transform: scale(1.01); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 40, 37, .15) 0%, rgba(8, 40, 37, .35) 35%, rgba(8, 40, 37, .85) 100%); }
.hero-content { position: relative; z-index: 2; padding-block: 100px; display: flex; justify-content: flex-start; }
.hero-card { width: min(590px, 100%); background: rgba(255,255,255,.93); border: 1px solid rgba(255,255,255,.75); backdrop-filter: blur(12px); border-radius: 34px; padding: 42px; box-shadow: 0 30px 80px rgba(0,0,0,.18); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); background: rgba(15,118,110,.08); border: 1px solid rgba(15,118,110,.12); padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.hero h1 { margin: 16px 0 8px; font-size: clamp(38px, 6vw, 67px); line-height: 1.25; letter-spacing: -1.5px; }
.hero p { color: #49635f; font-size: 17px; margin: 0 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 15px; padding: 10px 20px; font-weight: 800; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 14px 28px rgba(15,118,110,.2); }
.btn-primary:hover { background: var(--primary-2); }
.btn-ghost { background: rgba(15,118,110,.08); color: var(--primary-2); border-color: rgba(15,118,110,.14); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--text); }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-pills span { font-size: 11px; font-weight: 800; padding: 7px 10px; border-radius: 999px; color: #4d6864; border: 1px solid var(--line); background: rgba(255,255,255,.68); }

.section { padding: 92px 0; }
.intro { background: var(--surface); }
.intro-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.section-copy h2, .section-heading h2, .contact-card h2 { font-size: clamp(29px, 4vw, 45px); line-height: 1.35; margin: 14px 0 16px; letter-spacing: -.7px; }
.section-copy p, .section-heading p { color: var(--muted); max-width: 750px; }
.muted { font-size: 13px; }
.stats-card { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats-card div { padding: 28px 18px; text-align: center; border-inline-start: 1px solid var(--line); }
.stats-card div:first-child { border-inline-start: 0; }
.stats-card strong { display: block; color: var(--primary); font-size: 25px; }
.stats-card span { display: block; color: var(--muted); font-size: 11px; }

.services { background: linear-gradient(180deg, var(--bg), #f0f7f5); }
.section-heading { margin-bottom: 34px; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.service-card { position: relative; min-height: 250px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 45px rgba(23,51,47,.06); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(15,118,110,.25); }
.service-card.accent { background: linear-gradient(145deg, #0f766e, #0c5f59); color: #fff; }
.service-card.accent p { color: rgba(255,255,255,.8); }
.service-card.accent .service-tag { color: #fff; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.12); }
.service-card .icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: var(--surface-2); color: var(--primary); font-size: 24px; font-weight: 900; }
.service-card.accent .icon { background: rgba(255,255,255,.14); color: #fff; }
.service-card h3 { font-size: 22px; margin: 18px 0 9px; }
.service-card p { color: var(--muted); margin: 0 0 20px; }
.service-tag { display: inline-flex; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--primary-2); font-size: 11px; font-weight: 800; }
.service-card.wide { grid-column: 1 / -1; min-height: auto; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.service-card.wide h3 { margin-top: 0; }

.process { background: #17332f; color: #fff; }
.process .eyebrow { color: #b8f1eb; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }
.process .section-heading h2 { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 26px; border-radius: 24px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.step > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.12); font-weight: 900; color: #b8f1eb; }
.step h3 { margin: 16px 0 6px; }
.step p { margin: 0; color: rgba(255,255,255,.68); font-size: 14px; }

.faq { background: var(--surface); }
.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 50px; align-items: start; }
.accordion { display: grid; gap: 12px; }
details { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
summary { cursor: pointer; font-weight: 800; }
details p { color: var(--muted); margin: 12px 0 0; }

.contact { padding-top: 40px; }
.contact-card { position: relative; overflow: hidden; padding: 38px; background: linear-gradient(145deg, #ffffff, #eef8f6); border: 1px solid rgba(15,118,110,.16); border-radius: 34px; box-shadow: var(--shadow); }
.contact-card::before { content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(15,118,110,.08); left: -90px; bottom: -120px; }
.contact-card > * { position: relative; z-index: 1; }
.contact-card p { color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.domain { direction: ltr; text-align: right; font-weight: 900; letter-spacing: .3px; margin-top: 18px; color: var(--primary) !important; }

.site-footer { padding: 34px 0; margin-top: 70px; border-top: 1px solid var(--line); background: #fff; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-row strong, .footer-row span { display: block; }
.footer-row span, .footer-row p { color: var(--muted); font-size: 12px; margin: 0; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 25px); background: #17332f; color: #fff; padding: 10px 16px; border-radius: 14px; font-size: 13px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 100; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 840px) {
  .menu-button { display: block; }
  .main-nav { position: absolute; top: 68px; left: 16px; right: 16px; display: none; padding: 14px; border-radius: 20px; background: rgba(255,255,255,.98); border: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 12px; border-radius: 12px; }
  .nav-cta { text-align: center; margin-top: 4px; }
  .hero { min-height: 630px; align-items: end; }
  .hero-image { background-position: 48% center; }
  .hero-overlay { background: linear-gradient(180deg, rgba(8,40,37,.12), rgba(8,40,37,.86)); }
  .hero-content { padding: 210px 0 32px; }
  .hero-card { padding: 27px; border-radius: 26px; }
  .hero h1 { font-size: 41px; }
  .intro-grid, .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
}

@media (max-width: 620px) {
  :root { --container: min(100% - 22px, 1160px); }
  .nav-wrap { height: 68px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand strong { font-size: 13px; }
  .brand small { font-size: 10px; }
  .hero { min-height: 660px; }
  .hero-card { background: rgba(255,255,255,.96); }
  .hero-actions .btn { width: 100%; }
  .stats-card { grid-template-columns: 1fr; }
  .stats-card div { border-inline-start: 0; border-top: 1px solid var(--line); }
  .stats-card div:first-child { border-top: 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card.wide { grid-column: auto; display: block; }
  .service-card.wide .service-tag { margin-top: 4px; }
  .contact-card { padding: 26px; }
  .contact-actions .btn { width: 100%; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

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

/* مراکز مراجعه */
.centers { background: linear-gradient(180deg, #f7fbfa 0%, #ffffff 100%); }
.center-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.center-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: 0 16px 45px rgba(23,51,47,.07); }
.card-image-button { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #efe7dd; cursor: zoom-in; overflow: hidden; }
.card-image-button img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .35s ease; }
.card-image-button:hover img { transform: scale(1.025); }
.card-image-button span { position: absolute; inset-inline-start: 14px; bottom: 14px; padding: 7px 11px; border-radius: 999px; background: rgba(17,32,29,.76); color: #fff; font-size: 11px; font-weight: 800; backdrop-filter: blur(8px); }
.center-card-body { padding: 24px; }
.center-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.center-title-row h3 { margin: 0; font-size: 21px; line-height: 1.55; }
.center-badge { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--primary); font-size: 10px; font-weight: 900; }
.center-address { color: var(--muted); margin: 13px 0 18px; font-size: 14px; }
.center-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 11px; border-radius: 12px; border: 1px solid rgba(15,118,110,.16); background: rgba(15,118,110,.07); color: var(--primary-2); font-size: 12px; font-weight: 800; direction: rtl; }
.mini-btn:hover { background: rgba(15,118,110,.13); }
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; padding: 22px; background: rgba(4,17,15,.88); backdrop-filter: blur(10px); }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1100px, 96vw); max-height: 88vh; border-radius: 20px; box-shadow: 0 28px 80px rgba(0,0,0,.38); }
.lightbox-close { position: fixed; top: 18px; inset-inline-end: 18px; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
@media (max-width: 840px) { .center-grid { grid-template-columns: 1fr; } }
