/* =============================================
   style.css — Website RW 12 Depok Jaya
   ============================================= */

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

:root {
  --navy-50:   #E8EAF6;
  --navy-100:  #C5CAE9;
  --navy-500:  #3949AB;
  --navy-600:  #283593;
  --navy-700:  #1A237E;
  --navy-800:  #0D1B6E;
  --gold-50:   #FFF8E1;
  --gold-500:  #FFC107;
  --gold-600:  #F9A825;
  --amber-50:  #FFF3E0;
  --amber-500: #FF6F00;
  --amber-700: #E65100;
  --gray-50:   #FAFAFA;
  --gray-100:  #F5F5F5;
  --gray-200:  #EEEEEE;
  --gray-300:  #E0E0E0;
  --gray-500:  #9E9E9E;
  --gray-600:  #757575;
  --gray-700:  #616161;
  --gray-800:  #424242;
  --gray-900:  #212121;
  --white:     #FFFFFF;
  --radius:    8px;
  --radius-lg: 12px;
  --shadow:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
}

body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  color: var(--gray-800);
  background: var(--gray-100);
  line-height: 1.65;
}


/* =============================================
   Typography — Playfair Display + Source Sans 3
   ============================================= */
h1, h2, h3, .logo-rw, .section-title, .hero h1, .page-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
}
.site-nav, .nav-link, .btn, .btn-submit, .btn-detail,
.form-control, .form-label, .card-tag, .card-meta,
.badge, .stat-label, .footer-col, input, textarea, select {
  font-family: 'Source Sans 3', sans-serif;
}

a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--navy-600); }

img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* =============================================
   Banner Pengumuman Penting
   ============================================= */
.banner-penting {
  background: var(--amber-700);
  color: #fff;
  text-align: center;
  padding: 10px 1rem;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.banner-label {
  background: rgba(255,255,255,.25);
  border-radius: 100px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* =============================================
   Header & Nav
   ============================================= */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-900);
}
.logo-img { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; }
.logo-rw { font-size: 19px; font-weight: 700; color: #1A237E; line-height: 1.2; font-family: 'Playfair Display', serif; letter-spacing: -.01em; }
.logo-kel { font-size: 11px; color: var(--gray-500); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  background: var(--navy-50);
  color: var(--navy-700);
}
.nav-cta {
  background: var(--navy-600);
  color: var(--white) !important;
  border-radius: 100px;
  padding: 8px 16px;
}
.nav-cta:hover { background: var(--navy-700); color: var(--white); }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 180px;
  z-index: 200;
  padding: 6px 0;
}
.dropdown-menu a {
  display: block;
  padding: 9px 16px;
  font-size: 14px;
  color: var(--gray-700);
}
.dropdown-menu a:hover { background: var(--gray-50); color: var(--navy-700); }
.nav-dropdown:hover .dropdown-menu { display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--gray-700);
  padding: 4px 8px;
}

/* =============================================
   Hero / Beranda
   ============================================= */
.hero {
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-600) 60%, #66BB6A 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: .75rem; letter-spacing: -.01em; }
.hero p { font-size: 16px; opacity: .88; max-width: 540px; margin: 0 auto 1.5rem; color: #ffffff !important; }
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  border: none;
}
.btn-white { background: var(--white); color: var(--navy-700); }
.btn-white:hover { background: var(--navy-50); color: var(--navy-800); }
.btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,.6); color: var(--white); margin-left: 8px; }
.btn-outline:hover { background: rgba(255,255,255,.15); }

/* =============================================
   Stats Bar
   ============================================= */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.25rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  text-align: center;
}
.stat-item .stat-num {
  font-size: 24px;
  font-weight: 600;
  color: var(--navy-700);
  display: block;
}
.stat-item .stat-label {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* =============================================
   Section umum
   ============================================= */
.section { padding: 3rem 0; }
.section-alt { background: var(--white); }
.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #1A237E;
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}
.section-sub {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 2rem;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.link-more { font-size: 13px; color: var(--navy-600); font-weight: 500; }
.link-more:hover { text-decoration: underline; }

/* =============================================
   Card
   ============================================= */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-img { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--gray-200); }
.card-body { padding: 1.1rem 1.25rem; }
.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--navy-50);
  color: var(--navy-700);
  margin-bottom: 8px;
}
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; color: #1A237E; font-family: 'Playfair Display', serif; }
.card-meta { font-size: 12px; color: var(--gray-500); }

/* Grid kegiatan */
.kegiatan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* =============================================
   Pengurus Card
   ============================================= */
.pengurus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.pengurus-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}
.pengurus-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--navy-100);
  color: var(--navy-800);
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  overflow: hidden;
}
.pengurus-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pengurus-nama { font-size: 14px; font-weight: 600; color: var(--gray-900); }
.pengurus-jabatan { font-size: 12px; color: var(--navy-600); margin-top: 3px; }

/* =============================================
   Form
   ============================================= */
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--gray-700); }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-control:focus {
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(76,175,80,.12);
}
textarea.form-control { resize: vertical; min-height: 120px; }
.form-hint { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.form-required { color: #e53935; }
.btn-submit {
  background: var(--navy-600);
  color: var(--white);
  padding: 11px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background .15s;
}
.btn-submit:hover { background: var(--navy-700); }

/* Alert */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 1rem;
}
.alert-success { background: var(--navy-50); color: var(--navy-800); border: 1px solid var(--navy-100); }
.alert-error { background: #FFEBEE; color: #B71C1C; border: 1px solid #FFCDD2; }
.alert-info { background: var(--gold-50); color: #0D47A1; border: 1px solid #BBDEFB; }

/* =============================================
   Layanan / Surat
   ============================================= */
.surat-list { display: flex; flex-direction: column; gap: .75rem; }
.surat-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.surat-info h3 { font-size: 15px; font-weight: 600; color: var(--gray-900); margin-bottom: 4px; }
.surat-info p { font-size: 13px; color: var(--gray-500); }
.btn-detail {
  background: var(--navy-50);
  color: var(--navy-700);
  border: none;
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn-detail:hover { background: var(--navy-100); }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 1.5rem;
  max-height: 85vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.modal-title { font-size: 17px; font-weight: 600; }
.modal-close {
  background: none; border: none;
  font-size: 20px; cursor: pointer;
  color: var(--gray-500); line-height: 1;
  padding: 4px;
}
.syarat-list { padding-left: 1.25rem; }
.syarat-list li { font-size: 14px; margin-bottom: 6px; color: var(--gray-700); }

/* =============================================
   Jadwal
   ============================================= */
.jadwal-list { display: flex; flex-direction: column; gap: .75rem; }
.jadwal-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.jadwal-date {
  background: var(--navy-600);
  color: var(--white);
  border-radius: var(--radius);
  padding: 8px 12px;
  text-align: center;
  min-width: 52px;
  flex-shrink: 0;
}
.jadwal-date .day { font-size: 20px; font-weight: 600; line-height: 1; }
.jadwal-date .month { font-size: 11px; text-transform: uppercase; }
.jadwal-info h4 { font-size: 15px; font-weight: 600; }
.jadwal-info p { font-size: 13px; color: var(--gray-500); margin-top: 3px; }

/* =============================================
   Footer
   ============================================= */
.site-footer {
  background: #0D1654;
  color: var(--gray-300);
  padding: 3rem 0 0;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: .75rem;
}
.footer-col p, .footer-col a {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.8;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 4px; }
.footer-col a:hover { color: var(--gold-400, #7986CB); }
.footer-alamat { margin-top: .75rem; font-size: 12px !important; }
.footer-form { display: flex; gap: 6px; margin-top: 8px; }
.footer-form input {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-700);
  background: var(--gray-800);
  color: var(--white);
  font-size: 13px;
  outline: none;
  min-width: 0;
}
.footer-form input:focus { border-color: var(--navy-500); }
.footer-form button {
  padding: 8px 14px;
  background: var(--navy-600);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
}
.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding: 1.25rem 0;
  text-align: center;
}
.footer-bottom p { font-size: 12px; color: var(--gray-600); }

/* =============================================
   Page header (untuk halaman dalam)
   ============================================= */
.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 2rem 0;
}
.page-hero h1 { font-size: 28px; font-weight: 700; color: #1A237E; font-family: 'Playfair Display', serif; }
.breadcrumb { font-size: 13px; color: var(--gray-500); margin-bottom: .5rem; }
.breadcrumb a { color: var(--navy-600); }
.breadcrumb span { margin: 0 6px; }

/* Status badge */
.badge-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}
.badge-masuk   { background: var(--gold-50); color: var(--gold-600); }
.badge-diproses { background: var(--amber-50); color: var(--amber-700); }
.badge-selesai { background: var(--navy-50); color: var(--navy-700); }

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    gap: 0;
  }
  .site-nav.open { display: flex; }
  .site-header { position: relative; }
  .nav-link { padding: 12px 16px; }
  .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; }
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .hero { padding: 2.5rem 0; }
  .surat-item { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Hero teks shadow - tanpa overlay */
.hero h1 {
  text-shadow: 0 2px 12px rgba(0,0,0,.7), 0 1px 4px rgba(0,0,0,.5);
}
.hero p {
  text-shadow: 0 1px 8px rgba(0,0,0,.7);
}
.hero { background-size: cover; background-position: center; }
