/* ============================================
   IGUD YESHIVOS LUBAVITCH · PROGRAMS PROSPECTUS
   ============================================ */

:root {
  --bg-deep: #1a0a0d;
  --bg-burgundy: #2a0f14;
  --bg-burgundy-light: #4a1820;
  --bg-cream: #fbf7ed;
  --bg-cream-deep: #f5ecda;
  --text-cream: #f5e6d0;
  --text-gold: #d9a55c;
  --text-gold-muted: #c9a878;
  --text-dark: #2a0f14;
  --text-body: #6b4a3a;
  --text-accent: #8b3a3a;
  --text-amber: #a37020;
  --border-cream: #e0d5c0;
  --border-divider: rgba(139, 58, 58, 0.2);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }

/* ============================================
   STICKY NAVIGATION
   ============================================ */
.prospectus-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 10, 13, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 0.5px solid rgba(217, 165, 92, 0.2);
  padding: 12px 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.prospectus-nav::-webkit-scrollbar { display: none; }

.nav-link {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-gold-muted);
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 0.5px solid transparent;
}
.nav-link:hover { color: var(--text-gold); }
.nav-link.active {
  color: var(--text-gold);
  border-color: rgba(217, 165, 92, 0.35);
  background: rgba(217, 165, 92, 0.06);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background:
    radial-gradient(ellipse at top, rgba(217, 165, 92, 0.1) 0%, transparent 60%),
    var(--bg-deep);
  padding: 4rem 2rem 3rem;
  text-align: center;
  color: var(--text-cream);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-logo {
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo img {
  height: 90px;
  width: auto;
}

.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--text-gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 500;
  color: var(--text-cream);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-gold-muted);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-lede {
  font-size: 15px;
  color: #e8d4b0;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 0.5px solid rgba(217, 165, 92, 0.15);
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--text-gold);
  display: block;
}

.stat-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-gold-muted);
  text-transform: uppercase;
}

/* ============================================
   SECTIONS
   ============================================ */
.prospectus {
  background: var(--bg-cream);
}

.section {
  padding: 3rem 1.5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.section-light { background: var(--bg-cream); }
.section-deep { background: var(--bg-cream-deep); }

/* Full-width section backgrounds */
.prospectus > .section {
  max-width: none;
}
.prospectus > .section > * {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.prospectus > .section > .card-grid {
  max-width: 900px;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.section-label {
  font-size: 11px;
  color: var(--text-accent);
  letter-spacing: 0.25em;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-divider {
  flex: 1;
  height: 0.5px;
  background: var(--border-divider);
}

/* ============================================
   CARDS — base
   ============================================ */
.card {
  display: block;
  background: white;
  border: 0.5px solid var(--border-cream);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 14px;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -12px rgba(42, 15, 20, 0.15);
  border-color: rgba(184, 147, 67, 0.4);
}

.card:hover .card-cta::after { transform: translateX(4px); }

/* Eyebrow line above title */
.card-eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-accent);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.card-eyebrow-light { color: var(--text-gold); }
.card-eyebrow-amber { color: var(--text-amber); }

.card-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.card-eyebrow-row .card-eyebrow { margin-bottom: 0; }

.card-tag {
  font-size: 9px;
  color: var(--text-accent);
  background: rgba(139, 58, 58, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Titles */
.card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-dark);
  margin: 0 0 8px;
  line-height: 1.25;
}

.card-title-medium {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--text-dark);
  margin: 0 0 8px;
  line-height: 1.2;
}

.card-title-featured {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--text-dark);
  margin: 0 0 8px;
  line-height: 1.2;
}

.card-title-flagship {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--text-cream);
  margin: 0 0 10px;
  line-height: 1.15;
}

.card-title-heb {
  font-weight: 400;
  font-size: 0.85em;
  color: inherit;
  opacity: 0.85;
}

/* Tagline (the punchy outcome line) */
.card-tagline {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.4;
}

.card-tagline-light {
  font-size: 15px;
  color: var(--text-cream);
  font-weight: 500;
  margin: 0 0 10px;
  line-height: 1.4;
}

/* Description */
.card-desc {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.6;
  margin: 0;
}

.card-desc-light {
  font-size: 13px;
  color: var(--text-gold-muted);
  line-height: 1.7;
  margin: 0 0 14px;
}

/* CTA arrow */
.card-cta {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-gold);
  font-weight: 600;
  display: inline-block;
  margin-top: 4px;
}
.card-cta::after {
  content: ' →';
  display: inline-block;
  transition: transform 0.18s ease;
}

/* ============================================
   CARDS — flagship (dark burgundy)
   ============================================ */
.card-flagship {
  background: linear-gradient(135deg, var(--bg-burgundy-light) 0%, var(--bg-burgundy) 100%);
  color: var(--text-cream);
  padding: 0;
  border: none;
}

.card-flagship:hover {
  border-color: transparent;
}

.card-flagship-grid {
  display: grid;
  grid-template-columns: 1fr 200px;
}

.card-flagship-body {
  padding: 28px 30px;
}

.card-flagship-full {
  padding: 28px 30px;
}

.card-flagship-photo {
  background: #3a1218;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 12px;
}

/* ============================================
   CARDS — featured (white with gold stripe)
   ============================================ */
.card-featured {
  padding-right: 30px;
}

.card-accent {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 6px;
  background: var(--text-gold);
}

/* ============================================
   CARDS — with-photo (white card + dark photo strip)
   ============================================ */
.card-with-photo {
  padding: 0;
}

.card-photo-grid {
  display: grid;
  grid-template-columns: 1fr 200px;
}

.card-photo-body {
  padding: 22px 24px;
}

.card-photo-side {
  background: var(--bg-burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gold);
  min-height: 160px;
  padding: 12px;
}

/* Photo placeholder text */
.photo-placeholder {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--text-gold);
  opacity: 0.7;
  font-weight: 500;
}

/* When a real photo is dropped in, the wrapper div gets a background-image
   and the placeholder span is hidden — see programs.js */
.card-flagship-photo.has-image .photo-placeholder,
.card-photo-side.has-image .photo-placeholder { display: none; }

.card-flagship-photo[style*="background-image"],
.card-photo-side[style*="background-image"] {
  background-size: cover;
  background-position: center;
}

/* ============================================
   CARDS — with top-photo banner (sits in a grid)
   ============================================ */
.card-with-top-photo {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-top-photo {
  height: 130px;
  background-color: var(--bg-burgundy);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.card-top-photo-body {
  padding: 18px 20px 20px;
  flex: 1;
}

@media (max-width: 720px) {
  .card-top-photo { height: 110px; }
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.card-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.card-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.card-grid .card { margin-bottom: 0; }

/* ============================================
   FOOTER
   ============================================ */
.prospectus-footer {
  background: var(--bg-deep);
  color: var(--text-gold-muted);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1.25rem;
  color: var(--text-gold);
}

.footer-divider::before,
.footer-divider::after {
  content: '';
  height: 0.5px;
  background: var(--text-gold);
  width: 40px;
}

.footer-divider span {
  font-size: 10px;
  color: var(--text-gold);
}

.footer-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  color: #e8d4b0;
  letter-spacing: 0.15em;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.footer-contact {
  font-size: 12px;
  color: var(--text-gold-muted);
  line-height: 1.9;
}

/* ============================================
   ANIMATIONS — fade-in on scroll
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card:hover { transform: none; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 720px) {
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .hero-stats { gap: 1.5rem; }
  .section { padding: 2rem 1rem 1.5rem; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .card-flagship-grid,
  .card-photo-grid {
    grid-template-columns: 1fr;
  }
  .card-flagship-photo,
  .card-photo-side {
    min-height: 120px;
    order: -1;
  }
  .card-flagship-body { padding: 22px 24px; }
  .card-title-flagship { font-size: 26px; }
  .card-title-featured { font-size: 22px; }
  .card-title-medium { font-size: 20px; }
  .section-label { font-size: 10px; letter-spacing: 0.18em; }
  .prospectus-nav { padding: 10px 16px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .hero-stats { gap: 1.25rem; }
  .stat-num { font-size: 26px; }
}
