/* Phone CTA Button Styles */
.phone-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    margin-right: 20px;
}

.phone-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.phone-cta-button i {
    font-size: 16px;
    animation: phone-ring 2s infinite;
}

.phone-cta-button .cta-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.phone-cta-button .cta-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    font-weight: 500;
}

.phone-cta-button .cta-number {
    font-size: 16px;
    font-weight: 700;
}

/* Shimmer Effect */
.phone-cta-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes phone-ring {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-25deg);
    }
    20%, 40% {
        transform: rotate(25deg);
    }
}

/* Header Top Bar - Single Line Layout */
.info-bar .info-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.info-bar .info-left span {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.info-bar .info-left strong {
    margin-right: 5px;
    font-size: 0.85em;
}

.info-bar .info-left a {
    font-size: 0.85em;
}

/* Dealer Badge Styling */
.dealer-badge {
    background: rgba(255, 215, 0, 0.15);
    padding: 2px 10px;
    border-radius: 20px;
    margin-left: auto;
    border: 1px solid rgba(255, 215, 0, 0.3);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.dealer-badge strong {
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    font-size: 0.85em;
    margin-right: 0;
}

.dealer-badge i {
    margin-right: 5px;
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Responsive adjustments */
@media (max-width: 1399px) {
    .info-bar .info-left {
        font-size: 0.9em;
    }

    .dealer-badge {
        margin-left: 10px;
        padding: 2px 8px;
    }
}

@media (max-width: 1199px) {
    .phone-cta-button {
        padding: 8px 16px;
    }
    
    .phone-cta-button .cta-text {
        font-size: 10px;
    }
    
    .phone-cta-button .cta-number {
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    .phone-cta-button {
        padding: 8px 14px;
        margin-right: 10px;
    }
    
    .phone-cta-button i {
        font-size: 14px;
    }
    
    .phone-cta-button .cta-text {
        font-size: 9px;
    }
    
    .phone-cta-button .cta-number {
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .phone-cta-button {
        padding: 6px 12px;
        margin-right: 8px;
    }
    
    .phone-cta-button i {
        font-size: 12px;
    }
    
    .phone-cta-button .cta-text {
        font-size: 8px;
        display: block; /* Keep "Call Now" visible */
    }
    
    .phone-cta-button .cta-number {
        font-size: 11px;
    }
}

/* Header right section adjustment */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Remove floating blue dot on nav link hover */
.header-style-2 .desktop-menu ul li a::before {
    display: none !important;
}

/* Header-bottom: white background, navy text */
.header-style-2 .header-bottom {
    background-color: #ffffff !important;
}
.header-style-2 .desktop-menu ul li > a {
    color: #02154e !important;
}
.header-style-2 .desktop-menu ul li:hover > a,
.header-style-2 .desktop-menu ul li.active > a {
    color: #ffffff !important;
    background-color: #043f88 !important;
    border-radius: 4px;
}
.header-style-2 .header-bottom .header-right .bixol-mobile-hamburger span {
    background-color: #02154e !important;
}

/* Reduce horizontal spacing for all menu items to fit on one line */
.header-style-2 .desktop-menu ul li a {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 15px !important; /* Slightly smaller font */
}
/* Restore right padding on submenu parents so the ::after chevron doesn't overlap text */
.header-style-2 .desktop-menu ul li.has-submenu > a {
    padding-right: 24px !important;
}
/* Replace '+' with a chevron-down icon */
.header-style-2 .desktop-menu ul li.has-submenu > a::after {
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    content: '\f078' !important;
    font-size: 10px !important;
    transform: translateY(-50%) !important;
}
.header-style-2 .desktop-menu ul li.has-submenu:hover > a::after {
    transform: translateY(-50%) rotate(180deg) !important;
}

/* Reduce margin between all items */
.header-style-2 .desktop-menu ul li + li {
    margin-left: 2px !important;
}

/* Move the menu closer to the logo to use more space */
.header-style-2 .desktop-menu {
    padding-left: 5px !important;
}

/* Logo Sizing */
.header-logo {
    height: 128px;
    width: auto;
    object-fit: contain;
}

/* Move logo slightly to the left on desktop only */
@media (min-width: 992px) {
    .logo-wrapper {
        margin-left: -25px !important;
    }
}

/* Reset logo position on mobile */
@media (max-width: 991px) {
    .logo-wrapper {
        margin-left: 0 !important;
    }
}

.mobile-logo {
    height: 96px;
    width: auto;
    object-fit: contain;
}

/* Logo wrapper adjustments */
.logo-wrapper {
    display: flex;
    align-items: center;
}

.desktop-logo {
    display: inline-block;
}

/* Responsive logo sizing */
@media (max-width: 1199px) {
    .header-logo {
        height: 112px;
    }
}

@media (max-width: 991px) {
    .header-logo {
        height: 96px;
    }
    
    .mobile-logo {
        height: 88px;
    }
}

@media (max-width: 575px) {
    .header-logo {
        height: 80px;
    }

    .mobile-logo {
        height: 72px;
    }
}

/* Mobile Menu Active State - Force visibility */
.bixol-mobile-menu.mobile-menu-active {
    left: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 99999 !important;
    display: block !important;
}

/* Ensure mobile menu starts hidden */
.bixol-mobile-menu {
    position: fixed !important;
    top: 0 !important;
    left: -250px !important;
    width: 250px !important;
    height: 100vh !important;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    z-index: 99999;
    background-color: #ffffff !important;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    overflow-y: visible;  /* REMOVED !important so JS can override */
    overflow-x: visible;  /* REMOVED !important so JS can override */
    display: block !important;
    padding: 20px !important;
}

/* When menu is active, allow scrolling only if no submenu is open */
.bixol-mobile-menu.mobile-menu-active {
    overflow-y: auto;
    overflow-x: hidden;
}

/* When a submenu is open, prevent scrolling to show it */
.bixol-mobile-menu.mobile-menu-active.has-open-submenu {
    overflow: visible !important;
}

/* Force parent LI to show overflow */
.bixol-mobile-menu .has-submenu {
    overflow: visible !important;
}

.bixol-mobile-menu .has-submenu.open {
    overflow: visible !important;
}

/* Body scroll lock when menu is open */
body.mobile-menu-open {
    overflow: hidden !important;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block !important;
    opacity: 1 !important;
}

/* Mobile menu submenu styles */
.bixol-mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bixol-mobile-menu > ul > li {
    border-bottom: 1px solid #f0f0f0;
}

.bixol-mobile-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.bixol-mobile-menu a:hover {
    background: #f5f5f5;
    color: #ff6b35;
}

/* Remove old ::after pseudo-element from style.css */
.bixol-mobile-menu ul li.has-submenu > a::after {
    content: none !important;
    display: none !important;
}

/* Submenu toggle button */
.bixol-mobile-menu .has-submenu {
    position: relative;
}

.bixol-mobile-menu .submenu-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: 300;
    color: #043f88;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 10;
}

.bixol-mobile-menu .has-submenu.open .submenu-toggle {
    transform: translateY(-50%) rotate(45deg);
    color: #0356c7;
}

/* Submenu (nested ul) */
.bixol-mobile-menu .has-submenu > ul {
    display: none !important;
    background: #f9f9f9 !important;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
}

.bixol-mobile-menu .has-submenu.open > ul {
    display: block !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 99999 !important;
    background: #f8f9fa !important;
    border-left: 3px solid #043f88 !important;
    padding: 5px 0 !important;
    margin-top: 5px !important;
}

.bixol-mobile-menu .has-submenu > ul li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bixol-mobile-menu .has-submenu > ul li a {
    padding: 8px 15px 8px 40px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    display: block !important;
    color: #043f88 !important;
    transition: all 0.3s ease !important;
}

.bixol-mobile-menu .has-submenu > ul li a:hover {
    background: #e6f0ff !important;
    color: #0356c7 !important;
    padding-left: 45px !important;
}
