:root {
  --navy: #0b2c52;
  --navy-deep: #071e3d;
  --teal: #0ea5e9;
  --teal-dark: #0284c7;
  --accent: #f5c542;
  --whatsapp: #16a34a;
  --whatsapp-dark: #15803d;
  --ink: #132238;
  --muted: #55657a;
  --bg: #ffffff;
  --bg-alt: #f2f8fc;
  --border: #d8e6f2;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 44, 82, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ===== Promo / Offers Banner ===== */
.promo-bar {
  background: linear-gradient(90deg, var(--navy-deep), var(--teal-dark));
  color: #fff;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.promo-bar[hidden] {
  display: none;
}

.promo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 18px;
  flex-wrap: wrap;
}

.promo-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.promo-badge {
  background: var(--accent);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 2px 10px;
  border-radius: 999px;
}

.promo-text {
  font-weight: 600;
}

.promo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.promo-cta {
  background: #fff;
  color: var(--navy-deep);
  border: none;
  border-radius: 999px;
  padding: 4px 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.promo-cta:hover {
  opacity: 0.9;
}

.promo-close {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  background: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.05rem;
  color: var(--navy);
}

.brand-text small {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--teal-dark);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav a {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--teal-dark);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 10px 20px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-sm {
  padding: 7px 15px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 13px 24px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

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

.btn-accent {
  background: var(--teal);
  color: #fff;
}

.btn-accent:hover {
  background: var(--teal-dark);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--navy);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--teal-dark) 100%);
  color: #fff;
  padding: 54px 0 48px;
  border-bottom: 4px solid var(--teal);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(14, 165, 233, 0.22);
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.45);
  padding: 5px 15px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.8vw, 2.65rem);
  font-weight: 800;
  line-height: 1.3;
}

.hero-sub {
  margin: 0 0 24px;
  font-size: 1.04rem;
  color: #dbeafe;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.stat strong {
  display: block;
  font-size: 1.4rem;
  color: var(--accent);
}

.stat span {
  font-size: 0.84rem;
  color: #dbeafe;
}

.hero-cover-img {
  width: 100%;
  border-radius: 18px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* ===== Sections ===== */
.section {
  padding: 62px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  color: var(--navy);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-head h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

/* ===== Grids & Cards ===== */
.grid {
  display: grid;
  gap: 20px;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
}

.doctors-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.videos-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.location-grid {
  grid-template-columns: 1.25fr 1fr;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card {
  text-align: right;
  padding: 22px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
}

.service-ico {
  font-size: 1.75rem;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e0f2fe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.service-card h3 {
  margin: 4px 0 0;
  font-size: 1.06rem;
  color: var(--navy);
}

.service-card p {
  margin: 0;
  font-size: 0.91rem;
  color: var(--muted);
  flex: 1;
}

.card-cta {
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 4px;
}

/* ===== Doctors ===== */
.doctor-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.doctor-photo {
  aspect-ratio: 1 / 1;
  background: #e0f2fe;
  overflow: hidden;
}

.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
}

.doctor-card:hover .doctor-photo img {
  transform: scale(1.03);
}

.doctor-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.doctor-body h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 1.12rem;
}

.doctor-role {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.doctor-bio {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.88rem;
  flex: 1;
}

/* ===== Gallery ===== */
.gallery-item {
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f4f8fc;
  padding: 6px;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item figcaption {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gallery-item figcaption strong {
  color: var(--navy);
  font-size: 0.98rem;
}

.gallery-item figcaption span {
  color: var(--teal-dark);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ===== Videos / Reels ===== */
.video-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-frame {
  background: #071e3d;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.video-frame iframe {
  width: 280px;
  max-width: 100%;
  height: 498px;
  border: none;
  overflow: hidden;
  border-radius: 10px;
}

.video-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.video-body h3 {
  margin: 0;
  font-size: 1.02rem;
  color: var(--navy);
}

.video-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  flex: 1;
}

/* ===== Working Hours ===== */
.hours-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 28px;
}

.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px dashed var(--border);
  border-radius: 10px;
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-row.is-today {
  background: #e0f2fe;
  border-bottom-color: transparent;
}

.hours-day {
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.today-pill {
  background: var(--teal-dark);
  color: #fff;
  font-size: 0.72rem;
  padding: 1px 8px;
  border-radius: 999px;
}

.hours-time {
  font-weight: 600;
  color: var(--ink);
}

.hours-row.is-closed .hours-time {
  color: #dc2626;
}

.hours-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* ===== Location & Map ===== */
.map-card {
  overflow: hidden;
  min-height: 380px;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: none;
  display: block;
}

.contact-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.clinic-sign-wrap {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e0f2fe;
}

.clinic-sign-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-card h3 {
  margin: 4px 0 0;
  color: var(--navy);
}

.contact-main {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* ===== Footer ===== */
.footer {
  background: var(--navy-deep);
  color: #cbd5e1;
  text-align: center;
  padding: 36px 0;
}

.footer strong {
  display: block;
  color: #fff;
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.footer p {
  margin: 0 0 10px;
  font-size: 0.92rem;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-link {
  font-size: 0.8rem;
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 2px 10px;
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s;
}

.admin-link:hover {
  color: #fff;
  border-color: #fff;
}

/* ===== Floating WhatsApp Button ===== */
.fab-whatsapp {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 30;
  background: var(--whatsapp);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.35);
  transition: transform 0.15s ease, background 0.2s ease;
}

.fab-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
}

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(7, 30, 61, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: #fff;
  width: 100%;
  max-width: 460px;
  border-radius: 20px;
  padding: 26px;
  position: relative;
  box-shadow: 0 24px 60px rgba(7, 30, 61, 0.3);
  max-height: 92vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--navy);
}

.modal h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 1.28rem;
}

.modal-sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.booking-form label span {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
}

.booking-form input,
.booking-form select {
  font-family: inherit;
  font-size: 0.94rem;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
}

.booking-form input:focus,
.booking-form select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(7, 30, 61, 0.94);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #fff;
  text-align: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-height: 78vh;
  max-width: 90vw;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  top: 18px;
  left: 18px;
}

.lightbox-prev {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 860px) {
  .hero-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 38px 0 36px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 6px 4px;
  }

  .hours-card {
    padding: 18px 16px;
  }
}
