/* --- Navbar --- */
.t-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(5, 5, 8, 0.65);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition-smooth);
}

.t-navbar.scrolled {
    padding: 12px 0;
    background: rgba(5, 5, 8, 0.9);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.t-navbar .nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.02);
}

.nav-logo img {
    height: 60px;
    object-fit: contain;
}

.t-navbar .nav-menu {
    display: flex;
    gap: 35px;
    align-items: center;
}

.t-navbar .nav-menu a {
    color: var(--textil-text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition-smooth);
    position: relative;
    padding: 8px 0;
}

.t-navbar .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--textil-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.t-navbar .nav-menu a:hover::after,
.t-navbar .nav-menu a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.t-navbar .nav-menu a:hover,
.t-navbar .nav-menu a.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(37, 211, 102, 0.3);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 0 10px rgba(37, 211, 102, 0.2);
}

.nav-close-mobile {
    display: none;
}

.nav-social {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 20px;
}

.nav-social a {
    color: #fff;
    font-size: 16px !important;
    opacity: 0.7;
    transition: opacity 0.3s, color 0.3s;
}

.nav-social a:hover {
    opacity: 1;
    color: var(--textil-accent);
}

/* Floating WhatsApp Button */
.t-float-wsp {
    display: flex;
    position: fixed;
    bottom: 30px;
    right: 30px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50px;
    /* pill shape for expanding */
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    padding: 0;
    width: 60px;
    /* start as circle */
    text-decoration: none;
}

.t-float-wsp span {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    transition: all 0.4s ease;
    margin-left: 0;
    display: inline-block;
    vertical-align: middle;
}

.t-float-wsp i {
    display: inline-block;
    vertical-align: middle;
}

.t-float-wsp:hover {
    width: 210px;
    /* Expanded width */
    padding: 0 25px;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
    justify-content: flex-start;
}

.t-float-wsp:hover span {
    opacity: 1;
    max-width: 150px;
    margin-left: 10px;
}

@media (max-width: 991px) {

    /* Navbar Mobile */
    .nav-logo img {
        height: 48px;
    }

    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 18px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        position: relative;
    }

    .nav-toggle span {
        display: block;
        width: 100%;
        height: 2.5px;
        background-color: #fff;
        border-radius: 2px;
        transition: var(--transition-smooth);
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--textil-accent);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--textil-accent);
    }

    .t-navbar .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #000;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 30px;
        z-index: 1000;
        padding: 160px 40px 40px 40px;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
    }

    .t-navbar .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-close-mobile {
        position: absolute;
        top: 30px;
        right: 30px;
        background: transparent;
        border: none;
        color: #fff;
        font-size: 1.8rem;
        cursor: pointer;
        z-index: 1001;
        opacity: 0.7;
    }

    .nav-menu a:not(.btn-whatsapp):not(.nav-social-mobile a) {
        font-size: 1.5rem !important;
        font-family: var(--font-body);
        font-weight: 700;
        text-transform: none;
        color: #fff;
        padding: 5px 0;
        position: relative;
        opacity: 1;
        transition: all 0.3s ease;
    }

    .nav-menu a:not(.btn-whatsapp):not(.nav-social-mobile a)::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: var(--textil-accent);
        transition: width 0.3s ease;
    }

    .nav-menu a:not(.btn-whatsapp):not(.nav-social-mobile a).active::after,
    .nav-menu a:not(.btn-whatsapp):not(.nav-social-mobile a):hover::after {
        width: 100%;
    }

    .nav-social {
        position: absolute;
        bottom: 100px;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 20px;
        border-left: none;
        padding-left: 0;
        margin-left: 0;
    }

    .nav-social a {
        color: #fff;
        font-size: 1.3rem;
        opacity: 0.8;
        transition: opacity 0.3s;
    }

    .nav-social a:hover {
        opacity: 1;
        color: var(--textil-accent);
    }
}