/* Reset & basic */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
    z-index: 2000;
    background: transparent;

    /* sembunyikan sampai JS siap */
    visibility: hidden;
}

header.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 5px 30px;
}

/* Logo */
.logo img {
    width: 80px;
    height: 60px;
    object-fit: contain;
    transition: width 0.3s, height 0.3s;
}

header.scrolled .logo img {
    width: 60px;
    height: 45px;
}

/* Navigation */
nav {
    display: flex;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    font-weight: 600;
    color: #1b1b1b;
    transition: color 0.3s;
    text-transform: uppercase;
    display: inline-block;
    position: relative;
}

header.scrolled nav ul li a {
    color: #103f2f;
}

/* Underline hover (NON CTA) */
nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #a5cd48;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* ===========================
   CTA BUTTON – BOOK CONSULTATION
   =========================== */

nav ul li.cta-button a {
    border: 2px solid #48421C;
    /* border default */
    padding: 8px 22px;
    border-radius: 0px;
    color: #48421C;
    font-weight: 700;
    background: transparent;
    /* background transparan */
    transition: all 0.3s ease;
}

/* Hover CTA */
nav ul li.cta-button a:hover {
    background: #a5cd48;
    border-color: #a5cd48;
    color: #ffffff;
}

/* Hilangkan underline khusus CTA */
nav ul li.cta-button a::after {
    display: none;
}

/* Saat header scroll */
header.scrolled nav ul li.cta-button a {
    border-color: #a5cd48;
    color: #48421C;
}

/* Hamburger */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #222222;
    z-index: 1000;
}

header.scrolled .menu-toggle {
    color: #103f2f;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 991px) {

    header {
        flex-direction: column;
        align-items: center;
        padding: 12px 15px;
    }

    /* Logo di atas */
    .logo {
        margin-bottom: 10px;
    }

    /* Sembunyikan hamburger */
    .menu-toggle {
        display: none;
    }

    /* NAV LANGSUNG TERLIHAT */
    nav {
        position: relative;
        max-height: none;
        /* ⬅️ PENTING */
        overflow: visible;
        /* ⬅️ PENTING */
        width: 100%;
    }

    nav ul {
        flex-direction: row;
        /* ⬅️ HORIZONTAL */
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 10px 0;
    }

    nav ul li a {
        font-size: 13px;
    }
}