/* ==========================================================================
   SECTION 1: CORE ROOT VARIABLES & GLOBAL STYLES
   ========================================================================== */
:root {
  --header-offset: 0px;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}


/* ==========================================================================
   SECTION 2: MAIN DESKTOP HEADER LOGO & TEXT INFO
   ========================================================================== */
#header {
  background: #ffffff;
  border-bottom: 1px solid #eef2f7;
  position: relative;
  z-index: 1001;
}

#header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(237, 167, 47, .06), rgba(11, 59, 145, .04));
  z-index: -1;
}

#header .container-fluid {
  padding-top: 10px;
  padding-bottom: 6px;
}

#header img {
  max-height: 58px;
  height: auto;
  width: auto;
}

#header .col-lg-3, 
#header .col-12 {
  font-size: 14px;
  color: #374151;
  line-height: 1.4;
}

#header i {
  color: #EDA72F;
  font-size: 18px;
  margin-bottom: 2px;
}

#header a, 
#header .bi-phone, 
#header .bi-envelope {
  color: #0b3b91;
  font-weight: 500;
  text-decoration: none;
}


/* ==========================================================================
   SECTION 3: MOBILE BREAKPOINTS FOR TOP IMAGE/BRANDING LOGO
   ========================================================================== */
@media(max-width: 768px) {
  #header > .container-fluid > .row {
    display: none !important;
  }
  #header .text-center.d-lg-none img {
    max-height: 70px;
    max-width: 85%;
    margin-bottom: 5px;
  }
}


/* ==========================================================================
   SECTION 4: MAIN NAVIGATION STICKY MENU BAR
   ========================================================================== */
#menu-bar {
  background: #030F27 !important;
  padding: 0 !important;
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

#menu-bar a,
#menu-bar .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  text-decoration: none;
}

#menu-bar .nav-link:hover, 
#menu-bar .nav-link.active,
#menu-bar .navbar-nav > li:hover > a {
  color: #EDA72F !important;
}

#menu-bar .navbar {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  flex-wrap: nowrap !important;
}

#menu-bar .navbar-toggler {
  margin: 5px !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}


/* ==========================================================================
   SECTION 5: DESKTOP HEADER QUICK ACTIONS BAR
   ========================================================================== */
.menu-desktop-extras {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-wrap: nowrap !important;
  white-space: nowrap;
  z-index: 1005;
  padding-right: 15px;
}

.menu-desktop-phone {
  display: flex !important;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: #EDA72F !important;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(237, 167, 47, .4);
  background: rgba(237, 167, 47, .08);
  border-radius: 4px;
}

.menu-desktop-phone i {
  font-size: 16px;
  background: rgba(237, 167, 47, .25);
  border-radius: 50%;
  padding: 4px;
}


/* ==========================================================================
   SECTION 6: MIDDLE INTERMEDIATE CONTACT LINKS ROW
   ========================================================================== */
.menu-mobile-contacts {
  display: flex !important;
  width: 100%;
  background: #020a1a;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-mobile-contacts a {
  display: flex !important;
  align-items: center;
  gap: 5px;
  color: #EDA72F !important;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
}

.menu-mobile-contacts i {
  font-size: 12px;
  background: rgba(237, 167, 47, .2);
  border-radius: 50%;
  padding: 5px;
}


/* ==========================================================================
   SECTION 7: BREADCRUMBS DESIGN SYSTEM OVERHAUL
   ========================================================================== */
.breadcrumbs {
  background: #f8fafc !important;
  padding: 6px 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.breadcrumbs ol {
  display: flex !important;
  flex-wrap: wrap !important;
  font-size: 13px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  gap: 6px !important;
  align-items: center !important;
}

.breadcrumbs ol li {
  color: #64748b !important;
  display: flex !important;
  align-items: center !important;
}

.breadcrumbs ol li:not(:last-child)::after {
  content: "\f105" !important;
  font-family: "FontAwesome" !important;
  margin-left: 6px !important;
  color: #cbd5e1 !important;
  font-size: 13px !important;
}

.breadcrumbs ol li a {
  color: #0b3b91 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}

.breadcrumbs ol li a:hover {
  color: #EDA72F !important;
  text-decoration: underline !important;
}


/* ==========================================================================
   SECTION 8: STANDALONE PRODUCT PAGE BREADCRUMBS OVERRIDES
   ========================================================================== */
.product-breadcrumb {
  padding: 6px 0 !important;
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.product-breadcrumb-list {
  display: flex !important;
  flex-wrap: wrap !important;
  font-size: 13px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #64748b !important;
}

.product-breadcrumb-list a {
  color: #0b3b91 !important;
  text-decoration: none !important;
}

body:not(.product-product) .breadcrumbs,
body.product-product .product-breadcrumb {
  margin-top: var(--header-offset);
}


/* ==========================================================================
   SECTION 12: MOBILE VIEWPORT OVERRIDE SYSTEM (RESPONSIVE STACKING & OVERRIDES)
   ========================================================================== */
@media(max-width: 991px) {
  #srm-home-main-content, 
  #srm-home-sidebar-target {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    display: block !important;
  }
  
  #srm-home-sidebar-target {
    margin-top: 24px !important;
  }
  
  .review-left-panel, 
  .review-right-panel {
    width: 100% !important;
    flex: 0 0 100% !important;
  }
  
  .modern-product-title {
    font-size: 25px !important;
    margin-top: 10px !important;
  }
  
  body {
    padding-bottom: 72px !important;
  }

  /* Top Mobile Dynamic Menu Header Text Fix */
  .srm-mobile-phones,
  .srm-mobile-phones a,
  span#srm-mobile-dynamic-text,
  .srm-mobile-phones .srm-mobile-dynamic-link {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.15) !important;
    padding: 5px 12px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
  }

  .srm-mobile-phones i,
  .srm-mobile-phones .bi-phone-fill {
    color: #eda72f !important;
    font-size: 14px !important;
    margin-right: 5px !important;
  }

  /* Fixed Bottom Sticky Call Now Anchor Action Button */
  #srm-mobile-tab-call,
  #srm-mobile-tab-chat,
  #srm-mobile-tab-inquiry {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #srm-mobile-tab-call .bi-telephone-fill {
    font-size: 18px !important;
    margin-bottom: 2px !important;
    display: inline-block !important;
    color: #0b3b91 !important;
  }

  #srm-mobile-tab-call span {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #0b3b91 !important;
  }

  #srm-mobile-tab-call:after {
    content: none !important;
    display: none !important;
  }
}


/* ==========================================================================
   SECTION 13: RESPONSIVE CONTRACTOR CARD LISTINGS BREAKPOINTS (767px)
   ========================================================================== */
@media(max-width: 767px) {
  .location_item {
    flex-direction: column;
    padding: 15px;
    gap: 16px;
  }
  .location_item .img {
    flex: 0 0 auto;
    width: 100%;
  }
  .location_item .img_inner {
    aspect-ratio: 16/9;
  }
  .location_item .btns {
    flex: 0 0 auto;
    width: 100%;
    margin-top: 15px;
  }
}


/* ==========================================================================
   SECTION 14: SMALL DEVICE CONTAINER & GRID OPTIMIZATIONS (576px)
   ========================================================================== */
@media(max-width: 576px) {
  .cta-button-group .btn {
    width: 100% !important;
    flex: 0 0 100% !important;
  }
  .modern-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 12px !important;
  }
  .vendor-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  }
  .modern-white-card {
    padding: 16px !important;
  }
}