:root {
  --bg: #f1f2f3;
  --white: #ffffff;
  --ink: #0d4f6a;
  --ink-soft: #36687a;
  --teal: #18a7b8;
  --teal-dark: #0a6f7b;
  --teal-deep: #0b5a72;
  --line: #cfe1e6;
  --purple: #7a68be;
  --gold: #e7b14e;
  --danger: #ef5348;
  --shadow: 0 12px 30px rgba(8, 72, 96, 0.14);
  --radius-pill: 999px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: min(1220px, calc(100% - 2rem));
}

* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  direction: rtl;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1220px, 92%);
  margin-left: auto !important;
  margin-right: auto !important;
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.util-row {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.util-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.search-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--teal-deep);
  font-size: 1.2rem;
  cursor: pointer;
}

.chip {
  height: 34px;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: #f4f6f8;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.92rem;
}

.chip-login {
  color: #ffffff;
  background: var(--purple);
}

.chip-gold {
  color: #5a4a20;
  background: var(--gold);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none !important;
}

.brand-lockup img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-lockup:hover img {
  transform: scale(1.05);
}

.brand-lockup span {
  display: grid;
  text-align: right;
  line-height: 1;
  font-family: 'Almarai', sans-serif;
  text-decoration: none !important;
}

.brand-lockup small {
  color: #58b9c4;
  font-weight: 400;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
  letter-spacing: 0.5px;
  opacity: 0.9;
  border-bottom: 0 !important;
  text-decoration: none !important;
}

.brand-lockup strong {
  color: var(--ink);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  border-bottom: 0 !important;
  text-decoration: none !important;
}

.nav-row {
  border-top: 1px solid #edf2f4;
  border-bottom: 4px solid #e4f4f6;
}

.nav-wrap {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: #149daf;
  font-weight: 800;
  font-size: 1.03rem;
  padding: 0.35rem 0.2rem;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--ink);
  border-color: var(--teal);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.hero-block {
  padding: 3rem 0 6rem;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.1);
}

.hero-bg-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 79, 106, 0.8), rgba(24, 167, 184, 0.4));
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-brand h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1.15;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-brand p {
  margin: 1.2rem auto 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  font-weight: 600;
}

.booking-strip {
  margin: 3.5rem auto 0;
  border-radius: var(--radius-pill);
  padding: 0.95rem 1.2rem;
  width: min(1130px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.booking-strip.glass-mode {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.strip-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.strip-field:last-of-type {
  border-left: none;
}

.strip-field label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #58b9c4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.strip-field select {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  padding: 0;
  font-family: inherit;
  width: 100%;
}

.strip-field select option {
  background: #149daf;
  color: white;
}

.strip-cta {
  align-items: center;
  justify-content: center;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.strip-cta:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 25px rgba(231, 177, 78, 0.4);
}

.centers-section,
.health-info-section,
.quote-section,
.doctors-strip,
.contact-block {
  padding: 3.5rem 0;
}

.centers-section h2,
.health-info-section h2,
.quote-section h2,
.doctors-strip h2,
.contact-card h2 {
  text-align: center;
  margin: 0 0 1.8rem;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
}

.centers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.center-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.center-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(8, 72, 96, 0.18);
}

.center-visual {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.center-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.center-card:hover .center-visual img {
  transform: scale(1.1);
}

.center-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(13, 79, 106, 0.3));
}

.center-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.center-content h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 800;
}

.center-content p {
  margin: 0;
  color: #527184;
  font-size: 0.95rem;
  line-height: 1.6;
}

.health-stage {
  position: relative;
  width: min(1140px, 100%);
  margin: 0 auto;
  padding: 0 3rem;
}

.health-track {
  display: flex;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  background: var(--white);
}

.health-slide {
  min-width: 100%;
}

.health-slide img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

.slide-btn.prev {
  right: 0;
}

.slide-btn.next {
  left: 0;
}

.alert-tile {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: min(320px, calc(100% - 3rem));
  background: var(--danger);
  color: #fff;
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  box-shadow: 0 15px 32px rgba(239, 83, 72, 0.25);
}

.alert-tile h3 {
  margin: 0;
  font-size: 1.5rem;
}

.alert-tile p {
  margin: 0.75rem 0;
  font-size: 1.05rem;
  line-height: 1.8;
}

.alert-tile a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 1rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-weight: 700;
}

.quote-section {
  background: #168ca0;
  color: #fff;
}

.quote-section h2 {
  color: #f2fcff;
}

.quote-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1rem;
  align-items: center;
}

.leader-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.14);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.leader-card img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.leader-card strong {
  display: block;
  font-size: 1.2rem;
}

.quote-grid blockquote {
  margin: 0;
  background: rgba(0, 0, 0, 0.12);
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-md);
  line-height: 2;
  font-size: 1.2rem;
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.doctor-card {
  background: #fff;
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transition: 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.doctor-card:hover {
  transform: translateY(-10px);
}

.doctor-visual {
  height: 300px;
  background: linear-gradient(180deg, #e8f6f8, #cceef3);
  position: relative;
  overflow: hidden;
}

.doctor-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: 0.5s ease;
}

.doctor-card:hover .doctor-visual img {
  transform: scale(1.08);
}

.doctor-content {
  padding: 1.8rem;
  text-align: center;
  background: #fff;
  position: relative;
  z-index: 2;
}

.doctor-content h3 {
  margin: 0 0 0.4rem;
  color: var(--ink);
  font-size: 1.4rem;
}

.specialty-label {
  color: var(--teal);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.doctor-bio {
  font-size: 0.9rem;
  color: #6a8ba0;
  line-height: 1.5;
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: 0.4s ease;
}

.doctor-card:hover .doctor-bio {
  height: auto;
  opacity: 1;
  margin-top: 0.6rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.contact-card,
.quick-form {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.contact-card p,
.contact-card li,
#formStatus {
  color: #4f6e7e;
  line-height: 1.9;
}

.contact-card ul {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
}

.quick-form {
  display: grid;
  gap: 0.45rem;
}

.quick-form label {
  font-weight: 800;
  color: var(--ink);
}

.quick-form input,
.quick-form textarea {
  width: 100%;
  border: 1px solid #cae1e6;
  border-radius: 10px;
  min-height: 46px;
  padding: 0.7rem 0.8rem;
  background: #f9fcfd;
}

.quick-form textarea {
  min-height: 120px;
  resize: vertical;
}

.quick-form button {
  border: 0;
  border-radius: var(--radius-pill);
  min-height: 44px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
}

.site-footer {
  margin-top: 1rem;
}

.footer-main {
  background: #1095a9;
  color: #f2fdff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  padding: 2rem 0;
  align-items: center;
}

.footer-col h3 {
  margin: 0 0 0.35rem;
  font-size: 2rem;
}

.footer-col p,
.footer-col a {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.08rem;
}

.footer-col.center {
  text-align: center;
}

.footer-col.center img {
  margin: 0 auto 0.5rem;
  width: 66px;
  height: 66px;
}

.footer-col.center strong {
  display: block;
  font-size: 2rem;
}

/* Premium Auth Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(13, 79, 106, 0.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: none; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.is-active { display: flex; opacity: 1; }

.modal-panel {
  width: min(480px, 100%);
  background: rgba(255, 255, 255, 0.94); border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 30px; box-shadow: 0 40px 100px rgba(8, 72, 96, 0.25);
  overflow: hidden; position: relative;
  transform: scale(0.92); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.is-active .modal-panel { transform: scale(1); }

.modal-header {
  padding: 1.5rem 1.5rem 0.5rem; display: flex; justify-content: space-between; align-items: flex-start;
}
.close-auth-x {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 1.4rem; cursor: pointer;
  display: grid; place-items: center; transition: 0.2s;
}
.close-auth-x:hover { background: var(--bg); transform: rotate(90deg); }

.modal-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 0 2rem 1rem; gap: 0.5rem; }
.modal-tab {
  border: 0; background: transparent; padding: 0.85rem; font-weight: 800; color: var(--muted);
  cursor: pointer; border-radius: 14px; transition: 0.3s; font-size: 1.05rem;
}
.modal-tab.is-active { background: var(--teal-deep); color: #fff; box-shadow: 0 10px 20px rgba(11, 90, 114, 0.15); }

.modal-body { padding: 0 2rem 2.5rem; }
.auth-form { display: grid; gap: 0.6rem; }
.auth-form.is-hidden { display: none; }

.auth-form h3 { font-size: 1.8rem; color: var(--ink); margin-bottom: 0.2rem; text-align: center; }
.auth-form p { color: #527184; font-size: 0.95rem; margin-bottom: 1.2rem; line-height: 1.6; text-align: center; }

.input-group { position: relative; margin-bottom: 0.4rem; }
.input-group input {
  width: 100%; height: 56px; border: 1px solid #d8e5e8; border-radius: 16px; 
  padding: 0 1rem; background: #fff; transition: 0.25s; font-size: 1rem;
}
.input-group input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(24, 167, 184, 0.1); outline: none; }

.btn-auth {
  height: 56px; background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff; font-size: 1.15rem; font-weight: 800; border: 0; border-radius: 16px;
  cursor: pointer; box-shadow: 0 15px 35px rgba(24, 167, 184, 0.2); transition: 0.3s;
  margin-top: 0.8rem;
}
.btn-auth:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(24, 167, 184, 0.3); }

.auth-status { text-align: center; font-size: 0.9rem; font-weight: 700; min-height: 1.4rem; padding-top: 0.4rem; }

@media (max-width: 640px) {
  .modal-panel { width: 100%; border-radius: 30px 30px 0 0; position: fixed; bottom: 0; margin: 0; }
}

.socials {
  margin-top: 0.8rem;
  display: flex;
  justify-content: center;
  gap: 0.65rem;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.16);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.footer-col.right {
  text-align: left;
}

.footer-bottom {
  background: #f7f7f7;
  border-top: 1px solid #d2e4e8;
  color: #4f6f7d;
  text-align: center;
  padding: 1rem 0;
  font-weight: 700;
}

.side-book {
  position: fixed;
  left: 0;
  top: 200px;
  z-index: 30;
  min-height: 40px;
  padding: 0 1.3rem;
  border-radius: 0 999px 999px 0;
  background: #2f6272;
  color: #fff;
  display: inline-flex;
  align-items: center;
  font-weight: 800;
}

.side-actions {
  position: fixed;
  left: 14px;
  top: 330px;
  z-index: 30;
  display: grid;
  gap: 0.5rem;
}

.side-actions a,
.to-top {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 1.1rem;
}

.to-top {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 30;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.25s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .main-nav {
    gap: 0.8rem;
  }

  .main-nav a,
  .strip-field span {
    font-size: 1rem;
  }

  .centers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .booking-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strip-cta {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(320px, 100%);
  }

  .strip-field {
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }
}

@media (max-width: 860px) {
  .util-row {
    min-height: 72px;
  }

  .brand-lockup strong {
    font-size: 1.6rem;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    display: none;
    width: 100%;
    padding: 0.8rem 0;
  }

  .main-nav.is-open {
    display: grid;
    gap: 0.4rem;
  }

  .main-nav a {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid #e8f2f5;
  }

  .health-stage {
    padding: 0;
  }

  .slide-btn {
    top: auto;
    bottom: -52px;
    transform: none;
  }

  .slide-btn.prev {
    right: calc(50% + 6px);
  }

  .slide-btn.next {
    left: calc(50% + 6px);
  }

  .alert-tile {
    position: static;
    transform: none;
    margin: 0.8rem auto 0;
  }

  .quote-grid,
  .doctors-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-col.right {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .util-actions {
    gap: 0.4rem;
  }

  .chip {
    font-size: 0.82rem;
    padding: 0 0.75rem;
    height: 30px;
  }

  .search-btn {
    width: 34px;
    height: 34px;
  }

  .brand-lockup img {
    width: 44px;
    height: 44px;
  }

  .brand-lockup strong {
    font-size: 1.35rem;
  }

  .hero-block,
  .centers-section,
  .health-info-section,
  .quote-section,
  .doctors-strip,
  .contact-block {
    padding: 2.4rem 0;
  }

  .hero-brand h1 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }

  .centers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .booking-strip {
    padding: 0.7rem;
    gap: 0.45rem;
    border-radius: 26px;
  }

  .strip-field {
    min-height: 50px;
  }

  .strip-field span,
  .strip-cta {
    font-size: 0.95rem;
  }

  .health-slide img {
    height: 230px;
  }

  .side-book,
  .side-actions {
    display: none;
  }
}
