/* -------------------------------------------------------------
   JASA PENGURUSAN IMB JABODETABEK - PROFESSIONAL CLEAN DESIGN
   Target: Jakarta, Bogor, Depok, Bekasi
   Design Goal: Clean, Simple, Profesional, Mobile Friendly
------------------------------------------------------------- */

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

:root {
  --primary: #0a2540;
  --primary-light: #1a3a5a;
  --primary-subtle: #f0f7ff;
  --accent: #c29b40;
  --accent-dark: #a68132;
  --success: #059669;
  --dark: #1a1f26;
  --gray-bg: #f8fafc;
  --gray-border: #e2e8f0;
  --gray-text: #64748b;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius: 8px;
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --nav-height: 80px;
}

/* Base Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-light {
  background-color: var(--gray-bg);
}

.text-center {
  text-align: center;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

p { color: var(--gray-text); margin-bottom: 1.5rem; }

a { text-decoration: none; transition: 0.3s; color: inherit; }

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: 0.3s;
  gap: 10px;
}

.btn-primary { background-color: var(--primary); color: var(--white); }
.btn-primary:hover { background-color: var(--primary-light); transform: translateY(-2px); }

.btn-accent { background-color: var(--accent); color: var(--white); }
.btn-accent:hover { background-color: var(--accent-dark); transform: translateY(-2px); }

.btn-whatsapp { background-color: #25d366; color: var(--white); }
.btn-whatsapp:hover { background-color: #128c7e; }

.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background-color: var(--primary); color: var(--white); }

.svg-icon { width: 20px; height: 20px; fill: currentColor; }
.svg-icon-sm { width: 16px; height: 16px; min-width: 16px; }

/* Header & Nav */
.topbar {
  background-color: var(--primary);
  color: var(--white);
  padding: 10px 0 8px;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.topbar-content { display: flex; justify-content: center; align-items: center; }
.topbar-info { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }
.topbar-info span, .topbar-info a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.9); font-weight: 500; white-space: nowrap; }
.topbar-info a:hover { color: var(--accent); }

.navbar {
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  backdrop-filter: blur(10px);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo img { height: 56px; width: auto; max-width: 100%; display: block; }

.nav-menu-list { display: flex; list-style: none; gap: 32px; align-items: center; }
.nav-link { 
  color: var(--primary); 
  font-weight: 600; 
  font-size: 0.95rem; 
  padding: 8px 0; 
  position: relative;
  letter-spacing: 0.01em;
}
.nav-link.active, .nav-link:hover { color: var(--accent); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: 0.3s;
}
.nav-link.active::after, .nav-link:hover::after { width: 100%; }

.nav-drawer-header, .nav-drawer-footer, .menu-toggle, .nav-wa-icon, .nav-mobile-actions { display: none; }

@media (max-width: 992px) {
  .logo img { height: 48px; }
  .topbar { display: none; }
  .nav-mobile-actions { display: flex; align-items: center; gap: 8px; }
  .menu-toggle {
    display: block;
    background: var(--gray-bg);
    border: 1px solid var(--gray-border);
    padding: 8px;
    border-radius: 6px;
  }
  .nav-wa-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #25d366;
    color: var(--white);
    border-radius: 6px;
  }
  .nav-wa-icon .svg-icon { width: 22px; height: 22px; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: var(--white);
    z-index: 2000;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }
  .nav-links.open { right: 0; }
  .nav-drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--gray-border); }
  .nav-drawer-footer { display: block; padding: 20px; border-top: 1px solid var(--gray-border); margin-top: auto; }
  .nav-menu-list { flex-direction: column; padding: 20px; gap: 15px; }
  .nav-desktop-cta { display: none; }
}

.nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  display: none;
  backdrop-filter: blur(2px);
}
.nav-backdrop.active { display: block; }

/* Hero */
.hero { padding: 100px 0; background-color: var(--primary-subtle); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.hero-content h1 span { color: var(--accent); }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; }

.hero-card { background: var(--white); padding: 40px; border-radius: 12px; box-shadow: var(--shadow-lg); }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }
.form-control { width: 100%; padding: 12px 16px; border: 1px solid var(--gray-border); border-radius: var(--radius); font-family: inherit; }
.form-control:focus { outline: none; border-color: var(--accent); }

/* Grids & Cards */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

.card {
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--gray-border);
  transition: 0.3s;
}
.card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-5px); }
.card-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-subtle);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.area-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

/* Page Helpers */
.page-header {
  background: var(--primary);
  color: var(--white);
  padding: 60px 0;
}

.page-header h1 { color: var(--white); }
.page-header p { color: rgba(255,255,255,0.8); }

.max-w-900 { max-width: 900px; margin: 0 auto; }
.card-accent-left { border-left: 5px solid var(--accent); }

.breadcrumb {
  padding: 18px 0 0;
  font-size: 0.85rem;
  color: var(--gray-text);
  background: transparent;
}
.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb span { color: var(--gray-text); }

.tab-system {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.list-group { margin-top: 20px; }
.list-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  border-bottom: 1px solid var(--gray-border);
  transition: 0.3s;
}
.list-item:hover { background: var(--gray-bg); }
.list-num { font-weight: 800; color: var(--accent); font-size: 1.2rem; }
.list-item p { margin: 0; font-size: 0.95rem; }

/* Footer */
.footer { background: var(--primary); color: rgba(255,255,255,0.85); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 60px; margin-bottom: 60px; }
.footer-col h4 { color: var(--white); margin-bottom: 24px; font-size: 1.1rem; font-weight: 700; }
.footer-col p { color: rgba(255,255,255,0.75); line-height: 1.8; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.75); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-contact-info p { margin-bottom: 10px; color: rgba(255,255,255,0.85); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; text-align: center; color: rgba(255,255,255,0.6); font-size: 0.9rem; }

/* Footer Accordion (Desktop: static, Mobile: collapsible) */
.footer-accordion summary {
  color: var(--white);
  margin-bottom: 24px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: default;
  list-style: none;
}
.footer-accordion summary::-webkit-details-marker { display: none; }
.footer-accordion summary::marker { content: ''; }

/* Responsive */
@media (max-width: 992px) {
  .hero-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { text-align: center; padding: 60px 0; }
  .hero-actions { justify-content: center; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }

  /* Footer: tighter spacing on mobile */
  .footer { padding: 50px 0 30px; }
  .footer-grid { gap: 0; margin-bottom: 30px; }

  /* Footer: About column centered */
  .footer-about { text-align: center; margin-bottom: 30px; }
  .footer-about .logo { margin-left: auto; margin-right: auto; }

  /* Footer: Accordion behavior */
  .footer-accordion { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 0; }
  .footer-col:last-child .footer-accordion { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .footer-accordion summary {
    cursor: pointer;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .footer-accordion summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--accent);
    transition: transform 0.25s ease;
    margin-left: 12px;
  }
  .footer-accordion[open] summary::after { content: '\2212'; }
  .footer-accordion ul.footer-links,
  .footer-accordion .footer-contact-info {
    margin-top: 16px;
  }
  .footer-links li:last-child { margin-bottom: 0; }
  .footer-contact-info p:last-child { margin-bottom: 0; }
  .footer-bottom { padding-top: 24px; }
  .mobile-bottom-bar { display: none !important; }
  body { padding-bottom: 60px; }
}

/* Floating & Mobile Bar Defaults */
.mobile-bottom-bar { display: none; }

.floating-wa-desktop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 995;
  box-shadow: var(--shadow-lg);
  transition: 0.3s transform;
}
.floating-wa-desktop:hover { transform: scale(1.05); color: var(--white); }
@media (max-width: 768px) {
  .floating-wa-desktop {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    padding: 14px;
    justify-content: center;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
  }
  body { padding-bottom: 60px; }
}
