/* ================= NAVBAR ================= */
.navbar{
  position: sticky;
  top: 0;
  z-index: 10003;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 80px;
  background: var(--soft-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* LOGO */
.logo{
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img{ height: 42px; }
.logo h2{
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
}

/* NAV LINKS (desktop) */
.navbar .nav-links{
  display: flex;
  align-items: center;
  gap: 35px;
}
.navbar .nav-links a{
  position: relative;
  text-decoration: none;
  font-weight: 500;
  color: var(--primary);
  padding-bottom: 4px;
  transition: color 0.3s ease;
}
.navbar .nav-links a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.navbar .nav-links a:hover::after,
.navbar .nav-links a.active::after{
  width: 100%;
}
.navbar .nav-links a.active{ color: var(--accent); }

/* HAMBURGER (desktop hidden) */
.menu-toggle{
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}
.menu-toggle span{
  width: 26px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* overlay default (hidden) */
.nav-overlay{
  display: none;
}

/* Lock scroll bila menu open */
body.no-scroll{
  overflow: hidden;
}

.whatsapp-float{
  position: fixed;
  bottom: 18px;
  right: 18px;

  background: #25d366;
  color: #fff;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 14px;

  text-decoration: none;
  font-size: 14px;
  font-weight: 500;

  box-shadow: 0 8px 25px rgba(0,0,0,0.25);

  z-index: 10010; /* 🔥 lebih tinggi dari overlay & nav */
}

.whatsapp-float img{
  width: 24px;
  height: 24px;
}

/* ================= MOBILE NAV (OFFCANVAS) ================= */
@media (max-width: 768px){
  .navbar{
    padding: 14px 22px;
  }

  /* show hamburger */
  .menu-toggle{
    display: flex;
    z-index: 10004;
  }

  /* overlay behind menu */
  .nav-overlay{
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 10000;
  }
  .nav-overlay.active{
    opacity: 1;
    pointer-events: auto;
  }

  /* drawer menu */
  .navbar .nav-links{
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 270px;
    background: #fff;

    display: flex;                 /* kekal flex */
    flex-direction: column;
    align-items: flex-start;

    padding: 90px 26px;
    gap: 18px;

    box-shadow: -12px 0 30px rgba(0,0,0,0.15);
    transition: right 0.35s ease;
    z-index: 10002;                /* atas overlay */
  }
  .navbar .nav-links.active{
    right: 0;
  }

  .navbar .nav-links a{
    width: 100%;
    font-size: 16px;
    padding: 10px 0;
  }

  /* kalau nak WhatsApp boleh click walaupun menu open */
  .whatsapp-float{
    z-index: 10005;
  }
}