/* ===========================
   SHARED NAV + FOOTER STYLES
   Extracted from styles.css, edit here for nav/footer changes
   =========================== */



/* ===========================
   TOP INFO BAR
   =========================== */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  background: #0B1D3A;
  color: #fff;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 7px 16px 7px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.top-bar-info {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.top-bar-info a, .top-bar-info span {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.2px;
}
.top-bar-info a:hover { color: var(--btn-orange); }
.top-bar-info .icon { color: var(--btn-orange); font-size: 0.95em; }
.top-bar-social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-bar-social a {
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  font-size: 1.15rem;
  transition: color 0.2s ease;
  padding: 2px;
}
.top-bar-social a:hover {
  color: var(--btn-orange);
}
@media (max-width: 768px) {
  .top-bar { display: none; }
  .navbar, header.navbar, nav.navbar { top: 0; }
}

/* ===========================
   NAVIGATION — all variants
   =========================== */
.navbar, header.navbar, nav.navbar {
  position: fixed;
  top: 38px; left: 0; right: 0;
  z-index: 1000;
  background: rgba(11, 29, 58, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(212, 168, 67, 0.2);
  padding: 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}
.navbar-container, .nav-container, .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 32px 16px 8px;
}
/* Logo */
.navbar-logo, .nav-logo, .logo, .nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-text, .brand-name {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}
.logo-img {
  height: 48px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}
.navbar-logo { margin-right: auto; padding-left: 0; }
.logo-img:hover { opacity: 0.85; }
.navbar-logo { flex-shrink: 0; }
.navbar-logo a { display: inline-block; line-height: 0; flex-shrink: 0; }
@media (max-width: 992px) {
  .logo-img { height: 42px; }
}
@media (max-width: 768px) {
  .logo-img { height: 50px; }
}
@media (max-width: 480px) {
  .logo-img { height: 46px; }
}
.logo-text span, .brand-name span { color: var(--gold); }
.logo-icon {
  width: 44px; height: 44px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.brand-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
}
/* Nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  position: relative;
  padding: 10px 18px;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  width: 0; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}
.nav-link:hover, .nav-link.active {
  color: var(--gold) !important;
  background: rgba(212, 168, 67, 0.08);
}
.nav-link:hover::after, .nav-link.active::after { width: 24px; }

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > .nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.nav-dropdown > .nav-link .dropdown-arrow {
  font-size: 0.6em;
  transition: transform var(--transition);
}
.nav-dropdown:hover > .nav-link .dropdown-arrow {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 260px;
  background: rgba(11, 29, 58, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 12px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
  z-index: 1001;
}
.nav-dropdown:hover .dropdown-menu {
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0; right: 0;
  height: 10px;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}
.dropdown-menu a {
  display: block;
  padding: 11px 16px;
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.dropdown-menu a:hover {
  background: linear-gradient(90deg, rgba(212, 168, 67, 0.18), rgba(212, 168, 67, 0.06));
  color: var(--gold) !important;
  transform: translateX(4px);
}
.dropdown-menu .dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 6px 16px;
}
.dropdown-menu .dropdown-all {
  font-weight: 700;
  color: var(--gold) !important;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 4px;
  padding-top: 12px;
}

/* Nav right side */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.phone-link, .nav-phone {
  color: var(--gold) !important;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}
.cta-button, .nav-cta {
  display: inline-block;
  padding: 10px 24px;
  background: var(--btn-orange);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid var(--btn-orange);
  transition: all var(--transition);
}
.cta-button:hover, .nav-cta:hover {
  background: transparent;
  color: var(--btn-orange) !important;
}
.cta-button-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: transparent;
  color: var(--gold) !important;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid var(--gold);
  transition: all var(--transition);
  white-space: nowrap;
}
.cta-button-call:hover {
  background: var(--gold);
  color: var(--white) !important;
}
@media (max-width: 768px) {
  .cta-button-call { display: none; }
}
/* Hamburger / mobile toggle */
.hamburger, .nav-toggle, .mobile-toggle, .mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span, .nav-toggle span, .mobile-toggle span, .mobile-nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: var(--navy);
  z-index: 999;
  flex-direction: column;
  padding: 24px;
  gap: 16px;
  border-bottom: 2px solid var(--gold);
}
.mobile-menu.active { display: flex; }
.mobile-nav-link {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mobile-nav-link:hover { color: var(--gold); }

/* ===========================
   FOOTER
   =========================== */
.footer, footer {
  background: var(--navy);
  color: var(--text-light);
  padding: 64px 0 0;
}
.footer-container, .footer-content, .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-section, .footer-col {}
.footer-section h3, .footer-col h3, .footer-heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-section h3 span, .footer-heading span { color: var(--gold); }
.footer-section p, .footer-col p, .footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.footer-section ul, .footer-col ul, .footer-links {
  list-style: none;
  padding: 0;
}
.footer-section ul li, .footer-col ul li, .footer-links li {
  margin-bottom: 10px;
}
.footer-section ul a, .footer-col ul a, .footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-section ul a:hover, .footer-col ul a:hover, .footer-links a:hover {
  color: var(--gold);
}
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-disclaimer p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  margin-bottom: 8px;
}
.footer-disclaimer p:last-child { margin-bottom: 0; }
.footer-disclaimer strong { color: rgba(255,255,255,0.55); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom a { color: var(--gold); }

/* ===========================
   RESPONSIVE
   =========================== */
/* Shrink nav text/spacing in the squeeze zone above the 1024px hamburger
   breakpoint so links and buttons stay on one line. */
@media (max-width: 1250px) and (min-width: 1025px) {
  .nav-menu { gap: 2px; }
  .nav-link {
    font-size: 0.72rem;
    padding: 10px 10px;
    letter-spacing: 0.2px;
  }
  .navbar-right { gap: 8px; }
  .cta-button, .nav-cta {
    padding: 9px 14px;
    font-size: 0.72rem;
    white-space: nowrap;
  }
  .cta-button-call {
    padding: 9px 14px;
    font-size: 0.72rem;
    white-space: nowrap;
  }
  .phone-link, .nav-phone { font-size: 0.8rem; }
}@media (max-width: 992px) {
.footer-container, .footer-content, .footer-grid { grid-template-columns: 1fr 1fr; }}


/* Nav switches to the hamburger menu earlier than other layout changes —
   the full desktop nav (all links + Get a Quote + Call Us) doesn't fit
   between roughly 1024px and 768px and was wrapping onto multiple lines. */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-top: 1px solid rgba(237,28,36,0.15);
    z-index: 999;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-menu.active { display: flex; }
  .hamburger, .nav-toggle, .mobile-toggle, .mobile-nav-toggle { display: flex; }
  .phone-link { display: none; }
  .nav-menu > a,
  .nav-menu > .nav-dropdown {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .nav-menu > a:last-child,
  .nav-menu > .nav-dropdown:last-child { border-bottom: none; }
  .nav-dropdown > .nav-link { justify-content: space-between; width: 100%; padding: 0; }
  /* Mobile dropdown — expand inline, ignore desktop hover behavior */
  .nav-dropdown { position: static; }
  .dropdown-menu,
  .nav-dropdown:hover .dropdown-menu {
    position: static;
    transform: none !important;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    display: none;
    background: rgba(255,255,255,0.05);
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    margin: 8px 0 0;
    padding: 4px 0 4px 16px;
  }
  .dropdown-menu::before { display: none; }
  /* Only the .open class controls visibility on mobile, never :hover */
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu a { padding: 8px 12px; font-size: 0.82rem; }
  .dropdown-menu a:hover { padding-left: 16px; transform: none; }
  /* Arrow rotates on open (tap), not hover */
  .nav-dropdown:hover > .nav-link .dropdown-arrow { transform: none; }
  .nav-dropdown.open > .nav-link .dropdown-arrow { transform: rotate(180deg); }
  .cta-button { display: none; }
  .cta-button-call { display: none; }
  .dropdown-menu.dropdown-menu-2col {
    display: none;
    grid-template-columns: 1fr;
    min-width: 0;
  }
  .nav-dropdown.open .dropdown-menu.dropdown-menu-2col { display: block; }
  .dropdown-menu.dropdown-menu-commercial {
    display: none;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    grid-template-rows: none;
    min-width: 0;
  }
  .nav-dropdown.open .dropdown-menu.dropdown-menu-commercial { display: block; }
  .nav-menu > a.nav-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    background: var(--btn-orange, #e8730c);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 8px;
  }
  .nav-menu > a.nav-call-btn:hover { background: #cf640a; color: #fff !important; }
}@media (max-width: 768px) {
.navbar, header.navbar, nav.navbar { top: 0 !important; }.footer-container, .footer-content, .footer-grid { grid-template-columns: 1fr; }}


/* ===== Mobile hamburger "Call Us" button ===== */
.nav-call-btn { display: none; }
@media (max-width: 768px) {
  .nav-menu > a.nav-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    background: var(--btn-orange, #e8730c);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 8px;
  }
  .nav-menu > a.nav-call-btn:hover { background: #cf640a; color: #fff !important; }
}

/* ===== Footer social links ===== */
.footer-social { display: flex; gap: 14px; margin-top: 16px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease;
}
.footer-social a:hover { background: var(--btn-orange, #D45A2A); color: #fff; }

/* Services dropdown — 2 columns */
.dropdown-menu.dropdown-menu-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 8px;
  min-width: 440px;
}
.dropdown-menu.dropdown-menu-2col .dropdown-all {
  grid-column: 1 / -1;
}
@media (max-width: 768px) {
  .dropdown-menu.dropdown-menu-2col {
    display: none;
    grid-template-columns: 1fr;
    min-width: 0;
  }
  .nav-dropdown.open .dropdown-menu.dropdown-menu-2col {
    display: block;
  }
}

/* Commercial dropdown — grouped 2-column layout, columns fill top-to-bottom
   so each parent category stays directly above its city sub-pages */
.dropdown-menu.dropdown-menu-commercial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: column;
  grid-template-rows: repeat(6, auto);
  gap: 2px 24px;
  min-width: 420px;
}
.dropdown-menu.dropdown-menu-commercial a.dropdown-submenu-item {
  padding: 5px 16px 5px 34px;
  line-height: 1.2;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6) !important;
}
.dropdown-menu.dropdown-menu-commercial a.dropdown-submenu-item:hover {
  color: var(--gold) !important;
}
@media (max-width: 768px) {
  .dropdown-menu.dropdown-menu-commercial {
    display: none;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    grid-template-rows: none;
    min-width: 0;
  }
  .nav-dropdown.open .dropdown-menu.dropdown-menu-commercial {
    display: block;
  }
}