/* ══════════════════════════════════════════════════════════
   FRONTEND HEADER / NAVIGATION STYLES
   These supplement the static styles.css from the design
══════════════════════════════════════════════════════════ */

/* ─── Site Header ─────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(4, 10, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(41, 182, 246, 0.08);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(4, 10, 26, 0.98);
  border-bottom-color: rgba(41, 182, 246, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.site-logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* ─── Desktop Navigation ───────────────────────────────── */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.nav-desktop > a,
.nav-dropdown > a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-desktop > a:hover,
.nav-dropdown:hover > a {
  color: #fff;
  /* background: rgba(41, 182, 246, 0.1); */
}

.nav-desktop > a.active {
  color: var(--teal, #00c4d8);
}

/* ─── Dropdown ─────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: rgba(10, 18, 38, 0.98);
  border: 1px solid rgba(41, 182, 246, 0.15);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  pointer-events: none;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.nav-dropdown-menu a {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-dropdown-menu a:hover {
  color: #fff;
  /* background: rgba(41, 182, 246, 0.12); */
}

/* ─── Header CTA ──────────────────────────────────────── */
.header-cta {
  flex-shrink: 0;
}

/* ─── Mobile hamburger ────────────────────────────────── */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ─── Mobile Navigation Drawer ─────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(4, 10, 26, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  width: min(320px, 100vw);
  margin-left: auto;
  background: rgba(10, 18, 38, 0.98);
  border-left: 1px solid rgba(41, 182, 246, 0.15);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(41, 182, 246, 0.1);
}

.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 4px;
  flex: 1;
}

.mobile-nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 16px;
  border-radius: 10px;
  transition: all 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-nav-links a:hover {
  background: rgba(41, 182, 246, 0.1);
  color: #fff;
}

/* ─── Responsive Breakpoints ──────────────────────────── */
@media (max-width: 1024px) {
  .nav-desktop,
  .header-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
  }
}

/* ─── Body padding for fixed header ──────────────────── */
body {
  padding-top: 76px;
}

/* ─── FOOTER ENHANCEMENTS ──────────────────────────────── */
.site-footer {
  position: relative;
  background: var(--dark-footer, #050c1a);
  padding: 80px 0 0;
  margin-top: auto;
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(21, 101, 192, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(41, 182, 246, 0.05) 0%, transparent 50%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand p {
  max-width: 320px;
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li a {
  color: var(--text-body, #CBD5E1);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links li a:hover {
  color: var(--teal, #00c4d8);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: rgba(41, 182, 246, 0.15);
  border-color: rgba(41, 182, 246, 0.4);
  color: #29B6F6;
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 13px;
  color: var(--text-muted, #64748B);
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  color: var(--text-muted, #64748B);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-legal-links a:hover {
  color: #fff;
}

/* ─── btn-gradient (used in forms) ────────────────────── */
.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #1565C0, #29B6F6);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-gradient:hover {
  box-shadow: 0 0 30px rgba(33, 150, 243, 0.35);
  transform: translateY(-2px);
}

/* ─── Footer Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ─── Mobile Accordion Dropdown Navigation ──────────── */
.mobile-dropdown-wrapper {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-dropdown-header a {
  border-bottom: none !important;
  flex: 1;
}

.mobile-dropdown-toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.mobile-dropdown-toggle.active {
  transform: rotate(180deg);
  color: var(--teal, #00c4d8) !important;
}

.mobile-dropdown-menu {
  display: none;
  flex-direction: column;
  padding-left: 16px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 8px;
}

.mobile-dropdown-menu a {
  font-size: 14px !important;
  padding: 10px 16px !important;
  border-bottom: none !important;
}

/* Scroll Lock */
html.scroll-lock,
body.scroll-lock {
  overflow: hidden !important;
  height: 100dvh !important;
}

