/* ============================================================
   LSP Keamanan Indonesia - Main Stylesheet
   ============================================================ */

:root {
  --primary:     #0a2342;
  --primary-light:#1a3a6b;
  --accent:      #e8a020;
  --accent-dark: #c8841a;
  --text:        #1f2937;
  --text-muted:  #6b7280;
  --light:       #f8fafc;
  --border:      #e5e7eb;
  --white:       #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.3; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}
.section-divider {
  width: 60px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* ---- NAVBAR ---- */
.navbar {
  background: var(--primary) !important;
  padding: 0.75rem 0;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}
.navbar-brand {
  display: flex; align-items: center; gap: 12px;
}
.navbar-brand .brand-logo {
  width: 48px; height: 48px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 900; color: var(--primary);
}
.navbar-brand .brand-text .name {
  font-size: 1rem; font-weight: 700;
  color: var(--white); line-height: 1.2;
}
.navbar-brand .brand-text .sub {
  font-size: 0.7rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: 1px;
}
.navbar-nav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500; padding: 0.5rem 1rem !important;
  transition: color 0.2s;
  position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent) !important;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute; bottom: 0; left: 1rem; right: 1rem;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transition: transform 0.2s;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }
.btn-verify-nav {
  background: var(--accent); color: var(--primary) !important;
  border-radius: 6px; padding: 0.4rem 1.2rem !important;
  font-weight: 700; margin-left: 0.5rem;
}
.btn-verify-nav:hover { background: var(--accent-dark); }
.navbar-toggler { border-color: rgba(255,255,255,0.3); }
.navbar-toggler-icon { filter: invert(1); }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #2a5298 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
  display: inline-block;
  background: rgba(232,160,32,0.2);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 2rem;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary-hero {
  background: var(--accent); color: var(--primary);
  border: none; padding: 0.75rem 2rem;
  border-radius: 8px; font-weight: 700; font-size: 1rem;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary-hero:hover {
  background: var(--accent-dark); color: var(--primary);
  transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.btn-outline-hero {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  padding: 0.75rem 2rem; border-radius: 8px;
  font-weight: 600; font-size: 1rem;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-outline-hero:hover {
  border-color: var(--white); background: rgba(255,255,255,0.1);
  color: var(--white);
}
.hero-image-box {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
}
.hero-shield {
  font-size: 5rem;
  margin-bottom: 1rem;
  display: block;
}
.hero-stats-mini {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-top: 1.5rem;
}
.stat-mini {
  background: rgba(255,255,255,0.1);
  border-radius: 10px; padding: 0.8rem 0.5rem; text-align: center;
}
.stat-mini .num { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.stat-mini .lbl { font-size: 0.7rem; color: rgba(255,255,255,0.7); }

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--accent);
  padding: 1.5rem 0;
}
.stat-item { text-align: center; }
.stat-item .number {
  font-size: 2.2rem; font-weight: 800;
  color: var(--primary); line-height: 1;
}
.stat-item .label {
  font-size: 0.82rem; color: var(--primary);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.stat-divider {
  width: 1px; background: rgba(10,35,66,0.2);
  align-self: stretch;
}

/* ---- SECTIONS ---- */
.section { padding: 5rem 0; }
.section-light { background: var(--light); }
.section-dark { background: var(--primary); color: var(--white); }

/* ---- ABOUT ---- */
.about-feature {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.5rem;
}
.about-feature .icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: rgba(232,160,32,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--accent);
}
.about-feature .text h5 { font-size: 1rem; margin-bottom: 0.25rem; color: var(--primary); }
.about-feature .text p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.bnsp-badge {
  background: var(--primary); color: var(--white);
  border-radius: 12px; padding: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  margin-top: 1.5rem;
}
.bnsp-badge .icon { font-size: 2.5rem; }
.bnsp-badge .text small { color: rgba(255,255,255,0.6); display: block; }
.bnsp-badge .text strong { color: var(--accent); font-size: 1.1rem; }

/* ---- SCHEME CARDS ---- */
.scheme-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.scheme-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.scheme-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
.scheme-card:hover::before { transform: scaleX(1); }
.scheme-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--accent);
  margin-bottom: 1.2rem;
}
.scheme-card h4 { font-size: 1.05rem; color: var(--primary); margin-bottom: 0.5rem; }
.scheme-card p { font-size: 0.88rem; color: var(--text-muted); }
.scheme-kode {
  display: inline-block;
  background: var(--light); border: 1px solid var(--border);
  color: var(--primary); font-size: 0.75rem; font-weight: 700;
  padding: 0.2rem 0.6rem; border-radius: 4px;
  margin-bottom: 0.8rem; font-family: monospace;
}
.scheme-duration {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-muted);
}

/* ---- VERIFY SECTION ---- */
.verify-section {
  background: linear-gradient(135deg, var(--primary), #1a3a6b);
  color: var(--white);
  padding: 4rem 0;
}
.verify-box {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 2.5rem;
}
.verify-form { display: flex; gap: 1rem; flex-wrap: wrap; }
.verify-input {
  flex: 1; min-width: 250px;
  padding: 0.85rem 1.2rem;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.verify-input::placeholder { color: rgba(255,255,255,0.5); }
.verify-input:focus { border-color: var(--accent); }
.btn-verify {
  background: var(--accent); color: var(--primary);
  border: none; padding: 0.85rem 2rem;
  border-radius: 8px; font-weight: 700;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-verify:hover { background: var(--accent-dark); }

/* ---- RESULT CARD ---- */
.result-card {
  background: var(--white); color: var(--text);
  border-radius: 16px; padding: 2rem;
  margin-top: 2rem;
}
.result-card.valid { border-left: 5px solid #22c55e; }
.result-card.expired { border-left: 5px solid #f59e0b; }
.result-card.revoked { border-left: 5px solid #ef4444; }
.result-card.notfound { border-left: 5px solid #6b7280; }
.result-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.result-icon { font-size: 2.5rem; }
.result-header h4 { margin: 0; font-size: 1.1rem; }
.result-header small { color: var(--text-muted); }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.result-field { background: var(--light); border-radius: 8px; padding: 0.8rem 1rem; }
.result-field label { font-size: 0.75rem; color: var(--text-muted); display: block; text-transform: uppercase; letter-spacing: 0.5px; }
.result-field span { font-weight: 600; font-size: 0.95rem; }

/* ---- NEWS CARDS ---- */
.news-card {
  background: var(--white); border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden; height: 100%;
  transition: all 0.3s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.news-card-img {
  height: 180px; background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.news-card-body { padding: 1.5rem; }
.news-kategori {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 0.2rem 0.7rem; border-radius: 4px;
  margin-bottom: 0.8rem;
}
.news-kategori.berita { background: #dbeafe; color: #1d4ed8; }
.news-kategori.pengumuman { background: #fef3c7; color: #92400e; }
.news-kategori.agenda { background: #d1fae5; color: #065f46; }
.news-card-body h4 { font-size: 1rem; color: var(--primary); margin-bottom: 0.5rem; line-height: 1.4; }
.news-card-body p { font-size: 0.87rem; color: var(--text-muted); }
.news-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 1rem; }

/* ---- CONTACT ---- */
.contact-info-item {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-info-item .icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(232,160,32,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--accent);
}
.contact-form-wrapper {
  background: var(--white); border-radius: 16px;
  padding: 2.5rem; box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.form-control, .form-select {
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 0.75rem 1rem; transition: border-color 0.2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10,35,66,0.1);
}
.btn-submit {
  background: var(--primary); color: var(--white);
  border: none; padding: 0.85rem 2.5rem;
  border-radius: 8px; font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: all 0.2s; width: 100%;
}
.btn-submit:hover { background: var(--primary-light); transform: translateY(-1px); }

/* ---- FOOTER ---- */
.footer {
  background: #06172c;
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 1.5rem;
}
.footer h5 { color: var(--white); margin-bottom: 1.2rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 0.5rem; }
.footer ul li a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: color 0.2s; }
.footer ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2.5rem; padding-top: 1.5rem;
  text-align: center; font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-logo { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.footer-tagline { font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ---- PAGE HEADER ---- */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white); padding: 3.5rem 0 2.5rem;
}
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.page-header .breadcrumb { background: none; padding: 0; margin: 0; }
.page-header .breadcrumb-item a { color: var(--accent); }
.page-header .breadcrumb-item.active { color: rgba(255,255,255,0.7); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ---- ALERT ---- */
.alert-success-custom {
  background: #f0fdf4; border: 1px solid #86efac;
  color: #15803d; border-radius: 10px; padding: 1rem 1.5rem;
}
.alert-error-custom {
  background: #fef2f2; border: 1px solid #fca5a5;
  color: #dc2626; border-radius: 10px; padding: 1rem 1.5rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero-actions { flex-direction: column; }
  .btn-primary-hero, .btn-outline-hero { width: 100%; justify-content: center; }
  .stats-bar .row { gap: 1.5rem; }
  .stat-divider { display: none; }
  .verify-form { flex-direction: column; }
  .verify-input, .btn-verify { width: 100%; }
  .section { padding: 3rem 0; }
}
