.navbar {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(0, 26, 53, 0.96);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-full {
  height: 28px;
  width: auto;
  display: block;
}

.nav-logo-mark {
  display: none;
  height: 26px;
  width: auto;
}

@media (max-width: 560px) {
  .nav-logo-full { display: none !important; }
  .nav-logo-mark { display: block !important; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(251,255,251,.65);
  text-decoration: none;
  transition: color 150ms ease;
  white-space: nowrap;
  padding: 10px 2px;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  right: 0; left: 0; bottom: 4px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms ease;
}

.nav-links a:hover,
.nav-links a.active { color: #fbfffb; }

.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after { transform: scaleX(1); }

.nav-links a.nav-cta {
  background: #4a8a72;
  color: #fbfffb;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 6px;
}

.nav-links a.nav-cta:hover { background: #5b9a80; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fbfffb;
  border-radius: 999px;
}

/* ─── FOOTER (مصدر موحّد لكل الصفحات) ─── */
.footer-v2 {
  background: #001a35;
  padding: 64px 48px 28px;
}
.footer-top {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr 1.5fr; gap: 32px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 0.5px solid rgba(251,255,251,.1);
}
.footer-tagline {
  font-size: 12.5px; color: #fbfffb;
  line-height: 1.8; margin: 14px auto 0; max-width: 220px;
  text-align: center;
}
.footer-tagline-sub {
  font-size: 11.5px; color: rgba(255,255,255,.55);
  margin-top: 8px;
}
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col-label {
  font-size: 11px; font-weight: 700; color: #4a8a72;
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px;
}
.footer-col a {
  font-size: 13.5px; color: rgba(251,255,251,.62);
  text-decoration: none; transition: color 150ms ease;
  width: fit-content;
}
.footer-col a:hover { color: #fbfffb; }
.footer-branches { display: flex; flex-direction: row; flex-wrap: wrap; gap: 18px 24px; }
.footer-branch { display: flex; flex-direction: column; gap: 6px; min-width: 130px; }
.footer-branch-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; color: #4a8a72;
  letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 7px;
}
.footer-branch-line {
  font-size: 13px; color: rgba(251,255,251,.62);
  direction: ltr; text-align: right; line-height: 1.7;
}
.footer-bottom {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  padding-top: 24px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.06); color: rgba(251,255,251,.7);
  border: 0.5px solid rgba(251,255,251,.12);
  display: flex; align-items: center; justify-content: center;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.footer-social a:hover { background: #4a8a72; color: #fbfffb; border-color: #4a8a72; }
.footer-copyright {
  font-size: 11.5px; color: rgba(251,255,251,.32);
}
.footer-logo-col { display: flex; flex-direction: column; }
.footer-contact-col { gap: 20px; }
.footer-qr-trigger {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.06); color: rgba(251,255,251,.7);
  border: 0.5px solid rgba(251,255,251,.12);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.footer-qr-trigger:hover { background: #4a8a72; color: #fbfffb; border-color: #4a8a72; }

.qr-popover {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,26,53,.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.qr-popover[hidden] { display: none; }
.qr-popover-card {
  background: #fbfffb;
  border-radius: 14px;
  padding: 28px;
  max-width: 280px;
  text-align: center;
  position: relative;
}
.qr-popover-close {
  position: absolute; top: 10px; left: 10px;
  background: transparent; border: 0; cursor: pointer;
  font-size: 16px; color: #001a35;
}
.qr-popover-img { width: 100%; height: auto; display: block; margin-bottom: 12px; }
.qr-popover-text { font-size: 13px; color: #3d4d45; }

@media (max-width: 560px) {
  .footer-branches { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px 20px; }
  .footer-branch { align-items: center; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-v2 { padding: 48px 20px 24px; }
  .footer-top {
    grid-template-columns: 1fr; gap: 28px;
    text-align: center;
    padding-bottom: 28px;
  }
 .footer-col { align-items: center; }
  .footer-branch-title { justify-content: center; }
  .footer-branch-line { text-align: center; }

  /* mobile: center social + col blocks */
  .footer-social { justify-content: center; }
  .footer-contact-col { align-items: center; }
  .footer-col-label { margin-left: auto; margin-right: auto; }

  .footer-bottom { flex-direction: column-reverse; gap: 16px; padding-top: 20px; }
  .footer-copyright { text-align: center; }
}

@media (max-width: 900px) {
  .navbar { padding: 0 20px; }

  .nav-hamburger { display: flex; }

  body.menu-open::before {
    content: '';
    position: fixed;
    top: 64px; right: 0; left: 0; bottom: 0;
    background: rgba(0, 26, 53, .45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 98;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 64px; right: 0; left: 0;
    background: rgba(0,26,53,.98);
    padding: 20px 24px 32px;
    gap: 4px;
    border-bottom: 0.5px solid rgba(251,255,251,.1);
    z-index: 99;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 0.5px solid rgba(251,255,251,.06);
    color: rgba(251,255,251,.65);
    border-radius: 0;
    background: none;
  }

  .nav-links a:hover,
  .nav-links a.active { color: #fbfffb; background: none; }

  .nav-links a.nav-cta {
    margin-top: 8px;
    display: block;
    text-align: center;
    padding: 12px 18px;
    border-radius: 6px;
    background: #4a8a72;
    color: #fbfffb;
    border-bottom: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 28px;
    text-align: center;
  }

  .footer-logo-col { grid-column: auto; align-items: center; }
  .footer-tagline { margin-left: auto; margin-right: auto; }
  .footer-col { align-items: center; }
  .footer-branch-title { justify-content: center; }
  .footer-branch-line { text-align: center; }
  .footer-social { justify-content: center; }
  .footer-contact-col { align-items: center; }
  .footer-col-label { margin-left: auto; margin-right: auto; }

  .footer-branches {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
  }
}


