/* ====================================================
   SERVISLOC OFFICIAL MASTER NAVIGATION & FOOTER STYLES
   ==================================================== */
:root {
  --navy: #0B1530;
  --soft: #F6F7FA;
  --ink: #0E1A3A;
  --muted: #5B657E;
  --line: #EBECEF;
  --blue: #1D5BFF;
  --blue-dark: #1245CC;
  --blue-soft: rgba(29, 91, 255, 0.08);
  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(14,26,58,.04);
  --shadow-md: 0 6px 20px -4px rgba(14,26,58,.08);
  --shadow-lg: 0 16px 40px -8px rgba(14,26,58,.12);
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-blue {
  background: var(--blue);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(29, 91, 255, 0.25);
}
.btn-blue:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}
.btn-outline {
  background: #FFFFFF;
  border: 1px solid var(--line);
  color: var(--ink) !important;
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue) !important;
}

/* Announcement Top Bar */
.top-announcement-bar {
  background: var(--navy);
  color: #C9D2E6;
  font-size: 13px;
}
.top-announcement-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 24px;
  min-height: 40px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.top-announcement-bar a {
  color: #FFFFFF;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.top-announcement-bar a:hover {
  text-decoration: underline;
}

/* Main Sticky Nav */
.main-sticky-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.main-sticky-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

/* Desktop Links */
.desktop-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link-item {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-link-item:hover, .nav-link-item.active {
  color: var(--blue);
}

/* Mega Menu Item */
.nav-mega-item {
  position: relative;
}
.nav-mega-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px 0;
}
.nav-mega-btn:hover {
  color: var(--blue);
}
.nav-mega-btn svg {
  transition: transform 0.2s ease;
}
.nav-mega-item:hover .nav-mega-btn svg {
  transform: rotate(180deg);
}
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  width: 960px;
  max-width: 95vw;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 20px 50px -10px rgba(14,26,58,.16);
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 950;
}
.nav-mega-item:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.mega-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.mega-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.mega-link {
  display: flex;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease;
  margin-bottom: 4px;
}
.mega-link:hover {
  background: var(--soft);
}
.mega-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mega-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 2px;
}
.mega-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

/* Mobile Hamburger Button */
.hamburger-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}

/* Mobile Drawer */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 21, 48, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 340px;
  max-width: 85vw;
  background: #FFFFFF;
  z-index: 999;
  box-shadow: -10px 0 40px rgba(14,26,58,.18);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.drawer.open {
  transform: translateX(0);
}
.drawer-header {
  height: 72px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.drawer-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-sublink {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  display: block;
}
.drawer-sublink:hover {
  color: var(--blue);
}
.drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Master Footer */
.master-footer {
  background: var(--soft);
  border-top: 1px solid var(--line);
  padding: 72px 0 36px;
  font-size: 14px;
  color: var(--muted);
}
.master-footer .footer-top-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
}
.master-footer .footer-brand-col {
  max-width: 340px;
}
.master-footer .footer-cols-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.master-footer .footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.master-footer .footer-col-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.master-footer .fl {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.master-footer .fl:hover {
  color: var(--blue);
}
.master-footer .footer-bottom-bar {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

@media (max-width: 1024px) {
  .desktop-nav-links { display: none; }
  .hamburger-btn { display: flex; }
  .main-sticky-nav .nav-actions-desktop { display: none; }
}
@media (max-width: 768px) {
  .master-footer .footer-top-wrap { flex-direction: column; gap: 32px; }
  .master-footer .footer-cols-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
}


/* Additional Mobile Drawer & Mega Menu Rules from index.html */
.mobile-drawer-right {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 340px;
  max-width: 88vw;
  height: 100vh;
  height: 100dvh;
  background: #FFFFFF;
  box-shadow: -15px 0 45px rgba(14, 26, 58, 0.18);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer-right.open {
  transform: translateX(0);
}
.mobile-drawer-right:not(.open) {
  display: none !important;
}
.drawer-close-btn {
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: background-color .15s ease;
}
.drawer-close-btn:hover {
  background: var(--line);
}
.drawer-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.drawer-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mega-bottom-banner {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.fl {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s ease;
}
.fl:hover {
  color: var(--ink);
}
@media (max-width: 900px) {
  .desktop-nav-links, .desktop-nav-actions {
    display: none !important;
  }
  .hamburger-btn {
    display: flex !important;
  }
}
