/* Landing page smooth scroll and fixed header styles */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Header - initially static, becomes fixed on scroll */
.landing-page .wgl-theme-header,
.landing-page .site-header {
    position: relative;
    z-index: 9999;
    transition: all 0.3s ease;
    background: #fff;
}

/* When scrolled - header becomes fixed */
.landing-page .wgl-theme-header.header-fixed,
.landing-page .site-header.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: headerSlideDown 0.3s ease;
}

@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Add padding to body when header is fixed */
body.landing-page.header-active {
    padding-top: 120px;
}

/* Menu link styles for anchor links */
.landing-page .primary-nav a[href*="#"],
.landing-page .main-navigation a[href*="#"] {
    position: relative;
    transition: color 0.3s ease;
}

.landing-page .primary-nav > ul > li > a > span,
.landing-page .main-navigation a[href*="#"] > span {
    display: inline-block;
    position: relative;
}

.landing-page .primary-nav a[href*="#"]:hover,
.landing-page .main-navigation a[href*="#"]:hover,
.landing-page .primary-nav a[href*="#"].active,
.landing-page .main-navigation a[href*="#"].active {
    color: #8D9D7E;
}

.landing-page .primary-nav > ul > li > a[href*="#"] > span::after,
.landing-page .main-navigation a[href*="#"] > span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #8D9D7E;
    transition: width 0.3s ease;
}

.landing-page .primary-nav > ul > li > a[href*="#"]:hover > span::after,
.landing-page .main-navigation a[href*="#"]:hover > span::after,
.landing-page .primary-nav > ul > li > a[href*="#"].active > span::after,
.landing-page .main-navigation a[href*="#"].active > span::after {
    width: 80%;
}

/* Section spacing */
.landing-section,
#home,
#about,
#services,
#benefits,
#contact {
    scroll-margin-top: 140px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    body.landing-page.header-active {
        padding-top: 140px;
    }
    
    .landing-section {
        scroll-margin-top: 160px;
    }
}
