/* nav-footer.css - Strictly for Navbar & Footer styles */

:root {
  --navy: #383F50;
  --navy-deep: #2a303d;
  --navy-soft: #4a5266;
  --orange: #3088F4;
  --blue: #3088F4;
  --blue-deep: #1a6dd9;
  --cream: #faf9f6;
  --white: #FFFFFF;
  --gray-light: #f4f3ef;
  --gray-dark: #4a5266;
  --display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--body);
}

/* TOP BAR — slim status strip */
.top-bar {
  background-color: var(--navy-deep);
  color: rgba(250, 249, 246, 0.85);
  padding: 9px 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.top-bar-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.top-bar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(48,136,244,0.2);
  flex-shrink: 0;
}

.top-bar-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7ec8ff;
  text-decoration: none;
  font-weight: 700;
  font-family: var(--display);
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.top-bar-phone:hover { color: var(--white); }

.top-bar-phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* SITE HEADER — sticky, hides on scroll-down, reveals on scroll-up */
.site-header {
  background-color: var(--navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 18px 0;
  transform: translateY(0);
  transition:
    padding 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.is-scrolled {
  padding: 11px 0;
  background-color: var(--navy-deep);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(48, 136, 244, 0.4);
}

/* Hidden state — slides the bar up off-screen.
   Combine with .is-scrolled (already past 12px) for the effect. */
.site-header.is-hidden {
  transform: translateY(-110%);
  box-shadow: none;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

/* LOGO with brand mark */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--cream);
  letter-spacing: -0.02em;
  font-family: var(--display);
  text-transform: uppercase;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--blue);
  border-radius: 8px;
  color: var(--blue);
  background: rgba(48, 136, 244, 0.08);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.logo:hover .logo-mark {
  background: var(--blue);
  color: var(--white);
  transform: rotate(-4deg);
}

.logo-text { line-height: 1; }

.text-orange {
  color: var(--orange);
}

/* PRIMARY NAV LINKS */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  color: rgba(250, 249, 246, 0.78);
  font-weight: 700;
  font-size: 0.86rem;
  font-family: var(--display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  transition: color 0.22s ease;
}

.nav-link-num {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.1em;
  opacity: 0.65;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover .nav-link-num {
  opacity: 1;
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 100%;
  height: 2px;
  background: var(--blue);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  right: 0;
}

.nav-link.is-active {
  color: var(--white);
}
.nav-link.is-active .nav-link-num {
  opacity: 1;
}

/* DROPDOWN — Services / Service Areas submenus */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-has-dropdown { padding-right: 0; }

.nav-dropdown-caret {
  margin-left: 6px;
  color: var(--blue);
  opacity: 0.85;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown.is-open .nav-dropdown-caret {
  opacity: 1;
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  margin-top: 14px;
  list-style: none;
  padding: 10px 0;
  min-width: 240px;
  background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid var(--blue);
  border-radius: 6px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1200;
}

/* Invisible hover bridge between the toggle and the menu so the menu
   doesn't dismiss when the cursor crosses the gap. */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu li { margin: 0; }

.nav-dropdown-menu a {
  display: block;
  padding: 11px 24px;
  color: rgba(250, 249, 246, 0.78);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, padding 0.22s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  color: var(--white);
  background-color: rgba(48, 136, 244, 0.14);
  padding-left: 30px;
  outline: none;
}

/* CTA button */
.btn-primary-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--blue);
  color: var(--white);
  padding: 11px 22px 11px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.82rem;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--blue);
  box-shadow: 0 6px 18px rgba(48, 136, 244, 0.28);
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease, gap 0.22s ease;
}

.btn-primary-nav-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-nav:hover {
  background-color: var(--white);
  color: var(--blue);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(48, 136, 244, 0.34);
  gap: 14px;
}

.btn-primary-nav:hover .btn-primary-nav-arrow {
  transform: translateX(4px);
}

/* MOBILE TOGGLE */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--cream);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* FOOTER */
.site-footer {
  background-color: var(--navy-deep);
  color: rgba(250, 249, 246, 0.7);
  padding: 72px 0 28px;
  font-size: 0.9rem;
  border-top: 4px solid var(--blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand .logo {
  color: var(--white);
}

.footer-brand p {
  margin-top: 18px;
  line-height: 1.6;
  max-width: 380px;
  font-size: 15px;
  color: rgba(250, 249, 246, 0.7);
}

.footer-col h4 {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 20px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: rgba(250, 249, 246, 0.7);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: #5fa8ff; }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(250, 249, 246, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-license {
  color: #5fa8ff;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--display);
}

@media (max-width: 900px) {
  .site-footer { padding: 56px 0 24px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin-bottom: 40px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

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

/* RESPONSIVE NAV */
@media (max-width: 900px) {
  .top-bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }

  .mobile-toggle {
    display: flex;
  }

  .logo { font-size: 1.2rem; }
  .logo-mark { width: 34px; height: 34px; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  }

  .main-nav.active {
    max-height: 1200px;
  }

  .nav-link, .btn-primary-nav {
    width: 100%;
    text-align: left;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    justify-content: flex-start;
  }

  .nav-link::after { display: none; }

  .btn-primary-nav {
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: none;
  }

  /* Mobile dropdowns: inline accordion-style instead of floating */
  .nav-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-has-dropdown {
    justify-content: space-between;
  }

  .nav-dropdown-caret {
    margin-left: auto;
  }

  .nav-dropdown-menu {
    position: static;
    margin-top: 0;
    background: rgba(0, 0, 0, 0.25);
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    transition: max-height 0.32s ease, padding 0.32s ease;
    min-width: 0;
  }

  .nav-dropdown-menu::before { display: none; }

  .nav-dropdown.is-open .nav-dropdown-menu {
    max-height: 600px;
    padding: 4px 0 8px;
  }

  /* Disable desktop hover behavior on mobile (would otherwise open on tap) */
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    max-height: 0;
    padding: 0;
  }
  .nav-dropdown.is-open:hover .nav-dropdown-menu,
  .nav-dropdown.is-open:focus-within .nav-dropdown-menu {
    max-height: 600px;
    padding: 4px 0 8px;
  }

  .nav-dropdown-menu a {
    padding: 13px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.74rem;
  }

  .nav-dropdown-menu a:hover,
  .nav-dropdown-menu a:focus-visible {
    padding-left: 44px;
  }
}
