/* ── MOBILE MENU BUTTON ── */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--blue-900);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
  flex-shrink: 0;
}

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

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s, width 0.2s;
}

.menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; width: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE DROPDOWN ── */
#mobile-menu {
  display: none;
  position: absolute;
  top: 68px;
  left: 0; right: 0;
  background: var(--blue-900);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-lg);
  z-index: 190;
  padding: 1rem 1.5rem 1.5rem;
}

#mobile-menu.open { display: block; }

#mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.1rem;
}

#mobile-menu a {
  display: block;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}

#mobile-menu a:hover,
#mobile-menu a.active {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

/* Mobile submenu */
#mobile-menu .has-dropdown > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#mobile-menu .has-dropdown > a::after {
  content: '▾';
  font-size: 0.75rem;
  opacity: 0.6;
  transition: transform 0.2s;
  margin-left: auto;
  padding-left: 0.5rem;
}

#mobile-menu .has-dropdown.open > a::after {
  transform: rotate(180deg);
}

#mobile-menu .nav-dropdown {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border: none;
  background: rgba(0,0,0,0.15);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0;
  margin: 0.25rem 0 0.25rem 0.75rem;
  display: none;
  min-width: unset;
}

#mobile-menu .has-dropdown.open .nav-dropdown {
  display: block;
}

#mobile-menu .nav-dropdown li a {
  font-size: 0.88rem;
  padding: 0.5rem 0.9rem;
  color: rgba(255,255,255,0.65);
}

#mobile-menu .nav-dropdown li a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

#mobile-menu .dropdown-divider {
  background: rgba(255,255,255,0.08);
  margin: 0.25rem 0.5rem;
}

#mobile-menu .mobile-cta {
  display: block;
  background: var(--blue-600);
  color: var(--white) !important;
  text-align: center;
  font-weight: 600;
  padding: 0.8rem !important;
  border-radius: var(--radius-sm);
}

#mobile-menu .mobile-cta:hover {
  background: var(--blue-800) !important;
}

#mobile-menu .mobile-portal {
  display: block;
  background: transparent;
  color: var(--blue-400) !important;
  text-align: center;
  margin: 0.5rem 1rem;
  padding: 0.75rem !important;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--blue-400);
  font-weight: 600;
}

#mobile-menu .mobile-portal:hover {
  background: var(--blue-400) !important;
  color: var(--white) !important;
}

/* ── SCROLL ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ── RESPONSIVE — 1024px ── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* ── RESPONSIVE — 640px ── */
@media (max-width: 640px) {
  nav { padding: 0 1.25rem; position: relative; }
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .trust-bar-inner { gap: 1.2rem; justify-content: flex-start; }
  .page-hero { padding: 3.5rem 1.5rem 3rem; }
  .section { padding: 3.5rem 1.25rem; }
  .section-sm { padding: 2.5rem 1.25rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .cta-banner { padding: 3.5rem 1.25rem; }
}
