/*
Theme Name: Greenpoint V2
Author: Your Name
Version: 1.0
Description: A custom, professional theme for Greenpoint Engineers, built with Tailwind.
*/

/* Define custom fonts */
body {
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.font-display {
    font-family: 'Playfair Display', serif;
}

/* Keyframes for the live animated gradient - New Green/Blue Theme */
@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Class to apply the live gradient animation */
.animate-gradient-flow {
    background: linear-gradient(-45deg, #84fab0, #8fd3f4, #a1c4fd, #c2e9fb);
    background-size: 400% 400%;
    animation: gradient-flow 20s ease infinite;
}

/* Keyframes for subtle floating animation */
@keyframes subtle-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-subtle-float {
    animation: subtle-float 6s ease-in-out infinite;
}

/* Class for scroll-triggered fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Dropdown Menu Styles --- */

/* --- NUCLEAR DROPDOWN FIX --- */

/* 1. Target the Main Menu ID directly */
#desktop-menu > li {
    position: relative !important; /* Anchor the dropdown to the parent */
}

/* 2. Force the Sub-Menu to hide and float */
#desktop-menu .sub-menu {
    display: none !important; /* HIDE IT by default */
    position: absolute !important; /* Take it out of the flow */
    top: 100% !important; /* Push it down */
    left: 0 !important;
    background-color: #ffffff !important;
    min-width: 260px !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    padding: 10px 0 !important;
    z-index: 9999 !important;
    flex-direction: column !important; /* Stack vertical */
    border: 1px solid #f3f4f6 !important;
}

/* 3. Show it ONLY on Hover */
#desktop-menu li:hover > .sub-menu {
    display: block !important; /* Reveal it */
}

/* 4. Reset the link styles inside the dropdown */
#desktop-menu .sub-menu li {
    display: block !important;
    margin: 0 !important;
    width: 100% !important;
}

#desktop-menu .sub-menu a {
    display: block !important;
    padding: 12px 20px !important;
    color: #374151 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    white-space: nowrap !important; /* Don't wrap text */
    text-transform: none !important;
}

/* 5. Hover colors */
#desktop-menu .sub-menu a:hover {
    background-color: #f0fdf4 !important; /* Light green bg */
    color: #16a34a !important; /* Green text */
    padding-left: 25px !important; /* Slide animation */
}

/* --- MOBILE ARROWS --- */

    /* 1. Enable Flexbox to align text and arrow */
    #mobile-menu-list > .menu-item-has-children > a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important; /* Keep the text centered */
        gap: 10px !important; /* Space between text and arrow */
    }

    /* 2. Create the Down Arrow */
    #mobile-menu-list > .menu-item-has-children > a::after {
        content: '';
        display: block;
        width: 6px;
        height: 6px;
        border-right: 2px solid currentColor; /* Matches text color */
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg); /* Points Down */
        margin-top: -3px; /* Slight vertical adjustment */
        opacity: 0.7; /* Subtle look */
    }