/* ==========================================================================
   EXACT REPLICA HEADER: CITRA MASSAGE (NORMAL VS STICKY)
   ========================================================================== */

/* Outer Full Width Header */
.citra-main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  background: rgba(45, 52, 54, 0.65); /* Gelap transparan */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, height 0.3s ease, top 0.2s ease;
  height: 87px;
  display: flex;
  align-items: center;
}

/* FIX ADMIN BAR WORDPRESS */
body.admin-bar .citra-main-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .citra-main-header {
    top: 46px;
  }
}

/* Inner Container */
.citra-header-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

/* --- 1. LOGO --- */
.citra-brand a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.citra-brand img {
  height: 42px;
  width: auto;
  display: block;
}

.citra-brand .logo-sticky {
  display: none;
}
.citra-brand .logo-default {
  display: block;
}

/* --- 2. MENU NAVIGASI (DESKTOP) --- */
.citra-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.citra-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 34px;
}

.citra-menu li a {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Hover Menu Normal: Berubah jadi hijau toska lembut (tidak putih kontras) */
.citra-menu li a:hover {
  color: #52a699;
}

/* CTA Mobile sembunyikan secara default di desktop */
.citra-mobile-cta-wrap {
  display: none;
}

/* --- 3. AKSI KANAN (NORMAL): Search + Let's Talk + Hamburger --- */
.citra-actions-normal {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Search Icon Bundar */
.citra-search-trigger {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.citra-search-trigger:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Tombol Hijau Let's Talk */
.citra-btn-talk {
  background-color: #3b7a70;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 11px 26px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.citra-btn-talk:hover {
  background-color: #2e625a;
}

/* Hamburger Trigger */
.citra-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: none; /* Sembunyi di desktop */
  flex-direction: column;
  gap: 5px;
}

.citra-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: background-color 0.25s ease, transform 0.3s ease, opacity 0.3s ease;
}

.citra-hamburger:hover span,
.citra-hamburger.is-active span {
  background: #3b7a70;
}

.citra-hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.citra-hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.citra-hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- 4. AKSI KANAN (STICKY): Call Anytime --- */
.citra-actions-sticky {
  display: none;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.citra-call-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #3b7a70;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.citra-call-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.citra-call-title {
  font-size: 14px;
  font-weight: 600;
  color: #2e625a;
}

.citra-call-number {
  font-size: 14px;
  font-weight: 600;
  color: #757f83;
}

/* ==========================================================================
   STATE KETIKA HEADER MENJADI STICKY (SCROLL > 40px) -> PUTIH BERSIH
   ========================================================================== */
.citra-main-header.is-sticky {
  background: #ffffff;
  height: 80px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.citra-main-header.is-sticky .citra-brand .logo-default {
  display: none;
}
.citra-main-header.is-sticky .citra-brand .logo-sticky {
  display: block;
}

.citra-main-header.is-sticky .citra-menu li a {
  color: #2e625a;
}

/* Hover Menu Sticky: Berubah jadi warna utama Citra Massage */
.citra-main-header.is-sticky .citra-menu li a:hover {
  color: #3b7a70;
}

.citra-main-header.is-sticky .citra-hamburger span {
  background: #2e625a;
}
.citra-main-header.is-sticky .citra-hamburger:hover span,
.citra-main-header.is-sticky .citra-hamburger.is-active span {
  background: #3b7a70;
}

.citra-main-header.is-sticky .citra-actions-normal {
  display: none;
}
.citra-main-header.is-sticky .citra-actions-sticky {
  display: flex;
}

/* ==========================================================================
   RESPONSIVE: KHUSUS MOBILE & TABLET (<= 991px)
   ========================================================================== */
@media (max-width: 991px) {
  .citra-header-inner {
    padding: 0 20px;
  }

  .citra-search-trigger,
  .citra-desktop-cta {
    display: none !important;
  }

  .citra-hamburger {
    display: flex;
  }

  .citra-main-header.is-sticky .citra-actions-normal {
    display: flex;
  }
  .citra-main-header.is-sticky .citra-actions-sticky {
    display: none;
  }

  .citra-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 24px 24px 30px;
    box-sizing: border-box;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    display: none;
  }

  .citra-navigation.is-open {
    display: flex;
  }

  .citra-menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .citra-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .citra-menu li a {
    color: #121212 !important;
    display: block;
    padding: 14px 0;
    font-size: 15px;
  }

  .citra-mobile-cta-wrap {
    display: block;
    margin-top: 20px;
    width: 100%;
  }

  .citra-mobile-cta-wrap .citra-btn-talk {
    width: 100%;
    padding: 13px 0;
    box-sizing: border-box;
  }
}