/*
 * Navigation Modal Styles
 * Uses the same overlay/slideout structure as product modal
 */

/* Base overlay and slideout styles (shared with product modal) */
.product-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
    justify-content: flex-end;
}

.product-overlay.active {
    display: flex;
}

.product-slideout {
    width: 936px;
    max-width: 100%;
    height: 100vh;
    background: #ffffff;
    display: flex;
    position: relative;
    border-left: 5px solid #e50695;
}

/* Close button */
.product-slideout__close {
    position: absolute;
    top: 21px;
    left: -50px;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.product-slideout__close:hover {
    background-color: #f3f4f6;
}

.product-slideout__close svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

/* Decorative pills image */
.nav-modal__pills {
    position: absolute;
    top: 0;
    right: -12px;
    width: 20%;
    z-index: 1;
}

/* Jazwares Logo (Mobile Only) */
.nav-modal__logo {
    display: none;
    /* Hidden by default on desktop */
    width: 100%;
    max-width: 600px;
    margin-top: 90px;
    margin-bottom: 30px;
    padding-left: 20px;
}

.nav-modal__logo img {
    max-width: 200px;
    height: auto;
}

/* Navigation Links Section (Mobile Only) */
.nav-modal__nav-links {
    display: none;
    /* Hidden by default on desktop */
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    margin-bottom: 40px;
    padding-left: 20px;
}

.nav-modal__nav-link {
    font-family: 'Comfortaa', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-modal__nav-link:hover {
    color: #1d52e1;
    border-bottom-color: #1d52e1;
}

/* Main content container */
.nav-modal__content {
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Contact Us Section */
.nav-modal__contact {
    margin-top: 60px;
    margin-bottom: 60px;
    width: 100%;
    max-width: 600px;
}

.nav-modal__contact-inner {
    margin-left: 0;
}

.nav-modal__contact-title {
    font-family: 'Comfortaa', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.31;
    letter-spacing: -0.52px;
    color: #000;
    margin: 0 0 11px 0;
}

.nav-modal__contact-text {
    font-family: 'Comfortaa', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.86;
    color: #000;
    margin: 0 0 18px 0;
    max-width: 315px;
}

.nav-modal__contact-button {
    background-color: transparent;
    border-radius: 100px;
    border: 1px solid #1d52e1;
    padding: 7px 24px;
    color: #1d52e1;
    font-family: 'Comfortaa', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.38;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-modal__contact-button:hover {
    background-color: #1d52e1;
    color: #fff;
}

/* Offices Section */
.nav-modal__offices {
    margin-bottom: 74px;
    width: 100%;
    max-width: 600px;
}

.nav-modal__offices-header {
    display: flex;
    gap: 20px;
}

.nav-modal__building-icon {
    width: 40px;
    height: fit-content;
    flex-shrink: 0;
}

.nav-modal__offices-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.nav-modal__office {
    margin-left: 20px;
}

.nav-modal__office-title {
    font-family: 'Comfortaa', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin: 0 0 4px 0;
}

.nav-modal__office-location {
    font-family: 'Comfortaa', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.86;
    color: #1d52e1;
    margin: 0;
}

.nav-modal__office-phone {
    font-family: 'Comfortaa', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.86;
    color: #000;
    margin: 0;
}

/* Social Media Section */
.nav-modal__social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
    width: 100%;
    max-width: 600px;
}

.nav-modal__social a {
    display: block;
    transition: transform 0.2s ease;
}

.nav-modal__social a:hover {
    transform: scale(1.1);
}

.nav-modal__social img {
    width: 25px;
    height: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .nav-modal__pills {
        width: 40%;
    }

    .nav-modal__social {
        gap: 40px;
    }
}

/* 925px Breakpoint - Transform modal into navigation */
@media (max-width: 925px) {

    /* Show Jazwares logo in modal */
    .nav-modal__logo {
        display: block;
    }

    /* Show navigation links in modal */
    .nav-modal__nav-links {
        display: flex;
    }

    /* Hide Contact Us section */
    .nav-modal__contact {
        display: none;
    }

    /* Hide Offices section */
    .nav-modal__offices {
        display: none;
    }

    /* Hide Social Icons section */
    .nav-modal__social {
        display: none;
    }

    /* Hide desktop navigation */
    .desktop-nav {
        display: none !important;
    }

    /* Reposition close button to be inside the modal on mobile */
    .product-slideout__close {
        left: 20px;
        top: 20px;
    }
}

@media (max-width: 768px) {
    .nav-modal__content {
        padding: 40px 20px;
    }

    .nav-modal__contact-inner {
        margin-left: 0;
    }

    .nav-modal__contact-text {
        max-width: 284px;
    }

    .nav-modal__contact-button {
        margin-top: 20px;
    }

    .nav-modal__office-title {
        font-size: 13px;
    }

    .nav-modal__office-phone {
        font-size: 10px;
    }
}