/* =========================================================
   KING BARBERSHOP — HEADER (FINAL, BERSIH, RESPONSIVE)
   Desktop : Logo + Menu horizontal
   Mobile  : Logo + Hamburger → drawer dari kanan
========================================================= */

/* ---------- RESET KHUSUS HEADER ---------- */
.header,
.header *,
.header *::before,
.header *::after {
    box-sizing: border-box;
}

/* ---------- HEADER WRAPPER ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 72px;

    display: flex;
    align-items: center;

    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255, 152, 0, 0.25);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);

    z-index: 1000;
}

.header .container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* ---------- BRAND / LOGO ---------- */
.kbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    text-decoration: none;
    flex-shrink: 0;
}

.kbar-brand-text {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    color: #ffffff;
    transition: color 0.3s ease;
}

.kbar-brand:hover .kbar-brand-text {
    color: #ff9800;
}

/* Logo image (kalau ada) */
.header .logo img {
    display: block;
    height: 40px;
    width: auto;
}

/* ---------- HAMBURGER BUTTON (MOBILE) ---------- */
.nav-open-btn {
    display: none; /* default: sembunyi (desktop) */

    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;

    width: 42px;
    height: 42px;

    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 152, 0, 0.35);
    border-radius: 10px;

    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.nav-open-btn:hover {
    background: rgba(255, 152, 0, 0.15);
    border-color: #ff9800;
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-open-btn:hover .hamburger-line {
    background: #ff9800;
}

/* Kalau pakai ion-icon (fallback) */
.nav-open-btn ion-icon {
    color: #ffffff;
    font-size: 26px;
}

/* ---------- NAVBAR (DESKTOP) ---------- */
.navbar {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.navbar-top {
    display: none; /* sembunyi di desktop */
}

.navbar-list {
    display: flex;
    align-items: center;
    gap: 2px;

    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-link {
    display: inline-block;
    padding: 10px 16px;

    color: #e0e0e0;
    text-decoration: none;

    font-family: 'Oswald', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    border-radius: 8px;
    transition: all 0.25s ease;
}

.navbar-link:hover,
.navbar-link.active {
    color: #ff9800;
    background: rgba(255, 152, 0, 0.08);
}

/* ---------- OVERLAY (MOBILE) ---------- */
.header .overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.header .overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* =========================================================
   MOBILE BREAKPOINT
========================================================= */
@media (max-width: 900px) {

    /* Tampilkan hamburger */
    .nav-open-btn {
        display: flex;
    }

    /* Navbar jadi drawer dari kanan */
    .navbar {
        position: fixed;
        top: 0;
        right: -320px;

        width: 300px;
        max-width: 85vw;
        height: 100vh;

        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;

        background: #0a0a0a;
        border-left: 1px solid rgba(255, 152, 0, 0.3);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);

        padding: 20px;

        z-index: 1002;
        overflow-y: auto;

        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);

        visibility: hidden;
    }

    .navbar.active {
        right: 0;
        visibility: visible;
    }

    /* Tombol close di mobile */
    .navbar-top {
        display: flex;
        align-items: center;
        justify-content: space-between;

        padding-bottom: 18px;
        margin-bottom: 18px;

        border-bottom: 1px solid rgba(255, 152, 0, 0.2);
    }

    .navbar-top-brand {
        font-family: 'Oswald', sans-serif;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 2px;
        color: #ff9800;
        text-transform: uppercase;
    }

    .nav-close-btn {
        width: 38px;
        height: 38px;

        display: flex;
        align-items: center;
        justify-content: center;

        background: rgba(255, 255, 255, 0.05);
        color: #ffffff;

        border: 1px solid rgba(255, 152, 0, 0.3);
        border-radius: 10px;

        font-size: 18px;
        cursor: pointer;
        transition: all 0.25s ease;
        padding: 0;
    }

    .nav-close-btn:hover {
        background: #ff9800;
        color: #0a0a0a;
        border-color: #ff9800;
    }

    .nav-close-btn ion-icon {
        color: inherit;
        font-size: 20px;
    }

    .nav-close-btn i {
        font-size: 18px;
    }

    /* Link jadi vertical */
    .navbar-list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .navbar-link {
        padding: 14px 16px;
        font-size: 0.9rem;
        letter-spacing: 0.14em;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 6px;
    }

    .navbar-link:last-child {
        border-bottom: none;
    }

    .navbar-link:hover,
    .navbar-link.active {
        background: rgba(255, 152, 0, 0.1);
    }
}

/* =========================================================
   PADDING BODY — supaya konten tidak ketutup header
========================================================= */
body {
    padding-top: 72px;
}

@media (max-width: 900px) {
    body {
        padding-top: 72px;
    }
}

/* =========================================================
   MENU BUTTON — PRIMARY (Highlight Orange)
   Untuk tombol utama seperti Appointment
========================================================= */
.menu-button-primary {
    background: linear-gradient(145deg, #ff9800 0%, #e68a00 100%) !important;
    color: #ffffff !important;
    border: 1px solid #ffb74d !important;

    box-shadow:
        0 6px 20px rgba(255, 152, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;

    position: relative;
    overflow: hidden;
}

/* Efek kilau saat hover */
.menu-button-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );

    transition: left 0.6s ease;
    pointer-events: none;
}

.menu-button-primary:hover::before {
    left: 100%;
}

.menu-button-primary i {
    color: #ffffff !important;
}

.menu-button-primary span {
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Hover state */
.menu-button-primary:hover {
    background: linear-gradient(145deg, #ffb74d 0%, #ff9800 100%) !important;
    border-color: #ffb74d !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 10px 28px rgba(255, 152, 0, 0.6),
        0 0 25px rgba(255, 152, 0, 0.5) !important;
}

/* Mobile — ukuran tetap sama, tapi tetap orange */
@media (max-width: 480px) {
    .menu-button-primary {
        box-shadow:
            0 4px 14px rgba(255, 152, 0, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
    }
}