/* Dynamic Apple sliding navigation styling */
.amm-wrapper-5d54f0c2 {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

/* Hide mobile drawer by default on desktop explicitly */
.amm-mobile-drawer-5d54f0c2 {
    display: none !important;
}

/* Smart Sticky Scroll Anim triggers */
.amm-wrapper-5d54f0c2.scroll-down {
    transform: translateY(-120%);
    opacity: 0;
}
.amm-wrapper-5d54f0c2.scroll-up {
    transform: translateY(0);
    opacity: 1;
}

/* Navbar pill container */
.amm-navbar-5d54f0c2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #214837;
    height: 64px;
    padding: 0 32px;
    margin: 20px auto;
    width: calc(100% - 40px); /* Keeps pill edges from touching screen borders on tablet & mobile */
    max-width: 1200px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10001;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Brand area */
.amm-brand-5d54f0c2 {
    display: flex;
    align-items: center;
    gap: 12px;
}
.amm-logo-5d54f0c2 {
    object-fit: contain;
    transition: width 0.3s, height 0.3s;
}
.amm-brand-text-5d54f0c2 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Desktop navigation links */
.amm-desktop-nav-5d54f0c2 {
    display: flex;
    align-items: center;
    height: 100%;
}
.amm-nav-list-5d54f0c2 {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    gap: 32px;
}
.amm-nav-item-5d54f0c2 {
    display: flex;
    align-items: center;
    height: 100%;
}
.amm-nav-link-5d54f0c2 {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: color 0.25s ease;
}
.amm-nav-link-5d54f0c2:hover {
    color: #F0C628;
}

/* Contact Button */
.amm-action-5d54f0c2 {
    display: flex;
    align-items: center;
}
.amm-btn-5d54f0c2 {
    background-color: #ffffff;
    color: #214837;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.25s ease, color 0.25s ease;
}
.amm-btn-5d54f0c2:hover {
    background-color: #F0C628;
    color: #214837;
}

/* Dropdown mega container */
.amm-mega-container-5d54f0c2 {
    position: absolute;
    top: 96px; /* 64px height + 20px margin + 12px gap so dropdown doesn't touch the pill */
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 10000;
}

/* Individual slide down panels designed as matching floating cards */
.amm-panel-5d54f0c2 {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: calc(100% - 40px);
    max-width: 1200px;
    background-color: #214837;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.amm-panel-5d54f0c2.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.amm-panel-inner-5d54f0c2 {
    padding: 35px 40px 40px 40px;
}
.amm-panel-header-5d54f0c2 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 12px;
    margin-bottom: 24px;
}

/* Grid Layout */
.amm-grid-5d54f0c2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.amm-col-5d54f0c2 {
    display: flex;
    flex-direction: column;
}
.amm-col-title-5d54f0c2 {
    color: #F0C628;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}
.amm-col-list-5d54f0c2 {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.amm-col-link-5d54f0c2 {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.amm-col-link-5d54f0c2:hover {
    color: #ffffff;
    padding-left: 4px;
}

/* Mobile Toggler */
.amm-menu-toggle-5d54f0c2 {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10002;
}
.amm-toggle-bar-5d54f0c2 {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .amm-desktop-nav-5d54f0c2, .amm-action-5d54f0c2, .amm-mega-container-5d54f0c2 {
        display: none !important;
    }
    .amm-menu-toggle-5d54f0c2 {
        display: flex;
    }
    
    /* Toggle active state */
    .amm-menu-toggle-5d54f0c2.is-active .bar-top {
        transform: translateY(6px) rotate(45deg);
    }
    .amm-menu-toggle-5d54f0c2.is-active .bar-middle {
        opacity: 0;
    }
    .amm-menu-toggle-5d54f0c2.is-active .bar-bottom {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* Mobile Drawer */
    .amm-mobile-drawer-5d54f0c2 {
        display: block !important;
        position: fixed;
        top: 96px; /* Sits exactly below the floating mobile pill navbar with a 12px gap */
        left: 50%;
        transform: translateX(-50%) translateY(-100%);
        width: calc(100% - 40px);
        max-width: 500px;
        height: auto;
        max-height: calc(100vh - 120px);
        background-color: #214837 !important; /* Force matching brand color directly, removing any dynamic or fallback pinks */
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        border-radius: 24px;
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    .amm-mobile-drawer-5d54f0c2.is-open {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* Viewport sliding transition */
    .amm-drawer-viewport-5d54f0c2 {
        display: flex;
        width: 200%;
        height: auto;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .amm-drawer-viewport-5d54f0c2.slide-active {
        transform: translateX(-50%);
    }

    /* Sliding screen frames */
    .amm-screen-5d54f0c2 {
        width: 50%;
        padding: 30px;
        box-sizing: border-box;
    }
    .amm-screen-5d54f0c2.screen-sub {
        display: none;
    }

    /* Mobile Lists */
    .amm-mobile-list-5d54f0c2 {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .amm-mobile-list-5d54f0c2 li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 14px;
    }
    .amm-mobile-list-5d54f0c2 li:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .amm-mobile-item-with-sub-5d54f0c2 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #ffffff;
        font-size: 18px;
        font-weight: 500;
        cursor: pointer;
    }
    .amm-arrow-icon-5d54f0c2 {
        width: 20px !important;
        height: 20px !important;
        fill: rgba(255, 255, 255, 0.6) !important;
    }
    .amm-mobile-link-5d54f0c2 {
        color: #ffffff;
        font-size: 18px;
        font-weight: 500;
        text-decoration: none;
        display: block;
    }

    /* Back Button and Sub Header */
    .amm-back-button-5d54f0c2 {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #F0C628;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        margin-bottom: 24px;
    }
    .amm-arrow-icon-back-5d54f0c2 {
        width: 18px;
        height: 18px;
        fill: #F0C628;
    }
    .amm-mobile-sub-title-5d54f0c2 {
        color: #ffffff;
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding-bottom: 10px;
    }
    .amm-mobile-paged-content-5d54f0c2 {
        display: flex;
        flex-direction: column;
        gap: 24px;
        max-height: calc(100vh - 280px);
        overflow-y: auto;
    }
    .amm-mobile-group-5d54f0c2 {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .amm-mobile-group-header-5d54f0c2 {
        color: #F0C628;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    .amm-mobile-sub-list-5d54f0c2 {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
    .amm-mobile-sublink-5d54f0c2 {
        color: rgba(255, 255, 255, 0.85);
        font-size: 16px;
        text-decoration: none;
        display: block;
        transition: color 0.2s ease;
    }
}
