/* Elementor-style Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: var(--z-index-fixed);
    background-color: var(--color-secondary);
    transition: background var(--transition-base), border var(--transition-base), box-shadow var(--transition-base);
    box-shadow: var(--shadow-2xl);
}

.elementor-sticky--active {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Container Styles */
.e-con {
    --container-widget-width: 100%;
    --flex-direction: row;
    --flex-wrap: wrap;
    --align-items: center;
    --gap: 40px;
    --padding-top: 1.5rem;
    --padding-bottom: 1.5rem;
    --padding-left: 2rem;
    --padding-right: 2rem;
    display: flex;
    flex-direction: var(--flex-direction);
    flex-wrap: var(--flex-wrap);
    align-items: var(--align-items);
    gap: var(--gap);
    position: relative;
    width: 100%;
    z-index: 1;
}

.e-con-boxed {
    text-align: initial;
}

.e-con-boxed > .e-con-inner {
    display: flex;
    gap: 40px;
    height: 100%;
    margin: 0 auto;
    max-width: 95%;
    padding: 0 2rem;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

/* Widget Styles */
.elementor-widget {
    position: relative;
    min-width: 0;
}

.elementor-widget-container {
    transition: background .3s, border .3s, border-radius .3s, box-shadow .3s, transform .4s;
}

/* Logo Styles */
.elementor-widget-theme-site-logo {
    flex-shrink: 0;
    flex: 0 0 auto;
}

.elementor-widget-theme-site-logo img {
    max-width: 180px;
    width: 100%;
    height: auto;
    padding: 10px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.elementor-widget-theme-site-logo img:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.elementor-widget-theme-site-logo a {
    display: inline-block;
    text-decoration: none;
}

/* Navigation Menu Styles */
.elementor-widget-n-menu {
    --n-menu-title-color-normal: var(--color-white);
    --n-menu-title-color-hover: rgba(255, 255, 255, 0.7);
    --n-menu-title-font-size: var(--font-size-lg);
    --n-menu-title-padding: var(--spacing-sm) var(--spacing-lg);
    --n-menu-title-transition: var(--transition-base);
    --n-menu-dropdown-icon-gap: 5px;
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-start;
    margin: 0 var(--spacing-3xl) 0 var(--spacing-md);
}

.e-n-menu {
    display: flex;
    flex-direction: column;
    position: relative;
}

.e-n-menu-wrapper {
    display: flex;
    flex-direction: column;
}

.e-n-menu-heading {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 20px;
}

.e-n-menu-item {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.e-n-menu-item a {
    display: flex;
    align-items: center;
    color: var(--n-menu-title-color-normal);
    padding: var(--n-menu-title-padding);
    font-weight: 500;
    transition: all var(--n-menu-title-transition);
    position: relative;
    text-decoration: none;
}

.e-n-menu-title-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.e-n-menu-title-container.e-link {
    text-decoration: none;
    color: inherit;
    padding: var(--n-menu-title-padding);
    transition: all var(--n-menu-title-transition);
}

.e-n-menu-title-text {
    font-size: var(--n-menu-title-font-size);
    font-family: "Poppins", sans-serif;
    font-weight: 500;
}

.e-n-menu-item a:hover {
    color: var(--n-menu-title-color-hover);
}

/* WordPress Generated Menu Styles */
.e-n-menu-heading li a {
    color: #FFFFFF !important;
    text-decoration: none;
    font-family: "Poppins", sans-serif !important;
    font-size: var(--n-menu-title-font-size) !important;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.e-n-menu-heading li a:hover {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Ensure all menu text is white */
.e-n-menu-heading .e-n-menu-title-text {
    color: inherit;
}


/* Header Right Section */
.header-right-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
    margin-left: auto;
}

/* Phone Section */
.header-phone-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #FFFFFF;
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.header-phone-link:hover {
    opacity: 0.7;
}

.phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 6px;
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
    border-radius: 50%;
    flex-shrink: 0;
}

.phone-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.phone-number {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    color: #FFFFFF;
    font-size: 16px;
    white-space: nowrap;
}

/* Contact Button - Now using .btn.btn-primary from main styles */
.header-button-wrapper {
    display: flex;
    align-items: center;
}

/* Header-specific button styles */
.header-right-section .btn {
    padding: 12px 30px;
    font-size: 16px;
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
}

/* Mobile Menu Toggle */
.e-n-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    position: relative;
    align-self: center;
}

.e-n-menu-toggle svg {
    width: 33px;
    height: 33px;
    fill: #FFFFFF;
    transition: all 0.5s;
}

.e-n-menu-toggle[aria-expanded="false"] .e-n-menu-toggle-icon.e-close {
    display: none;
}

.e-n-menu-toggle[aria-expanded="true"] .e-n-menu-toggle-icon.e-open {
    display: none;
}

.elementor-screen-only {
    position: absolute;
    top: -10000em;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .e-n-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .e-n-menu-wrapper {
        position: fixed;
        top: 100px;
        left: 0;
        right: 0;
        background-color: var(--color-secondary);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base);
        z-index: 999;
        width: 100%;
    }

    .e-n-menu-wrapper.is-open {
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .e-n-menu-heading {
        flex-direction: column;
        padding: var(--spacing-lg) 0;
        gap: 0;
    }

    .e-n-menu-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .e-n-menu-item:last-child {
        border-bottom: none;
    }

    .e-n-menu-item a {
        padding: var(--spacing-md) var(--spacing-lg);
        justify-content: center;
        font-size: var(--font-size-md);
    }
    
    .e-n-menu-item a:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }


    .elementor-widget-n-menu {
        order: 2;
        flex: 0 0 auto;
        width: auto;
        margin: 0;
        margin-left: auto;
        position: static;
    }
    
    .e-n-menu {
        position: static;
    }

    .e-con-boxed > .e-con-inner {
        flex-wrap: nowrap;
        max-width: 95%;
        padding: 0 15px;
        justify-content: space-between;
        align-items: center;
    }
    
    .elementor-widget-theme-site-logo {
        order: 1;
        flex: 0 0 auto;
    }
    
    .header-right-section {
        order: 3;
    }
}

@media (max-width: 767px) {
    .elementor-hidden-mobile {
        display: none !important;
    }

    .elementor-widget-theme-site-logo img {
        max-width: 150px;
    }

    .e-con {
        --padding-top: 1rem;
        --padding-bottom: 1rem;
    }

    .elementor-button {
        font-size: 14px;
        padding: 10px 20px;
    }

    .e-n-menu-toggle svg {
        width: 28px;
        height: 28px;
    }
    
    .e-n-menu-wrapper {
        top: 80px;
    }
    
    .e-n-menu-wrapper.is-open {
        max-height: calc(100vh - 80px);
    }
}

/* Accessibility */
.skip-link {
    background-color: #002244;
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    position: absolute;
    top: -40px;
    left: 0;
    z-index: 1001;
}

.skip-link:focus {
    top: 0;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden;
}

/* Push down main content to account for fixed header */
#primary {
    padding-top: 100px;
}

@media (max-width: 767px) {
    #primary {
        padding-top: 80px;
    }
}