/* ***********************************************************************
     Filename: header-footer.css
     Description: CSS file for header and footer of SACFinance website
     Last worked on by: Sarina Lalria 

     Related Files: 
         - header.cfm
         - footer.cfm
         - JS/header-footer_scripts.js
************************************************************************ */

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}


/* Navbar container */
.sac-navbar {
  width: 100%;
  background: #fff;
  z-index: 1000;
  border-bottom: 2px solid #ddd;
}

.sac-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 1rem;
}

/* Logo */
.logo {
  max-height: 60px;
  display: block;
}

/* Nav items (horizontal on desktop) */
.sac-navbar-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  list-style: none;
  max-height: 50px;
}

.sac-navbar-nav .sac-nav-item {
  display: flex;
  align-items: center;
  margin-top: 10px;
  margin-right:4px
}

.sac-navbar-nav .sac-nav-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #043e6c;
  font-weight: 800;
  font-size: 16px;
  transition: color 0.3s ease;
  font-family: 'Calibri', sans-serif;
}

.sac-navbar-nav .sac-nav-item a:hover {
  color: #2A95D1;
}

.sac-navbar-nav .sac-nav-item .dropdown .dropdown-menu .dropdown-item:hover {
  color: #FFFFFF;
}

/* Icon circles */
.sac-navbar-nav i,
.sac-navbar-nav .user-icon,
.sac-navbar-nav .car-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  border-radius: 50%;
}

.sac-navbar-nav i {
  width: 35px;
  height: 35px;
  background-color: #043e6c;
  color: #fff;
  font-size: 20px;
}

.sac-navbar-nav .car-nav-icon {
  width: 35px;
  height: 35px;
  background-color: #fff;
  color: #043e6c;
  border: none;
  font-size: 35px;
}

.sac-navbar-nav .user-icon {
  width: 35px;
  height: 35px;
  background-color: #fff;
  color: #043e6c;
  border: 2px solid #043e6c;
  font-size: 20px;
}

/* Label wrap */
.sac-navbar-nav label {
  white-space: normal;
  width: 100px;
  margin-top: 10px;
  font-size: 15px;
}

/* Hamburger (hidden on desktop) */
.sac-navbar-toggler {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.sac-navbar-toggler .hamburger {
  width: 25px;
  height: 3px;
  background-color: #043e6c;
  border-radius: 2px;
}

/* Fullscreen Sidebar (Mobile & Tablet) */
.sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100vw;
  height: 100vh;
  background: #fff;
  transition: left 0.3s ease;
  padding: 2rem 1.5rem;
  z-index: 1200;
  overflow-y: auto;
  font-family: 'Calibri', sans-serif;
}

.sidebar.active {
  left: 0;
}

/* Sidebar close button */
.sidebar .close-btn {
  font-size: 32px;
  font-weight: bold;
  color: #043e6c;
  position: absolute;
  top: 20px;
  right: 25px;
  padding: 10px;
  cursor: pointer;
  z-index: 1300;
}

/* Sidebar header with logo and divider */
.sidebar-header {
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.sidebar-header .logo {
  max-height: 55px;
  margin-bottom: 0.75rem;
}

.sidebar-header hr {
  border: 0;
  border-top: 2px solid #ddd;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Sidebar nav items */
.sac-sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sac-sidebar-nav li {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.sac-sidebar-nav li:last-child {
  border-bottom: none;
}

.sac-sidebar-nav li a {
  text-decoration: none;
  color: #043e6c;
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sac-sidebar-nav li a i {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #043e6c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overlay to dim background */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1150;
}

.sidebar-overlay.active {
  display: block;
}


/* =========================================================
   SACFinance Desktop Navbar
   - Wrap Customer Resolution onto two lines
   - Wrap Superior Auto Inventory onto two lines
   - Keep icons aligned with labels
   - Vertically center navigation with the SACFinance logo
   - Preserve existing mobile and tablet layouts
========================================================= */

@media (min-width: 1251px) {

    /* Logo and navigation in one horizontal row */
    .sac-nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        width: 100%;
        min-width: 0;
    }

    /* Desktop navigation with consistent, compact spacing */
    .sac-navbar-nav {
        display: flex;
        flex: 1 1 auto;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
        min-width: 0;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    /* Remove extra margins from list items */
    .sac-navbar-nav > .sac-nav-item {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        margin: 0;
        padding: 0;
    }

    /* Align each icon and label */
    .sac-navbar-nav > .sac-nav-item > .sac-nav-link {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        min-height: 46px;
        padding: 5px 0;
        white-space: normal;
        text-align: left;
        line-height: 1.15;
    }

    /* Compact labels; only long labels wrap */
    .sac-navbar-nav > .sac-nav-item > .sac-nav-link .sac-nav-label {
        display: inline-block;
        width: auto;
        max-width: 100px;
        margin: 0;
        padding: 0;
        font-size: 15px;
        line-height: 1.15;
        white-space: normal;
        overflow-wrap: normal;
    }

    /* Consistent icon sizing and alignment */
    .sac-navbar-nav > .sac-nav-item > .sac-nav-link > i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        margin: 0;
        align-self: center;
    }

    /* Standard navigation icons */
    .sac-navbar-nav > .sac-nav-item > .sac-nav-link > i:not(.car-nav-icon):not(.user-icon) {
        background: #043e6c;
        color: #ffffff;
        font-size: 18px;
    }

    /* Inventory car icon */
    .sac-navbar-nav > .sac-nav-item > .sac-nav-link > i.car-nav-icon {
        background: #ffffff;
        color: #043e6c;
        font-size: 29px;
    }

    /* My Account stays on one line */
    .sac-navbar-nav > .sac-account-nav-item .sac-nav-label {
        max-width: none;
        width: auto;
        white-space: nowrap;
    }

    .sac-navbar-nav > .sac-account-nav-item .dropdown-toggle {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 5px;
        white-space: nowrap;
    }

    /* Compact Customer Loyalty Program promotion */
    .sac-navbar-nav > .sac-promo-nav-item {
        align-self: center;
        margin: 0;
    }

    .sac-navbar-nav > .sac-promo-nav-item > .sac-promo-link {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        min-height: 46px;
        padding: 7px 10px;
        white-space: nowrap;
    }

    /* Promotion icon container */
    .sac-navbar-nav > .sac-promo-nav-item .sac-promo-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        margin: 0;
    }

    /* Promotion gift icon */
    .sac-navbar-nav > .sac-promo-nav-item .sac-promo-icon i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: auto;
        height: auto;
        margin: 0;
        background: transparent;
        color: #ffffff;
        font-size: 17px;
    }

    /* Logo alignment */
    .sac-navbar-brand {
        display: flex;
        align-items: center;
        flex: 0 1 auto;
        min-width: 0;
        align-self: center;
    }

    .sac-navbar-brand .logo {
        display: block;
        width: auto;
        height: auto;
        max-width: 300px;
        max-height: 58px;
        object-fit: contain;
    }

    /* Hide hamburger on desktop */
    .sac-navbar-toggler {
        display: none;
    }
}



/* ----------------------------
   Mobile & Tablet Sidebar
   (full width, overrides above if needed)
-----------------------------*/
@media (max-width: 900px) {
    /* Sidebar full screen and active states */
    .sidebar {
        left: -100%;
        width: 100vw !important;
        height: 100vh !important;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-overlay {
        width: 100vw !important;
        height: 100vh !important;
    }

    /* Hide desktop nav, show hamburger */
    .sac-navbar-nav { display: none; }
    .sac-navbar-toggler { display: flex; }

    /* Scale down logo, icons, text */
    .sidebar-header .logo { max-height: 45px; }

    .sac-sidebar-nav li a {
        font-size: 1.1rem;
        gap: 0.75rem;
    }

    .sac-sidebar-nav li a i {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .sac-navbar-nav i,
    .sac-navbar-nav .user-icon,
    .sac-navbar-nav .car-nav-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .sac-navbar-nav label {
        font-size: 12px;
        margin-top: 20px;
        width: 80px;
    }
}


/* ============================================
   My Account Dropdown (Click-to-toggle version)
   ============================================ */
.dropdown {
  position: relative;
  margin-right: 20px;
}

.dropdown-label {
  max-width: 75px;
  margin-right: 0;
}

.dropdown .user-icon {
  width: 35px;
  height: 35px;
  background-color: #fff;
  color: #043e6c;
  border: 2px solid #043e6c;
  font-size: 20px;

}

/* Dropdown toggle - label + arrow inline without extra space */
.dropdown-toggle {
  display: inline-flex;       /* inline-flex keeps it inline */
  align-items: center;        /* vertically align label & arrow */
  justify-content: flex-start; /* keep them together on the left */
  gap: 4px;                   /* small space between label and arrow */
  cursor: pointer;
  font-weight: 800;
  color: #043e6c;
  font-size: 16px;
  font-family: 'Calibri', sans-serif;
  transition: color 0.3s ease;
  white-space: nowrap;        /* prevent wrapping */
}



/* Dropdown arrow */
.dropdown-toggle::after {
  content: "\f078"; /* Font Awesome down arrow */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 12px;
  margin-top: 8px;
  padding: 0;
  transition: transform 0.3s ease;
  margin-left: 0;

}


.dropdown.active .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Dropdown menu */
.dropdown-menu {
  list-style: none; /* remove bullets */
  margin: 0;
  padding: 0.3rem 0;
  display: none;
  position: absolute;
  top: 115%;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1500;
}

/* Show dropdown when active */
.dropdown.active .dropdown-menu {
  display: block;
}

/* Dropdown items */
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.7rem 1rem;
  color: #043e6c;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease;
  border-bottom: 1px solid #eee;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item i {
  font-size: 16px;
  color: #043e6c;
  width: 20px;
  text-align: center;
}

.dropdown-item:hover {
  background-color: #2A95D1;
  color: #FFFFFF
  
}

.dropdown-item:hover a{
  color: #FFFFFF
}

.dropdown-item:hover i {
  color: #043e6c;
}

/* --------------------------------------------
   Sidebar / Mobile Adjustments
---------------------------------------------*/
@media (max-width: 900px) {
  .dropdown-menu {
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    min-width: 150px;
    padding: 0;
    margin-left: 40px;

    
  }

  .dropdown-item {
    border-bottom: 1px solid #eee;
    margin: 0;
    font-size: 12px;
    font-family: 'Calibri', sans-serif;
    padding: 0;
    margin-bottom: 0;
    gap: 0;
    margin-top: 5px;
  }

  .dropdown-item:last-child {
    border-bottom: none;
  }

  .dropdown-item i {
    font-size: 12px;
    color: #043e6c;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .dropdown-item .fa-arrow-right {
    font-size: 12px;
    color: #043e6c;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sac-sidebar-nav .dropdown-menu li {
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
  }

  .sac-sidebar-nav .dropdown-menu li:last-child {
    border-bottom: none;
  }

  /* Dropdown arrow */
  .dropdown-toggle::after {
    margin-top: 2px;

  }
}


/* ----------------------------
   Footer Styles
-----------------------------*/
.footer-style {
    background-color: #043e6c;
    color: #fff;
    font-family: 'Calibri', sans-serif;
    padding: 3rem 0.5rem 0.5rem;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    overflow-y: hidden;
}

.footer-container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    overflow-x: hidden;
    align-items: center;
    overflow-y: hidden;
}

/* BBB Logo */
.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 0.5rem;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
    max-width: 100%;
}

/* Footer Sections Wrapper - centers the columns */
.footer-sections-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
 
}

/* Footer main sections */
.footer-sections {
    display: flex;
    justify-content: center;
    gap: 4rem;
    text-align: left;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
   
}

.footer-column {
    min-width: 200px;
    margin-left: 6rem;
    
}

.footer-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 0.5rem;
    margin-top: 2rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2px;
    margin-top: 0.5rem;
}

.footer-column ul li {
    font-size: 13px;
    margin-bottom: 0.4rem;
}

.footer-column a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #00aaff;
}

/* Footer bottom */
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.5rem;
    font-size: 0.9rem;
    width: 100%;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
}

.footer-links a:hover {
    color: #00aaff;
}

.separator {
    margin: 0
}

/* ----------------------------
   Tablet View (601px–1100px)
-----------------------------*/
@media (min-width: 601px) and (max-width: 1100px) {
  .footer-sections-wrapper {
    justify-content: center;      /* centers the entire footer sections wrapper */
    width: 100%;
  }
  .footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    justify-content: center;       /* centers the grid columns */
    text-align: left;              /* keeps text left-aligned inside each */
    gap: 2rem;                     /* reduced gap to prevent overflow */
    max-width: 900px;              /* keeps content nicely contained */
    margin: 0 auto;                /* ensures grid is centered horizontally */
    padding: 0 4rem;                /* adds horizontal padding */
  }

  .footer-column {
        max-width: 300px;
        margin-left: 0;
    }

  
}


/* ----------------------------
   Mobile View (max-width: 620px)
-----------------------------*/
@media (max-width: 620px) {
    .footer-style {
        padding: 2rem 1rem;
    }

    .footer-sections {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
        max-width: 100%;
    }

    .footer-column {
        margin-left: 0;
        width: 100%;
        max-width: 300px;
    }

    .footer-column ul {
        text-align: center;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .separator{
        display: none;
    }
}
/* ==========================================
   SACFinance Header Alignment Improvements
   Version 4.8
========================================== */

.sac-navbar {
    width: 100%;
    background: #ffffff;
    border-bottom: 2px solid #ddd;
}

.sac-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    width: 100%;
    min-height: 82px;
    padding: 0.6rem 1.5rem;
}

.sac-navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sac-navbar-brand .logo {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 60px;
    object-fit: contain;
}

/* Desktop navigation */
.sac-navbar-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(10px, 1.2vw, 22px);
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: none;
    min-width: 0;
}

.sac-navbar-nav > .sac-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.sac-navbar-nav .sac-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 5px 0;
    color: #043e6c;
    font-family: Calibri, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.sac-navbar-nav .sac-nav-link:hover {
    color: #2A95D1;
}

/* Align all navigation icons consistently */
.sac-navbar-nav .sac-nav-link > i,
.sac-navbar-nav .sac-nav-link .user-icon,
.sac-navbar-nav .sac-nav-link .car-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin: 0;
    border-radius: 50%;
    font-size: 18px;
}

.sac-navbar-nav .sac-nav-link > i:not(.car-nav-icon):not(.user-icon) {
    color: #ffffff;
    background: #043e6c;
}

.sac-navbar-nav .sac-nav-link .car-nav-icon {
    color: #043e6c;
    background: #ffffff;
    font-size: 29px;
}

.sac-navbar-nav .sac-nav-link .user-icon {
    color: #043e6c;
    background: #ffffff;
    border: 2px solid #043e6c;
}

.sac-nav-label {
    display: inline-block;
    margin: 0;
    padding: 0;
    width: auto;
    font-size: inherit;
    line-height: inherit;
    white-space: nowrap;
}

/* Temporary Customer Loyalty Program promotion */
.sac-navbar-nav .sac-promo-nav-item {
    margin-right: 2px;
}

.sac-navbar-nav .sac-promo-link {
    gap: 10px;
    min-height: 48px;
    padding: 7px 12px;
    color: #ffffff;
    background: #087f8c;
    border: 1px solid #087f8c;
    border-radius: 7px;
    box-shadow: 0 2px 5px rgba(4, 62, 108, 0.12);
}

.sac-navbar-nav .sac-promo-link:hover {
    color: #ffffff;
    background: #066873;
    border-color: #066873;
}

.sac-promo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.sac-navbar-nav .sac-promo-link .sac-promo-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin: 0;
    color: #ffffff;
    background: transparent;
    font-size: 19px;
}

.sac-promo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    white-space: nowrap;
}

.sac-promo-eyebrow {
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1px;
}

.sac-promo-title {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
}

/* Account dropdown alignment */
.sac-navbar-nav .dropdown {
    display: flex;
    align-items: center;
    margin: 0;
}

.sac-navbar-nav .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.sac-navbar-nav .dropdown-toggle::after {
    margin: 0 0 0 2px;
    flex-shrink: 0;
}

.sac-navbar-nav .dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* ==========================================
   Mobile and Tablet Navigation
========================================== */

@media (max-width: 900px) {
    .sac-nav-container {
        min-height: 70px;
        padding: 0.6rem 1rem;
    }

    .sac-navbar-brand .logo {
        max-height: 48px;
        max-width: min(220px, 72vw);
    }

    .sac-navbar-nav {
        display: none;
    }

    .sac-navbar-toggler {
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 8px;
        margin-left: auto;
        border: 1px solid #dce3e9;
        border-radius: 6px;
        background: #ffffff;
        cursor: pointer;
    }

    .sac-navbar-toggler .hamburger {
        display: block;
        width: 24px;
        height: 3px;
        border-radius: 2px;
        background: #043e6c;
    }

    .sidebar.sac-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        padding: 1.5rem 1.25rem;
        overflow-y: auto;
        background: #ffffff;
        transition: left 0.25s ease;
        z-index: 1200;
    }

    .sidebar.sac-sidebar.active {
        left: 0;
    }

    .sidebar .close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #043e6c;
        font-size: 32px;
        cursor: pointer;
    }

    .sidebar-header {
        margin-top: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .sidebar-header .logo {
        max-height: 45px;
    }

    .sac-sidebar-nav {
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .sac-sidebar-nav > .sac-nav-item {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #e8edf1;
    }

    .sac-sidebar-nav > .sac-nav-item:last-child {
        border-bottom: none;
    }

    .sac-sidebar-nav > .sac-nav-item > a,
    .sac-sidebar-nav .dropdown > .sac-nav-link {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 14px;
        width: 100%;
        min-height: 60px;
        padding: 12px 4px;
        color: #043e6c;
        font-family: Calibri, sans-serif;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.25;
        text-decoration: none;
        white-space: nowrap;
    }

    .sac-sidebar-nav .sac-nav-label {
        white-space: nowrap;
    }

    .sac-sidebar-nav .sac-nav-link > i,
    .sac-sidebar-nav .sac-nav-link .user-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        margin: 0;
        border-radius: 50%;
        background: #043e6c;
        color: #ffffff;
        font-size: 17px;
    }

    .sac-sidebar-nav .dropdown .user-icon {
        border: 0;
    }

    .sac-sidebar-nav .dropdown-toggle::after {
        margin-left: auto;
        flex-shrink: 0;
    }

    .sac-sidebar-nav .dropdown-menu {
        position: static;
        min-width: 0;
        margin: 0 0 12px 52px;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .sac-sidebar-nav .dropdown-menu li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #e8edf1;
    }

    .sac-sidebar-nav .dropdown-menu li:last-child {
        border-bottom: none;
    }

    .sac-sidebar-nav .dropdown-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 4px;
        color: #043e6c;
        font-family: Calibri, sans-serif;
        font-size: 15px;
        white-space: normal;
    }

    .sac-sidebar-nav .dropdown-item:hover {
        color: #2A95D1;
        background: transparent;
    }

    .sac-sidebar-nav .dropdown-item i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        color: #043e6c;
        background: transparent;
    }

    .sidebar-overlay.active {
        display: block;
    }
}

/* Allow wrapping only on very narrow screens when necessary */
@media (max-width: 350px) {
    .sac-sidebar-nav > .sac-nav-item > a,
    .sac-sidebar-nav .dropdown > .sac-nav-link {
        gap: 10px;
        font-size: 16px;
    }

    .sac-sidebar-nav .sac-nav-label {
        white-space: normal;
    }
}

/* =========================================================
   SAC Finance responsive header refinements
   - Promo is styled as a clear, compact callout
   - Desktop navigation switches to the hamburger before it
     can collide with the logo
========================================================= */

.sac-nav-container {
    gap: 1rem;
    min-width: 0;
}

.sac-navbar-brand {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
}

.sac-navbar-brand .logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 58px;
    object-fit: contain;
}

.sac-navbar-nav {
    flex: 1 1 auto;
    min-width: 0;
    gap: clamp(4px, 0.55vw, 10px);
}

.sac-navbar-nav > .sac-nav-item {
    flex: 0 0 auto;
    min-width: 0;
}

.sac-navbar-nav .sac-nav-link {
    white-space: nowrap;
}

/* Promotion callout: no tiny red NEW! label */
.sac-navbar-nav .sac-promo-nav-item {
    margin-left: 2px;
}

.sac-navbar-nav .sac-promo-link {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 7px 12px;
    border: 1px solid #b7dfe0;
    border-radius: 8px;
    background: #eaf7f6;
    color: #064e55;
    text-decoration: none;
    line-height: 1.12;
    white-space: nowrap;
}

.sac-navbar-nav .sac-promo-link:hover {
    background: #d9efee;
    color: #043e6c;
}

.sac-promo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #087f8c;
    color: #ffffff;
}

.sac-navbar-nav .sac-promo-link .sac-promo-icon i {
    width: auto;
    height: auto;
    margin: 0;
    background: transparent;
    color: inherit;
    font-size: 17px;
}

.sac-promo-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sac-promo-eyebrow {
    color: #08717a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.075em;
    line-height: 1.1;
    text-transform: uppercase;
}

.sac-promo-title {
    color: #063f48;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
}

/* Promo card in the mobile/tablet sidebar. Add the same promo item
   to .sac-sidebar-nav in header.cfm for it to appear there. */
.sac-sidebar-nav .sac-promo-nav-item {
    margin: 14px 0;
    padding: 0;
    border: 0;
}

.sac-sidebar-nav .sac-promo-link {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    min-height: 76px;
    padding: 14px;
    border: 1px solid #b7dfe0;
    border-radius: 10px;
    background: #eaf7f6;
    color: #063f48;
    text-decoration: none;
    white-space: normal;
}

.sac-sidebar-nav .sac-promo-link:hover {
    background: #d9efee;
    color: #043e6c;
}

.sac-sidebar-nav .sac-promo-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    background: #087f8c;
}

.sac-sidebar-nav .sac-promo-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin: 0;
    background: transparent;
    color: #ffffff;
    font-size: 20px;
}

.sac-sidebar-nav .sac-promo-text {
    min-width: 0;
    gap: 5px;
}

.sac-sidebar-nav .sac-promo-eyebrow {
    color: #08717a;
    font-size: 11px;
}

.sac-sidebar-nav .sac-promo-title {
    color: #063f48;
    font-size: 16px;
    line-height: 1.2;
    white-space: normal;
}

/* Switch to the hamburger before the logo and navigation compete
   for the same horizontal space. */
@media (min-width: 901px) and (max-width: 1250px) {
    .sac-nav-container {
        min-height: 70px;
        padding: 0.6rem 1rem;
    }

    .sac-navbar-brand .logo {
        max-height: 48px;
        max-width: min(260px, 72vw);
    }

    .sac-navbar-nav {
        display: none;
    }

    .sac-navbar-toggler {
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 8px;
        margin-left: auto;
        border: 1px solid #dce3e9;
        border-radius: 6px;
        background: #ffffff;
        cursor: pointer;
    }

    .sac-navbar-toggler .hamburger {
        display: block;
        width: 24px;
        height: 3px;
        border-radius: 2px;
        background: #043e6c;
    }

    .sidebar.sac-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        padding: 1.5rem 1.25rem;
        overflow-y: auto;
        background: #ffffff;
        transition: left 0.25s ease;
        z-index: 1200;
    }

    .sidebar.sac-sidebar.active {
        left: 0;
    }
}

@media (max-width: 350px) {
    .sac-sidebar-nav .sac-promo-title {
        font-size: 15px;
    }

    .sac-sidebar-nav .sac-promo-link {
        gap: 10px;
        padding: 12px;
    }
}


/* NEW badge for the Customer Loyalty Program promotion */
.sac-promo-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 6px;
    margin-right: 5px;
    border-radius: 4px;
    background: #b33b42;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1;
    vertical-align: middle;
}

.sac-sidebar-nav .sac-promo-new {
    padding: 4px 7px;
    font-size: 10px;
}

/* The extra promotion item needs more room; switch to hamburger sooner
   so the desktop links never collide with or cover the SACFinance logo. */
@media (min-width: 901px) and (max-width: 1250px) {
    .sac-nav-container {
        justify-content: space-between;
        gap: 1rem;
    }

    .sac-navbar-brand {
        flex: 0 1 auto;
        min-width: 0;
    }

    .sac-navbar-brand .logo {
        max-width: min(300px, 65vw);
    }

    .sac-navbar-nav {
        display: none !important;
    }

    .sac-navbar-toggler {
        display: flex !important;
        flex: 0 0 44px;
        margin-left: auto;
    }
}


@media (min-width: 1251px) {

    /* Keep all navigation labels compact */
    .sac-navbar-nav > .sac-nav-item > .sac-nav-link .sac-nav-label {
        width: auto !important;
        max-width: 65px;
    }

    /* Give Superior Auto Inventory a little more width */
    .sac-navbar-nav > .sac-nav-item > .sac-nav-link .sac-nav-label {
        overflow-wrap: normal;
    }

    .sac-navbar-nav > .sac-nav-item > .sac-nav-link:has(.car-nav-icon) .sac-nav-label {
        width: 115px !important;
        max-width: 100px;
    }

        .sac-navbar-nav > .sac-nav-item > .sac-nav-link:has(.phone-nav-icon) .sac-nav-label {
        width: 80px !important;
        max-width: 100px;
    }
}
