/* Shared public site chrome — matches homepage nav/footer */
:root {
  --ec-ink: #0a1628;
  --ec-ink2: #2d4263;
  --ec-ink3: #64748b;
  --ec-teal: #0891b2;
  --ec-blue: #1d4ed8;
  --ec-paper: #f8fafd;
}
body.ec-has-chrome {
  padding-top: 88px !important;
  font-family: 'Tajawal', 'Cairo', sans-serif;
}
#ec-site-nav,
#ec-site-nav * { box-sizing: border-box; }
#ec-site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 70px;
  display: flex;
  align-items: center;
  font-family: 'Cairo', 'Tajawal', sans-serif;
}
#ec-site-nav .nav-inner {
  max-width: 1140px;
  margin: 14px auto 0;
  width: calc(100% - 56px);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(8,145,178,.1);
  border-radius: 100px;
  padding: 0 28px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 24px rgba(8,145,178,.08), 0 1px 0 rgba(255,255,255,.8) inset;
}
#ec-site-nav .nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
#ec-site-nav .logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 4px 14px rgba(29,111,216,.28);
}
#ec-site-nav .logo-text {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ec-ink);
  letter-spacing: -.01em;
}
#ec-site-nav .logo-text span { color: var(--ec-blue); }
#ec-site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  min-width: 0;
}
#ec-site-nav .nav-link {
  padding: 7px 12px;
  color: var(--ec-ink3);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: 50px;
  transition: all .2s;
  font-family: 'Cairo', sans-serif;
  white-space: nowrap;
}
#ec-site-nav .nav-link:hover,
#ec-site-nav .nav-link.is-active {
  color: var(--ec-teal);
  background: rgba(8,145,178,.06);
}
#ec-site-nav .nav-cta {
  padding: 9px 22px;
  background: linear-gradient(135deg, var(--ec-teal), var(--ec-blue));
  color: white !important;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all .25s;
  font-family: 'Cairo', sans-serif;
  box-shadow: 0 4px 16px rgba(8,145,178,.35);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: 6px;
}
#ec-site-nav .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(8,145,178,.45);
}
#ec-site-nav .nav-cta svg { width: 14px; height: 14px; flex-shrink: 0; }
#ec-site-nav .nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid rgba(8,145,178,.15);
  background: rgba(8,145,178,.06);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
#ec-site-nav .nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--ec-ink); border-radius: 2px;
}
#ec-nav-mobile {
  display: none;
  position: fixed;
  top: 78px; left: 16px; right: 16px;
  z-index: 199;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(8,145,178,.12);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 16px 40px rgba(15,23,42,.12);
  flex-direction: column;
  gap: 6px;
  font-family: 'Cairo', 'Tajawal', sans-serif;
}
#ec-nav-mobile.open { display: flex; }
#ec-nav-mobile a {
  text-decoration: none;
  color: var(--ec-ink2);
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 14px;
  border-radius: 12px;
}
#ec-nav-mobile a:hover { background: rgba(8,145,178,.06); color: var(--ec-teal); }
#ec-nav-mobile .nav-mobile-cta {
  margin-top: 6px;
  text-align: center;
  background: linear-gradient(135deg, var(--ec-teal), var(--ec-blue));
  color: #fff !important;
  font-weight: 800;
}
#ec-nav-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 190;
  background: rgba(15,23,42,.25);
}
#ec-nav-backdrop.open { display: block; }

#ec-site-footer {
  border-top: 1px solid rgba(8,145,178,.08);
  padding: 36px 28px;
  margin-top: 48px;
  background: transparent;
  font-family: 'Cairo', 'Tajawal', sans-serif;
}
#ec-site-footer .footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
#ec-site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
#ec-site-footer .logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 4px 14px rgba(29,111,216,.28);
}
#ec-site-footer .logo-text {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: .95rem;
  color: var(--ec-ink);
}
#ec-site-footer .logo-text span { color: var(--ec-blue); }
#ec-site-footer .footer-text {
  font-size: 0.8rem;
  color: var(--ec-ink3);
  line-height: 1.7;
}
#ec-site-footer .footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
#ec-site-footer .footer-link {
  font-size: 0.8rem;
  color: var(--ec-ink3);
  text-decoration: none;
  transition: color .2s;
  font-family: 'Cairo', sans-serif;
}
#ec-site-footer .footer-link:hover { color: var(--ec-teal); }

/* Hide legacy headers/footers on side pages */
body.ec-has-chrome > header.top,
body.ec-has-chrome > header.topbar,
body.ec-has-chrome header.topbar,
body.ec-has-chrome .topbar,
body.ec-has-chrome > .wrap > .nav:first-child,
body.ec-has-chrome footer:not(#ec-site-footer) {
  display: none !important;
}

@media (max-width: 1100px) {
  #ec-site-nav .nav-links,
  #ec-site-nav .nav-cta { display: none !important; }
  #ec-site-nav .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  #ec-site-nav .nav-inner { width: calc(100% - 24px); padding: 0 14px; }
  #ec-site-nav .logo-text { font-size: .95rem; }
  #ec-site-footer .footer-inner { flex-direction: column; align-items: flex-start; }
}
