/* Custom styles moved from header.php */
.burgundy-gradient {
    background: linear-gradient(135deg, #239444 0%, #1c7535 50%, #239444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.burgundy-icon {
    color: #239444;
    transition: all 0.3s ease;
}

.btn-gradient {
    background: linear-gradient(135deg, #239444 0%, #1c7535 50%, #239444 100%);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #1c7535 0%, #239444 50%, #1c7535 100%);
    box-shadow: 0 4px 15px rgba(35, 148, 68, 0.3);
}

.icon-gradient {
    background: linear-gradient(135deg, #239444 0%, #1c7535 50%, #239444 100%);
    color: white;
    transition: all 0.3s ease;
}

.icon-gradient:hover {
    background: linear-gradient(135deg, #1c7535 0%, #239444 50%, #1c7535 100%);
    box-shadow: 0 4px 15px rgba(35, 148, 68, 0.3);
}

.hover-text-gradient:hover {
    color: #239444;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    text-fill-color: initial;
}

/* Mega Dropdown Menu Styles */
.mega-dropdown {
    position: fixed;
    top: 70px; /* Adjust based on your navbar height */
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-bottom: 1px solid rgba(35, 148, 68, 0.10);
    opacity: 0;
    visibility: hidden;
    z-index: 49;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.services-tab-active .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-dropdown-container {
    display: flex;
    width: 100%;
    max-width: 1400px; /* Increased from 1200px */
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
}

.mega-tabs-wrapper {
    width: 240px;
    border-right: 1px solid rgba(35, 148, 68, 0.15);
    padding-right: 1rem;
    flex-shrink: 0;
}

.mega-tab {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mega-tab:hover {
    background-color: rgba(35, 148, 68, 0.1);
}

.mega-tab.active {
    background-color: rgba(35, 148, 68, 0.15);
    color: #239444;
}

.mega-tab i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    color: #239444;
}

.mega-content-wrapper {
    flex: 1;
    padding-left: 2rem;
}

.mega-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.mega-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.mega-service-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.mega-service-item:hover {
    background-color: rgba(35, 148, 68, 0.1);
}

.mega-service-icon {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(35, 148, 68, 0.2);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mega-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(35, 148, 68, 0.2);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.mega-close:hover {
    background-color: rgba(35, 148, 68, 0.1);
}

.mega-service-item:hover .mega-service-icon {
    background-color: #239444;
    transform: scale(1.05);
}

.mega-service-item:hover .mega-service-icon i {
    color: white;
}

.mega-service-icon i {
    color: #239444;
    transition: all 0.3s ease;
}

.mega-service-content h4 {
    font-weight: 500;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.mega-service-item:hover .mega-service-content h4 {
    color: #239444;
}

.mega-service-content p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* Mobile responsive styles for mega menu */
@media (max-width: 1023px) {
    .mega-dropdown {
        display: none;
    }
}

/* Mobile menu styling */
#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 80%;
    max-width: 320px;
    background-color: #ffffff;
    border-right: 1px solid #e5e5e5;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    display: block !important;
}

@media (max-width: 1023px) {
    #mobile-menu {
        display: block;
    }
}

@media (min-width: 1024px) {
    #mobile-menu {
        display: none !important;
    }
    
    #menu-overlay {
        display: none !important;
    }
}

#mobile-menu.active {
    transform: translateX(0);
}

#hamburger-icon {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hamburger-icon i {
    transition: transform 0.25s ease, opacity 0.2s ease;
}

#menu-toggle.is-active {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(69, 189, 118, 0.25);
}

#menu-toggle.is-active #hamburger-icon i {
    transform: rotate(180deg);
}

#menu-toggle.is-active,
#menu-toggle:hover {
    background-color: #3da968;
}

#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-dropdown-content {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    display: none;
}

.mobile-dropdown-content.active {
    height: auto;
    display: block;
}

.mobile-dropdown-icon {
    transition: transform 0.3s ease;
}

.mobile-dropdown-icon.active {
    transform: rotate(180deg);
}

body.mobile-menu-active {
    overflow: hidden;
}

#mobile-menu a {
    display: block;
    
    text-decoration: none;
}

#mobile-menu .mobile-dropdown button {
    width: 100%;
    text-align: left;
}

a[href="book-now.php"] {
    color: white !important;
}

/* Additional mega menu styles for proper positioning */
.mega-dropdown {
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    width: 100% !important;
}

.mega-dropdown-container {
    padding: 2rem 1.5rem !important;
    max-width: 1400px !important; /* Increased from 1200px */
    margin: 0 auto !important;
    width: 100% !important;
}

@media (min-width: 1024px) {
    .mega-dropdown-container {
        padding-left: 4rem !important;
        padding-right: 4rem !important;
    }
}

/* Fix navbar container to match dropdown */
nav .container {
    max-width: 1400px !important; /* Increased from 1200px */
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    width: 100% !important; /* Added width 100% */
}

@media (min-width: 1024px) {
    nav .container {
        padding-left: 4rem !important;
        padding-right: 4rem !important;
    }
}

/* Ensure the navbar takes full width */
nav.fixed.w-full {
    width: 100% !important;
}

/* Custom container widths to fix header width issue */
.container {
    max-width: 1400px !important;
    width: 100% !important;
}

/* Make sure navbar and all page containers have the same width */
nav .container, 
section .container {
    max-width: 1400px !important;
    width: 100% !important;
}

/* Responsive adjustments */
@media (min-width: 1024px) {
    .container {
        padding-left: 4rem !important;
        padding-right: 4rem !important;
    }
} 

/* Become a Driver Dropdown Styles */
.become-driver-dropdown {
    position: fixed;
    top: 70px; /* Adjust based on your navbar height */
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-bottom: 1px solid rgba(35, 148, 68, 0.10);
    opacity: 0;
    visibility: hidden;
    z-index: 49;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.become-driver-container.services-tab-active .become-driver-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile responsive styles for become driver dropdown */
@media (max-width: 1023px) {
    .become-driver-dropdown {
        display: none;
    }
}

/* Mobile menu styling */ 

/* Normal dropdown menu styles */
.group {
    position: relative;
}

.group:hover .group-hover\:block {
    display: block;
}

.group:hover .group-hover\:rotate-180 {
    transform: rotate(180deg);
}

.group > div {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    animation: fadeInDropdown 0.3s ease forwards;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 

/* Smooth dropdown (header) */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) scale(0.98);
    pointer-events: none;
}

.group:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Improve hit area so hover doesn't flicker */
.group:hover { isolation: isolate; }
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px; /* bridge gap for smooth hover */
}

.btn-gradient, .icon-gradient {
    background: #45BD76 !important;
}