@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
@import url("https://fonts.googleapis.com/css?family=Lora:400|Space+Grotesk:300,400,600");
/* The following line is used to measure usage of this code. You can remove it if you want. */
@import url("https://px.animaapp.com/6101b234e90e5f527dfdcc1e.6101b2362775cca3222acd74.Vn5y3Ay.hcp.png");

@font-face {
    font-family: "FontAwesome6Brands-Regular";
    font-weight: 1 1000;
    src: url("../fonts/Font Awesome 6 Brands-Regular-400.otf") format("opentype");
}

/* --- DEKSTOP STYLES --- */
.screen a {
    display: contents;
    text-decoration: none;
}

/* --- MODIFIED: Added a:visited rule --- */
a, a:visited {
    color: inherit; /* Links will inherit color from their parent */
    text-decoration: none; /* No underline */
}

.container-center-horizontal {
    display: flex;
    flex-direction: row;
    justify-content: center;
    pointer-events: none;
    width: 100%;
}
.container-center-horizontal > * {
    flex-shrink: 0;
    pointer-events: auto;
}
.valign-text-middle {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
* {
    box-sizing: border-box;
}

/* Dropdown styling */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    padding: 8px 0;
    list-style: none;
}
.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown-item {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
.dropdown-item:hover {
    background-color: #f1f1f1;
}

/* Hide mobile elements by default on desktop */
.show-mobile {
    display: none !important;
}
.mobile-nav-toggle,
.mobile-menu,
.mobile-menu-overlay {
    display: none;
}

/* --- MOBILE RESPONSIVE STYLES --- */
@media screen and (max-width: 768px) {
    /* Utility classes to show/hide elements */
    .hide-mobile {
        display: none !important;
    }
    .show-mobile {
        display: block !important;
    }

    /* Enhanced Mobile Navigation Toggle */
    .mobile-nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 10001;
        background: white;
        border: 2px solid var(--guardsman-red, #c00000);
        border-radius: 12px;
        cursor: pointer;
        padding: 12px;
        width: 50px;
        height: 50px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-nav-toggle:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.25);
        border-color: #a00000;
    }

    .mobile-nav-toggle:active {
        transform: translateY(-1px);
    }

    .hamburger {
        display: block;
        position: relative;
        width: 24px;
        height: 3px;
        background-color: var(--guardsman-red, #c00000);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 3px;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        left: 0;
        width: 24px;
        height: 3px;
        background-color: var(--guardsman-red, #c00000);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 3px;
    }

    .hamburger::before {
        top: -8px;
    }

    .hamburger::after {
        top: 8px;
    }

    /* Hamburger animation to 'X' when active */
    .mobile-nav-toggle.active .hamburger {
        background-color: transparent;
    }

    .mobile-nav-toggle.active .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }

    .mobile-nav-toggle.active .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
    }

    /* Enhanced Menu Overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(4px);
    }

    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    /* Enhanced Mobile Menu Container */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 90%;
        max-width: 380px;
        height: 100vh;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        z-index: 9999;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
        display: flex;
        flex-direction: column;
    }

    .mobile-menu.active {
        right: 0;
    }

    /* Enhanced Mobile Menu Header */
    .mobile-menu-header {
        padding: 40px 25px 25px;
        border-bottom: 2px solid #e9ecef;
        text-align: center;
        background: white;
        position: relative;
    }

    .mobile-menu-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: var(--guardsman-red, #c00000);
        border-radius: 2px;
    }

    .mobile-menu-logo {
        height: 50px;
        width: auto;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }

    /* Enhanced Mobile Menu Content */
    .mobile-menu-content {
        flex: 1;
        padding: 0;
    }

    /* Main Menu Items - All styled the same */
    .mobile-menu-item {
        display: block;
        padding: 20px 25px;
        color: var(--black, #000);
        text-decoration: none;
        font-family: var(--font-family-space_grotesk, "Space Grotesk", sans-serif);
        font-size: 16px;
        font-weight: 500;
        border-bottom: 1px solid rgba(233, 236, 239, 0.8);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: linear-gradient(90deg, transparent 0%, transparent 100%);
        position: relative;
        overflow: hidden;
        opacity: 0;
        transform: translateX(30px);
        animation: slideInRight 0.3s ease forwards;
    }

    .mobile-menu.active .mobile-menu-item {
        animation-delay: calc(var(--item-index, 0) * 0.05s);
    }

    .mobile-menu-item::before {
        content: '';
        position: absolute;
        left: -100%;
        top: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, rgba(192, 0, 0, 0.08) 0%, transparent 100%);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-menu-item:hover::before {
        left: 0;
    }

    .mobile-menu-item:hover {
        color: var(--guardsman-red, #c00000);
        padding-left: 35px;
        transform: translateX(5px);
    }

    /* Category Headers - Enhanced styling */
    .mobile-menu-category {
        display: block;
        padding: 25px 25px 15px;
        color: var(--guardsman-red, #c00000);
        font-family: var(--font-family-space_grotesk, "Space Grotesk", sans-serif);
        font-size: 18px;
        font-weight: 700;
        border-bottom: 2px solid var(--guardsman-red, #c00000);
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        margin: 15px 0 0 0;
        text-transform: uppercase;
        letter-spacing: 1px;
        position: relative;
    }

    .mobile-menu-category::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background: var(--guardsman-red, #c00000);
    }

    /* Indented Category Items - Enhanced */
    .mobile-menu-item.indented {
        padding: 18px 25px 18px 45px;
        font-size: 15px;
        font-weight: 400;
        color: #495057;
        border-bottom: 1px solid rgba(233, 236, 239, 0.5);
        position: relative;
    }

    .mobile-menu-item.indented::after {
        content: '';
        position: absolute;
        left: 32px;
        top: 50%;
        transform: translateY(-50%);
        width: 6px;
        height: 6px;
        background: var(--guardsman-red, #c00000);
        border-radius: 50%;
        opacity: 0.6;
        transition: all 0.3s ease;
    }

    .mobile-menu-item.indented:hover {
        color: var(--guardsman-red, #c00000);
        padding-left: 50px;
        background: linear-gradient(90deg, rgba(192, 0, 0, 0.05) 0%, transparent 100%);
    }

    .mobile-menu-item.indented:hover::after {
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
        left: 37px;
    }

    /* Remove old submenu styles since we're not using dropdowns anymore */
    .mobile-submenu-toggle,
    .mobile-submenu,
    .mobile-submenu-item {
        display: none;
    }

    /* Enhanced Mobile Menu Footer */
    .mobile-menu-footer {
        padding: 25px;
        margin-top: auto;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-top: 2px solid #e9ecef;
    }

    .mobile-menu-button {
        display: block;
        width: 100%;
        padding: 16px;
        text-align: center;
        border-radius: 10px;
        text-decoration: none;
        font-weight: 600;
        margin-bottom: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-family: var(--font-family-space_grotesk, "Space Grotesk", sans-serif);
        font-size: 16px;
        letter-spacing: 0.5px;
        position: relative;
        overflow: hidden;
    }

    .mobile-menu-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, rgba(255,255,255,0.2) 0%, transparent 100%);
        transition: left 0.3s ease;
    }

    .mobile-menu-button:hover::before {
        left: 100%;
    }

    .mobile-menu-button.primary {
        background-color: var(--guardsman-red, #c00000);
        color: var(--white, #fff);
        box-shadow: 0 4px 15px rgba(192, 0, 0, 0.3);
    }

    .mobile-menu-button.primary:hover {
        background-color: #a00000;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(192, 0, 0, 0.4);
    }

    .mobile-menu-button.secondary {
        background-color: var(--white, #fff);
        color: var(--guardsman-red, #c00000);
        border: 2px solid var(--guardsman-red, #c00000);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .mobile-menu-button.secondary:hover {
        background-color: var(--guardsman-red, #c00000);
        color: var(--white, #fff);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(192, 0, 0, 0.3);
    }

    /* Smooth scroll behavior */
    .mobile-menu {
        scroll-behavior: smooth;
    }

    /* Add subtle animations on menu open */
    @keyframes slideInRight {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Responsive adjustments for smaller screens */
    @media (max-width: 480px) {
        .mobile-menu {
            width: 95%;
        }

        .mobile-menu-header {
            padding: 30px 20px 20px;
        }

        .mobile-menu-logo {
            height: 40px;
        }
    }
}