/* ===== API PARKIR - MAIN CSS - MOBILE FIRST ===== */
:root {
  --orange: #FF6B00;
  --orange-dark: #cc5500;
  --orange-light: #ff8c3a;
  --black: #1a1a1a;
  --dark: #111111;
  --gray: #2d2d2d;
  --white: #ffffff;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Tahoma, sans-serif; background: var(--white); color: var(--black); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }

/* ── NAVBAR ── */
.navbar {
  background: var(--black);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(255,107,0,0.3);
}
.navbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.navbar-logo { width: 38px; height: 38px; border-radius: 8px; object-fit: contain; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { color: var(--orange); font-size: 1.2rem; font-weight: 800; line-height: 1; }
.brand-sub { color: #aaa; font-size: 0.55rem; letter-spacing: 0.5px; text-transform: uppercase; display: none; }

/* Hamburger */
.nav-toggle { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #ccc; border-radius: 2px; transition: all 0.3s; }

.navbar-nav {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: #1a1a1a;
  flex-direction: column;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,107,0,0.2);
  z-index: 999;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.navbar-nav.open { display: flex; }
.navbar-nav li { list-style: none; }
.navbar-nav a { display: block; padding: 0.8rem 1.5rem; color: #ccc; text-decoration: none; font-size: 0.95rem; border-left: 3px solid transparent; transition: all 0.2s; }
.navbar-nav a:hover { color: var(--orange); border-left-color: var(--orange); background: rgba(255,107,0,0.06); }
.btn-login-nav { background: var(--orange) !important; color: white !important; margin: 0.5rem 1rem; border-radius: 8px; text-align: center; border-left: none !important; }
.btn-login-nav:hover { background: var(--orange-dark) !important; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  background: url('/uploads/background.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5rem 1.2rem 3rem;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(120,0,30,0.75) 0%, rgba(60,0,80,0.65) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: flex; flex-direction: column; align-items: center;
  gap: 2.5rem; text-align: center;
}
.hero-text .tag {
  display: inline-block;
  background: rgba(255,107,0,0.15); color: var(--orange);
  border: 1px solid var(--orange);
  padding: 0.3rem 1rem; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 1rem;
}
.hero-text h1 { font-size: 2.2rem; font-weight: 900; color: var(--white); line-height: 1.1; margin-bottom: 1rem; }
.hero-text h1 span { color: var(--orange); }
.hero-text p { color: #aaa; font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.5rem; }
.hero-buttons { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }
.hero-visual img.hero-logo { width: min(280px, 80vw); filter: drop-shadow(0 6px 24px rgba(255,107,0,0.35)); }

/* Buttons */
.btn-primary { background: var(--orange); color: white; padding: 0.75rem 1.8rem; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 0.9rem; transition: all 0.2s; border: none; cursor: pointer; display: inline-block; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255,107,0,0.4); }
.btn-outline { background: transparent; color: var(--white); padding: 0.75rem 1.8rem; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 0.9rem; border: 2px solid rgba(255,255,255,0.3); transition: all 0.2s; display: inline-block; }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* ── STATS BAR — DIHAPUS ── */

/* ── SECTIONS ── */
section { padding: 3.5rem 1.2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label { color: var(--orange); font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.4rem; }
.section-title { font-size: 1.8rem; font-weight: 900; color: var(--black); margin-bottom: 0.8rem; line-height: 1.2; }
.section-title span { color: var(--orange); }
.section-desc { color: #666; font-size: 0.9rem; line-height: 1.7; }

/* ── MISI ── */
.misi-section { background: var(--dark); }
.misi-section .section-title { color: white; }
.misi-section .section-desc { color: #888; }
.misi-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
.misi-card { background: var(--gray); border: 1px solid rgba(255,107,0,0.15); border-radius: 14px; padding: 1.5rem; transition: all 0.3s; }
.misi-card:hover { border-color: var(--orange); transform: translateY(-3px); }
.misi-card .icon { width: 48px; height: 48px; background: rgba(255,107,0,0.15); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem; }
.misi-card h3 { color: white; font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.misi-card p { color: #888; font-size: 0.85rem; line-height: 1.6; }

/* ── BERITA ── */
.berita-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-top: 2rem; }
.berita-card { background: white; border-radius: 14px; overflow: hidden; box-shadow: 0 3px 15px rgba(0,0,0,0.07); border: 1px solid #eee; transition: all 0.3s; }
.berita-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255,107,0,0.12); border-color: var(--orange-light); }
.berita-card .card-img { height: 160px; background: linear-gradient(135deg, var(--orange), var(--orange-dark)); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; overflow: hidden; }
.berita-card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.berita-card .card-body { padding: 1.2rem; }
.berita-card .card-date { color: var(--orange); font-size: 0.75rem; font-weight: 600; margin-bottom: 0.4rem; }
.berita-card .card-title { font-size: 0.95rem; font-weight: 700; color: var(--black); margin-bottom: 0.5rem; line-height: 1.4; }
.berita-card .card-excerpt { color: #777; font-size: 0.82rem; line-height: 1.6; }

/* ── FOOTER ── */
footer { background: var(--dark); border-top: 2px solid var(--orange); padding: 2.5rem 1.2rem 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand .brand-name { color: var(--orange); font-size: 1.4rem; font-weight: 900; margin-bottom: 0.5rem; }
.footer-brand p { color: #888; font-size: 0.82rem; line-height: 1.6; }
.footer-col h4 { color: white; font-size: 0.82rem; font-weight: 700; margin-bottom: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a { color: #888; text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.2rem; text-align: center; color: #555; font-size: 0.75rem; }

/* ── TABLET 600px+ ── */
@media (min-width: 600px) {
  .brand-sub { display: block; }
  .stats-bar-inner { grid-template-columns: repeat(4,1fr); }
  .misi-grid { grid-template-columns: repeat(2,1fr); }
  .berita-grid { grid-template-columns: repeat(2,1fr); }
  .hero-text h1 { font-size: 2.8rem; }
}

/* ── DESKTOP 900px+ ── */
@media (min-width: 900px) {
  .navbar { padding: 0 2rem; height: 70px; }
  .nav-toggle { display: none; }
  .navbar-nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
    gap: 0.3rem;
    align-items: center;
  }
  .navbar-nav a { padding: 0.4rem 0.8rem; border-left: none; font-size: 0.88rem; border-radius: 6px; }
  .navbar-nav a:hover { background: rgba(255,107,0,0.1); }
  .btn-login-nav { margin: 0; padding: 0.4rem 1rem !important; }

  .hero { padding: 0 2rem; }
  .hero-content { flex-direction: row; text-align: left; gap: 4rem; justify-content: space-between; }
  .hero-buttons { justify-content: flex-start; }
  .hero-visual img.hero-logo { width: 400px; }
  .hero-text h1 { font-size: 3.2rem; }

  .misi-grid { grid-template-columns: repeat(3,1fr); }
  .berita-grid { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }

  section { padding: 5rem 2rem; }
  .section-title { font-size: 2.2rem; }
}

/* ══════════════════════════════════════════
   MOBILE OVERFLOW FIXES
═══════════════════════════════════════════ */

/* Paksa semua konten tidak overflow */
.section-inner * { word-break: break-word; overflow-wrap: break-word; }

/* Profil grid — stack di HP */
.profil-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 1.5rem; }
.profil-grid img { max-width: 240px; margin: 0 auto; }
@media (min-width: 900px) {
  .profil-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .profil-grid img { max-width: 100%; }
}

/* Nilai grid — 2 kolom di HP, 5 di desktop */
.nilai-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-top: 2rem; }
.nilai-card { background: #f9f9f9; border-radius: 12px; padding: 1.2rem 1rem; text-align: center; border: 1px solid #eee; transition: all 0.3s; }
.nilai-card:hover { border-color: var(--orange); transform: translateY(-3px); }
.nilai-card .ico { font-size: 1.8rem; margin-bottom: 0.6rem; }
.nilai-card h4 { color: var(--orange); font-size: 0.85rem; font-weight: 800; margin-bottom: 0.3rem; }
.nilai-card p { color: #777; font-size: 0.75rem; line-height: 1.5; }
@media (min-width: 900px) { .nilai-grid { grid-template-columns: repeat(5,1fr); } }

/* Program grid — 1 kolom HP, 2 desktop */
.program-grid { display: grid; grid-template-columns: 1fr; gap: 0.8rem; margin-top: 2rem; }
.program-item { display: flex; gap: 0.9rem; background: white; padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid #eee; align-items: flex-start; }
.program-item .p-ico { font-size: 1.2rem; flex-shrink: 0; width: 38px; height: 38px; background: rgba(255,107,0,0.1); border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.program-item h4 { color: var(--black); font-size: 0.88rem; font-weight: 700; margin-bottom: 2px; }
.program-item p { color: #888; font-size: 0.8rem; line-height: 1.5; }
@media (min-width: 900px) { .program-grid { grid-template-columns: 1fr 1fr; } }

/* Kontak grid — stack di HP */
.kontak-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
.kontak-card { background: #2d2d2d; border-radius: 14px; padding: 1.5rem; border: 1px solid rgba(255,107,0,0.2); }
.kontak-card .k-ico { font-size: 1.8rem; margin-bottom: 0.8rem; }
.kontak-card h4 { color: white; margin-bottom: 0.4rem; font-size: 0.95rem; }
.kontak-card p { color: #888; font-size: 0.85rem; line-height: 1.6; }
@media (min-width: 600px) { .kontak-grid { grid-template-columns: repeat(3,1fr); } }

/* ══════════════════════════════════════════
   FOTO KEGIATAN SLIDER
═══════════════════════════════════════════ */
.slider-wrap { position: relative; margin-top: 2rem; overflow: hidden; border-radius: 16px; }
.slider-track { display: flex; transition: transform 0.4s ease; will-change: transform; }
.slide { flex: 0 0 100%; position: relative; }
.slide img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.slide-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: white; padding: 1rem; font-size: 0.82rem; font-weight: 600; }

.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,107,0,0.85); border: none; color: white; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; z-index: 10; transition: background 0.2s; }
.slider-btn:hover { background: var(--orange-dark); }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.slider-dots { display: flex; justify-content: center; gap: 6px; margin-top: 0.8rem; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: #ddd; border: none; cursor: pointer; padding: 0; transition: all 0.2s; }
.slider-dot.active { background: var(--orange); width: 20px; border-radius: 4px; }

@media (min-width: 900px) {
  .slider-wrap { max-width: 800px; margin: 2rem auto 0; }
}

/* ── WA FLOATING BUTTON ── */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.6);
}
