:root {
  --navy: #0f2f4a;
  --navy-2: #173f5f;
  --blue: #2a9fd6;
  --blue-soft: #e6f6fb;
  --gray: #637485;
  --gray-soft: #e7eef3;
  --white: #ffffff;
  --off-white: #f7fbfd;
  --green: #1f8f72;
  --shadow: 0 16px 42px rgba(15, 47, 74, 0.1);
  --radius: 8px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Tajawal", Arial, sans-serif;
  line-height: 1.8;
  color: var(--navy);
  background: var(--white);
  text-align: right;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

img,
svg {
  display: block;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(15, 47, 74, 0.08);
  backdrop-filter: blur(18px);
}

.navbar {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
  white-space: nowrap;
}

.logo img {
  width: 128px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.nav-menu {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-menu a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--navy-2);
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--blue);
  background: var(--blue-soft);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 17px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--navy);
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease;
}

.header-cta:hover {
  transform: translateY(-2px);
  background: var(--blue);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gray-soft);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero,
.page-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #eefaff 0%, #ffffff 54%, #e9f8f7 100%);
}

.hero {
  min-height: calc(100vh - 76px);
  padding: 88px 0;
  display: flex;
  align-items: center;
}

.hero-bg,
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.62;
  background-image:
    linear-gradient(90deg, rgba(15, 47, 74, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 47, 74, 0.05) 1px, transparent 1px);
  background-size: 58px 58px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--blue);
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1,
.page-header h1 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 680px;
  margin-bottom: 10px;
  color: var(--navy-2);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-text,
.section-copy p,
.section-heading p,
.page-header p,
.service-card p,
.mini-card p,
.clinic-card p,
.medical-note,
.map-placeholder p {
  color: var(--gray);
  font-size: 1.04rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.actions.centered,
.center-action {
  justify-content: center;
  text-align: center;
}

.center-action {
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 14px 28px rgba(15, 47, 74, 0.17);
}

.btn-primary:hover {
  background: var(--blue);
}

.btn-secondary,
.btn-light {
  color: var(--navy);
  background: var(--white);
  border-color: rgba(42, 159, 214, 0.28);
}

.btn-secondary:hover,
.btn-light:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.btn-whatsapp {
  color: var(--white);
  background: var(--green);
}

.hero-media,
.image-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: var(--radius);
  background: transparent;
  box-shadow: var(--shadow);
}

.hero-media img,
.image-panel img {
  display: block;
  width: 100%;
  min-height: 520px;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 47, 74, 0.02), rgba(15, 47, 74, 0.2));
  pointer-events: none;
}

.media-note {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  width: min(300px, calc(100% - 36px));
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(15, 47, 74, 0.14);
}

.media-note strong,
.media-note span {
  display: block;
}

.media-note strong {
  color: var(--blue);
}

.section {
  padding: 88px 0;
}

.section-soft {
  background: var(--off-white);
}

.page-header {
  padding: 82px 0;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.section-heading,
.narrow {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading h2,
.section-copy h2,
.narrow h2,
.map-placeholder h2,
.map-panel h2,
.cta-box h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.3;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: 44px;
  align-items: center;
}

.clinic-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
  gap: 24px;
  align-items: stretch;
}

.clinic-detail-grid.single {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}

.cards-grid,
.trust-grid {
  display: grid;
  gap: 20px;
}

.trust-grid,
.cards-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.cards-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card,
.service-card,
.clinic-card,
.contact-method-card,
.map-placeholder,
.map-panel {
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 47, 74, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.mini-card,
.service-card,
.clinic-card,
.contact-method-card {
  padding: 24px;
}

.mini-card:hover,
.service-card:hover,
.clinic-card:hover,
.contact-method-card:hover {
  transform: translateY(-6px);
  border-color: rgba(42, 159, 214, 0.32);
  box-shadow: var(--shadow);
}

.mini-card h2,
.mini-card h3,
.service-card h2,
.service-card h3,
.clinic-card h2,
.clinic-card h3,
.contact-method-card h3 {
  margin: 16px 0 8px;
  font-size: 1.2rem;
  line-height: 1.45;
}

.contact-method-card {
  display: block;
  color: inherit;
}

.contact-method-card p {
  margin: 0;
  color: var(--gray);
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  color: var(--blue);
  background: var(--blue-soft);
}

.icon-box svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.small-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 800;
}

.clinic-map {
  height: 220px;
  margin: -8px -8px 18px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--off-white);
}

.clinic-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.clinic-card.large .clinic-map {
  height: 250px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--gray);
  background: var(--off-white);
}

.info-list strong {
  color: var(--navy);
}

.local-seo-copy {
  max-width: 920px;
  margin: 0 auto 30px;
}

.local-seo-copy h2 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.35;
}

.local-seo-copy p {
  margin: 0;
  color: var(--gray);
  font-size: 1.04rem;
}

.local-seo-copy p + p {
  margin-top: 10px;
}

.medical-note {
  max-width: 900px;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(42, 159, 214, 0.24);
  border-radius: var(--radius);
  background: var(--white);
}

.final-cta {
  color: var(--white);
  background: var(--navy);
}

.cta-box {
  text-align: center;
}

.cta-box p,
.final-cta .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.map-placeholder {
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 42px 20px;
  background:
    linear-gradient(90deg, rgba(15, 47, 74, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 47, 74, 0.05) 1px, transparent 1px),
    var(--off-white);
  background-size: 42px 42px, 42px 42px, auto;
}

.map-placeholder .icon-box {
  margin-inline: auto;
}

.map-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(320px, 1fr);
  overflow: hidden;
}

.map-panel + .map-panel {
  margin-top: 22px;
}

.map-copy {
  padding: 30px;
}

.map-copy p {
  color: var(--gray);
}

.map-panel iframe {
  width: 100%;
  min-height: 360px;
  height: 100%;
  border: 0;
}

.site-footer {
  padding: 46px 0 22px;
  color: rgba(255, 255, 255, 0.82);
  background: #0b263d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 0.9fr;
  gap: 28px;
}

.site-footer h2,
.site-footer h3 {
  margin-bottom: 12px;
  color: var(--white);
}

.site-footer p {
  margin-bottom: 8px;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
  transition: color 180ms ease;
}

.site-footer a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-links a {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
}

.copyright {
  width: min(100% - 32px, var(--container));
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@media (max-width: 1060px) {
  .navbar {
    grid-template-columns: auto 1fr auto;
  }

  .nav-menu {
    justify-self: stretch;
  }

  .hero-grid,
  .split-grid,
  .clinic-detail-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media,
  .image-panel {
    max-width: 640px;
    width: 100%;
    margin-inline: auto;
  }

  .trust-grid,
  .cards-grid.four,
  .cards-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 1020px) {
  .navbar {
    min-height: 82px;
    grid-template-columns: auto 1fr auto;
  }

  .nav-toggle {
    display: block;
    order: -1;
  }

  .nav-menu {
    position: fixed;
    top: 82px;
    right: 0;
    left: 0;
    display: grid;
    gap: 6px;
    padding: 18px 16px 24px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(15, 47, 74, 0.08);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 200ms ease, opacity 200ms ease;
  }

  .nav-open .nav-menu {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    border-radius: var(--radius);
    padding: 12px 14px;
  }
}

@media (max-width: 820px) {
  .navbar {
    min-height: 82px;
    grid-template-columns: auto 1fr auto;
  }

  .nav-toggle {
    display: block;
    order: -1;
  }

  .nav-menu {
    position: fixed;
    top: 82px;
    right: 0;
    left: 0;
    display: grid;
    gap: 6px;
    padding: 18px 16px 24px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(15, 47, 74, 0.08);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 200ms ease, opacity 200ms ease;
  }

  .nav-open .nav-menu {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    border-radius: var(--radius);
    padding: 12px 14px;
  }

  .header-cta {
    min-height: 40px;
    padding-inline: 12px;
  }

  .section {
    padding: 68px 0;
  }

  .hero,
  .page-header {
    padding: 62px 0;
  }

  .cards-grid.two,
  .cards-grid.three {
    grid-template-columns: 1fr;
  }

  .map-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .logo {
    font-size: 1rem;
  }

  .logo img {
    width: 104px;
    height: auto;
  }

  .header-cta {
    display: none;
  }

  .navbar {
    grid-template-columns: auto 1fr;
  }

  .trust-grid,
  .cards-grid.four,
  .cards-grid.three {
    grid-template-columns: 1fr;
  }

  .actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .hero-media img,
  .image-panel img {
    min-height: 390px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
