/* ═══════════════════════════════════════
   MASTER LEGAL — Design System
   Navy × Gold Premium
   CLEANED (dedup) style.css
   - Menghapus CSS yang duplikat/bertumpuk khusus area LAYANAN
   - Tidak mengubah struktur global (navbar/footer/WA)
   Updated: 2026-05-18
═══════════════════════════════════════ */

:root {
  --navy: #0b2156;
  --navy-deep: #071640;
  --navy-mid: #1a3a7a;
  --navy-light: #2a5298;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-pale: #f5e8c0;
  --gold-bg: rgba(201,168,76,0.08);
  --white: #ffffff;
  --off-white: #f8f6f1;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --text-dark: #071640;
  --text-mid: #4a5e7a;
  --text-light: #a8bcd8;
  --text-muted: #6b83a6;
  --wa-green: #25D366;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(11,33,86,0.08);
  --shadow-md: 0 8px 24px rgba(11,33,86,0.12);
  --shadow-lg: 0 16px 48px rgba(11,33,86,0.16);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
.section-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}
.gold-divider {
  width: 44px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 20px;
}
.gold-divider.center { margin-left: auto; margin-right: auto; }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7,22,64,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,168,76,0.18);
  height: 72px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-icon {
  width: 48px;
  height: 48px;
  padding: 7px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  line-height: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(201,168,76,0.35);
  flex-shrink: 0;
}
.nav-logo-icon img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--white);
  white-space: nowrap;
}
.nav-logo-text span { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--text-light);
  font-size: 14px;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--gold-light); }

.nav-cta {
  background: var(--gold);
  color: var(--navy-deep) !important;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  padding: 20px 5%;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-light);
  font-size: 15px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}
.mobile-menu a:last-child { border: none; }
.mobile-menu a:hover { color: var(--gold-light); }
.mobile-menu .nav-cta {
  border: none;
  background: var(--gold);
  color: var(--navy-deep) !important;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 5%;
  margin-top: 72px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--navy-mid); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--text-light); }
.breadcrumb .current { color: var(--text-dark); font-weight: 500; }

/* ── BUTTONS ── */
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-outline-gold {
  border: 1.5px solid rgba(201,168,76,0.5);
  color: var(--gold-light);
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-outline-gold:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

.btn-outline-navy {
  border: 1.5px solid var(--navy);
  color: var(--navy);
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-wa {
  background: var(--wa-green);
  color: var(--white);
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s, transform 0.15s;
}
.btn-wa:hover { background: #1ebe5d; transform: translateY(-1px); }

/* ── SECTIONS ── */
section { padding: 80px 5%; }
.section-center { text-align: center; }
.section-title { font-size: clamp(26px, 4vw, 38px); color: var(--text-dark); margin-bottom: 14px; }
.section-sub { font-size: 16px; color: var(--text-mid); font-weight: 300; line-height: 1.7; }

/* ── CHECK LIST ── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.check-list li { font-size: 14px; color: var(--text-mid); display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; }
.check-list li::before { content: '✓'; color: var(--gold); font-weight: 600; flex-shrink: 0; margin-top: 1px; }

/* ── STATS ── */
.stat-num { font-family: 'Playfair Display', serif; font-size: 36px; color: var(--gold); }
.stat-label { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
}
.faq-q .faq-icon { font-size: 20px; color: var(--gold); transition: transform 0.3s; flex-shrink: 0; }
.faq-q.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.2s; font-size: 14px; color: var(--text-mid); line-height: 1.7; }
.faq-a.open { max-height: 300px; padding-bottom: 16px; }

/* ── FORM ── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14px; font-weight: 500; color: var(--text-dark); margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  transition: border-color 0.2s;
  background: var(--white);
}
.form-control:focus { outline: none; border-color: var(--navy-mid); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ── WA FLOAT ── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  background: var(--wa-green);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  text-decoration: none;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }

/* ── FOOTER ── */
footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: 52px 5% 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-top: 12px;
  font-weight: 300;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 13px; color: var(--text-muted); }

/* ── ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  section { padding: 56px 5%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .stat-num { font-size: 28px; }
  .wa-float { right: 18px; bottom: 18px; width: 46px; height: 46px; }
  .wa-float svg { width: 26px; height: 26px; }
}
@media (max-width: 520px) {
  .navbar { height: 66px; }
  .mobile-menu { top: 66px; }
  .breadcrumb { margin-top: 66px; }
  .nav-logo-icon { width: 44px; height: 44px; padding: 6px; }
}

/* ═══════════════════════════════════════
   LAYANAN (SINGLE SOURCE OF TRUTH) — DEDUP
   NOTE: ini menggantikan semua blok layanan yang bertumpuk sebelumnya.
═══════════════════════════════════════ */

#layanan .layer-card.has-photo {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#layanan .layer-card.has-photo .service-photo {
  position: absolute;
  inset: 0;
  margin: 0 !important;
  height: auto !important;
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 0;
}
#layanan .layer-card.has-photo .service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

#layanan .layer-card.has-photo .service-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,
    rgba(7,22,64,0.78) 0%,
    rgba(7,22,64,0.38) 45%,
    rgba(7,22,64,0.00) 78%
  );
}

#layanan .layer-card-gold.has-photo .service-photo::after {
  background: linear-gradient(0deg,
    rgba(7,22,64,0.70) 0%,
    rgba(7,22,64,0.30) 45%,
    rgba(7,22,64,0.00) 78%
  );
}

/* Konten di atas foto */
#layanan .layer-card.has-photo > *:not(.service-photo) {
  position: relative;
  z-index: 2;
}
#layanan .service-content { padding: 22px 22px 20px; }
#layanan .layer-card.has-photo h3 { color: #fff; margin-bottom: 8px; }
#layanan .layer-card.has-photo p { color: rgba(255,255,255,0.82); margin-bottom: 14px; }
#layanan .layer-card.has-photo .card-arrow { color: var(--gold-light); }

/* Badge: default (pojok kiri atas, kecil, tidak nabrak kepala) */
#layanan .promo-badge,
#layanan .badge-unggulan {
  position: absolute;
  top: 14px;
  left: 14px;
  right: auto;
  z-index: 5;
  display: inline-flex;
  width: auto;
  max-width: 170px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(7,22,64,0.55);
  border: 1px solid rgba(201,168,76,0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  line-height: 1.15;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#layanan .promo-badge { border-color: rgba(201,168,76,0.55); white-space: normal; text-align: left; align-items: flex-start; }
#layanan .badge-unggulan { white-space: nowrap; }

@media (max-width: 520px) {
  #layanan .layer-card.has-photo { min-height: 280px; }
  #layanan .service-content { padding: 18px; }
  #layanan .promo-badge,
  #layanan .badge-unggulan {
    top: 12px;
    left: 12px;
    max-width: 150px;
  }
}


#layanan .promo-badge.promo-inline{
  position: static !important;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px 6px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  background: rgba(201,168,76,0.90);
  border: 1px solid rgba(255,255,255,0.25);
  color: #071640;
  backdrop-filter: blur(8px);
  transform: translateX(15px);
}


/* FIX: Badge UNGGULAN jangan melebar (pas dengan teks) */
#layanan .badge-unggulan,
#layanan .badge-top-right{
  width: fit-content !important;   /* kunci mengikuti teks */
  max-width: none !important;      /* hilangkan batas yang bikin aneh */
  min-width: 0 !important;         /* cegah minimum lebar */
  display: inline-flex !important; /* pastikan inline */
  white-space: nowrap !important;  /* tetap 1 baris */
  padding: 5px 9px !important;     /* kecil & rapih */
  line-height: 1.1 !important;
}
