/* header.css */
.header {
    background-color: #4A3C6D;
    position: fixed;
    width: 100%;
    top: 40px; /* original position */
    z-index: 999;
    margin-bottom: 0;
    overflow: visible; /* ensure logo can overflow */
    z-index: 999;
    transition: top 0.3s ease-in-out;
    padding-top: 20px;
    padding-bottom: 20px;
  }

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* For positioning the hamburger menu */
    margin-bottom: 0;

}

.logo-img {
    width: auto;
    max-width: 200px;
    max-height: 80px;
    height: auto;
    display: block;
}


/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-links.main-menu a {
    color: #ffffff !important;
}


.nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.3s, background-color 0.3s;
    border-radius: 5px;
}

.nav-links a:hover {
    color: #FFFFFF;
    background-color: rgba(74, 60, 109, 0.3); /* Dark Purple with opacity for fade effect */
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #D7C1E0; /* Light Pinkish-Purple underline */
    bottom: 0;
    left: 0;
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    background-color: rgba(74, 60, 109, 0.3); /* Same fade effect for active link */
}

.nav-links a.active::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none; /* Add this line */
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #d6d6d6; /* Dark Gray */
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Secondary Menu */
.secondary-menu-wrapper {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background-color: #4A3C6D; /* White background */
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding-top: 5rem;
}

.secondary-menu-wrapper.active {
    right: 0;
}

.secondary-menu {
    flex-direction: column;
    padding: 1rem;
}

.secondary-menu .nav-links {
    flex-direction: column;
    gap: 0.5rem;
}

.secondary-menu .nav-links a {
    color: #000000 !important; /* Set to black, override previous rule */
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    display: block;
    transition: color 0.3s ease;
}
.secondary-menu .nav-links a:hover {
    color: #4169E1; /* Royal Blue on hover */
}

.secondary-menu .nav-links a.active {
    color: #D2691E; /* Burnt Orange for active link */
}

.skip-link {
    color: #4169E1; /* Royal Blue */
}

.skip-link:hover {
    color: #D2691E; /* Burnt Orange on hover */
}


/* Top Bar */
.top-bar {
    background-color: #4A3C6D;
    color: #FFFFFF;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 0.9rem;
    position: fixed;
    width: 100%;
    top: 0;
    transition: top 0.3s ease-in-out;
    z-index: 998;
  }

  .top-bar-content {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-left: 205px;
    align-items: center;
}


.top-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 2000px; /* Match this to your header container's width */
    margin: 0 auto;
    padding: 0 1rem;
}

.operating-hours i {
    margin-right: 0.5rem;
}

.top-bar-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-bar-link, .top-bar-phone {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.top-bar-link i, .top-bar-phone i {
    margin-right: 0.5rem;
}

.top-bar-link:hover, .top-bar-phone:hover {
    color: #D7C1E0; /* Light Pinkish-Purple */
}

.top-bar-button {
    background-color: #FFFFFF; /* White background for button */
    color: #4A3C6D; /* Dark Purple text */
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: background-color 0.3s, color 0.3s;
}

.top-bar-button i {
    margin-right: 0.5rem;
}

.top-bar-button:hover {
    background-color: #D7C1E0; /* Light Pinkish-Purple on hover */
    color: #FFFFFF;
}

.logo {
    position: relative;
    z-index: 1001;
}

.floating-logo {
    position: absolute;
    top: -70px; /* Adjust based on how far above the header you want it */
    left: 0;
    max-height: 120px; /* Adjust size as needed */
    z-index: 1001;
}


/* Responsive Design for Mobile Devices */
@media (max-width: 768px) {
    .header {
        top: 0px; /* Adjust for top-bar height on mobile (~60px) */
        padding: 0.5rem 0; /* Slightly reduce padding */
        z-index: 1100;
        transition: none;
    }

    .header .container {
        flex-direction: row; /* Keep logo and nav side-by-side */
        position: relative; /* For hamburger positioning */        
    }

    .main-menu .nav-links {
        display: none; /* Hide main menu on mobile */
    }
    
    .hamburger {
        display: flex; /* Show on mobile */
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 1100;        
    }

    .secondary-menu-wrapper {
        top: 0; /* Align with top of screen */
        right: -250px;
        width: 250px;
        height: 100%;
        z-index: 1000;
        padding-top: 4rem; /* Adjust padding to account for the header height */
        
    }

    main {
        padding-top: 140px; /* Adjust for top-bar (60px) + header (~80px) on mobile */
    }
}

@media (max-width: 768px) {
    .floating-logo {
        position: absolute;
        top: -40px; /* Adjust based on how far above the header you want it */
        left: 0;
        max-height: 100px; /* Adjust size as needed */
        z-index: 1001;
    }
}


@media (max-width: 480px) {
    .header {
        padding: 0.5rem 0; /* Further reduced padding for very small screens */
        transition: none;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .logo-img {
        max-width: 150px; /* Smaller logo on very small screens */
    }

    .hamburger {
        width: 25px;
        height: 18px;
    }

    .hamburger span {
        height: 2px;
    }
}
@media (max-width: 768px) {
    .top-bar {
        display: none;
        transition: none;
    }
}