/* ==========================================================================
   HESSA DIGITAL - DESIGN SYSTEM & MAIN STYLESHEET
   Desa Hessa Air Ginting - Melayani, Menghubungkan, Memberdayakan
   ========================================================================== */

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

:root {
  /* Color Palette */
  --primary-green: #166534;       /* Hijau Tua Utama */
  --primary-dark: #14532d;        /* Hijau Tua Hover */
  --primary-light: #22c55e;       /* Hijau Muda Accent */
  --primary-soft: #f0fdf4;        /* Light Tint */
  --primary-soft-border: #bbf7d0;

  --secondary-color: #0d9488;     /* Toska Pendukung */
  --accent-yellow: #f59e0b;       /* Kuning Highlight / CTA */
  --accent-yellow-hover: #d97706;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-orange: #f97316;

  --bg-white: #ffffff;
  --bg-light: #f8fafc;            /* Background Section */
  --bg-card: #ffffff;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-floating: 0 20px 30px -10px rgba(22, 101, 52, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Body */
* {
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body, button, input, select, textarea {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  background-color: var(--bg-white);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* Sticky Header & Navbar */
.top-nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.brand-logo {
  width: 42px;
  height: 42px;
  background: var(--primary-soft);
  color: var(--primary-green);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: inset 0 0 0 1px var(--primary-soft-border);
}

.brand-title {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
  color: var(--primary-green);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Navbar Menu Custom Links */
.navbar-nav .nav-link {
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text-main);
  padding: 0.6rem 0.9rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-green);
}

.navbar-nav .nav-link.active {
  position: relative;
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.9rem;
  right: 0.9rem;
  height: 3px;
  background: var(--primary-green);
  border-radius: var(--radius-pill);
}

.dropdown-menu {
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  margin-top: 0.5rem;
  animation: fadeInDown 0.2s ease;
}

.dropdown-item {
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  color: var(--text-main);
}

.dropdown-item:hover {
  background-color: var(--primary-soft);
  color: var(--primary-green);
}

.dropdown-item i {
  color: var(--primary-green);
  width: 20px;
}

/* Buttons */
.btn-primary-green {
  background-color: var(--primary-green);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.625rem 1.4rem;
  border: none;
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.25);
  transition: var(--transition-fast);
}

.btn-primary-green:hover {
  background-color: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(22, 101, 52, 0.35);
}

.btn-outline-white {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.625rem 1.4rem;
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--primary-green);
  border-color: var(--primary-green);
  transform: translateY(-1px);
}

.btn-yellow {
  background-color: var(--accent-yellow);
  color: #0f172a;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 0.65rem 1.5rem;
  border: none;
  transition: var(--transition-fast);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-yellow:hover {
  background-color: var(--accent-yellow-hover);
  color: #0f172a;
  transform: translateY(-2px);
}

.btn-icon-search {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.btn-icon-search:hover {
  background: var(--primary-soft);
  color: var(--primary-green);
  border-color: var(--primary-soft-border);
}

/* HERO SECTION (Presisi Sesuai Gambar Referensi) */
.hero-section {
  position: relative;
  min-height: 520px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.55) 0%, rgba(22, 101, 52, 0.65) 100%),
              url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 4.5rem 0;
  color: #ffffff;
}

.hero-subtitle {
  color: var(--accent-yellow);
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 540px;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Floating White Card Layanan Utama */
.hero-floating-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-floating);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.floating-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.floating-service-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
}

.floating-service-item:hover {
  background: var(--bg-light);
  border-color: var(--border-color);
  transform: translateY(-2px);
}

.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.service-icon-green { background: #dcfce7; color: var(--primary-green); }
.service-icon-orange { background: #ffedd5; color: var(--accent-orange); }
.service-icon-blue { background: #dbeafe; color: var(--accent-blue); }
.service-icon-purple { background: #f3e8ff; color: var(--accent-purple); }

.floating-service-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: var(--text-main);
}

.floating-service-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* SECTION TITLES */
.section-padding {
  padding: 3.5rem 0;
}

.section-padding-sm {
  padding: 2.25rem 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.section-title {
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--text-main);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title-line {
  width: 5px;
  height: 22px;
  background: var(--primary-green);
  border-radius: var(--radius-pill);
  display: inline-block;
}

.section-link {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary-green);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.section-link:hover {
  color: var(--primary-dark);
  gap: 0.5rem;
}

/* LAYANAN UNGGULAN CARDS (Presisi 6 Cards Horizontal Grid) */
.service-horizontal-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: var(--transition-fast);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.service-horizontal-card:hover {
  border-color: var(--primary-soft-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  background: var(--primary-soft);
}

.service-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
}

.service-card-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-card-btn {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-green);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* STATISTIK DESA CARDS */
.stat-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: var(--transition-fast);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.stat-number {
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* BERITA TERBARU CARDS */
.news-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
  height: 100%;
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.news-img-wrapper {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.news-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.news-card:hover .news-img-wrapper img {
  transform: scale(1.05);
}

.news-body {
  padding: 1rem;
}

.news-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.news-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-excerpt {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

/* PENGUMUMAN LIST ITEMS */
.announcement-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  transition: var(--transition-fast);
}

.announcement-item:hover {
  background: var(--bg-light);
  border-color: var(--primary-soft-border);
}

.announcement-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.announcement-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.announcement-date {
  font-size: 0.725rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.announcement-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.4;
}

/* AGENDA DESA CARD FORMAT TANGGAL */
.agenda-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.85rem;
  transition: var(--transition-fast);
}

.agenda-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-soft-border);
}

.agenda-date-badge {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--primary-green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--primary-soft);
}

.agenda-date-day {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary-green);
  line-height: 1;
}

.agenda-date-month {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.agenda-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.agenda-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* CTA BANNER SECTION (Presisi Sesuai Gambar Referensi) */
.cta-banner {
  background: linear-gradient(135deg, #166534 0%, #14532d 100%);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner-bg-graphics {
  position: absolute;
  right: -20px;
  bottom: -30px;
  opacity: 0.15;
  font-size: 14rem;
  pointer-events: none;
  color: #ffffff;
}

.cta-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.cta-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  max-width: 600px;
}

/* FOOTER */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  font-size: 0.875rem;
}

.footer-brand-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.footer-heading {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.975rem;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #94a3b8;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #cbd5e1;
}

.footer-contact-item i {
  color: var(--primary-light);
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.75rem;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

/* STEPPER WIZARD STYLES (Pengajuan Surat 5-Step) */
.stepper-wrapper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}

.stepper-wrapper::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border-color);
  z-index: 1;
}

.stepper-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.stepper-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: var(--transition-fast);
}

.stepper-item.active .stepper-number {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-soft-border);
}

.stepper-item.completed .stepper-number {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: #ffffff;
}

.stepper-label {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.stepper-item.active .stepper-label {
  color: var(--primary-green);
  font-weight: 700;
}

/* TRACKING TIMELINE */
.tracking-timeline {
  position: relative;
  padding-left: 2rem;
  margin: 1.5rem 0;
}

.tracking-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 11px;
  width: 2px;
  background: var(--border-color);
}

.timeline-step {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.timeline-step.done .timeline-dot {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: #ffffff;
}

.timeline-step.current .timeline-dot {
  background: var(--accent-yellow);
  border-color: var(--accent-yellow);
  color: #0f172a;
}

.timeline-title {
  font-weight: 700;
  font-size: 0.925rem;
  margin-bottom: 0.15rem;
}

.timeline-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* BADGES & CHIPS */
.status-badge {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-pending { background: #fef3c7; color: #b45309; }
.badge-process { background: #dbeafe; color: #1d4ed8; }
.badge-approved { background: #dcfce7; color: #15803d; }
.badge-completed { background: #d1fae5; color: #047857; }
.badge-rejected { background: #fee2e2; color: #b91c1c; }

/* UTILITY CARDS */
.custom-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.demo-notice-tag {
  background: #fffbebf8;
  border: 1px dashed var(--accent-yellow);
  color: #92400e;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

/* RESPONSIVE CSS */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-floating-card {
    margin-top: 2rem;
  }
  .floating-service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 3rem 0;
    min-height: auto;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .cta-banner {
    padding: 1.75rem;
  }
  .cta-title {
    font-size: 1.35rem;
  }
}
