/* Full Page Menu CSS with Higher Specificity */

/* Base menu container - force visibility with important */
.full-page-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background-color: #0A0B1A !important;
    z-index: 9999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1) !important;
    overflow-y: auto !important;
}

/* Show menu when active */
.full-page-menu.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Menu content container */
.full-page-menu .full-page-menu-content {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 120px 60px 80px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 120px !important;
    position: relative !important;
}

/* Close button styling */
.full-page-menu .menu-close-btn {
    position: absolute !important;
    top: 40px !important;
    right: 60px !important;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 32px !important;
    cursor: pointer !important;
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
    opacity: 0.8 !important;
}

.full-page-menu .menu-close-btn:hover {
    transform: rotate(90deg) !important;
    opacity: 1 !important;
}

.full-page-menu .menu-close-btn svg {
    width: 32px !important;
    height: 32px !important;
}

/* Logo styling */
.full-page-menu .menu-logo {
    margin-bottom: 60px !important;
    grid-column: 1 / -1 !important;
}

.full-page-menu .menu-logo img {
    height: 60px !important;
}

/* Menu sections */
.full-page-menu .menu-section {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition: all 0.8s ease !important;
    transition-delay: 0.3s !important;
}

.full-page-menu.active .menu-section {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.full-page-menu .menu-section:nth-child(3) {
    transition-delay: 0.5s !important;
}

/* Section headers */
.full-page-menu .menu-section h2 {
    color: #fff !important;
    font-size: 40px !important;
    font-weight: 700 !important;
    margin-bottom: 40px !important;
    position: relative !important;
    padding-bottom: 20px !important;
    letter-spacing: -1px !important;
}

.full-page-menu .menu-section h2::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 60px !important;
    height: 3px !important;
    background: #7ED321 !important;
}

/* WordPress menu lists */
.full-page-menu .wp-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.full-page-menu .wp-menu > li {
    margin-bottom: 20px !important;
    opacity: 0 !important;
    transform: translateY(20px) !important;
    transition: all 0.5s ease !important;
    position: relative !important;
}

.full-page-menu.active .wp-menu > li {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Staggered animation delays for menu items */
.full-page-menu.active .wp-menu > li:nth-child(1) { transition-delay: 0.7s !important; }
.full-page-menu.active .wp-menu > li:nth-child(2) { transition-delay: 0.8s !important; }
.full-page-menu.active .wp-menu > li:nth-child(3) { transition-delay: 0.9s !important; }
.full-page-menu.active .wp-menu > li:nth-child(4) { transition-delay: 1.0s !important; }
.full-page-menu.active .wp-menu > li:nth-child(5) { transition-delay: 1.1s !important; }

/* Main menu links */
.full-page-menu .wp-menu > li > a {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 32px !important;
    transition: all 0.3s ease !important;
    display: block !important;
    position: relative !important;
    font-weight: 400 !important;
    padding: 6px 0 !important;
    line-height: 1.4 !important;
}

.full-page-menu .wp-menu > li > a:hover {
    color: #7ED321 !important;
    transform: translateX(8px) !important;
}

/* Remove any dots/bullets */
.full-page-menu .wp-menu li:before,
.full-page-menu .wp-menu a:before {
    content: none !important;
    display: none !important;
}

/* Sub-menus */
.full-page-menu .sub-menu {
    list-style: none !important;
    padding-left: 30px !important;
    margin-top: 15px !important;
    margin-bottom: 0 !important;
    display: none !important;
    position: relative !important;
    overflow: hidden !important;
}

.full-page-menu .wp-menu > li:hover .sub-menu {
    display: block !important;
}

.full-page-menu .sub-menu li {
    margin-bottom: 12px !important;
    opacity: 0 !important;
    transform: translateY(10px) !important;
    transition: all 0.4s ease !important;
}

.full-page-menu .wp-menu > li:hover .sub-menu li {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.full-page-menu .wp-menu > li:hover .sub-menu li:nth-child(1) { transition-delay: 0.1s !important; }
.full-page-menu .wp-menu > li:hover .sub-menu li:nth-child(2) { transition-delay: 0.2s !important; }
.full-page-menu .wp-menu > li:hover .sub-menu li:nth-child(3) { transition-delay: 0.3s !important; }

.full-page-menu .sub-menu a {
    color: #B0B0B0 !important;
    font-size: 26px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: block !important;
    position: relative !important;
    padding: 4px 0 !important;
    line-height: 1.4 !important;
}

.full-page-menu .sub-menu a:hover {
    color: #7ED321 !important;
    transform: translateX(6px) !important;
}

/* Parent menu item with children indicator */
.full-page-menu .wp-menu > li.menu-item-has-children > a::after {
    content: '' !important;
    display: inline-block !important;
    width: 6px !important;
    height: 6px !important;
    margin-left: 10px !important;
    vertical-align: middle !important;
    border-left: 6px solid transparent !important;
    border-right: 6px solid transparent !important;
    border-top: 6px solid currentColor !important;
    transition: transform 0.3s ease !important;
    position: relative !important;
    top: -1px !important;
}

.full-page-menu .wp-menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg) !important;
}

/* Secondary menu section */
.full-page-menu .secondary-menu-wrapper h3 {
    color: #fff !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 30px !important;
    position: relative !important;
    padding-bottom: 15px !important;
}

.full-page-menu .secondary-menu-wrapper h3::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 40px !important;
    height: 2px !important;
    background: #7ED321 !important;
}

/* Address block */
.full-page-menu .address-block {
    background: rgba(255, 255, 255, 0.03) !important;
    padding: 35px !important;
    border-radius: 12px !important;
    margin-top: 50px !important;
}

.full-page-menu .address-block h3 {
    color: #fff !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    text-decoration: underline !important;
    text-underline-offset: 6px !important;
}

.full-page-menu .address-content {
    color: #B0B0B0 !important;
    font-size: 18px !important;
    line-height: 1.8 !important;
}

.full-page-menu .address-content p {
    margin-bottom: 8px !important;
}

.full-page-menu .address-content a {
    color: #7ED321 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-size: 18px !important;
}

.full-page-menu .address-content a:hover {
    color: #fff !important;
    transform: translateX(4px) !important;
}

/* Menu toggle button */
.menu-toggle-btn {
    position: relative !important;
    width: 36px !important;
    height: 26px !important;
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    transition: transform 0.3s ease !important;
}

.menu-toggle-btn:hover {
    transform: scale(1.1) !important;
}

.menu-toggle-btn span {
    position: absolute !important;
    display: block !important;
    width: 100% !important;
    height: 3px !important;
    background: #333 !important;
    transition: all 0.3s ease !important;
    border-radius: 3px !important;
}

.menu-toggle-btn span:nth-child(1) {
    top: 0 !important;
}

.menu-toggle-btn span:nth-child(2) {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.menu-toggle-btn span:nth-child(3) {
    bottom: 0 !important;
}

/* Transform to X when active */
.menu-toggle-btn.active span:nth-child(1) {
    transform: translateY(12px) rotate(45deg) !important;
}

.menu-toggle-btn.active span:nth-child(2) {
    opacity: 0 !important;
}

.menu-toggle-btn.active span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg) !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .full-page-menu .full-page-menu-content {
        grid-template-columns: 1fr !important;
        gap: 60px !important;
        padding: 100px 50px 60px !important;
    }

    .full-page-menu .menu-section h2 {
        font-size: 36px !important;
    }

    .full-page-menu .wp-menu > li > a {
        font-size: 22px !important;
    }

    .full-page-menu .sub-menu a {
        font-size: 17px !important;
    }
}

@media (max-width: 768px) {
    .full-page-menu .full-page-menu-content {
        padding: 80px 30px 50px !important;
        gap: 50px !important;
    }

    .full-page-menu .menu-close-btn {
        top: 20px !important;
        right: 20px !important;
        font-size: 24px !important;
        width: 50px !important;
        height: 50px !important;
    }

    .full-page-menu .menu-close-btn svg {
        width: 24px !important;
        height: 24px !important;
    }

    .full-page-menu .menu-logo img {
        height: 45px !important;
    }

    .full-page-menu .menu-section h2 {
        font-size: 32px !important;
        margin-bottom: 30px !important;
    }

    .full-page-menu .wp-menu > li > a {
        font-size: 20px !important;
    }

    .full-page-menu .sub-menu a {
        font-size: 16px !important;
    }

    .full-page-menu .secondary-menu-wrapper h3,
    .full-page-menu .address-block h3 {
        font-size: 22px !important;
    }

    .full-page-menu .address-content,
    .full-page-menu .address-content a {
        font-size: 16px !important;
    }

    .full-page-menu .address-block {
        padding: 30px !important;
    }
}

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden !important;
}

.header-right {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

/* Menu label styling */
.menu-label {
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: 1px !important;
    color: #333 !important;
    margin-right: 8px !important;
    transition: color 0.3s ease !important;
}

/* When menu is active, change menu label color */
.menu-toggle-btn.active + .menu-label {
    color: #7ED321 !important;
}

/* Get Quote button */
.get-quote-btn {
    background-color: #7ED321 !important;
    color: #fff !important;
    padding: 17px 30px !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

/* Hover state - darken the green, don't mess with opacity */
.get-quote-btn:hover {
    background-color: #6BC11B !important;
    box-shadow: 0 4px 12px rgba(126, 211, 33, 0.3) !important;
    color: #fff !important;
}

/* Active state */
.get-quote-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(126, 211, 33, 0.3) !important;
}

/* Menu wrapper to group menu text and hamburger */
.menu-wrapper {
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
}

/* Adjust hamburger colors for better contrast */
.menu-toggle-btn span {
    background: #333 !important;
}

/* When header has a light background */
.site-header.light .menu-toggle-btn span {
    background: #333 !important;
}

/* When header has a dark background */
.site-header.dark .menu-toggle-btn span {
    background: #fff !important;
}

.site-header.dark .menu-label {
    color: #fff !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .header-right {
        gap: 15px !important;
    }

    .menu-label {
        font-size: 12px !important;
    }

    .get-quote-btn {
        padding: 10px 18px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    /* Hide menu text on very small screens if needed */
    .menu-label {
        display: none !important;
    }

    .get-quote-btn {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }
}
.logo-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

/* Home icon link */
.home-icon-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background-color: rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Home icon SVG */
.home-icon-link svg {
    width: 20px !important;
    height: 20px !important;
    fill: #333 !important;
    transition: all 0.3s ease !important;
}

/* Hover state - because old people need obvious feedback */
.home-icon-link:hover {
    background-color: #7ED321 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(126, 211, 33, 0.3) !important;
}

.home-icon-link:hover svg {
    fill: #fff !important;
    transform: scale(1.1) !important;
}

/* Active state */
.home-icon-link:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(126, 211, 33, 0.3) !important;
}

/* Tooltip for extra clarity */
.home-icon-link::after {
    content: 'Home' !important;
    position: absolute !important;
    bottom: -30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background-color: transparent !important;
    color: #fff !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    pointer-events: none !important;
}

/* Show tooltip on hover */
.home-icon-link:hover::after {
    opacity: 1 !important;
    visibility: visible !important;
    bottom: -25px !important;
}

/* Dark header variations */
.site-header.dark .home-icon-link {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.site-header.dark .home-icon-link svg {
    fill: #fff !important;
}

.site-header.dark .home-icon-link::after {
    background-color: #fff !important;
    color: #333 !important;
}

/* When header is scrolled */
.site-header.scrolled .home-icon-link {
    background-color: rgba(0, 0, 0, 0.08) !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .logo-wrapper {
        gap: 15px !important;
    }

    .home-icon-link {
        width: 36px !important;
        height: 36px !important;
    }

    .home-icon-link svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* Hide tooltip on mobile - they'll tap it anyway */
    .home-icon-link::after {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .logo-wrapper {
        gap: 10px !important;
    }

    .home-icon-link {
        width: 32px !important;
        height: 32px !important;
    }

    .home-icon-link svg {
        width: 16px !important;
        height: 16px !important;
    }
}

/* Accessibility - focus state for keyboard users */
.home-icon-link:focus {
    outline: 2px solid #7ED321 !important;
    outline-offset: 2px !important;
}

/* Animation for page load - subtle entrance */
@keyframes homeIconEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gentlePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(126, 211, 33, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(126, 211, 33, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(126, 211, 33, 0);
    }
}

.home-icon-link {
    animation: gentlePulse 2s ease-out infinite !important;
}
