/* ============================================
   STYLE.CSS — Design System SDN Ngupasan
   Tema: Hijau Teal & Putih
   ============================================ */

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

/* ===== CSS VARIABLES ===== */
:root {
  /* Green Teal Theme */
  --primary:        #0D9488;
  --primary-dark:   #0F766E;
  --primary-light:  #14B8A6;
  --primary-rgb:    13, 148, 136;

  --secondary:      #059669;

  /* Green Accent */
  --accent:         #10B981;
  --accent-dark:    #059669;
  --accent-light:   #6EE7B7;
  --accent-rgb:     16, 185, 129;

  /* Status */
  --success:        #22C55E;
  --warning:        #F59E0B;
  --danger:         #EF4444;
  --info:           #3B82F6;

  /* Neutral */
  --white:          #FFFFFF;
  --gray-50:        #FAFAFA;
  --gray-100:       #F5F5F5;
  --gray-200:       #E8E8E8;
  --gray-300:       #D4D4D4;
  --gray-400:       #A8A8A8;
  --gray-500:       #737373;
  --gray-600:       #525252;
  --gray-700:       #404040;
  --gray-800:       #262626;
  --gray-900:       #171717;
  --black:          #0A0A0A;

  /* Text */
  --text-dark:      #0F2620;
  --text-body:      #1E4034;
  --text-muted:     #4B7062;
  --text-light:     #7DA898;

  /* Surfaces */
  --surface:        #FFFFFF;
  --surface-alt:    #F0FDF4;
  --surface-card:   #FFFFFF;
  --border:         rgba(13,148,136,0.12);

  /* Spacing */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   32px;
  --space-2xl:  48px;
  --space-3xl:  64px;
  --space-4xl:  80px;

  /* Typography */
  --font-family:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-size-xs:   0.75rem;
  --font-size-sm:   0.875rem;
  --font-size-base: 1rem;
  --font-size-lg:   1.125rem;
  --font-size-xl:   1.25rem;
  --font-size-2xl:  1.5rem;
  --font-size-3xl:  1.875rem;
  --font-size-4xl:  2.25rem;
  --font-size-5xl:  3rem;
  --font-size-6xl:  3.75rem;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 28px rgba(0,0,0,0.12);
  --shadow-xl:  0 16px 48px rgba(0,0,0,0.15);
  --shadow-card: 0 2px 16px rgba(13,148,136,0.10);

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-2xl:  28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --navbar-height:    68px;
  --ribbon-height:    32px;
  --header-total:     calc(var(--navbar-height) + var(--ribbon-height));
  --container-max:    1200px;
  --container-padding: 20px;
}

/* ===== CSS RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--navbar-height); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--text-body);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ===== SECTION ===== */
.section { padding: var(--space-3xl) 0; }
.section--alt { background: var(--surface-alt); }
.section--dark {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: var(--white);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}
.section__header h2 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}
.section__header p {
  color: var(--text-muted);
  font-size: var(--font-size-lg);
  max-width: 560px;
  margin: 0 auto;
}
.section--dark .section__header h2 { color: var(--white); }
.section--dark .section__header p { color: rgba(255,255,255,0.75); }

/* ===== GRIDS ===== */
.grid { display: grid; gap: var(--space-lg); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ===== TYPOGRAPHY UTILITIES ===== */
.text-white  { color: var(--white) !important; }
.text-primary { color: var(--primary) !important; }
.text-accent  { color: var(--accent) !important; }
.text-muted   { color: var(--text-muted) !important; }
.text-center  { text-align: center; }

/* ===== DIVIDER GOLD ===== */
.divider-gold {
  width: 48px; height: 4px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
  border-radius: 2px;
  margin: var(--space-md) 0;
}
.divider-gold--center { margin-left: auto; margin-right: auto; }

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge--primary  { background: rgba(var(--primary-rgb),0.10); color: var(--primary); }
.badge--accent   { background: rgba(212,175,55,0.12); color: var(--accent-dark); }
.badge--success  { background: rgba(34,197,94,0.10); color: #16A34A; }
.badge--info     { background: rgba(59,130,246,0.10); color: #2563EB; }
.badge--warning  { background: rgba(245,158,11,0.10); color: #D97706; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
}
.btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(var(--primary-rgb),0.30);
}
.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb),0.40);
}
.btn--accent {
  background: var(--accent);
  color: var(--gray-900);
  box-shadow: 0 4px 14px rgba(212,175,55,0.30);
}
.btn--accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn--outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn--outline-dark:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.8);
}
.btn--ghost {
  background: rgba(var(--primary-rgb),0.08);
  color: var(--primary);
}
.btn--ghost:hover { background: rgba(var(--primary-rgb),0.15); }
.btn--sm { padding: 8px 18px; font-size: var(--font-size-xs); }
.btn--lg { padding: 16px 36px; font-size: var(--font-size-base); }
.btn--full { width: 100%; }

/* ===== CARD ===== */
.card {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 1px solid var(--border);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__image { width: 100%; height: 200px; object-fit: cover; }
.card__body { padding: var(--space-lg); }
.card__title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__text {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-md);
}
.card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-xs);
  color: var(--text-light);
}
.card__footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border);
}

/* ===== FORM ELEMENTS ===== */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-md); }
.form-group label { font-size: var(--font-size-sm); font-weight: 600; color: var(--text-dark); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: var(--text-body);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, #064e3b 0%, var(--primary-dark) 40%, var(--primary) 70%, var(--primary-light) 100%);
  padding: calc(var(--navbar-height) + var(--space-3xl)) 0 var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-light), var(--accent));
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(212,175,55,0.08) 0%, transparent 60%);
}
.page-header__title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}
.page-header__sub {
  font-size: var(--font-size-lg);
  color: rgba(255,255,255,0.80);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}
.page-header__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.60);
  position: relative;
  z-index: 1;
}
.page-header__breadcrumb a { color: var(--accent-light); }
.page-header__breadcrumb a:hover { color: var(--white); }

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-bottom: var(--space-2xl);
  overflow-x: auto;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-base);
  white-space: nowrap;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== ACCORDION ===== */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 8px; overflow: hidden; }
.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  font-size: var(--font-size-base);
  color: var(--text-dark);
  background: var(--white);
  text-align: left;
  transition: background var(--transition-fast);
}
.accordion-header:hover { background: var(--surface-alt); }
.accordion-item.open .accordion-header { color: var(--primary); }
.accordion-item.open .chevron { transform: rotate(180deg); }
.chevron { transition: transform var(--transition-base); color: var(--text-muted); flex-shrink: 0; }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.accordion-body__inner { padding: var(--space-md) var(--space-lg) var(--space-lg); color: var(--text-muted); line-height: 1.8; }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox__img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-lg); object-fit: contain; }
.lightbox__close {
  position: absolute;
  top: 24px; right: 24px;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__close:hover { background: rgba(255,255,255,0.2); }
.lightbox__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  color: var(--white);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.25); }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

/* ===== FLOATING WHATSAPP ===== */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 998;
  box-shadow: 0 4px 16px rgba(37,211,102,0.40);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.50); }
.wa-float svg { width: 28px; height: 28px; fill: var(--white); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 92px; right: 28px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 997;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ===== SEARCH BAR ===== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  max-width: 480px;
  margin: 0 auto var(--space-xl);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.search-bar:focus-within { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.08); }
.search-bar input { flex: 1; font-size: var(--font-size-sm); color: var(--text-body); }
.search-bar input::placeholder { color: var(--text-light); }

/* ===== TABLE ===== */
.data-table { width: 100%; border-collapse: collapse; font-size: var(--font-size-sm); }
.data-table th {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
}
.data-table th:first-child { border-radius: var(--radius-md) 0 0 0; }
.data-table th:last-child { border-radius: 0 var(--radius-md) 0 0; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-body); }
.data-table tr:hover td { background: var(--surface-alt); }
.data-table tr:last-child td { border-bottom: none; }

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, #064e3b 0%, #0F766E 50%, #0D9488 100%);
  color: rgba(255,255,255,0.80);
  padding: var(--space-3xl) 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-md); }
.footer__logo-wrap img { width: 48px; height: 48px; border-radius: 50%; }
.footer__logo-name { font-weight: 700; font-size: var(--font-size-lg); color: var(--white); line-height: 1.2; }
.footer__logo-sub { font-size: var(--font-size-xs); color: rgba(255,255,255,0.5); }
.footer__title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}
.footer__text { font-size: var(--font-size-sm); line-height: 1.8; margin-bottom: var(--space-sm); }
.footer__link {
  display: block;
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.60);
  padding: 3px 0;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.footer__link:hover { color: var(--accent-light); padding-left: 4px; }
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-sm);
}
.footer__contact-item svg { flex-shrink: 0; margin-top: 2px; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  font-size: var(--font-size-xs);
  color: rgba(255,255,255,0.40);
  flex-wrap: wrap;
  gap: 8px;
}
.footer__purworejo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-md);
  padding: 6px 14px;
  background: rgba(212,175,55,0.10);
  border: 1px solid rgba(212,175,55,0.20);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  color: var(--accent-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --space-3xl: 48px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .section__header h2 { font-size: var(--font-size-2xl); }
  .page-header__title { font-size: var(--font-size-3xl); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
}
@media (max-width: 480px) {
  :root { --container-padding: 16px; }
  .grid--4 { grid-template-columns: 1fr; }
  .btn--lg { padding: 14px 28px; }
}