/* Alzahra Medical Center — Clalit | one-page site */
:root {
  --ink: #12313D;
  --ink-soft: #33515B;
  --muted: #4A6670;
  --teal-900: #0F3A48;
  --teal-800: #1B5466;
  --teal-link: #0E6E86;
  --green: #007A3D;
  --green-bright: #3FB58A;
  --mint: #E3F2EE;
  --mint-soft: #E7F1EF;
  --line: #DDE7E6;
  --field-line: #C5D6D5;
  --bg: #F4F8F7;
  --white: #FFFFFF;
  --error: #B3261E;
  --font-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-display: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  --radius-lg: 24px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-link); }
a:hover { color: #0A4F61; }
:focus-visible { outline: 3px solid var(--teal-link); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
[dir="ltr"] { unicode-bidi: isolate; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--white); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 28px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 18px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: #006432; color: var(--white); }
.btn-bright { background: var(--green-bright); color: #0B2A33; }
.btn-bright:hover { background: #52C499; color: #0B2A33; }
.btn-ghost { border-color: #8FB3BD; color: var(--white); font-weight: 500; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-outline { border-color: #B9CCCB; color: var(--ink); background: transparent; font-weight: 500; font-size: 16px; min-height: 44px; padding: 8px 22px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand img { height: 60px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--green); }
.nav .btn { color: var(--white); font-size: 16px; min-height: 44px; padding: 8px 22px; }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 12px; width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; border-bottom: 0; }
  .brand img { height: 52px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--teal-900); color: var(--white); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 8%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to left, rgba(18,88,106,.84) 0%, rgba(18,88,106,.72) 36%, rgba(18,88,106,.32) 62%, rgba(18,88,106,.04) 100%); }
.hero-inner { position: relative; min-height: 560px; padding-block: 120px 176px; display: flex; align-items: center; }
.hero-copy { max-width: 600px; display: flex; flex-direction: column; gap: 22px; }
.pill { align-self: flex-start; background: var(--teal-800); color: #CFEBE4; padding: 6px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; }
.hero h1 { font-weight: 700; font-size: clamp(38px, 6vw, 56px); line-height: 1.2; }
.hero-lead { font-size: 20px; color: #E2EEF1; max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 10px; font-size: 15px; color: #DCE9EC; }
.hero-meta a, .hero-meta span.item { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 760px) {
  .hero-shade { background: linear-gradient(to top, rgba(14,70,86,.94) 0%, rgba(14,70,86,.86) 55%, rgba(14,70,86,.55) 100%); }
  .hero-inner { padding-block: 72px 140px; min-height: 0; }
  .hero-lead { font-size: 18px; }
}

/* Stats */
.stats { position: relative; margin-top: -72px; }
.stats-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: 0 18px 48px rgba(15,58,72,.12); padding: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.stat { display: flex; gap: 16px; align-items: flex-start; }
.icon-tile { width: 52px; height: 52px; border-radius: 16px; background: var(--mint); flex: none; display: flex; align-items: center; justify-content: center; color: var(--green); }
.stat-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 38px; color: var(--teal-900); line-height: 1.15; }
.stat-label { color: var(--muted); font-size: 15px; }

/* Section heads */
.section { padding-block: 88px; }
.eyebrow { color: var(--teal-link); font-weight: 600; display: block; margin-bottom: 12px; }
.section-title { font-size: clamp(30px, 4vw, 38px); line-height: 1.3; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 16px; }
.band-white { background: var(--white); border-block: 1px solid var(--line); }
.band-mint { background: var(--mint-soft); }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 96px; padding-bottom: 24px; }
.about-copy { flex: 999 1 460px; min-width: 0; }
.about-copy p { color: var(--muted); font-size: 18px; margin-top: 16px; }
.about-figure { flex: 1 1 440px; min-width: 0; margin: 0; }
.about-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.about-figure figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* Services */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature { background: var(--teal-900); color: var(--white); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.feature .icon-tile { width: 56px; height: 56px; background: var(--teal-800); color: var(--green-bright); }
.feature h3 { font-size: 23px; font-weight: 600; }
.feature p { color: #D3E4E8; font-size: 16px; }
.sub-title { margin: 48px 0 18px; font-size: 22px; font-weight: 600; }
.clinic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.clinic { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; align-items: center; gap: 14px; font-weight: 600; }
.clinic .icon-tile { width: 48px; height: 48px; border-radius: 14px; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
@media (max-width: 960px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: minmax(0, 1fr); } }
.doctor img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 20px; background: var(--mint-soft); }
.doctor h3 { font-size: 20px; font-weight: 600; margin-top: 14px; }
.doctor .spec { color: var(--green); font-weight: 600; font-size: 16px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: 44px; color: var(--green); line-height: 1; display: block; margin-bottom: 10px; }
.step h3 { font-size: 21px; margin-bottom: 6px; }
.step p { color: var(--muted); }

/* Join */
.join { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-block: 96px; }
.join-intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.join-intro p { color: var(--muted); font-size: 18px; }
.trust-note { display: flex; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; font-size: 15px; color: var(--ink-soft); }
.trust-note svg { flex: none; color: var(--green); }
.form-card { flex: 999 1 520px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 40px); }
.form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 16px; }
.field input { font: inherit; font-size: 17px; padding: 14px 16px; border-radius: 12px; background: #F8FBFA; color: var(--ink); min-height: 52px; width: 100%; border: 1.5px solid var(--field-line); }
.field input::placeholder { color: #7A8C92; }
.field input[dir="ltr"] { text-align: right; }
.field input[dir="ltr"]:not(:placeholder-shown) { text-align: left; }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 14px; min-height: 0; }
.field-error:empty { display: none; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--green); flex: none; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form .btn-primary { font-family: var(--font-display); min-height: 52px; }
.form .btn-primary[disabled] { opacity: .7; cursor: progress; }
.form-alert { background: #FDECEA; color: var(--error); border-radius: 12px; padding: 12px 16px; font-size: 15px; }
.form-alert:empty { display: none; }
.success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 48px 8px; }
.success .check { width: 72px; height: 72px; border-radius: 50%; background: var(--mint); display: flex; align-items: center; justify-content: center; color: var(--green); }
.success h3 { font-size: 26px; }
.success p { color: var(--muted); max-width: 420px; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 32px; padding-block: 88px; }
.contact-info { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; flex-direction: column; gap: 4px; }
.contact-item .label { color: var(--muted); font-size: 15px; }
.contact-item .value { font-weight: 600; font-size: 18px; text-decoration: none; color: var(--teal-link); }
.contact-item .value.big { font-size: 22px; }
.contact-item span.value { color: var(--ink); }
.map-card { flex: 999 1 520px; min-width: 0; position: relative; display: block; align-self: flex-start; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1400 / 867; text-decoration: none; }
.map-card img { width: 100%; height: 100%; object-fit: cover; }
.map-pin { position: absolute; left: 51.4%; top: 46.8%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.map-pin .tag { background: var(--teal-900); color: var(--white); font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 10px; white-space: nowrap; }
.map-cta { position: absolute; bottom: 20px; right: 20px; background: var(--white); color: var(--ink); border-radius: 14px; padding: 12px 18px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; box-shadow: 0 6px 20px rgba(15,58,72,.18); }
@media (max-width: 560px) { .map-cta { right: 12px; left: 12px; bottom: 12px; font-size: 14px; } }

/* Footer */
.site-footer { background: var(--teal-900); color: #D3E4E8; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 40px; font-size: 15px; }
.site-footer a { color: #CFEBE4; }
