/* =============================================
   ZIARAH IRAQ — JEJAK KEJAYAAN ISLAM
   Brand: Panorama Nur Mecca (PT. PANORAMA NUR MECCA)
   SOFT Theme — Mobile First Responsive
   ============================================= */

:root {
  /* Panorama Nur Mecca Brand — SOFT version */
  --blue-900: #132038;
  --blue-800: #1a2d52;
  --blue-700: #2a4a7f;
  --blue-600: #3a6bb5;
  --blue-500: #5a8ad4;
  --blue-50: #eef3fa;
  
  --red: #c0392b;
  --red-light: #fdf0ef;
  
  --gold: #d4a843;
  --gold-dark: #a07830;
  --gold-light: #faf3e0;
  
  --green: #2d8659;
  --green-dark: #1f6b45;
  --green-light: #eef8f2;
  
  /* Dark theme — SOFT version */
  --dark-bg: #111820;
  --dark-surface: #182028;
  --dark-card: #1e2830;
  --dark-border: #2a3540;
  
  --text-primary: #e8edf2;
  --text-secondary: #a0aab8;
  --text-muted: #6b7888;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(17, 24, 32, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--dark-border);
  z-index: 1000;
  padding: 0.8rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-logo span { color: var(--blue-500); font-weight: normal; }

.nav-links {
  display: flex;
  gap: 1.2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--blue-600);
  color: var(--blue-500);
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 6px;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  background: linear-gradient(160deg, #0f1724 0%, #1a2840 40%, #252030 70%, #0f1724 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center top, rgba(212, 168, 67, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero h1 {
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  letter-spacing: 2px;
}

.hero h1 .hl { color: var(--gold); }

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.hero .subtitle2 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-style: italic;
}

.hero .arabic-text {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-family: 'Traditional Arabic', 'Amiri', serif;
  direction: rtl;
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-box {
  text-align: center;
  padding: 1rem 1.5rem;
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  min-width: 100px;
}

.stat-box .number {
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: bold;
  display: block;
}

.stat-box .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ---------- SECTIONS ---------- */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.5rem;
  color: var(--blue-500);
  margin-bottom: 0.4rem;
  letter-spacing: 1px;
}

.section-header .divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blue-500));
  margin: 0.6rem auto;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.9rem;
}

/* ---------- CARDS ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  padding: 1.3rem;
  transition: transform 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--blue-600);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--gold), var(--red));
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover::before { opacity: 1; }

.card .card-number {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  font-size: 0.7rem;
  color: var(--blue-500);
  opacity: 0.4;
}

.card h3 {
  font-size: 1rem;
  color: var(--blue-500);
  margin-bottom: 0.2rem;
}

.card .card-subtitle {
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
  font-style: italic;
}

.card .card-dates {
  font-size: 0.75rem;
  color: var(--blue-500);
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.card .tag {
  display: inline-block;
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.6rem;
  margin-right: 0.2rem;
}

.tag-sufi { background: var(--green-light); color: var(--green); }
.tag-hadits { background: var(--blue-50); color: var(--blue-700); }
.tag-fiqih { background: var(--gold-light); color: var(--gold-dark); }
.tag-syahid { background: var(--red-light); color: var(--red); }
.tag-sahabat { background: var(--gold-light); color: var(--gold-dark); }
.tag-imam { background: var(--blue-50); color: var(--blue-700); }

/* ---------- SILSILAH ---------- */
.silsilah-container {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.silsilah-chain {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 2rem;
}

.silsilah-chain::before {
  content: '';
  position: absolute;
  left: 0.8rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-500), var(--gold), transparent);
}

.silsilah-node {
  position: relative;
  padding: 0.8rem 0 0.8rem 1.5rem;
}

.silsilah-node::before {
  content: '';
  position: absolute;
  left: -0.8rem;
  top: 1.2rem;
  width: 10px;
  height: 10px;
  background: var(--blue-500);
  border-radius: 50%;
  border: 2px solid var(--dark-bg);
  z-index: 1;
}

.silsilah-node h4 {
  color: var(--blue-500);
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.silsilah-node .silsilah-dates {
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.silsilah-node p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.silsilah-arrow {
  text-align: center;
  color: var(--gold);
  font-size: 1.3rem;
  padding: 0.2rem 0;
  margin-left: 0.8rem;
}

/* ---------- CITY SECTION ---------- */
.city-header {
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.city-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue-500));
}

.city-header h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.city-header .city-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---------- SITE LIST ---------- */
.site-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.site-item {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  padding: 1.2rem;
  transition: border-color 0.3s;
}

.site-item:hover {
  border-color: var(--blue-600);
}

.site-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--blue-50);
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

.site-info h3 {
  color: var(--blue-500);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.site-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.site-info .site-note {
  font-size: 0.78rem;
  color: var(--gold);
  margin-top: 0.4rem;
  font-style: italic;
}

/* ---------- MAP SECTION ---------- */
.map-placeholder {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

.route-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.route-stop {
  padding: 1rem;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  text-align: center;
}

.route-stop .stop-name {
  color: var(--gold);
  font-size: 1rem;
  font-weight: bold;
}

.route-stop .stop-detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

.route-stop .stop-distance {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  border-top: 1px solid var(--dark-border);
  padding-top: 0.4rem;
}

/* ---------- FOOTER ---------- */
.footer {
  background: linear-gradient(135deg, var(--blue-900) 0%, #1a2030 50%, var(--blue-800) 100%);
  border-top: 1px solid var(--dark-border);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer .footer-text {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.footer .footer-brand {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

/* ---------- TIPS ---------- */
.tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.tip-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
}

.tip-card .tip-icon {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.tip-card h4 {
  color: var(--blue-500);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.tip-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ---------- BLOG SECTION ---------- */
.blog-preview {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--dark-surface);
  border-radius: 10px;
  margin: 2rem 1.5rem;
}

.blog-btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.3s;
}

.blog-btn:hover { transform: translateY(-2px); }

/* ---------- RESPONSIVE ---------- */
@media (min-width: 480px) {
  .hero h1 { font-size: 2.5rem; }
  .stat-box { min-width: 120px; }
  .stat-box .number { font-size: 1.8rem; }
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .route-info { grid-template-columns: repeat(2, 1fr); }
  .site-item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
}

@media (min-width: 768px) {
  .hero h1 { font-size: 2.8rem; }
  .hero .subtitle { font-size: 1.2rem; }
  .section { padding: 4rem 2rem; }
  .section-header h2 { font-size: 1.8rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .tips-grid { grid-template-columns: repeat(3, 1fr); }
  .route-info { grid-template-columns: repeat(3, 1fr); }
  .nav-toggle { display: none; }
  .nav-links { display: flex !important; position: static !important; background: none !important; padding: 0 !important; border: none !important; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 3.2rem; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .tips-grid { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 5rem 2rem; }
}

/* Mobile nav */
@media (max-width: 767px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--dark-border);
    gap: 0.8rem;
  }
  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }
  
  .hero { padding-top: 5rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero .arabic-text { font-size: 1.3rem; }
  .hero-stats { gap: 0.8rem; }
  .stat-box { min-width: 80px; padding: 0.8rem 1rem; }
  .stat-box .number { font-size: 1.4rem; }
  .stat-box .label { font-size: 0.7rem; }
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp 0.5s ease-out forwards; }
.card { animation: fadeInUp 0.4s ease-out forwards; }
