/* ============================================
   PESACH THROUGH THE STONES — SHARED STYLES
   ============================================ */

:root {
  --sand: #F5ECD7;
  --sand-light: #FAF6EC;
  --sand-dark: #E8DCC2;
  --stone: #8B7D6B;
  --stone-dark: #5C5040;
  --stone-deeper: #3A3228;
  --clay: #B8602A;
  --clay-light: #D4823E;
  --clay-dark: #8A4520;
  --parchment: #F0E6D0;
  --ink: #2C241C;
  --ink-light: #4A3F33;
  --gold: #C5A55A;
  --gold-light: #DCC074;
  --teal: #2A6B5E;
  --teal-light: #3A8B7A;
  --blue-ancient: #3D5A80;
  --red-earth: #A0522D;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

  --max-width: 1100px;
  --nav-height: 60px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--sand-light);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--clay); text-decoration: none; }
a:hover { color: var(--clay-dark); }

/* ---- NAV ---- */
.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(44,36,28,0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 1000;
  border-bottom: 1px solid rgba(197,165,90,0.2);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold) !important;
  margin-right: auto;
  letter-spacing: 1px;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--sand-dark);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(44,36,28,0.97);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(160deg, var(--stone-deeper) 0%, #1A150F 40%, #2A2018 100%);
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(197,165,90,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(184,96,42,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 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='%23C5A55A' fill-opacity='0.04'%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");
  opacity: 0.5;
}
.hero-content {
  position: relative;
  text-align: center;
  padding: 40px 24px;
  max-width: 720px;
}
.hero-kicker {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 8vw, 80px);
  font-weight: 700;
  color: var(--sand);
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  color: var(--sand-dark);
  opacity: 0.85;
  line-height: 1.6;
  max-width: 550px;
  margin: 0 auto 36px;
  font-weight: 300;
}
.hero-cta {
  display: inline-block;
  padding: 12px 32px;
  border: 1.5px solid var(--gold);
  color: var(--gold) !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s;
}
.hero-cta:hover {
  background: var(--gold);
  color: var(--ink) !important;
}

/* ---- PAGE HERO (subpages) ---- */
.page-hero {
  padding: calc(var(--nav-height) + 60px) 24px 60px;
  text-align: center;
  background: linear-gradient(160deg, var(--stone-deeper) 0%, #1A150F 100%);
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 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='%23C5A55A' fill-opacity='0.04'%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");
  opacity: 0.5;
}
.page-hero .container { position: relative; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  color: var(--sand);
  font-weight: 700;
  margin-bottom: 12px;
}
.page-hero .page-subtitle {
  color: var(--gold);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 500;
}

/* ---- INTRO ---- */
.intro-block {
  padding: 80px 0;
  background: var(--sand);
  border-bottom: 1px solid var(--sand-dark);
}
.intro-text {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  color: var(--ink-light);
}
.intro-text p { margin-bottom: 20px; }
.dropcap::first-letter {
  font-family: var(--font-display);
  font-size: 64px;
  float: left;
  line-height: 0.8;
  margin: 4px 12px 0 0;
  color: var(--clay);
  font-weight: 700;
}

/* ---- SECTIONS GRID ---- */
.sections-grid {
  padding: 80px 0;
  background: var(--sand-light);
}
.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 48px;
  color: var(--stone-deeper);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  display: block;
  background: white;
  border: 1px solid var(--sand-dark);
  padding: 36px 28px;
  transition: all 0.3s ease;
  text-decoration: none !important;
  color: var(--ink) !important;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: var(--gold);
}
.card-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--stone-deeper);
}
.card p {
  font-size: 15px;
  color: var(--stone);
  line-height: 1.6;
  margin-bottom: 16px;
}
.card-link {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--clay) !important;
}

/* colored top borders */
.card-egypt { border-top: 3px solid var(--clay); }
.card-temple { border-top: 3px solid var(--teal); }
.card-inscriptions { border-top: 3px solid var(--blue-ancient); }
.card-timeline { border-top: 3px solid var(--gold); }

/* ---- FEATURED ---- */
.featured {
  padding: 80px 0;
  background: white;
  border-top: 1px solid var(--sand-dark);
}
.featured-item {
  max-width: 720px;
  margin: 0 auto 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--sand-dark);
}
.featured-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.featured-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--clay);
  background: rgba(184,96,42,0.08);
  padding: 4px 12px;
  margin-bottom: 12px;
}
.featured-item h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--stone-deeper);
  margin-bottom: 12px;
}
.featured-item p {
  color: var(--ink-light);
  line-height: 1.75;
}

/* ---- QUOTE ---- */
.quote-block {
  padding: 80px 0;
  background: var(--stone-deeper);
  text-align: center;
}
.quote-block blockquote {
  max-width: 600px;
  margin: 0 auto;
}
.hebrew-quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 32px);
  color: var(--gold);
  line-height: 1.6;
  margin-bottom: 16px;
  direction: rtl;
}
.quote-translation {
  font-size: 17px;
  color: var(--sand-dark);
  opacity: 0.8;
  font-style: italic;
  margin-bottom: 12px;
}
.quote-block cite {
  color: var(--stone);
  font-size: 14px;
  font-style: normal;
  letter-spacing: 1px;
}

/* ---- CONTENT PAGE ---- */
.page-content {
  padding: 60px 0 80px;
  background: var(--sand-light);
}
.page-body {
  max-width: 760px;
  margin: 0 auto;
}
.artifact {
  background: white;
  border: 1px solid var(--sand-dark);
  padding: 40px 36px;
  margin-bottom: 36px;
  border-left: 4px solid var(--clay);
}
.artifact h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--stone-deeper);
  margin-bottom: 6px;
}
.artifact .artifact-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--clay);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  display: block;
}
.artifact .artifact-location {
  font-size: 13px;
  color: var(--stone);
  margin-bottom: 16px;
  display: block;
}
.artifact p {
  margin-bottom: 16px;
  color: var(--ink-light);
  line-height: 1.8;
}
.artifact p:last-child { margin-bottom: 0; }

.artifact-highlight {
  background: var(--parchment);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  margin: 20px 0;
  font-style: italic;
  color: var(--stone-dark);
}

.artifact.teal-border { border-left-color: var(--teal); }
.artifact.blue-border { border-left-color: var(--blue-ancient); }
.artifact.gold-border { border-left-color: var(--gold); }

.section-intro {
  max-width: 760px;
  margin: 0 auto 40px;
  font-size: 18px;
  color: var(--ink-light);
  line-height: 1.75;
}

/* ---- ARTIFACT IMAGES ---- */
.artifact-img {
  width: 100%;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--sand-dark);
  background: var(--sand);
}
.artifact-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.artifact-img.img-tall img {
  max-height: 420px;
  object-fit: cover;
}
.artifact-img figcaption {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--stone);
  background: var(--sand);
  line-height: 1.5;
  border-top: 1px solid var(--sand-dark);
}
.artifact-img figcaption em {
  color: var(--stone-dark);
  font-style: normal;
  font-weight: 500;
}

.page-hero-img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
  border-bottom: 3px solid var(--gold);
}

.img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
@media (max-width: 600px) {
  .img-row { grid-template-columns: 1fr; }
}
.img-row .artifact-img { margin: 0; }

/* ---- TIMELINE ---- */
.timeline-container {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}
.timeline-container::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding: 24px 28px;
  background: white;
  border: 1px solid var(--sand-dark);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--sand-light);
}
.timeline-item .tl-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--clay);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.timeline-item h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--stone-deeper);
  margin-bottom: 8px;
}
.timeline-item p {
  font-size: 15px;
  color: var(--ink-light);
  line-height: 1.7;
}

/* ---- FOOTER ---- */
.main-footer {
  background: var(--stone-deeper);
  padding: 40px 24px;
  text-align: center;
  color: var(--stone);
  font-size: 14px;
  line-height: 1.6;
}
.main-footer p { margin-bottom: 8px; }
.footer-note { font-size: 12px; opacity: 0.7; }

/* ---- BACK LINK ---- */
.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--stone) !important;
}
.back-link:hover { color: var(--clay) !important; }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content { animation: fadeUp 0.8s ease-out; }
.card { animation: fadeUp 0.6s ease-out backwards; }
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
