/*******MENU COL***********/
.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    max-width: 1360px;
    margin: auto 0;
    box-sizing: border-box;
}

.menu-grid .column {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0 clamp(15px, 2.5vw, 45px);
    flex-direction: column;
    display: flex;
    box-sizing: border-box;
}

.menu-grid .column:last-child {
    border-right: none;
}

.menu-grid .column h2 {
    font-size: 20px;
    text-align: left;
    font-family: var(--font-medium);
    color: var(--primary-color);
    border-bottom: 0;
    margin: 0 0 15px 0;
    letter-spacing: 0.5px;
}

/* HAMBURGER */
.menu-btn {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: 0.4s ease;
    background: transparent;
    border: none;
    padding: 0;
}

.menu-btn span {
    width: 100%;
    height: 2px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s ease;
    display: block;
}

body.light .menu-btn span {
    background: var(--black);
}

.menu-btn span:nth-child(2) {
    width: 70%;
}

.menu-btn span:nth-child(3) {
    width: 40%;
}

/* FULLSCREEN MENU */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background-color: #0b0b0b;
    background-image: url(../images/backgrounds/menu-bg.jpg) !important;
    background-repeat: no-repeat;
    background-position: center center;
    -moz-background-size: cover;
    -webkit-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    color: var(--white);
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 80px 40px 40px;
    box-sizing: border-box;
}

/* ACTIVE MENU */
.fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* CLOSE BUTTON */
.close-btn {
    position: fixed;
    top: 35px;
    right: 50px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10000000;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: rotate(90deg);
}

.close-btn::before,
.close-btn::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 8px;
    width: 34px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.close-btn::before {
    transform: rotate(45deg);
}

.close-btn::after {
    transform: rotate(-45deg);
}

/* MENU LINKS */
.fullscreen-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.fullscreen-menu ul li {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.fullscreen-menu ul li a {
    width: 100%;
    display: flex;
    align-items: center;
    color: #fff !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: var(--bold);
    letter-spacing: 0;
    transition: 0.3s ease;
    position: relative;
    padding: 10px 0;
}

.fullscreen-menu ul li a:before {
    width: 100%;
    height: 0;
    position: absolute;
    left: 0;
    bottom: 0;
    content: '';
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    opacity: 0.3;
}

.fullscreen-menu ul li a:hover:before {
    height: 100%;
    top: 0;
}

.fullscreen-menu ul li a:hover {
    padding: 10px 10px;
    color: var(--primary-color) !important;
}

.fullscreen-menu ul li a span {
    position: relative;
    z-index: 2;
}

.number {
    color: rgba(255, 255, 255, 0.2);
    font-size: 16px;
    display: inline-block;
    margin-right: 10px;
}

/* CONTACT INFO IN FULLSCREEN MENU */
.fullscreen-menu .add {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 18px;
    position: relative;
    padding: 0 0 0 50px;
    text-align: left;
}

.fullscreen-menu .add a {
    color: #fff !important;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline;
    padding: 0;
}

.fullscreen-menu .add a:hover {
    color: var(--primary-color) !important;
}

.fullscreen-menu .add i {
    width: 35px;
    height: 35px;
    line-height: 35px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: var(--white);
    font-size: 14px;
    text-align: center;
    position: absolute;
    left: 0;
    top: 2px;
}

body.light .fullscreen-menu .add a {
    color: #fff !important;
}

/* RESPONSIVE BREAKPOINTS */

/* LAPTOPS & DESKTOPS (<= 1480px down to 992px) */
@media (max-width: 1480px) {
    .fullscreen-menu {
        background-image: url(../images/backgrounds/menu-bg.jpg) !important;
        padding: 70px 30px 40px;
    }
    
    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
    }
    
    .menu-grid .column {
        padding: 0 clamp(12px, 1.8vw, 25px);
    }
    
    .fullscreen-menu ul li a {
        font-size: 15px;
        padding: 8px 0;
    }
}

/* TABLETS (<= 991px) */
@media (max-width: 991px) {
    .fullscreen-menu {
        background-image: url(../images/backgrounds/menu-bg.jpg) !important;
        padding: 80px 25px 40px;
        justify-content: flex-start;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
        margin: 0 auto;
        max-width: 720px;
    }
    
    .menu-grid .column {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0 15px 25px;
    }
    
    .menu-grid .column:last-child,
    .menu-grid .column:nth-last-child(2) {
        border-bottom: none;
    }
    
    .close-btn {
        top: 25px;
        right: 30px;
    }
}

/* MOBILE (<= 640px) */
@media (max-width: 640px) {
    .fullscreen-menu {
        background-image: url(../images/backgrounds/menu-bg.jpg) !important;
        padding: 70px 15px 30px;
        justify-content: flex-start;
    }

    .close-btn {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .close-btn::before,
    .close-btn::after {
        top: 19px;
        left: 6px;
        width: 28px;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 12px;
        max-width: 100%;
        margin: 0;
    }

    .menu-grid .column {
        padding: 0 5px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .menu-grid .column h2 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .fullscreen-menu ul li a {
        font-size: 13.5px;
        padding: 6px 0;
    }

    .fullscreen-menu .add {
        font-size: 12px;
        padding-left: 38px;
        margin-bottom: 12px;
    }

    .fullscreen-menu .add i {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 11px;
    }
}

/* VERY SMALL MOBILE (<= 400px) */
@media (max-width: 400px) {
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 18px 0;
    }

    .menu-grid .column {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 15px;
    }
}
