/* ============================================================
   INNER-NET GLOBAL NAVIGATION & FOOTER STYLESHEET
   File: UC/THEME/nav.css
============================================================ */

:root {
  --wine: #7A0C1E;
  --wine-dark: #4A0612;
  --crimson: #C91D32;
  --crimson-light: #FFF0F2;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94A3B8;
  --slate-200: #E2E8F0;
  --slate-100: #F8FAFC;
  --slate-50: #FAFBFC;
  --white: #FFFFFF;
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 35px -10px rgba(122, 12, 30, 0.08);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   1. TOP EMERGENCY & UTILITY STRIP
============================================================ */
.top-bar {
  background: var(--wine-dark);
  color: #FEE2E2;
  font-size: 0.85rem;
  padding: 9px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar .lang-tag {
  background: var(--crimson);
  color: #FFF;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.top-bar a {
  color: #FFF;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.top-bar a:hover {
  color: #FECACA;
  text-decoration: underline;
}

.phone-pill {
  background: rgba(255, 255, 255, 0.14);
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   2. HEADER NAVIGATION & STICKY BEHAVIOR
============================================================ */
#header-mount {
  display: contents; /* Allows sticky positioning to work with body */
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--slate-200);
}

.nav-wrapper {
  max-width: 1280px;
  margin: auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  max-height: 68px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 26px;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--slate-800);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  cursor: pointer;
}

.nav-link:hover {
  color: var(--crimson);
}

/* ACTIVE PAGE HIGHLIGHT RULE */
.nav-link.active,
.nav-links a.active,
.dropdown a.active,
.submenu a.active {
  color: var(--crimson) !important;
  font-weight: 700;
}

/* ============================================================
   3. DROPDOWNS & INVISIBLE HOVER BRIDGES
============================================================ */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -15px;
  background: #FFFFFF;
  min-width: 290px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 10px;
  list-style: none;
  border: 1px solid var(--slate-200);
  z-index: 1000;
}

/* Invisible bridge between Nav Link and Dropdown */
.dropdown::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}

.nav-item:hover > .dropdown {
  display: block;
  animation: dropFade 0.2s ease;
}

.dropdown li {
  position: relative;
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--slate-700);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.89rem;
  border-radius: 8px;
  transition: var(--transition);
}

.dropdown a:hover {
  background: var(--crimson-light);
  color: var(--wine);
  padding-left: 16px;
}

/* ============================================================
   4. NESTED SUBMENUS (BUSINESS NETWORKS FLYOUT)
============================================================ */
.has-submenu {
  position: relative;
}

.has-submenu > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.submenu {
  display: none;
  position: absolute;
  top: -8px;
  left: 100%;
  background: #FFFFFF;
  min-width: 280px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 10px;
  list-style: none;
  border: 1px solid var(--slate-200);
  z-index: 1001;
}

/* Invisible bridge preventing mouse-gap dropouts */
.submenu::before {
  content: "";
  position: absolute;
  top: 0;
  left: -20px;
  width: 25px;
  height: 100%;
  background: transparent;
}

.has-submenu:hover > .submenu {
  display: block;
  animation: dropFade 0.2s ease;
}

.submenu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--slate-700);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.89rem;
  border-radius: 8px;
  transition: var(--transition);
}

.submenu a:hover {
  background: var(--crimson-light);
  color: var(--wine);
  padding-left: 16px;
}

/* ============================================================
   5. GLOBAL BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--crimson), var(--wine));
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(201, 29, 50, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(201, 29, 50, 0.35);
  color: #FFFFFF;
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--slate-800);
  border: 1.5px solid var(--slate-200);
}

.btn-secondary:hover {
  background: var(--slate-50);
  border-color: var(--crimson);
  color: var(--crimson);
}

/* ============================================================
   6. STANDARDIZED 4-COLUMN FOOTER
============================================================ */
footer {
  background: #0B0F19;
  color: var(--slate-400);
  padding: 75px 24px 30px;
}

.footer-grid {
  max-width: 1280px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.8fr 1.2fr 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: #FFFFFF;
  margin-bottom: 18px;
  font-size: 0.98rem;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: var(--slate-400);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.socials a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-decoration: none;
  transition: var(--transition);
}

.socials a:hover {
  background: var(--crimson);
  transform: translateY(-2px);
}

.footer-btm {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  max-width: 1280px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-btm a {
  color: var(--slate-400);
  text-decoration: none;
  margin-left: 16px;
}

.footer-btm a:hover {
  color: #FFFFFF;
}

/* ============================================================
   7. KEYFRAMES & RESPONSIVENESS
============================================================ */
@keyframes dropFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}