/* Inline styles moved from index.htm */

/* Ensure page has no default body margin that could show gaps */
html, body {
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

/* Dummy fixed background element placed behind site content */
.jas-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    pointer-events: none;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    z-index: 0; /* sits behind content (site-wrap will be above it) */
}

/* Ensure main site content stacks above the background element */
.site-wrap {
    position: relative;
    z-index: 1;
}

/* Fullscreen white overlay for mobile hamburger menu */
.site-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw; /* ensure it spans the viewport width */
    box-sizing: border-box;
    /* 80% opaque white so underlying content shows through slightly */
    background: rgba(255, 255, 255, 0.8);
    z-index: 1200; /* above header/hamburger */
    display: flex;
    flex-direction: column;
    transform: translateY(-5%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure any .container inside the mobile menu uses the full overlay width */
.site-mobile-menu .container {
    width: 100% !important;
    max-width: none !important;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.site-mobile-menu.site-mobile-menu--open,
.site-mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.site-mobile-menu-header {
    /* keep header height but header content is positioned separately */
    height: 56px;
    min-height: 56px;
}

/* Position close X using fixed left/top so we can precisely match the hamburger */
.site-mobile-menu-close {
    position: fixed;
    top: 16px;
    left: auto; /* set by JS when menu opens */
    right: auto;
    z-index: 1210;
    display: flex;
    align-items: center;
    justify-content: center;
    /* slightly smaller square to match hamburger size */
    width: 30px;
    height: 30px;
    /* solid contrast square behind the X */
    background: #111; /* contrast color - adjust if needed */
    border-radius: 6px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 160ms ease, visibility 160ms;
    pointer-events: auto;
}
.site-mobile-menu.site-mobile-menu--open .site-mobile-menu-close {
     visibility: visible;
     opacity: 1;
 }
.site-mobile-menu-close .icon-close2 {
    cursor: pointer;
    /* smaller icon to balance the square */
    font-size: 1rem;
    color: #fff; /* white X on contrast square */
    line-height: 1;
    display: inline-block;
}
.site-mobile-menu-body {
    overflow-y: auto;
    padding: 3rem 1.25rem;
    flex: 1 1 auto;
}
/* Mobile menu links */
.site-mobile-menu-body .site-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-mobile-menu-body .site-menu li {
    margin: 0.75rem 0;
}
.site-mobile-menu-body .site-menu a {
    display: block;
    color: #111;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 0.5rem 0.25rem;
}
/* Prevent background scroll when menu open */
body.menu-open {
    overflow: hidden;
    touch-action: none;
}
/* Ensure hamburger stays above background when closed */
.site-menu-toggle {
    z-index: 1300;
}

/* Use native CSS sticky for the header to avoid JS/plugin conflicts */
.js-sticky-header {
    position: sticky;
    top: 0;
    z-index: 1199;
}
@media (min-width: 768px) {
    .site-mobile-menu {
        display: none;
    }
}
