@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* =========================================
   1. VARIABEL & RESET
   ========================================= */
:root {
  --bg-main: #faf9f8;
  --bg-sidebar: #ffffff;
  --text-main: #1a1a1a;
  --text-muted: #6b6b6b;
  --primary: #c44576;
  --primary-hover: #a63661;
  --pink-light: #fdf2f6;
  --border: #e5e5e5;
  --card-bg: #fcfbf9;
}

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

body { 
  font-family: 'Inter', sans-serif; 
  background-color: var(--bg-main); 
  color: var(--text-main); 
  display: flex; 
  height: 100vh;
  overflow: hidden;
}

/* =========================================
   2. SIDEBAR & NAVIGASI (DESKTOP)
   ========================================= */
.menu-toggle, .close-menu {
  display: none !important; /* Sembunyikan di desktop */
}

.sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-shrink: 0;
}

.logo {
  display: inline-block;
  margin-bottom: 40px;
  padding-left: 10px;
  text-decoration: none;
}

.logo img {
  height: 120px;
  width: auto;
  object-fit: contain;
}

.menu-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 30px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.2s;
}

.menu-item:hover { background-color: var(--pink-light); }
.menu-item.active { background-color: var(--pink-light); color: var(--primary); }
.menu-item svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; }

/* =========================================
   3. KOMPONEN UMUM & LAYOUT
   ========================================= */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 40px 60px;
}

.page-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -1px; }
.page-subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 40px; }

/* Tombol */
.btn { padding: 14px 28px; border-radius: 12px; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.2s; border: none; display: inline-block; text-align: center; }
.btn-primary { background-color: var(--primary); color: #fff; }
.btn-primary:hover { background-color: var(--primary-hover); }
.btn-outline { background-color: transparent; color: var(--text-main); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--text-main); }
.btn-disabled { background-color: #ccc !important; cursor: not-allowed; pointer-events: none; }

/* Form */
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-weight: 500; font-size: 0.95rem; }
.form-control { padding: 12px 15px; border: 1px solid var(--border); border-radius: 10px; font-size: 1rem; font-family: inherit; outline: none; }
.form-control:focus { border-color: var(--primary); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* =========================================
   4. HERO SECTION (HOME)
   ========================================= */
.hero { display: flex; align-items: center; justify-content: space-between; min-height: 80vh; gap: 40px; }
.hero-text { flex: 1; max-width: 550px; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); padding: 6px 16px; border-radius: 30px; font-size: 0.85rem; font-weight: 500; margin-bottom: 25px; }
.badge-dot { width: 8px; height: 8px; background-color: var(--primary); border-radius: 50%; }
.badge-text { color: var(--primary); font-weight: 600; }
.hero h1 { font-size: 4rem; line-height: 1.1; font-weight: 700; letter-spacing: -1.5px; margin-bottom: 25px; }
.hero p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 40px; line-height: 1.6; }
.btn-group { display: flex; gap: 15px; }
.hero-image { flex: 1; height: 600px; border-radius: 20px; background: url('https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?auto=format&fit=crop&w=1000&q=80') center/cover; box-shadow: 0 10px 40px rgba(0,0,0,0.08); }

/* =========================================
   5. CARD KELAS
   ========================================= */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.card {
  background: var(--card-bg); 
  border: 1px solid var(--border);
  border-radius: 16px; 
  overflow: hidden; 
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column; 
  height: 100%; 
}
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.06); }

.card-img {
  height: 200px; 
  width: 100%; 
  background-size: cover; 
  background-position: center;
  position: relative; 
  padding: 15px;
}
.card-content { padding: 25px; display: flex; flex-direction: column; flex: 1; }
.card-content h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 20px; line-height: 1.3; }
.card-info { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.card-footer { border-top: 1px solid var(--border); padding-top: 15px; margin-top: auto; }
.price-label { font-size: 0.9rem; color: var(--text-muted); display: block; margin-bottom: 4px; }
.price-val { font-size: 1.1rem; font-weight: 600; }

/* =========================================
   6. PRICING & GALERI
   ========================================= */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-top: 30px; }
.pricing-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 35px 30px; transition: transform 0.2s, box-shadow 0.2s; }
.pricing-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.pricing-card.popular { border-color: var(--primary); position: relative; }
.popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; padding: 4px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.pricing-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.pricing-price { font-size: 2.5rem; font-weight: 700; margin-bottom: 20px; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-features { list-style: none; margin-bottom: 30px; border-top: 1px solid var(--border); padding-top: 20px; }
.pricing-features li { margin-bottom: 12px; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.pricing-features li::before { content: '✓'; color: var(--primary); font-weight: bold; }

/* Galeri Masonry */
.gallery-grid { column-count: 3; column-gap: 20px; margin-top: 30px; }
.gallery-item { break-inside: avoid; margin-bottom: 20px; border-radius: 16px; overflow: hidden; cursor: pointer; position: relative; background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.gallery-item img { width: 100%; display: block; transition: transform 0.5s ease, filter 0.5s ease; }
/* Ganti bagian .gallery-item::after yang lama dengan ini */
.gallery-item::after {
  content: '🔍';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer; /* Bikin kursor jadi telunjuk */
  pointer-events: none; /* Biar klik tembus ke gambar di bawahnya */
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.9); display: none; justify-content: center; align-items: center; z-index: 9999; padding: 20px; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 3rem; cursor: pointer; line-height: 1; }

/* =========================================
   7. CONTACT & ABOUT US
   ========================================= */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 30px; }
.contact-info-card { background: #fff; padding: 30px; border-radius: 16px; border: 1px solid var(--border); }
.contact-info-item { margin-bottom: 25px; }
.contact-info-item h4 { font-size: 1.1rem; margin-bottom: 5px; }
.contact-info-item p { color: var(--text-muted); }
.contact-form-card { background: #fff; padding: 30px; border-radius: 16px; border: 1px solid var(--border); }

.about-hero { display: flex; align-items: center; gap: 50px; margin-bottom: 60px; }
.about-text { flex: 1; }
.about-text h1 { font-size: 3.5rem; line-height: 1.1; font-weight: 700; letter-spacing: -1.5px; margin-bottom: 20px; }
.about-text p { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }
.about-image { flex: 1; height: 500px; border-radius: 20px; background: #ccc center/cover; box-shadow: 0 10px 40px rgba(0,0,0,0.08); }
.about-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; margin-bottom: 60px; }
.value-card { background: #fff; border: 1px solid var(--border); padding: 30px; border-radius: 16px; text-align: center; }
.value-icon { font-size: 2rem; margin-bottom: 15px; display: inline-block; }
.value-card h3 { font-size: 1.2rem; margin-bottom: 10px; font-weight: 600; }
.value-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }
.quote-section { background: var(--pink-light); padding: 50px 40px; border-radius: 20px; text-align: center; margin-bottom: 40px; }
.quote-section blockquote { font-size: 1.8rem; font-style: italic; font-weight: 500; color: var(--primary); line-height: 1.5; max-width: 800px; margin: 0 auto; }


/* =========================================
   8. MEDIA QUERIES (TABLET & MOBILE)
   ========================================= */

/* --- TABLET (Maksimal 1024px) --- */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; }
  .hero h1 { font-size: 3rem; }
  .btn-group { justify-content: center; }
  .hero-image { width: 100%; height: 400px; }
  
  .about-hero { flex-direction: column; }
  .about-text { text-align: center; }
  .about-image { width: 100%; height: 400px; }
  
  .gallery-grid { column-count: 2; }
}

/* --- HP / MOBILE (Maksimal 768px) --- */
@media (max-width: 768px) {
  /* 1. Reset Body */
  body { 
    display: block !important; 
    overflow-x: hidden !important;
    overflow-y: auto !important; 
    height: auto !important;
  }

  /* 2. Hero Section Mode Overlay */
  .hero {
    position: relative;
    flex-direction: column;
    min-height: 80vh;
    border-radius: 20px;
    overflow: hidden;
    padding: 0;
    margin-bottom: 40px;
  }

  .hero-image {
    position: absolute;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    z-index: 1;
    border-radius: 20px;
    background-size: cover !important;
    background-position: center !important;
  }

  .hero-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
  }

  .hero-text {
    position: relative;
    z-index: 2;
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
  }

  .hero h1, .hero p { color: #ffffff !important; }
  .hero .badge { background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.4); color: #fff; }
  .hero .badge-text { color: #fff; }
  
  .btn-group { flex-direction: column; width: 100%; max-width: 300px; gap: 10px; }
  .btn-group .btn { width: 100%; }
  .hero .btn-outline { border-color: #fff; color: #fff; }

  /* 3. Gambar About Us di HP */
  .about-image {
    width: 100% !important;
    height: 300px !important;
    min-height: 300px !important;
    background-size: cover !important;
    background-position: center !important;
    display: block !important;
    margin-top: 20px;
  }

  /* 4. Navigasi Mobile (Hamburger & Sidebar) */
  .menu-toggle {
    display: block !important;
    position: fixed;
    top: 20px; left: 20px;
    z-index: 1000;
    font-size: 1.8rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px 12px;
    cursor: pointer;
  }

  .sidebar { 
    position: fixed !important;
    top: 0;
    left: -100% !important; 
    width: 85%; 
    max-width: 320px;
    height: 100vh;
    z-index: 999;
    transition: left 0.3s ease;
    background: #fff;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    padding: 60px 20px 40px 20px !important;
    overflow-y: auto !important; 
    -webkit-overflow-scrolling: touch; 
  }

  .sidebar.active { left: 0 !important; }

  .close-menu {
    display: block !important;
    position: fixed;
    top: 15px; right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-main);
    z-index: 1000;
  }

  .menu-group { flex-direction: column !important; width: 100%; padding: 0 !important; margin-bottom: 20px; }
  .menu-item { padding: 15px 10px !important; font-size: 1rem; width: 100%; border-bottom: 1px solid var(--border); border-radius: 0; }

  /* 5. Layout Grid di HP */
  .main-content { padding: 80px 20px 40px 20px !important; width: 100%; overflow: visible !important; }
  .page-title { font-size: 1.8rem; }
  
  .grid-cards { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
  
  .gallery-grid { column-count: 2; column-gap: 15px; }
  .gallery-item { margin-bottom: 15px; border-radius: 12px; }
}