/*
 * This CSS is for the "24/7 CALL" bar and the highlighted Blog button.
 * It is designed to work with the provided navbar HTML file.
 */

/* The entire header is now static, so it no longer needs to be sticky */
/* The .navbar will be fixed instead. */
.sticky-header {
    width: 100%;
}

/* Navbar base */
.navbar {
    position: fixed;
    /* This makes ONLY the navbar fixed at the top */
    top: 0;
    width: 100%;
    background-color: white;
    padding: 0.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    z-index: 1000;
}

.logo {
    height: 50px;
    width: 90px;
}

#menu-toggle,
.dropdown-toggle {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 18px;
    position: relative;
    z-index: 1100;
}

.hamburger .bar,
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger .bar {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::before {
    top: 0;
}

.hamburger::after {
    bottom: 0;
}

/* When menu is open: show "X" */
#menu-toggle:checked+.hamburger::before {
    transform: rotate(45deg);
    top: 50%;
}

#menu-toggle:checked+.hamburger::after {
    transform: rotate(-45deg);
    bottom: auto;
    top: 50%;
}

#menu-toggle:checked+.hamburger .bar {
    opacity: 0;
}

.navbar-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: auto;
}

.navbar-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.navbar-links li {
    position: relative;
}

.navbar-links a {
    color: rgb(37, 32, 32);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.navbar-links a:focus,
.navbar-links a.active {
    color: #ae0e30;
    font-weight: bold;
}

/* Updated CSS for the highlighted blog button to make it a rectangle */
.navbar-links .highlighted {
    background-color: #ae0e30;
    padding: 1px 15px;
    border-radius: 4px;
    /* Changed from 999px to 0 for a sharp rectangle */
    transition: background-color 0.3s ease;
}

.navbar-links .highlighted:hover {
    background-color: #8c0b26;
}

.navbar-links .highlighted a {
    color: white;
    font-weight: normal;
}

.dropdown-menu {
    display: none;
    position: absolute;
    font-size: 30px;
    top: 100%;
    left: 0;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    list-style: none;
    min-width: 280px;
    z-index: 999;
    padding-left: 10px;
    padding-bottom: 20px;
}

.mobile-arrow {
    display: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.icon-SM-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.icon-SM {
    width: 30px;
    height: 30px;
}

/* New CSS for the 24/7 Call Bar */
.call-bar-container {
    width: 100%;
    background-color: #ae0e30;
    padding: 0.5rem 2rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

/* Animation for the default state */
@keyframes breathing {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.call-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: normal;
    text-decoration: none;
    font-size: 1rem;
    /* Ensures the entire bar is clickable */
    width: 100%;
    /* Apply the animation by default */
    animation: breathing 2s ease-in-out infinite;
    gap: 0.5rem;
    /* Add spacing between the text and the new icon */
}

.call-bar .phone-number {
    font-weight: bold;
}

.call-bar:hover {
    /* Pause the animation on hover */
    animation-play-state: paused;
    cursor: pointer;
}

/* Style for the new phone icon */
.phone-icon {
    width: 18px;
    height: 18px;
}


/* Responsive: small screens */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .mobile-arrow {
        display: inline;
    }

    .navbar-content {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
    }

    #menu-toggle:checked+.hamburger+.navbar-content {
        display: flex;
    }

    .navbar-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .navbar-links li {
        width: 100%;
    }

    /* New mobile-specific styles for the highlighted blog button */
    .navbar-links .highlighted {
        background-color: #ae0e30;
        padding: 1px 15px;
        border-radius: 4px;
        width: 65px;
    }

    .navbar-links .highlighted a {
        color: white;
        font-weight: normal;
    }


    .dropdown-label {
        display: block;
        cursor: pointer;
        padding: 0.5rem 0;
        font-weight: bold;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        background-color: transparent;
        display: none;
        /* hide by default */
    }

    .dropdown-toggle:checked+.dropdown-label+.dropdown-menu {
        display: block;
    }

    /* Mobile-specific changes for the call bar */
    .call-bar-container {
        padding: 0.5rem 1rem;
    }

    .call-bar {
        font-size: 0.9rem;
        /* Reduced font size for mobile */
        white-space: nowrap;
        /* Prevents the text from wrapping */
    }

    /* This padding-top is a new addition to solve the negative space issue on mobile */
    /* IMPORTANT: You might need to adjust this value based on your exact HTML structure */
    body {
        padding-top: 60px;
        /* Example value, adjust to the height of your navbar */
    }
}