/* ==========================================================================
   Desa Kertamulya - Modern Editorial Village Profile
   Clean, Aesthetic, Accessible, Responsive & Non-AI-Slop Architecture
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Brand Colors - Organic Forest & Warm Ochre */
  --primary-950: #0a1a13;
  --primary-900: #0f291e;
  --primary-800: #16402f;
  --primary-700: #1e563f;
  --primary-600: #287354;
  --primary-500: #348f69;
  --primary-100: #dcfce7;
  --primary-50: #f0fdf4;

  --accent-900: #78350f;
  --accent-700: #b45309;
  --accent-600: #d97706;
  --accent-500: #f59e0b;
  --accent-100: #fef3c7;
  --accent-50: #fffbeb;

  --emerald-500: #10b981;
  --sky-500: #0284c7;

  /* Neutrals (Warm Linen Canvas) */
  --bg-page: #faf9f5;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f3f1ea;
  --bg-muted: #e9e6dd;

  --border-light: #e5e2d8;
  --border-focus: #16402f;

  --text-primary: #19241e;
  --text-secondary: #4a5950;
  --text-muted: #74837a;
  --text-inverse: #ffffff;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, Cambria, serif;

  /* Elevations & Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 41, 30, 0.05);
  --shadow-md: 0 4px 14px rgba(15, 41, 30, 0.08);
  --shadow-lg: 0 12px 30px rgba(15, 41, 30, 0.12);
  --shadow-xl: 0 20px 45px rgba(15, 41, 30, 0.15);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 160ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 260ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  --max-width: 1240px;
  --nav-height: 76px;
}

/* Dark Mode Tokens */
[data-theme="dark"] {
  --bg-page: #0d1612;
  --bg-surface: #14211b;
  --bg-surface-elevated: #1a2b23;
  --bg-subtle: #192721;
  --bg-muted: #24352d;

  --border-light: #23372c;
  --border-focus: #4ade80;

  --text-primary: #f2f7f4;
  --text-secondary: #c2d1c8;
  --text-muted: #889e91;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.5);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-page);
  background-image: url('../images/pattern-batik.svg');
  background-repeat: repeat;
  background-size: 160px;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-600);
  outline-offset: 3px;
}

/* --- Layout Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 5.5rem;
  position: relative;
}

.section-title-wrap {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  background-color: var(--primary-100);
  color: var(--primary-800);
  margin-bottom: 0.85rem;
}

[data-theme="dark"] .badge-tag {
  background-color: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.badge-tag.accent {
  background-color: var(--accent-100);
  color: var(--accent-900);
}

[data-theme="dark"] .badge-tag.accent {
  background-color: rgba(245, 158, 11, 0.15);
  color: #fde047;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Buttons & UI Elements --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-800);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(22, 64, 47, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(22, 64, 47, 0.35);
}

.btn-accent {
  background-color: var(--accent-600);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.btn-accent:hover {
  background-color: var(--accent-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35);
}

.btn-outline {
  border: 1.5px solid var(--border-light);
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--primary-700);
  color: var(--primary-700);
  background-color: var(--bg-subtle);
}

.btn-white {
  background-color: #ffffff;
  color: var(--primary-900);
  font-weight: 700;
}

.btn-white:hover {
  background-color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.topbar {
  background-color: var(--primary-950);
  color: #c7d7ce;
  font-size: 0.8rem;
  padding-block: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(250, 249, 245, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

[data-theme="dark"] .site-header {
  background-color: rgba(13, 22, 18, 0.88);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .site-header.scrolled {
  background-color: rgba(20, 33, 27, 0.96);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary-600);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding-block: 0.4rem;
}

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

[data-theme="dark"] .nav-link:hover, [data-theme="dark"] .nav-link.active {
  color: #86efac;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-700);
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  transition: background-color var(--transition-fast);
}

.theme-toggle:hover {
  background-color: var(--bg-muted);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

/* ==========================================================================
   Hero Section (Editorial Visual & Live Ticker)
   ========================================================================== */
.hero {
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.hero-idm-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #16402f 0%, #0f291e 100%);
  color: #fef3c7;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  color: var(--primary-700);
  position: relative;
  display: inline-block;
}

[data-theme="dark"] .hero-title .highlight {
  color: #4ade80;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.hero-trust-indicators {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-icon {
  color: var(--emerald-500);
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  background-color: var(--bg-surface);
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.hero-visual-card:hover .hero-img {
  transform: scale(1.03);
}

.hero-floating-stat {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(15, 41, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-chip-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-chip-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fef08a;
}

/* --- Live Stats Strip (Bento Stats) --- */
.stats-strip {
  margin-top: 1.5rem;
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: center;
}

.stat-box {
  display: flex;
  flex-direction: column;
  position: relative;
}

.stat-box:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: var(--border-light);
}

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin-bottom: 0.3rem;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-800);
  line-height: 1;
}

[data-theme="dark"] .stat-number {
  color: #86efac;
}

.stat-suffix {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-600);
}

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

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

/* ==========================================================================
   Sambutan Kades & Nilai Hidup (Profil & Visi)
   ========================================================================== */
.profile-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.kades-card {
  position: relative;
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

.kades-photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 4.8;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background-color: var(--primary-900);
}

.kades-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.kades-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.kades-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-700);
}

[data-theme="dark"] .kades-role {
  color: #86efac;
}

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

.quote-box {
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent-600);
  margin-bottom: 2rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.pillar-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary-600);
}

.pillar-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-100);
  color: var(--primary-800);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .pillar-icon-box {
  background-color: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

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

.pillar-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   Bento Grid: Potensi & Komoditas Unggulan
   ========================================================================== */
.bento-potensi {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  position: relative;
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-500);
}

.bento-col-8 {
  grid-column: span 8;
}

.bento-col-4 {
  grid-column: span 4;
}

.bento-col-6 {
  grid-column: span 6;
}

.bento-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--bg-subtle);
}

.bento-card.bento-col-4 .bento-img-wrap {
  aspect-ratio: 4 / 3;
}

.bento-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

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

.bento-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bento-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.bento-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-600);
}

.bento-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.bento-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.bento-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-700);
}

[data-theme="dark"] .bento-footer {
  color: #86efac;
}

/* ==========================================================================
   Destinasi Wisata & Budaya (Interactive Filter Showcase)
   ========================================================================== */
.filter-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.filter-btn {
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
}

.filter-btn.active {
  background-color: var(--primary-800);
  color: #ffffff;
  border-color: var(--primary-800);
  box-shadow: 0 4px 10px rgba(22, 64, 47, 0.2);
}

.wisata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.wisata-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.wisata-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.wisata-card.hidden {
  display: none;
}

.wisata-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.wisata-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.wisata-card:hover .wisata-thumb img {
  transform: scale(1.05);
}

.wisata-category-pill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(15, 41, 30, 0.85);
  color: #ffffff;
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.wisata-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.wisata-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.wisata-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.wisata-details {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.wisata-detail-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ==========================================================================
   Layanan Digital Warga (Desa Digital & Simulator Surat)
   ========================================================================== */
.services-section {
  background-color: var(--bg-subtle);
  border-block: 1px solid var(--border-light);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: flex-start;
}

.services-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-feature-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.service-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--primary-100);
  color: var(--primary-800);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .service-feature-icon {
  background-color: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

/* Surat Online Simulator Interactive Box */
.surat-simulator-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem;
}

.simulator-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.simulator-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background-color: var(--bg-page);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-700);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.live-preview-box {
  background-color: var(--bg-page);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.preview-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-700);
  background: var(--primary-100);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .preview-badge {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

/* ==========================================================================
   Transparansi APBDes (Akuntabilitas Anggaran Desa)
   ========================================================================== */
.apbdes-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.apbdes-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.apbdes-stat-box {
  padding: 1.4rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
}

.apbdes-stat-box.income {
  border-left: 4px solid var(--emerald-500);
}

.apbdes-stat-box.expense {
  border-left: 4px solid var(--accent-600);
}

.apbdes-stat-box.surplus {
  border-left: 4px solid var(--sky-500);
}

.apbdes-box-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.apbdes-box-val {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
}

.budget-progress-group {
  margin-bottom: 1.5rem;
}

.budget-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.progress-bar-bg {
  width: 100%;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary-600), var(--emerald-500));
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-bar-fill.accent {
  background: linear-gradient(90deg, var(--accent-600), var(--accent-500));
}

.progress-bar-fill.sky {
  background: linear-gradient(90deg, #0369a1, #38bdf8);
}

/* ==========================================================================
   Kabar & Agenda Terkini
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

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

.news-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

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

.news-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.news-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.news-summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.news-readmore {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-700);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

[data-theme="dark"] .news-readmore {
  color: #86efac;
}

/* ==========================================================================
   Galeri Foto Warga & Lightbox
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: 1px solid var(--border-light);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 41, 30, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  color: #ffffff;
  padding: 1.5rem;
  text-align: center;
  transition: opacity var(--transition-fast);
  backdrop-filter: blur(4px);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 26, 19, 0.94);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-height: 75vh;
  width: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-top: 1rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
}

/* ==========================================================================
   FAQ & Peta / Kontak
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding-block: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.faq-icon {
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.faq-answer-inner {
  padding-bottom: 1.25rem;
}

.contact-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.contact-icon {
  color: var(--primary-700);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

[data-theme="dark"] .contact-icon {
  color: #86efac;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--primary-950);
  color: #a7b7ae;
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  margin-top: 0.75rem;
  max-width: 340px;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: #a7b7ae;
}

.footer-links a:hover {
  color: #86efac;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

/* Floating Action Button (WhatsApp Warga Siaga) */
.floating-wa {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 990;
  background-color: #25d366;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.floating-wa:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--primary-900);
  color: #ffffff;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 3000;
  opacity: 0;
  transition: all var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .bento-col-8, .bento-col-4, .bento-col-6 {
    grid-column: span 12;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .apbdes-summary-grid {
    grid-template-columns: 1fr;
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .stat-box:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-actions .btn {
    display: none;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-box::after {
    display: none !important;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .floating-wa span {
    display: none;
  }
  .floating-wa {
    padding: 0.85rem;
  }
}
