/* ═══════════════════════════════════════════
   DELY SEJARAH DUNIA — Main CSS
   Aesthetic: Ancient Manuscript × Dark Academia
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Crimson+Text:ital,wght@0,400;0,600;1,400;1,600&family=IM+Fell+English:ital@0;1&family=Spectral+SC:wght@400;600&display=swap');

:root {
  --parchment: #f4edd8;
  --parchment-dark: #e8dcc4;
  --ink: #1a1208;
  --sepia: #3d2b1f;
  --aged: #6b4c2a;
  --gold: #c9973a;
  --gold-light: #e8c06a;
  --crimson: #8b1a1a;
  --crimson-light: #c0392b;
  --stone: #8c7b6b;
  --ash: #4a3f35;
  --night: #0d0a06;
  --warm-dark: #1a1208;
  --line: rgba(61,43,31,0.15);
  --glow: rgba(201,151,58,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Crimson Text', Georgia, serif;
  background: var(--night);
  color: var(--parchment);
  line-height: 1.75;
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ── SELECTION ── */
::selection { background: var(--gold); color: var(--ink); }

/* ── PROGRESS BAR ── */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
  z-index: 9999; transition: width 0.1s;
}

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ══════════════ NAVBAR ══════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: rgba(13,10,6,0.0);
  border-bottom: 1px solid transparent;
  transition: all 0.4s;
  backdrop-filter: blur(0px);
}
#navbar.scrolled {
  background: rgba(13,10,6,0.95);
  border-bottom-color: rgba(201,151,58,0.2);
  backdrop-filter: blur(20px);
}
.nav-container { max-width: 1280px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-emblem {
  width: 40px; height: 40px;
  border: 1px solid rgba(201,151,58,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transform: rotate(45deg);
}
.brand-emblem-inner { transform: rotate(-45deg); }
.brand-text strong { display: block; font-family: 'Cinzel', serif; font-size: 16px; letter-spacing: 3px; color: var(--gold); }
.brand-text span { font-family: 'Spectral SC', serif; font-size: 10px; letter-spacing: 2px; color: rgba(244,237,216,0.4); text-transform: uppercase; }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-link { font-family: 'Spectral SC', serif; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(244,237,216,0.55); text-decoration: none; padding: 6px 12px; transition: color 0.2s; }
.nav-link:hover { color: var(--gold); }
.nav-cta { font-family: 'Spectral SC', serif; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); text-decoration: none; border: 1px solid rgba(201,151,58,0.4); padding: 7px 18px; transition: all 0.3s; }
.nav-cta:hover { background: var(--gold); color: var(--ink); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1px; background: var(--parchment); transition: all 0.3s; }

/* ══════════════ HERO ══════════════ */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(13,10,6,0.85) 0%, rgba(13,10,6,0.6) 50%, rgba(13,10,6,0.8) 100%);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: #020408;
}
/* Earth atmosphere glow ring */
#hero::after {
  content: '';
  position: absolute;
  right: -5%; top: 5%;
  width: 55vw; height: 55vw;
  max-width: 820px; max-height: 820px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(30,80,180,0.0) 38%,
    rgba(30,80,180,0.12) 50%,
    rgba(60,140,255,0.10) 58%,
    rgba(100,180,255,0.04) 70%,
    transparent 80%
  );
  pointer-events: none; z-index: 2;
  animation: earthGlow 6s ease-in-out infinite alternate;
}
@keyframes earthGlow {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.03); }
}
.hero-texture {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: linear-gradient(rgba(201,151,58,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(201,151,58,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-container { position: relative; z-index: 3; max-width: 1280px; margin: 0 auto; padding: 120px 40px 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hero-era-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Spectral SC', serif; font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(201,151,58,0.3); padding: 6px 14px;
  margin-bottom: 28px;
}
.era-dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; animation: eraPulse 2s infinite; }
@keyframes eraPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.6)} }

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--parchment);
  margin-bottom: 24px;
  letter-spacing: 2px;
}
.hero-title em {
  font-style: normal;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(201,151,58,0.4);
}
.hero-subtitle {
  font-family: 'Crimson Text', serif;
  font-size: 18px;
  color: rgba(244,237,216,0.6);
  line-height: 1.8;
  margin-bottom: 36px;
  font-style: italic;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  font-family: 'Spectral SC', serif; font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none;
  background: var(--gold); color: var(--ink);
  padding: 14px 28px; transition: all 0.3s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,151,58,0.3); }
.btn-ghost {
  font-family: 'Spectral SC', serif; font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none;
  background: transparent; color: var(--parchment);
  border: 1px solid rgba(244,237,216,0.3); padding: 14px 28px; transition: all 0.3s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* HERO RIGHT — timeline teaser */
.hero-timeline {
  display: flex; flex-direction: column; gap: 0;
}
.htl-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(201,151,58,0.12);
  cursor: pointer; transition: all 0.3s; text-decoration: none;
}
.htl-item:hover { padding-left: 8px; }
.htl-item:hover .htl-year { color: var(--gold); }
.htl-year {
  font-family: 'Cinzel', serif; font-size: 13px; font-weight: 700;
  color: rgba(201,151,58,0.6); min-width: 90px; padding-top: 2px;
  transition: color 0.3s;
}
.htl-body h5 { font-family: 'Cinzel', serif; font-size: 14px; color: var(--parchment); margin-bottom: 4px; }
.htl-body p { font-size: 13px; color: rgba(244,237,216,0.45); line-height: 1.6; }
.htl-marker {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--gold); margin-top: 6px; flex-shrink: 0;
  background: transparent; transition: background 0.3s;
}
.htl-item:hover .htl-marker { background: var(--gold); }

/* ══════════════ BREAKING TICKER ══════════════ */
.era-ticker {
  background: linear-gradient(90deg, var(--crimson), #6b0f0f);
  height: 38px; display: flex; align-items: center; overflow: hidden;
  border-top: 1px solid rgba(201,151,58,0.3);
  border-bottom: 1px solid rgba(201,151,58,0.3);
}
.et-label {
  flex-shrink: 0; padding: 0 20px;
  font-family: 'Spectral SC', serif; font-size: 10px; letter-spacing: 3px;
  color: var(--gold); border-right: 1px solid rgba(201,151,58,0.3); height: 100%;
  display: flex; align-items: center; white-space: nowrap;
}
.et-track { flex: 1; overflow: hidden; }
.et-inner {
  display: flex; white-space: nowrap;
  animation: etScroll 70s linear infinite;
}
.et-inner span {
  font-family: 'Crimson Text', serif; font-size: 14px;
  color: rgba(255,255,255,0.8); padding: 0 48px;
}
@keyframes etScroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ══════════════ SECTION BASE ══════════════ */
section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-family: 'Spectral SC', serif; font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(201,151,58,0.3);
  padding: 5px 16px; margin-bottom: 20px;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900; letter-spacing: 2px;
  color: var(--parchment); margin-bottom: 16px; line-height: 1.2;
}
.section-desc {
  font-family: 'Crimson Text', serif; font-style: italic;
  font-size: 17px; color: rgba(244,237,216,0.5); max-width: 600px; margin: 0 auto;
}
.divider-ornament {
  text-align: center; margin: 20px 0 0;
  color: rgba(201,151,58,0.4); letter-spacing: 8px; font-size: 12px;
}

/* ══════════════ PERADABAN GRID ══════════════ */
#peradaban { background: var(--night); }
.peradaban-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.perad-card {
  position: relative; overflow: hidden;
  aspect-ratio: 3/4; cursor: pointer;
  group: true;
}
.perad-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.4s;
  filter: sepia(40%) brightness(0.7);
}
.perad-card:hover .perad-img { transform: scale(1.06); filter: sepia(20%) brightness(0.85); }
.perad-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(13,10,6,0.95) 0%, rgba(13,10,6,0.2) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px 24px;
}
.perad-era {
  font-family: 'Spectral SC', serif; font-size: 9px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.perad-name {
  font-family: 'Cinzel', serif; font-size: 20px; font-weight: 700;
  color: var(--parchment); margin-bottom: 6px; line-height: 1.2;
}
.perad-date { font-family: 'Crimson Text', serif; font-size: 13px; color: rgba(244,237,216,0.5); font-style: italic; margin-bottom: 12px; }
.perad-desc { font-size: 13px; color: rgba(244,237,216,0.6); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.perad-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: 28px; background: rgba(13,10,6,0.6);
  width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(201,151,58,0.3);
}

/* ══════════════ PERANG DUNIA (TIMELINE) ══════════════ */
#perang { background: linear-gradient(180deg, var(--night) 0%, #0f0b07 100%); }
.perang-layout { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 40px; position: relative; }
.perang-divider { background: linear-gradient(180deg, transparent, rgba(201,151,58,0.4), transparent); }
.perang-side { display: flex; flex-direction: column; gap: 32px; }
.perang-side.ww2 { padding-top: 48px; }
.pw-header {
  font-family: 'Cinzel', serif; font-size: 28px; font-weight: 900; letter-spacing: 3px;
  color: var(--parchment); margin-bottom: 4px;
}
.pw-header span { color: var(--gold); }
.pw-period {
  font-family: 'Spectral SC', serif; font-size: 11px; letter-spacing: 2px;
  color: var(--stone); margin-bottom: 24px;
}
.pw-event {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px;
  background: rgba(255,255,255,0.02); border-left: 2px solid rgba(201,151,58,0.2);
  transition: all 0.3s;
}
.pw-event:hover { background: rgba(201,151,58,0.05); border-left-color: var(--gold); }
.pw-event-year {
  font-family: 'Cinzel', serif; font-size: 12px; font-weight: 700;
  color: var(--gold); min-width: 50px; padding-top: 2px;
}
.pw-event-body h5 { font-family: 'Cinzel', serif; font-size: 14px; color: var(--parchment); margin-bottom: 4px; }
.pw-event-body p { font-size: 14px; color: rgba(244,237,216,0.5); line-height: 1.6; }
.pw-photo {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  filter: sepia(50%) brightness(0.7); border: 1px solid rgba(201,151,58,0.2);
  transition: filter 0.4s;
}
.pw-photo:hover { filter: sepia(20%) brightness(0.85); }
.pw-stats { display: flex; gap: 0; border: 1px solid rgba(201,151,58,0.15); }
.pw-stat {
  flex: 1; padding: 16px; text-align: center;
  border-right: 1px solid rgba(201,151,58,0.1);
}
.pw-stat:last-child { border-right: none; }
.pw-stat-num {
  font-family: 'Cinzel', serif; font-size: 22px; font-weight: 700;
  color: var(--gold); display: block; margin-bottom: 4px;
}
.pw-stat-label { font-size: 11px; color: rgba(244,237,216,0.35); font-family: 'Spectral SC', serif; letter-spacing: 1px; }

/* ══════════════ ARTIKEL SEJARAH ══════════════ */
#artikel { background: #0a0806; }
.artikel-filter {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 48px;
}
.afil-btn {
  font-family: 'Spectral SC', serif; font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; padding: 7px 18px; cursor: pointer;
  background: none; border: 1px solid rgba(201,151,58,0.2);
  color: rgba(244,237,216,0.45); transition: all 0.2s;
}
.afil-btn:hover, .afil-btn.active { border-color: var(--gold); color: var(--gold); }

.artikel-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
}
.art-card {
  background: rgba(255,255,255,0.02); overflow: hidden;
  display: flex; flex-direction: column; transition: all 0.3s;
  border: 1px solid rgba(201,151,58,0.05);
}
.art-card:hover { border-color: rgba(201,151,58,0.25); transform: translateY(-4px); }
.art-card.featured { grid-column: span 2; flex-direction: row; }

.art-img {
  position: relative; overflow: hidden;
}
.art-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: sepia(40%) brightness(0.7);
  transition: filter 0.4s, transform 0.6s;
}
.art-card:hover .art-img img { filter: sepia(20%) brightness(0.85); transform: scale(1.04); }
.art-img-ph {
  width: 100%; background: var(--sepia);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}
.art-card:not(.featured) .art-img { height: 220px; }
.art-card:not(.featured) .art-img-ph { height: 220px; }
.art-card.featured .art-img { flex: 0 0 45%; }
.art-tag {
  position: absolute; bottom: 12px; left: 12px;
  font-family: 'Spectral SC', serif; font-size: 9px; letter-spacing: 2px;
  background: var(--gold); color: var(--ink); padding: 4px 10px;
  text-transform: uppercase;
}
.art-hot { position: absolute; top: 12px; right: 12px; background: var(--crimson); color: #fff; font-size: 10px; font-family: 'Spectral SC', serif; letter-spacing: 1px; padding: 4px 10px; }

.art-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.art-meta { font-size: 12px; color: rgba(244,237,216,0.3); font-family: 'Spectral SC', serif; letter-spacing: 1px; margin-bottom: 10px; }
.art-body h3 { font-family: 'Cinzel', serif; font-size: 16px; line-height: 1.4; color: var(--parchment); margin-bottom: 12px; }
.art-card.featured .art-body h3 { font-size: 20px; }
.art-body p { font-size: 14px; color: rgba(244,237,216,0.5); line-height: 1.7; flex: 1; }
.art-read { display: inline-block; margin-top: 16px; font-family: 'Spectral SC', serif; font-size: 11px; letter-spacing: 2px; color: var(--gold); text-decoration: none; transition: color 0.2s; }
.art-read:hover { color: var(--gold-light); }

/* ══════════════ QUOTE/KUTIPAN SEJARAH ══════════════ */
#kutipan {
  background: linear-gradient(135deg, var(--crimson) 0%, #3d0a0a 100%);
  text-align: center; padding: 80px 0;
  position: relative; overflow: hidden;
}
#kutipan::before {
  content: '❝';
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  font-size: 200px; color: rgba(255,255,255,0.04);
  font-family: 'Cinzel', serif; line-height: 1;
}
.kutipan-text {
  font-family: 'IM Fell English', serif; font-size: clamp(20px,3vw,34px);
  font-style: italic; color: #fff; max-width: 800px; margin: 0 auto 24px;
  line-height: 1.6; position: relative; z-index: 1;
}
.kutipan-source { font-family: 'Spectral SC', serif; font-size: 12px; letter-spacing: 3px; color: rgba(255,255,255,0.5); }
.kutipan-nav { display: flex; gap: 16px; justify-content: center; margin-top: 32px; }
.kq-btn { background: none; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.5); width: 36px; height: 36px; cursor: pointer; font-size: 14px; transition: all 0.2s; }
.kq-btn:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

/* ══════════════ TOKOH SEJARAH ══════════════ */
#tokoh { background: var(--night); }
.tokoh-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.tokoh-card {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(201,151,58,0.1);
  padding: 28px 20px; text-align: center; transition: all 0.3s; cursor: pointer;
}
.tokoh-card:hover { border-color: rgba(201,151,58,0.4); transform: translateY(-4px); background: rgba(201,151,58,0.04); }
.tokoh-avatar {
  width: 80px; height: 80px; margin: 0 auto 16px;
  border: 1px solid rgba(201,151,58,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; background: rgba(201,151,58,0.08);
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
}
.tokoh-name { font-family: 'Cinzel', serif; font-size: 14px; color: var(--parchment); margin-bottom: 4px; }
.tokoh-role { font-family: 'Spectral SC', serif; font-size: 10px; letter-spacing: 1px; color: var(--gold); margin-bottom: 10px; }
.tokoh-desc { font-size: 13px; color: rgba(244,237,216,0.45); line-height: 1.6; }

/* ══════════════ KONTAK ══════════════ */
#kontak { background: #0a0806; }
.kontak-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.kontak-left .section-title { text-align: left; }
.kontak-left .section-tag { display: block; margin-bottom: 16px; }
.kontak-left > p { font-size: 15px; color: rgba(244,237,216,0.5); line-height: 1.8; margin-bottom: 32px; font-style: italic; }
.ki-list { display: flex; flex-direction: column; gap: 12px; }
.ki-item { display: flex; gap: 16px; align-items: center; padding: 14px 16px; background: rgba(201,151,58,0.04); border-left: 2px solid rgba(201,151,58,0.3); }
.ki-item span { font-size: 18px; }
.ki-item strong { display: block; font-family: 'Spectral SC', serif; font-size: 10px; letter-spacing: 2px; color: rgba(244,237,216,0.4); margin-bottom: 3px; }
.ki-link-email { color: #6ab4ff; text-decoration: none; font-size: 15px; }
.ki-link-email:hover { text-decoration: underline; }
.ki-link-wa { color: #5de08a; text-decoration: none; font-size: 15px; }
.ki-link-wa:hover { text-decoration: underline; }
.ki-item p { color: rgba(244,237,216,0.6); font-size: 15px; margin: 0; }

.kontak-form { display: flex; flex-direction: column; gap: 16px; }
.fg label { display: block; font-family: 'Spectral SC', serif; font-size: 10px; letter-spacing: 2px; color: rgba(244,237,216,0.4); margin-bottom: 6px; }
.fg input, .fg textarea, .fg select {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(201,151,58,0.2);
  color: var(--parchment); padding: 12px 14px; font-family: 'Crimson Text', serif; font-size: 15px;
  outline: none; transition: border-color 0.2s;
}
.fg input:focus, .fg textarea:focus, .fg select:focus { border-color: var(--gold); }
.fg select option { background: var(--warm-dark); }
.fg textarea { resize: vertical; }
.captcha-box { display: none; } /* legacy — tidak dipakai lagi */
.fg { position: relative; }
.fg-err {
  display: none; font-size: 12px; color: #ff8a80;
  font-family: 'Crimson Text', serif; font-style: italic;
  margin-top: 4px; padding-left: 2px;
}
.fg input.invalid, .fg textarea.invalid { border-color: #ff8a80 !important; }
.fg input.valid,   .fg textarea.valid   { border-color: rgba(129,199,132,0.5); }
.btn-kirim:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-kirim {
  background: var(--gold); color: var(--ink); border: none;
  padding: 14px 32px; font-family: 'Spectral SC', serif; font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; cursor: pointer; transition: all 0.3s; width: 100%;
}
.btn-kirim:hover { background: var(--gold-light); }
.form-ok, .form-err { font-size: 14px; font-style: italic; display: none; padding: 8px 0; }
.form-ok { color: #81c784; } .form-err { color: #ff8a80; }

/* ══════════════ FOOTER ══════════════ */
footer { background: var(--night); border-top: 1px solid rgba(201,151,58,0.2); }
.footer-main { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.fb-logo { font-family: 'Cinzel', serif; font-size: 18px; letter-spacing: 3px; color: var(--gold); margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: rgba(244,237,216,0.35); line-height: 1.7; font-style: italic; margin-bottom: 16px; }
.footer-contact-q { display: flex; flex-direction: column; gap: 6px; }
.fcq-email { color: #6ab4ff; text-decoration: none; font-size: 13px; }
.fcq-wa   { color: #5de08a; text-decoration: none; font-size: 13px; }
.fcq-email:hover, .fcq-wa:hover { text-decoration: underline; }
.footer-links h5 { font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 2px; color: var(--gold); margin-bottom: 16px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: rgba(244,237,216,0.35); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(201,151,58,0.1); padding: 20px 0; }
.fb-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; }
.fb-inner p { font-size: 12px; color: rgba(244,237,216,0.25); font-family: 'Spectral SC', serif; letter-spacing: 1px; }
.fb-seals { display: flex; gap: 12px; }
.fb-seal { font-size: 11px; font-family: 'Spectral SC', serif; letter-spacing: 1px; color: rgba(201,151,58,0.4); border: 1px solid rgba(201,151,58,0.15); padding: 4px 10px; }

/* ══════════════ REVEAL ANIMATIONS ══════════════ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ══════════════ GALERI FOTO ══════════════ */
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 4px;
  padding: 0 4px;
}
.galeri-item {
  position: relative; overflow: hidden;
  cursor: pointer;
}
.galeri-item.tall { grid-row: span 2; }
.galeri-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: sepia(40%) brightness(0.65) contrast(1.1);
  transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.4s;
}
.galeri-item:hover img { transform: scale(1.08); filter: sepia(10%) brightness(0.85) contrast(1.05); }
.galeri-ph {
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  font-size:56px;
}
.galeri-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(6,4,2,0.98) 0%, rgba(6,4,2,0.4) 70%, transparent 100%);
  padding: 40px 18px 18px;
  transform: translateY(60%);
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.galeri-item:hover .galeri-caption { transform: translateY(0); }
.galeri-era {
  display: inline-block;
  font-family: 'Spectral SC', serif; font-size: 9px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold);
  background: rgba(201,151,58,0.15); border: 1px solid rgba(201,151,58,0.3);
  padding: 3px 8px; margin-bottom: 8px;
}
.galeri-caption h4 {
  font-family: 'Cinzel', serif; font-size: 14px; color: var(--parchment);
  line-height: 1.3; margin-bottom: 6px;
}
.galeri-caption p {
  font-size: 12px; color: rgba(244,237,216,0.55); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

@media(max-width:1024px) {
  .galeri-grid { grid-template-columns: repeat(3,1fr); }
}
@media(max-width:768px) {
  .galeri-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: 200px; }
  .galeri-item.tall { grid-row: span 1; }
  .galeri-caption { transform: translateY(0); background: linear-gradient(to top, rgba(6,4,2,0.9) 0%, transparent 100%); }
}
@media(max-width:480px) {
  .galeri-grid { grid-template-columns: 1fr; }
}

/* ══════════════ BLUEPRINT SENJATA ══════════════ */
.bp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bp-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(201,151,58,0.12);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  display: flex; flex-direction: column;
}
.bp-card:hover { border-color: rgba(201,151,58,0.4); transform: translateY(-4px); }

.bp-era-badge {
  font-family: 'Spectral SC', serif; font-size: 9px; letter-spacing: 2px;
  text-transform: uppercase; padding: 6px 14px;
  display: inline-block;
}
.bp-era-badge.ww2    { background: rgba(139,26,26,0.4); color: #ff9999; border-bottom: 1px solid rgba(139,26,26,0.5); }
.bp-era-badge.romawi { background: rgba(107,76,42,0.4); color: #e8c06a; border-bottom: 1px solid rgba(107,76,42,0.5); }
.bp-era-badge.mongol { background: rgba(30,70,20,0.4);  color: #90c870; border-bottom: 1px solid rgba(30,70,20,0.5); }
.bp-era-badge.persia { background: rgba(100,50,0,0.4);  color: #ffb060; border-bottom: 1px solid rgba(100,50,0,0.5); }

.bp-img-wrap {
  width: 100%; height: 200px;
  overflow: hidden; position: relative;
  background: #0d0b08;
}
.bp-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(30%) brightness(0.75) contrast(1.1);
  transition: filter 0.4s, transform 0.6s;
}
.bp-card:hover .bp-img-wrap img { filter: sepia(10%) brightness(0.9); transform: scale(1.04); }

/* blueprint grid overlay */
.bp-img-wrap::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(201,151,58,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,151,58,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.bp-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.bp-name {
  font-family: 'Cinzel', serif; font-size: 16px; font-weight: 700;
  color: var(--parchment); margin-bottom: 4px; line-height: 1.3;
}
.bp-year {
  font-family: 'Spectral SC', serif; font-size: 10px; letter-spacing: 2px;
  color: var(--gold); margin-bottom: 12px;
}
.bp-desc {
  font-size: 13px; color: rgba(244,237,216,0.55); line-height: 1.7;
  flex: 1; margin-bottom: 16px;
}
.bp-specs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: rgba(201,151,58,0.1);
  border: 1px solid rgba(201,151,58,0.1);
  margin-bottom: 16px;
}
.bps-item {
  background: rgba(6,4,2,0.9);
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.bps-label {
  font-family: 'Spectral SC', serif; font-size: 8px; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(244,237,216,0.3);
}
.bps-val {
  font-family: 'Cinzel', serif; font-size: 12px; color: var(--gold);
  font-weight: 600;
}
.bp-link {
  font-family: 'Spectral SC', serif; font-size: 11px; letter-spacing: 2px;
  color: var(--gold); text-decoration: none; display: inline-block;
  border-bottom: 1px solid rgba(201,151,58,0.3);
  padding-bottom: 2px; transition: all 0.2s; align-self: flex-start;
}
.bp-link:hover { color: var(--gold-light); border-bottom-color: var(--gold); }

@media(max-width:1024px) { .bp-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:600px)  { .bp-grid { grid-template-columns: 1fr; } }

/* ── HAMBURGER ACTIVE ANIMATION ── */
.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.hamburger span { transition: transform 0.25s ease, opacity 0.2s; }

/* ── BODY SCROLL LOCK when menu open ── */
body.menu-open { overflow: hidden; }
