/* ========================================
  Navigation Bar
  ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent; 
  z-index: 1000;
  transition: all 0.7s ease; /* Transisi Anda 0.7s */
}

.navbar.scrolled {
  background: var(--dark-bg-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Bayangan teks agar terbaca di atas hero image */
.nav-link,
.nav-login {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.logo img,
.mobile-menu-btn span {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.navbar.scrolled .nav-link,
.navbar.scrolled .nav-login,
.navbar.scrolled .logo img,
.navbar.scrolled .mobile-menu-btn span {
  text-shadow: none;
  filter: none;
}

/* Duplikat .navbar.scrolled telah dihapus */

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  max-width: 120px;
  flex-shrink: 0; 
}

.logo img {
  height: 40px; 
  width: auto;
  display: block;
  border-radius: 8px;
}

.nav-menu {
  display: flex;
  gap: 32px;
  
  /* ========================================
    ✅ PERBAIKAN 1: NAVBAR LAYOUT
       Ini akan menengahkan menu navigasi Anda 
       di antara logo dan tombol login.
    ========================================
  */
  flex-grow: 1;
  justify-content: center;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
  position: relative;
  padding: 8px 0;
}
.nav-link:hover {
    color: var(--accent-color);
}
.nav-link.active {
    color: var(--accent-color);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from { width: 0; }
    to { width: 100%; }
}
.nav-login {
    font-size: 0.875rem;
    padding: 8px 20px;
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.nav-login:hover {
    background-color: var(--accent-color);
    color: var(--dark-bg-color);
}
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-light);
    transition: all 0.3s ease;
}
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: var(--dark-card-bg);
    border-top: 1px solid var(--border-dark-color);
}
.mobile-menu.active {
    display: flex;
}
.mobile-menu .nav-link {
    font-size: 1rem;
}
.mobile-menu .nav-login {
    text-align: center;
}
@media (max-width: 992px) {
    .nav-menu, .nav-login {
    display: none;
    }
    .mobile-menu-btn {
    display: flex;
    }
}

/* Compact navbar spacing on small screens */
@media (max-width: 768px) {
  .nav-wrapper { padding: 0 12px; height: 64px; }
  .logo { max-width: 110px; }
  .logo img { height: 36px; }
  .mobile-menu { gap: 12px; padding: 16px; }
}


/* ========================================
  Footer
  ======================================== */
/* ========================================
   ✅ PERBAIKAN 2: FOOTER
      Mengganti CSS footer placeholder Anda dengan 
      layout 3-kolom yang sudah kita buat.
   ========================================
*/
.footer {
  background: var(--dark-bg-color); 
  color: #999;
  padding: 80px 0 40px 0;
  text-align: left; 
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr; 
  gap: 32px;
  margin-bottom: 40px;
}

/* Kolom 1: Brand */
.footer-brand .logo {
  font-size: 1.75rem;
  margin-bottom: 12px;
  display: inline-block;
  color: var(--text-light);
}
.footer-brand .logo img {
  height: 40px;
  width: auto;
  display: block;
}
.footer-brand p {
  font-size: 1.3rem; /* DIUBAH: dari 0.95rem */
  max-width: 300px;
  line-height: 1.6;
}

/* Kolom 2: Kontak */
.footer-links h4,
.footer-social h4 {
  font-family: var(--font-heading);
  font-size: 1.4rem; /* DIUBAH: dari 1rem */
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-contact-item svg {
  color: var(--accent-color);
  flex-shrink: 0;
  margin-top: 3px;
}
.footer-contact-item a {
  color: #999;
  text-decoration: none;
  font-size: 1.2rem; /* DIUBAH: dari 0.95rem */
  line-height: 1.5;
  transition: color 0.3s ease;
}
.footer-contact-item a:hover {
  color: var(--accent-color);
}

/* Kolom 3: Social */
.footer-social p {
  font-size: 1.2rem; /* DIUBAH: dari 0.95rem */
  line-height: 1.6;
  margin-bottom: 20px;
}
.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border-dark-color);
  color: var(--text-light);
  transition: all 0.3s ease;
}
.footer-social-icons a:hover {
  background: var(--accent-color);
  color: var(--dark-bg-color);
  transform: translateY(-2px);
}

/* Copyright */
.footer-copyright {
  text-align: center;
  border-top: 1px solid var(--border-dark-color);
  padding-top: 32px;
  margin-top: 32px;
}
.footer-copyright p {
  margin: 0;
  font-size: 0.95rem; /* DIUBAH: dari 0.9rem */
}

/* Responsive Footer */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1; 
  }
}
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand .logo {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-brand .logo img {
    margin: 0 auto;
  }
  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-links, .footer-social {
    text-align: center;
    margin-top: 24px;
  }
  .footer-contact-item {
    justify-content: center;
  }
  .footer-social-icons {
    justify-content: center;
  }
}

/* ... (Kode Page Loader, Success Notification, Back to Top, Login Modal tetap sama) ... */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
    visibility: visible;
    opacity: 1;
}
.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(198, 169, 110, 0.2);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.success-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(200px);
    background: #10b981;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.success-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}
.notification-content svg {
    flex-shrink: 0;
}
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: var(--accent-color);
    color: var(--dark-bg-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(198, 169, 110, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.back-to-top:hover {
    background: var(--accent-color-darker);
    transform: scale(1.1);
}
@media (max-width: 768px) {
    .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    }
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-container {
    background: #EAEAEA;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-container {
    transform: scale(1);
}
.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    font-weight: 300;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.modal-close-btn:hover {
    color: #333;
}
.modal-logo {
    display: block;
    max-width: 200px;
    margin: 0 auto 24px auto;
    border-radius: 8px;
}
.modal-container .form-group {
    margin-bottom: 16px;
}
.modal-container .form-group label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}
.modal-container .form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #CCC;
    border-radius: 4px;
    background: #FFF;
    font-size: 1rem;
}
.modal-container .form-group input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(198, 169, 110, 0.2);
    outline: none;
}
.btn-warning {
    background: #F9A825;
    color: var(--dark-bg-color);
    border-color: #F9A825;
    font-weight: 700;
}
.btn-warning:hover {
    background: #FBC02D;
    border-color: #FBC02D;
}
.modal-login-btn {
    width: 100%;
    margin-top: 8px;
    padding: 14px;
}
.modal-signup-link {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.modal-signup-link a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}
.modal-signup-link a:hover {
    text-decoration: underline;
}

/* ========================================
  Pricelist Modal Styles (BLOK UTAMA)
  ======================================== */

.pricelist-container {
  background: var(--bg-color);
  padding: 32px 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  width: 90%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-overlay.active .pricelist-container {
  transform: scale(1);
}
.pricelist-header {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 32px;
}
.pricelist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
}

/* Style untuk kategori (Hair Treatment, dll.) */
.service-category {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 24px;
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
}
.service-category:first-of-type {
  margin-top: 0;
}
.service-category svg {
  color: var(--accent-color);
}
@media (max-width: 768px) {
  .pricelist-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .service-item {
    padding: 14px 0;
  }
  .pricelist-items:first-child .service-item:last-child {
     border-bottom: 1px solid var(--border-color);
  }
  .pricelist-container {
    padding: 24px;
  }
  .pricelist-header {
    font-size: 2rem;
  }
}

/* ========================================
  Pricelist Modal Interactivity (BLOK UTAMA)
  ======================================== */

.pricelist-subtitle {
  text-align: center;
  margin-top: -24px;
  margin-bottom: 32px;
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.15rem;
}

/* ========================================
   ✅ PERBAIKAN 3: DUPLIKASI CSS
      Ini adalah satu-satunya blok .service-item
      yang benar, yang menggabungkan semua style.
   ========================================
*/
.service-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 8px;
  cursor: pointer;
  border-radius: 4px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease,
              transform 0.2s ease,
              box-shadow 0.2s ease;
}

.service-item:hover {
  background-color: rgba(198, 169, 110, 0.1); 
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service-item:active {
  background-color: rgba(198, 169, 110, 0.15);
  transform: translateY(0px);
  box-shadow: none;
}

.service-item:last-child {
   border-bottom: none;
}
.service-info {
  flex: 1;
}
.service-item h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  margin-bottom: 4px;
}
.service-item p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}
.service-item .price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-color);
  white-space: nowrap;
  padding-top: 2px;
}