/* Header Styles */
.site-header {
    background-color: var(--background-white);
    background-image: url(../v2/bg/bg_header.png);
    background-position: right 0;
    background-repeat: no-repeat;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0;
    color: var(--background-white);
}

.site-header .site-header-layer {
    padding: 0;
}


.site-header .site-header-container {
    margin: 1rem auto;
    display: block;
    max-width: 1200px;
    padding: 0 20px;
    text-align: left;
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .header-contact-link {
    padding: .5rem 1.5rem;
    background-color: #e15928;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: .3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 2rem 0 0;
    position: absolute;
    right: 220px;
    border: 4px solid #e15928;
}

.site-header .header-contact-link:hover {
    background-color: #FFFFFF;
    color: #e15928;
}

.site-header .site-logo a {
    line-height: 0;
    display: block;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    background: #f8f8f8;
}

.hero-content {
    color: #000000;
    margin: 0 auto;
    padding: 3rem 2rem 6rem 2rem;
    max-width: 1200px;
}

.hero-content .hero-content-text {
    text-align: center;
}

.site-header .site-header-hero-content {
    width: 100%;
    /* background: rgba(0, 0, 0, 0.45); */
    background: #e15928;

}

.site-header .site-header-hero-content-text {
    margin: 0 auto;
    padding: .5rem 2rem .5rem 2rem;
    max-width: 1200px;
    text-align: center;
}


.site-header .site-header-layer.site-header-layer-top {
    background: transparent;
    height: 100%;
    display: block;
    width: 100%;
}

@media (max-width: 939px) {
    .site-header .header-contact-link {
        display: none;
        /* position: absolute;
        margin: 0 0 0 0;
        top: 2rem;
        right: 2rem; */
    }
}

@media (max-width: 939px) {
    .site-header {
        background-position: center 10%;

    }

    .site-header .site-header-layer {
        background: transparent;
        padding: 0;
        min-height: auto;
    }

    .site-header-layer .site-branding {
        background: #FFFFFF;
    }

    .site-header .site-logo {
        margin: 1rem;

    }
    .site-header .site-logo img{
        max-width: 150px;
    }

}

.site-header .site-header-hero-content-text h1 {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1.6rem;
    line-height: 2.1rem;
    letter-spacing: 3px;
    text-align: left;
}


/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2rem 2rem 2rem 3rem;
    color: #333;
    z-index: 10002;
    position: relative;
}

.hamburger-icon {
    width: 32px;
    height: 32px;
}

/* Navigation Styles */
.main-navigation {
    display: none;
    position: relative;
}

#primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

#primary-menu ul {
    list-style-type: none;
}

#primary-menu li {
    margin: 0;
}

#primary-menu a {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s ease;
}

#primary-menu a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Mobile Responsive Styles */
@media (max-width: 939px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        height: 100dvh; /* Support for dynamic viewport on mobile */
        background: white;
        z-index: 10001;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        margin: 0 0 0 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        will-change: transform; /* Optimize rendering on mobile */
        transform: translate3d(0, 0, 0); /* Force GPU acceleration */
    }

    .main-navigation.menu-open {
        right: 0;
        transform: translate3d(0, 0, 0); /* Maintain GPU acceleration */
    }

    #primary-menu {
        flex-direction: column;
        padding: 170px 0 20px;
        /* padding: 60px 20px 20px; */
        gap: 0;
    }

    #primary-menu li {
        border-bottom: 1px solid #eee;
    }

    #primary-menu li:last-child {
        border-bottom: none;
    }

    #primary-menu a {
        padding: 1rem 2rem;
        color: #333;
        font-size: 16px;
    }

    #primary-menu a:hover {
        background-color: #f5f5f5;
        color: #e15928;
    }
}

/* Overlay for mobile menu */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100vh;
    height: 100dvh; /* Support for dynamic viewport on mobile */
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on Android */
    touch-action: none; /* Prevent scrolling behind overlay */
}

.menu-overlay.show {
    display: block;
}

/* Site branding adjustments */
.site-branding {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-header-layer {
    height: 100%;
    width: 100%;
}

@media (max-width: 939px) {
    .site-header {
        min-height: auto;
        height: auto;
    }

    .site-header-layer {

        position: relative;
        top: auto;
        width: 100%;
        min-height: auto;
        max-height: auto;
    }


}