/* ==========================================
   1. VARIABLES & RESET
   ========================================== */
:root {
  --bg-warm: #FAF8F5;
  --sand-light: #F3EEE7;
  --sand-gold: #D4B08C;
  --tropical-green: #2C4A3E;
  --deep-ocean: #132E38;
  --text-dark: #1F292E;
  --text-muted: #627278;
  --white: #FFFFFF;
  --font-main: 'Plus Jakarta Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

body {
  background-color: var(--bg-warm);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================
   2. NAVBAR & NAVIGATION ENGINE
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 18px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(212, 176, 140, 0.2);
}

.brand {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--deep-ocean);
}

.brand span {
  color: var(--sand-gold);
  font-weight: 300;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

/* Tombol Garis Tiga (Hamburger) - Default Disembunyikan di Desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--deep-ocean);
  border-radius: 3px;
  transition: 0.3s;
}

/* KUNCI FIX DROPDOWN: Menentukan elemen induk sebagai acuan posisi absolute */
.nav-links > li,
.dropdown {
  position: relative;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: 0.3s;
  display: inline-block;
  padding: 6px 0;
}

.nav-links a:hover {
  color: var(--sand-gold);
}

/* Submenu Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 210px;
  box-shadow: 0 10px 25px rgba(19, 46, 56, 0.12);
  border-radius: 10px;
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
  border: 1px solid rgba(212, 176, 140, 0.25);
  z-index: 1001;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  padding: 10px 20px;
  color: var(--text-dark);
  font-size: 0.88rem;
  display: block;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.dropdown-menu a:hover {
  background: var(--bg-warm);
  color: var(--tropical-green);
  padding-left: 24px;
}

.nav-btn-contact {
  background: var(--deep-ocean);
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 50px;
  transition: 0.3s !important;
}

.nav-btn-contact:hover {
  background: var(--tropical-green) !important;
  transform: translateY(-2px);
}

/* ==========================================
   3. HERO BANNER
   ========================================== */
.hero {
  height: 90vh;
  background: linear-gradient(rgba(19, 46, 56, 0.4), rgba(19, 46, 56, 0.6)), 
              url('https://images.unsplash.com/photo-1537996194471-e657df975ab4?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  margin-top: 60px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* ==========================================
   4. SERVICES & CARDS GRID
   ========================================== */
.services-section {
  padding: 90px 8%;
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  color: var(--deep-ocean);
  margin-bottom: 10px;
  font-weight: 700;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 50px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.card-link {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  transition: 0.4s ease;
  text-align: left;
  border: 1px solid rgba(0,0,0,0.03);
}

.card-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-content {
  padding: 28px;
}

.card-content h3 {
  font-size: 1.3rem;
  color: var(--deep-ocean);
  margin-bottom: 10px;
  font-weight: 600;
}

.card-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.card-action {
  color: var(--sand-gold);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================
   5. FOOTER & FLOATING WA
   ========================================== */
footer {
  background: var(--deep-ocean);
  color: var(--bg-warm);
  padding: 60px 8% 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand span {
  color: var(--sand-gold);
}

.footer-p {
  color: #A0B2B8;
  font-size: 0.9rem;
}

.footer-p a:hover {
  color: var(--sand-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #A0B2B8;
  font-size: 0.85rem;
}

.floating-wa {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  color: white;
  padding: 14px 22px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(37,211,102,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

.floating-wa:hover {
  transform: scale(1.05);
}

/* --- Tambahan Styling untuk Halaman Layanan & Slider --- */
.hero-service {
  height: 50vh;
  background: linear-gradient(rgba(19, 46, 56, 0.5), rgba(19, 46, 56, 0.7)), url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?q=80&w=1200&auto=format&fit=crop') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  margin-top: 60px;
}
.hero-service h1 { font-size: 2.8rem; font-weight: 700; }
.hero-service p { font-size: 1.1rem; opacity: 0.9; margin-top: 8px; }

.content-container { padding: 60px 8%; max-width: 1100px; margin: 0 auto; }

.slider-section { margin-bottom: 50px; }
.slider-title { font-size: 1.8rem; color: var(--deep-ocean); margin-bottom: 20px; text-align: center; font-weight: 700; }

.slider-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  background: #000;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slide {
  min-width: 100%;
  height: 450px;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(19, 46, 56, 0.9));
  color: var(--white);
  font-size: 1rem;
  text-align: center;
}

.prev-btn, .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(250, 248, 245, 0.8);
  color: var(--deep-ocean);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  transition: 0.3s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prev-btn:hover, .next-btn:hover { background: var(--white); color: var(--sand-gold); }
.prev-btn { left: 15px; }
.next-btn { right: 15px; }

.dots-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.dot {
  width: 12px;
  height: 12px;
  background: #D0C8B8;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background: var(--tropical-green);
  width: 28px;
  border-radius: 20px;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 20px; }
.info-card { background: var(--white); padding: 30px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.04); }

.cta-box { text-align: center; padding: 50px; background: var(--deep-ocean); color: var(--white); border-radius: 16px; margin-top: 50px; }
.btn { display: inline-block; padding: 14px 32px; border-radius: 50px; font-weight: 600; margin: 10px; transition: 0.3s; }
.btn-wa { background: #25D366; color: var(--white); }
.btn-back { background: transparent; color: var(--white); border: 1px solid var(--white); }
.btn:hover { opacity: 0.9; transform: translateY(-2px); }

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
}

/* ==========================================
   6. RESPONSIVE MOBILE & HAMBURGER MENU (COMPACT)
   ========================================== */
@media (max-width: 768px) {
  .navbar {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 20px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: #FAF8F5 !important;
  }
  
  .menu-toggle {
    display: flex !important;
  }

  /* Efek Dropdown Tirai untuk Menu Utama HP */
  .nav-links {
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    gap: 0;
    list-style: none !important;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    padding: 0 20px;
  }

  /* Ketika tombol hamburger diklik (.active), tirai dropdown terbuka ke bawah */
  .nav-links.active {
    max-height: 400px; /* Batas maksimal ketinggian dropdown */
    padding: 15px 20px !important;
    gap: 12px;
  }

  .nav-links > li {
    width: 100%;
  }

  .nav-links a {
    font-size: 0.9rem !important;
    padding: 6px 10px !important;
    display: block;
  }

  /* Sub-menu dropdown di dalam HP */
  .dropdown-menu {
    position: static !important;
    display: none !important;
    box-shadow: none !important;
    border: none !important;
    background: #f7f4ef !important;
    padding: 0 !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    margin-top: 5px;
  }

  .dropdown.active-mobile .dropdown-menu {
    display: block !important;
    padding: 5px 0 !important;
  }

  .dropdown-menu a {
    font-size: 0.82rem !important;
    padding: 6px 15px !important;
    color: var(--text-muted) !important;
  }

  /* Animasi tombol garis tiga menjadi silang (X) */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}