/* =========================================
   ACUBE STUDIOS GLOBAL HEADER
   ========================================= */

:root {
    --acube-navy: #071a35;
    --acube-navy-light: #102a4d;
    --acube-gold: #A8641F;
    --acube-white: #ffffff;
    --acube-text: #24364d;
}


/* HEADER */

.acube-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 76px;

    background: rgba(255, 255, 255, 0.97);

    border-bottom: 1px solid rgba(7, 26, 53, 0.08);

    box-shadow: 0 4px 20px rgba(7, 26, 53, 0.06);

    z-index: 9999;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition: all 0.3s ease;
}


/* Header after scroll */

.acube-header.scrolled {
    height: 68px;

    box-shadow: 0 8px 30px rgba(7, 26, 53, 0.12);
}


/* CONTAINER */

.acube-nav-container {
    width: min(1180px, calc(100% - 40px));

    height: 100%;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* LOGO */

.acube-logo {
    text-decoration: none;

    color: var(--acube-navy);

    font-size: 22px;

    font-weight: 900;

    letter-spacing: -0.5px;

    line-height: 1;

    white-space: nowrap;
}

.acube-logo span {
    display: block;

    color: var(--acube-gold);

    font-size: 10px;

    letter-spacing: 3px;

    margin-top: 5px;

    font-weight: 800;
}


/* NAVIGATION */

.acube-nav {
    display: flex;

    align-items: center;

    gap: 30px;
}

.acube-nav a {
    position: relative;

    color: var(--acube-navy);

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    transition: color 0.25s ease;
}


/* Navigation hover */

.acube-nav a:not(.acube-nav-cta)::after {
    content: "";

    position: absolute;

    left: 0;

    bottom: -8px;

    width: 0;

    height: 2px;

    background: var(--acube-gold);

    transition: width 0.25s ease;
}

.acube-nav a:not(.acube-nav-cta):hover {
    color: var(--acube-gold);
}

.acube-nav a:not(.acube-nav-cta):hover::after {
    width: 100%;
}


/* CTA */

.acube-nav-cta {
    background: var(--acube-gold);

    color: #ffffff !important;

    padding: 13px 21px;

    border-radius: 8px;

    font-weight: 800 !important;

    box-shadow: 0 8px 20px rgba(168, 100, 31, 0.22);

    transition: all 0.25s ease !important;
}

.acube-nav-cta:hover {
    transform: translateY(-2px);

    background: #8f5319;

    box-shadow: 0 12px 26px rgba(168, 100, 31, 0.30);
}


/* MOBILE MENU BUTTON */

.acube-menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    border: none;

    background: transparent;

    cursor: pointer;

    padding: 8px;

    flex-direction: column;

    justify-content: center;

    gap: 5px;
}

.acube-menu-toggle span {
    display: block;

    width: 26px;

    height: 2px;

    background: var(--acube-navy);

    border-radius: 5px;

    transition: all 0.3s ease;
}


/* Hamburger animation */

.acube-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.acube-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.acube-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {

    .acube-nav {
        gap: 18px;
    }

    .acube-nav a {
        font-size: 13px;
    }

    .acube-nav-cta {
        padding: 11px 15px;
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 760px) {

    .acube-header {
        height: 68px;
    }

    .acube-nav-container {
        width: calc(100% - 28px);
    }

    .acube-logo {
        font-size: 19px;
    }

    .acube-logo span {
        font-size: 8px;

        letter-spacing: 2.5px;
    }


    /* Mobile navigation */

    .acube-nav {
        position: fixed;

        top: 68px;

        left: 0;

        width: 100%;

        height: calc(100vh - 68px);

        background: #ffffff;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 20px;

        transform: translateX(100%);

        transition: transform 0.35s ease;

        box-shadow: -10px 0 40px rgba(7, 26, 53, 0.12);

        overflow-y: auto;
    }


    .acube-nav.active {
        transform: translateX(0);
    }


    .acube-nav a {
        width: 100%;

        padding: 17px 5px;

        border-bottom: 1px solid #edf0f4;

        font-size: 16px;
    }


    .acube-nav a:not(.acube-nav-cta)::after {
        display: none;
    }


    .acube-nav-cta {
        margin-top: 18px;

        text-align: center;

        border-radius: 8px;

        padding: 15px;
    }


    .acube-menu-toggle {
        display: flex;
    }
}


/* Small mobile */

@media (max-width: 420px) {

    .acube-nav-container {
        width: calc(100% - 20px);
    }

    .acube-logo {
        font-size: 18px;
    }
}


/* Prevent body scroll when menu open */

body.acube-menu-open {
    overflow: hidden;
}