html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

/* ==========================================================================
   BARBERO - DARK & GOLD LUXURY THEME (GLOBAL)
   ========================================================================== */
:root {
    --bg-main: #0B0C0E;
    --bg-card: #14161A;
    --bg-card-hover: #1C1F24;
    --bg-input: #0F1013;
    --gold-primary: #F5B942;
    --gold-hover: #E0A32B;
    --gold-subtle: rgba(245, 185, 66, 0.12);
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --border-dark: #262930;
    --status-green: #10B981;
    --status-red: #EF4444;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: clip;
}

h1, h2, h3, .serif-title {
    font-family: 'Playfair Display', serif;
}

/* ================= NAVBAR ================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(11, 12, 14, 0.95);
    backdrop-filter: blur(8px);
    padding: 18px 48px;
    border-bottom: 1px solid var(--border-dark);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: 2px;
    text-decoration: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    margin: 0 16px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--gold-primary);
}

.btn-gold {
    background-color: var(--gold-primary);
    color: #0B0C0E;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.btn-gold:hover {
    background-color: var(--gold-hover);
}

.btn-outline-gold {
    background-color: transparent;
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    padding: 9px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-outline-gold:hover {
    background-color: var(--gold-subtle);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* ================= FOOTER ================= */
.footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-dark);
    padding: 48px 0 32px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
    gap: 32px;
    padding: 0 24px;
    font-size: 13px;
}

.footer-col p {
    color: var(--text-secondary);
    margin-top: 12px;
}

.footer-col h4 {
    color: var(--gold-primary);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--gold-primary);
}

/* ================= RESPONSIVE HP (PROPORSIONAL & COMPACT) ================= */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    body {
        font-size: 13.5px;
    }

    h1 {
        font-size: 1.65rem !important;
        line-height: 1.25 !important;
    }

    h2 {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
    }

    h3 {
        font-size: 1.1rem !important;
    }

    .navbar {
        flex-wrap: wrap;
        padding: 10px 14px;
        gap: 8px;
    }

    .logo {
        font-size: 18px;
        letter-spacing: 1.5px;
    }

    #nav-auth-slot .btn-outline-gold,
    #nav-auth-slot .btn-gold {
        padding: 6px 11px;
        font-size: 11.5px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: space-between;
        border-top: 1px solid var(--border-dark);
        padding-top: 8px;
        gap: 4px;
    }

    .nav-links a {
        margin: 0;
        font-size: 12px;
        padding: 2px 4px;
    }

    .btn-gold,
    .btn-outline-gold {
        padding: 8px 14px;
        font-size: 12.5px;
    }

    .footer {
        padding: 28px 0 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 16px;
        text-align: left;
        font-size: 12.5px;
    }
}

/* ================= CUSTOMER SCROLL INTERACTIVITY (NO. 1 & NO. 5) ================= */
/* 1. Gold Scroll Progress Bar di Puncak Layar */
.barbero-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #b8860b, var(--gold-primary, #d4af37), #f5d77f);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.65);
    z-index: 99999;
    pointer-events: none;
    transition: width 0.08s linear;
}

/* 2. Smart Sticky Glass Navbar saat Di-scroll */
.barbero-navbar-scrolled {
    background-color: rgba(11, 12, 14, 0.85) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.35) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65) !important;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 3. Floating Back-to-Top Button dengan Progress Ring Emas */
.barbero-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #121419;
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--gold-primary, #d4af37);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.92);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease, color 0.2s ease;
    padding: 0;
}

.barbero-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.barbero-back-to-top:hover {
    background-color: var(--gold-primary, #d4af37);
    color: #0B0C0E;
    transform: translateY(-3px) scale(1.05);
}

.barbero-back-to-top svg.progress-ring {
    position: absolute;
    inset: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    transform: rotate(-90deg);
    pointer-events: none;
}

.barbero-back-to-top svg.progress-ring circle {
    fill: none;
    stroke: var(--gold-primary, #d4af37);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 138.23;
    stroke-dashoffset: 138.23;
    transition: stroke-dashoffset 0.1s linear;
}

.barbero-back-to-top:hover svg.progress-ring circle {
    stroke: #ffffff;
}

.barbero-back-to-top .arrow-icon {
    position: relative;
    z-index: 2;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 600px) {
    .barbero-back-to-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}