/* Header and navigation styles. */

/* Header Styles */
.site-header {
  background-color: var(--amc-primary-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background-color: var(--amc-primary-dark);
  padding: 0.5rem 0;
  font-size: 0.75rem;
  color: var(--amc-gray-300);
}

.header-main {
  background-color: var(--amc-primary);
  padding: 0;
}

.site-logo img {
  max-height: 4rem;
  width: auto;
}

.main-navigation ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: var(--amc-blue-100);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.main-navigation a:hover,
.main-navigation a.current {
  color: var(--amc-white);
  background-color: rgba(255, 255, 255, 0.2);
}


/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--amc-white);
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 1024px) {
  .main-navigation {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--amc-primary);
    padding: 1rem;
  }
  
  .mobile-menu.active {
    display: block;
  }
  
  .mobile-menu ul {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .mobile-menu a {
    display: block;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
  }
}


/* Header layout fixes */
.header-top-inner,
.header-main-inner,
.footer-cta-inner,
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.header-contact,
.header-email,
.header-hours {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.header-contact a,
.header-email a,
.header-hours {
  color: var(--amc-gray-200);
}
.header-main-inner { min-height: 5rem; }
.header-cta { margin-left: auto; }
.mobile-menu { display: none; }

/* ====================================================
   AMC v2.4 Header Fix
   Compact, sticky, 90% width, mobile optimized
   ==================================================== */

/* Overall header reset */
.site-header {
  position: sticky !important;
  top: 0;
  z-index: 9999;
  background: #ffffff !important;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .08);
}

/* Admin bar offset */
.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* Top contact bar: full width, compact, not visually oversized */
.header-top {
  background: #0d1b2a !important;
  color: #ffffff !important;
  padding: 0 !important;
  min-height: 42px;
  display: flex;
  align-items: center;
}

.header-top .container {
  width: min(90%, 1280px) !important;
  max-width: 1280px !important;
  padding: 0 !important;
}

.header-top-inner {
  min-height: 42px;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  font-size: 13px;
  font-weight: 700;
}

.header-contact,
.header-email,
.header-hours {
  display: inline-flex !important;
  align-items: center !important;
  gap: .4rem !important;
  color: #ffffff !important;
}

.header-contact a,
.header-email a,
.header-hours a {
  color: #ffffff !important;
}

/* Main nav area: remove excessive white gap */
.header-main {
  background: #ffffff !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid #e5e7eb;
}

.header-main .container {
  width: min(90%, 1280px) !important;
  max-width: 1280px !important;
  padding: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Blue navigation panel */
.header-main-inner {
  width: 100% !important;
  min-height: 72px !important;
  display: flex !important;
  align-items: center !important;
  gap: 1.4rem !important;
  justify-content: space-between !important;
  background: #1565c0 !important;
  border-radius: 0 !important;
  padding: 0 1.35rem !important;
  box-shadow: 0 10px 28px rgba(21, 101, 192, .16);
}

/* Logo */
.site-logo {
  flex: 0 0 auto;
}

.site-logo a {
  display: inline-flex;
  align-items: center;
}

.site-logo img {
  max-height: 54px !important;
  width: auto !important;
  display: block;
}

/* Navigation */
.main-navigation {
  flex: 1 1 auto;
}

.main-navigation ul,
.nav-menu {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .25rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-navigation li {
  margin: 0 !important;
  padding: 0 !important;
}

.main-navigation a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  padding: .7rem .82rem !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .02em !important;
  white-space: nowrap !important;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  background: rgba(255, 255, 255, .16) !important;
  color: #ffffff !important;
}

/* Header CTA */
.header-cta {
  flex: 0 0 auto;
  margin-left: 0 !important;
}

.header-cta .btn,
.header-cta .btn-primary {
  min-height: 48px !important;
  border-radius: 0 !important;
  background: #e31e24 !important;
  color: #ffffff !important;
  padding: 0 1.25rem !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: .02em !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

.header-cta .btn:hover,
.header-cta .btn-primary:hover {
  background: #c9181e !important;
  color: #ffffff !important;
  transform: none !important;
}

/* Mobile menu button */
.mobile-menu-toggle {
  display: none;
  color: #ffffff !important;
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 12px;
  padding: .65rem !important;
}

/* Mobile dropdown */
.mobile-menu {
  display: none;
  background: #1565c0 !important;
  width: min(90%, 1280px);
  margin: 0 auto 14px;
  border-radius: 0 0 16px 16px;
  padding: 1rem;
  box-shadow: 0 16px 32px rgba(16,24,40,.16);
}

.mobile-menu.active {
  display: block !important;
}

.mobile-menu ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  gap: .35rem !important;
}

.mobile-menu a {
  display: block !important;
  color: #ffffff !important;
  padding: .85rem 1rem !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  font-size: 13px !important;
}

.mobile-menu a:hover {
  background: rgba(255,255,255,.16) !important;
}

/* Avoid page body hidden under sticky header when using anchors */
html {
  scroll-padding-top: 140px;
}

@media (max-width: 1120px) {
  .main-navigation a {
    padding: .65rem .58rem !important;
    font-size: 12px !important;
  }

  .header-cta .btn,
  .header-cta .btn-primary {
    padding: 0 1rem !important;
    font-size: 12px !important;
  }
}

@media (max-width: 980px) {
  .header-top-inner {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: .7rem 1.2rem !important;
    padding: .5rem 0;
  }

  .header-hours {
    flex-basis: 100%;
    justify-content: center;
    text-align: center;
  }

  .main-navigation,
  .header-cta {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .header-main-inner {
    min-height: 68px !important;
  }

  .site-logo img {
    max-height: 48px !important;
  }
}

@media (max-width: 520px) {
  .header-top {
    display: none !important;
  }

  .header-main {
    padding: 10px 0 !important;
  }

  .header-main .container,
  .header-top .container,
  .mobile-menu {
    width: calc(100% - 24px) !important;
  }

  .header-main-inner {
    padding: 0 .9rem !important;
    min-height: 62px !important;
  }

  .site-logo img {
    max-height: 42px !important;
  }

  html {
    scroll-padding-top: 90px;
  }
}




/* Header logo fix */
.site-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.site-logo .custom-logo-link,
.site-logo > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0d47a1;
  border-radius: 10px;
  padding: 10px 14px;
  min-height: 56px;
}

.site-logo img,
.site-logo .custom-logo {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 48px;
  object-fit: contain;
}

@media (max-width: 520px) {
  .site-logo .custom-logo-link,
  .site-logo > a {
    padding: 8px 10px;
    min-height: 48px;
  }

  .site-logo img,
  .site-logo .custom-logo {
    max-width: 150px;
    max-height: 40px;
  }
}


/* FINAL HEADER WHITE AREA REMOVE FIX */
.site-header {
  background: #0d1b2a !important;
}

.header-main {
  background: #1565c0 !important;
  padding: 0 !important;
  border-bottom: none !important;
}

.header-main .container {
  width: min(90%, 1280px) !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.header-main-inner {
  background: #1565c0 !important;
  box-shadow: none !important;
  min-height: 74px !important;
  border-radius: 0 !important;
}

/* Remove white logo box */
.site-logo .custom-logo-link,
.site-logo > a {
  background: transparent !important;
  padding: 0 !important;
  min-height: auto !important;
  border-radius: 0 !important;
}

/* Keep logo clean */
.site-logo img,
.site-logo .custom-logo {
  max-height: 58px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* Mobile */
@media (max-width: 520px) {
  .header-main {
    padding: 0 !important;
  }

  .header-main .container {
    width: calc(100% - 24px) !important;
  }

  .header-main-inner {
    min-height: 64px !important;
    padding: 0 1rem !important;
  }

  .site-logo img,
  .site-logo .custom-logo {
    max-height: 46px !important;
  }
}

