/* ============================================
   TheGercicobs — Dark Memorial Stylesheet
   Aesthetic: cinematic / archival / black & gold
   ============================================ */

:root {
  /* Dark palette - matches the existing site */
  --bg: #0f0a06;
  --bg-deep: #0a0604;
  --bg-warm: #1a1108;
  --bg-card: #15100a;
  --bg-elev: #1f160e;

  --ink: #f0e6d2;
  --ink-soft: #c4b393;
  --ink-mute: #8a7a5c;
  --ink-dim: #5c4f3a;

  --gold: #d4a747;
  --gold-soft: #e6c87a;
  --gold-cream: #f3e2b3;
  --gold-deep: #8a6820;

  --crimson: #6b1f1f;
  --crimson-glow: rgba(122, 34, 34, 0.4);

  --line: rgba(212, 167, 71, 0.15);
  --line-strong: rgba(212, 167, 71, 0.3);

  --shadow: rgba(0, 0, 0, 0.6);

  --font-display: 'Frank Ruhl Libre', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-quote: 'Cormorant Garamond', Georgia, serif;

  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at top right, rgba(107, 31, 31, 0.18), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(138, 104, 32, 0.1), transparent 50%),
    radial-gradient(ellipse at center, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.8 0 0 0 0 0.6 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 10, 6, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { font-size: 20px; color: var(--gold); }
.brand-text { font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: 1px; color: var(--ink); }
.main-nav { display: flex; gap: 32px; flex: 1; justify-content: center; }
.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s;
}
.main-nav a:hover { color: var(--gold-soft); }
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}
.main-nav a:hover::after { width: 100%; }
.btn-admin {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 1px;
  padding: 8px 18px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  text-decoration: none;
  transition: all 0.25s;
}
.btn-admin:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 32px;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at top right, rgba(107, 31, 31, 0.25), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(138, 104, 32, 0.12), transparent 60%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cpath d='M200 60L220 180L340 200L220 220L200 340L180 220L60 200L180 180Z' fill='%23d4a747' fill-opacity='0.025'/%3E%3C/svg%3E");
  background-size: 600px;
  opacity: 0.4;
}
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  z-index: 2;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--ink-mute);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 48px;
}
.hero-symbol { color: var(--gold); font-size: 14px; letter-spacing: 0; }
.hero-title { font-family: var(--font-display); line-height: 1; margin-bottom: 32px; }
.title-he {
  display: block;
  font-size: clamp(64px, 11vw, 140px);
  font-weight: 700;
  color: var(--gold-cream);
  letter-spacing: -1px;
  text-shadow: 0 2px 30px rgba(212, 167, 71, 0.15);
}
.title-en {
  display: block;
  font-family: var(--font-quote);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 38px);
  color: var(--gold-soft);
  margin-top: 16px;
  letter-spacing: 1px;
}
.hero-subtitle {
  font-size: 14px;
  color: var(--ink-mute);
  margin-bottom: 80px;
  font-weight: 400;
  letter-spacing: 2px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  max-width: 980px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
  background: rgba(10, 6, 4, 0.4);
}
.stat { text-align: center; padding: 12px 16px; position: relative; }
.stat + .stat::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: var(--line);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700;
  color: var(--gold-cream);
  letter-spacing: 1px;
  margin-bottom: 12px;
  line-height: 1;
}
.stat-label { display: block; font-size: 12px; color: var(--ink-mute); font-weight: 400; letter-spacing: 1px; }
.scroll-indicator {
  position: absolute;
  bottom: 200px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.scroll-indicator span:first-child { display: none; }
.scroll-indicator::before {
  content: '';
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: pulseLine 2.5s ease-in-out infinite;
}
.scroll-indicator .arrow { display: none; }
@keyframes pulseLine { 0%,100%{opacity:0.4;} 50%{opacity:1;} }

/* SECTIONS */
.section { padding: 140px 32px; position: relative; z-index: 2; }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.15;
  color: var(--gold-cream);
  margin-bottom: 56px;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 28px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 70px;
  height: 1px;
  background: var(--gold);
}
.section-intro {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: 64px;
  font-weight: 300;
  line-height: 1.8;
}

/* HISTORY */
.section-history { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prose { max-width: 780px; font-size: 16px; line-height: 1.9; color: var(--ink-soft); font-weight: 300; }
.prose p { margin-bottom: 28px; }
.prose .lead {
  font-size: 20px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.7;
  border-right: 2px solid var(--gold);
  padding-right: 28px;
  margin-bottom: 44px;
}
.prose blockquote {
  margin: 56px 0;
  padding: 36px 40px;
  background: rgba(212, 167, 71, 0.06);
  border-right: 3px solid var(--gold);
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--gold-cream);
}
.prose blockquote p { margin-bottom: 16px; }
.prose blockquote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-mute);
  letter-spacing: 1px;
}

/* TIMELINE */
.section-timeline { background: var(--bg); }

/* GERTSCHIKOV FAMILY SECTION */
.section-gertschikov {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-subtitle {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--gold-soft);
  margin-top: -32px;
  margin-bottom: 56px;
  letter-spacing: 0.5px;
}
.prose-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 28px);
  color: var(--gold-cream);
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.3px;
}
.prose-heading:first-child { margin-top: 0; }

.memorial-list {
  margin: 24px 0 32px 0;
  padding: 24px 28px;
  background: rgba(107, 31, 31, 0.08);
  border-right: 3px solid var(--crimson);
  list-style: none;
}
.memorial-list li {
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  border-bottom: 1px solid rgba(212, 167, 71, 0.08);
}
.memorial-list li:last-child { border-bottom: none; }
.memorial-list li strong { color: var(--gold-cream); font-weight: 500; }

/* Photos at bottom of Gertschikov section */
.ger-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.ger-photo-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.ger-photo-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
}
.ger-photo-frame {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-deep);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ger-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.1);
}
.ger-photo-empty {
  color: var(--ink-mute);
  font-size: 12px;
  letter-spacing: 0.5px;
}
.ger-photo-caption {
  padding: 14px 18px;
  text-align: center;
}
.ger-photo-caption h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--gold-cream);
  letter-spacing: 0.3px;
}

@media (max-width: 600px) {
  .ger-photos { grid-template-columns: 1fr; }
}
.timeline { position: relative; max-width: 900px; margin-top: 60px; }
.timeline::before {
  content: '';
  position: absolute;
  right: 150px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line-strong) 8%, var(--line-strong) 92%, transparent);
}
.timeline-item { display: grid; grid-template-columns: 150px 1fr; gap: 48px; padding: 36px 0; position: relative; }
.timeline-item::after {
  content: '';
  position: absolute;
  right: 144px;
  top: 48px;
  width: 13px;
  height: 13px;
  background: var(--bg);
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  z-index: 2;
}
.timeline-date {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--gold);
  text-align: left;
  padding-top: 4px;
  padding-left: 28px;
  letter-spacing: 0.5px;
}
.timeline-content { padding-right: 32px; }
.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gold-cream);
}
.timeline-content p { color: var(--ink-soft); font-size: 15px; line-height: 1.8; font-weight: 300; }
.timeline-item.ominous::after { border-color: var(--crimson); background: rgba(122, 34, 34, 0.4); }
.timeline-item.tragic::after {
  background: var(--crimson);
  border-color: var(--crimson);
  width: 16px;
  height: 16px;
  right: 142px;
  box-shadow: 0 0 20px var(--crimson-glow);
}
.timeline-item.tragic .timeline-content h3 { color: #d4a8a8; }

/* MAPS */
.section-maps { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.maps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 32px; }
.map-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.map-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8); }
.map-frame { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-deep); cursor: pointer; }
.map-svg, .map-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-caption { padding: 24px 28px; }
.map-caption h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--gold-cream); margin-bottom: 6px; }
.map-source { font-size: 11px; color: var(--ink-mute); letter-spacing: 1px; text-transform: uppercase; }

/* GALLERY */
.section-gallery { background: var(--bg); }

.section-family-gallery {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gallery-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
  position: relative;
}
.gallery-item:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.7); }
.gallery-item .img-wrap { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-deep); position: relative; }
.gallery-item .img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5));
  pointer-events: none;
}
.gallery-item img, .gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s;
  filter: sepia(0.15) brightness(0.92);
}
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.05); filter: sepia(0.1) brightness(1); }
.gallery-item .caption { padding: 18px 22px; }
.gallery-item .caption h4 { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--gold-cream); margin-bottom: 4px; }
.gallery-item .caption p { font-size: 12px; color: var(--ink-mute); letter-spacing: 0.3px; }
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 100px 20px;
  border: 1px dashed var(--line-strong);
  color: var(--ink-soft);
  background: var(--bg-card);
}
.gallery-empty .muted { font-size: 13px; color: var(--ink-mute); margin-top: 8px; }

/* HOLOCAUST */
.section-holocaust {
  background: radial-gradient(ellipse at top, rgba(107, 31, 31, 0.15), transparent 60%), var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-holocaust .section-title { color: #e8c8c8; }
.section-holocaust .section-title::after { background: var(--crimson); }
.holocaust-prose .lead { font-size: 19px; }
.memorial-block {
  margin-top: 100px;
  padding: 80px 220px 80px 40px;
  background: linear-gradient(180deg, var(--bg-warm), var(--bg-deep));
  border: 1px solid var(--gold-deep);
  text-align: center;
  position: relative;
  min-height: 320px;
}
.memorial-candle {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  pointer-events: none;
}
.memorial-candle img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 40px rgba(255, 180, 80, 0.4));
  mix-blend-mode: lighten;
  opacity: 0.95;
}

@media (max-width: 768px) {
  .memorial-block {
    padding: 60px 20px 200px 20px;
  }
  .memorial-candle {
    width: 90px;
    right: 50%;
    top: auto;
    bottom: 20px;
    transform: translateX(50%);
  }
}
.memorial-block::before {
  content: '✡';
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  background: var(--bg);
  color: var(--gold);
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.memorial-text {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: 12px;
  margin-bottom: 16px;
  color: var(--gold-cream);
  text-shadow: 0 0 30px rgba(212, 167, 71, 0.3);
}
.memorial-sub { font-size: 14px; letter-spacing: 3px; color: var(--ink-mute); text-transform: uppercase; }

/* ARCHIVE */
.section-archive { background: var(--bg); }
.resources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.resource-card {
  display: block;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.35s;
}
.resource-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6); background: var(--bg-elev); }
.resource-icon { display: block; font-size: 32px; margin-bottom: 16px; filter: grayscale(0.3); }
.resource-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--gold-cream); margin-bottom: 6px; }
.resource-card p { font-size: 13px; color: var(--ink-mute); }

/* FOOTER */
.site-footer { background: var(--bg-deep); color: var(--ink-soft); padding: 80px 32px; text-align: center; border-top: 1px solid var(--line); }
.footer-mark { font-size: 32px; color: var(--gold); margin-bottom: 20px; }
.footer-title { font-family: var(--font-display); font-size: 18px; font-weight: 500; margin-bottom: 10px; color: var(--ink); letter-spacing: 1px; }
.footer-sub { font-size: 12px; color: var(--ink-mute); letter-spacing: 1.5px; }

/* LIGHTBOX */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(5, 3, 2, 0.97);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.lightbox.open { display: flex; }
.lightbox-inner { max-width: 90vw; max-height: 80vh; display: flex; flex-direction: column; align-items: center; gap: 20px; }
#lightboxImg { max-width: 100%; max-height: 75vh; object-fit: contain; box-shadow: 0 40px 100px rgba(0,0,0,0.9), 0 0 1px var(--gold-deep); }
.lightbox-meta { color: var(--ink); text-align: center; max-width: 700px; }
.lb-caption { font-family: var(--font-display); font-size: 19px; color: var(--gold-cream); margin-bottom: 6px; }
.lb-source { font-size: 12px; color: var(--ink-mute); letter-spacing: 1px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(15, 10, 6, 0.5);
  border: 1px solid var(--line-strong);
  color: var(--gold-soft);
  width: 48px; height: 48px;
  font-size: 24px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s;
}
.lightbox-close { top: 24px; left: 24px; }
.lightbox-prev { right: 24px; top: 50%; transform: translateY(-50%); font-size: 30px; }
.lightbox-next { left: 24px; top: 50%; transform: translateY(-50%); font-size: 30px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-inner { padding: 12px 20px; gap: 12px; }
  .main-nav { display: none; }
  .section { padding: 80px 20px; }
  .hero { padding: 60px 20px; min-height: 90vh; }
  .hero-stats { grid-template-columns: 1fr; padding: 24px 0; }
  .stat + .stat::before { display: none; }
  .stat { border-top: 1px solid var(--line); padding: 20px; }
  .stat:first-child { border-top: 0; }
  .timeline { padding-right: 0; }
  .timeline::before { right: 24px; }
  .timeline-item { grid-template-columns: 1fr; gap: 12px; padding-right: 60px; }
  .timeline-item::after { right: 18px; top: 40px; }
  .timeline-item.tragic::after { right: 16px; }
  .timeline-date { text-align: right; font-size: 13px; }
  .memorial-text { font-size: 40px; letter-spacing: 6px; }
  .maps-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .scroll-indicator { display: none; }
}
