/* ============================================================
   Pischei Olam — Main Stylesheet
   ============================================================ */

/* Google Fonts are loaded via <link> in each HTML file */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --navy:      #1B2A4A;
  --navy-dark: #111d35;
  --gold:      #C9A84C;
  --gold-light:#dfc07a;
  --white:     #FFFFFF;
  --light-gray:#F5F5F5;
  --mid-gray:  #CCCCCC;
  --dark-gray: #333333;
  --text:      #444444;
  --shadow:    0 4px 20px rgba(0,0,0,0.10);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.15);
  --radius:    8px;
  --transition:0.3s ease;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

ul { list-style: none; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 0.6rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-family: var(--font-head);
  color: var(--navy);
  margin-bottom: 1.2rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #666;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy); }
.text-white  { color: var(--white); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201,168,76,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

/* ── Layout helpers ─────────────────────────────────────────── */
.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
  box-sizing: border-box;
}

.section {
  padding: 5rem 0;
  overflow-x: hidden;
}

.section-light  { background: var(--white); }
.section-gray   { background: var(--light-gray); }
.section-navy   { background: var(--navy); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* Prevent grid children from overflowing their column */
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }

.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem auto 2rem;
  border-radius: 2px;
}
.divider-left { margin-left: 0; }

/* ── Navigation ─────────────────────────────────────────────── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: var(--navy-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  padding-left: 3rem;
  cursor: pointer;
}

.logo::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.6rem;
  background: rgba(201, 168, 76, 0.65) url('https://pay.banquest.com/images/banners/975e250d656241aab423eeea2f024453.png') center/contain no-repeat;
  border-radius: 3px;
}

.logo-hebrew {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
  direction: rtl;
}

.logo-english {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  transition: all var(--transition);
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(255,255,255,0.07);
}

.nav-links .btn {
  padding: 0.45rem 1.2rem;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.4rem;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav dropdown */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--navy-dark);
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition);
  text-transform: uppercase;
}

.nav-mobile a:hover { color: var(--gold); background: rgba(255,255,255,0.05); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dark overlay so text remains readable over video */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 40, 0.68);
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 2rem 1rem;
}

.hero-hebrew {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--gold);
  direction: rtl;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-english {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.78);
  margin-bottom: 2.2rem;
  font-style: italic;
  letter-spacing: 0.06em;
}

.hero-divider {
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin: 1rem auto 1.5rem;
  opacity: 0.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Inner page hero (shorter) */
.page-hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(201,168,76,0.10) 0%, transparent 60%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.012) 40px,
      rgba(255,255,255,0.012) 41px
    );
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  padding: 2rem 1rem;
}

.page-hero-hebrew {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--gold);
  direction: rtl;
  margin-bottom: 0.5rem;
}

.page-hero h1 { color: var(--white); margin-bottom: 0.5rem; }

.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.breadcrumb {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Mission Columns ─────────────────────────────────────────── */
.mission-icon {
  width: 70px;
  height: 70px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.8rem;
  color: var(--gold);
  box-shadow: 0 4px 16px rgba(27,42,74,0.2);
}

.mission-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.mission-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.mission-card h3 { color: var(--navy); margin-bottom: 0.75rem; }
.mission-card p  { color: #666; font-size: 0.95rem; line-height: 1.7; margin: 0; }

/* ── Timeline / Schedule ─────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--navy));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item:nth-child(odd)  { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-content {
  width: calc(50% - 2.5rem);
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
}

.timeline-item:nth-child(odd)  .timeline-content { margin-right: auto; text-align: right; }
.timeline-item:nth-child(even) .timeline-content { margin-left:  auto; text-align: left;  }

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1.2rem;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: var(--gold);
  border: 3px solid var(--navy);
  border-radius: 50%;
  z-index: 2;
}

.timeline-time {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.timeline-content h4 { color: var(--navy); margin-bottom: 0.25rem; }
.timeline-content p  { color: #666; font-size: 0.9rem; margin: 0; }

/* ── Feature Cards ───────────────────────────────────────────── */
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 { color: var(--navy); margin-bottom: 0.5rem; }
.feature-card p  { color: #666; font-size: 0.93rem; margin: 0; }

/* ── Rabbi / Staff Cards ─────────────────────────────────────── */
.rabbi-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.rabbi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.rabbi-avatar {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--navy) 0%, #2a4070 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--gold);
}

.rabbi-info {
  padding: 1.5rem;
}

.rabbi-info h3 { color: var(--navy); margin-bottom: 0.2rem; }

.rabbi-title {
  font-size: 0.88rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.rabbi-info p { color: #666; font-size: 0.92rem; margin: 0; }

/* ── Quote Banner ─────────────────────────────────────────────── */
.quote-banner {
  background: var(--navy);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-banner::before {
  content: '❝';
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12rem;
  color: rgba(201,168,76,0.06);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.quote-text {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--gold);
  direction: rtl;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.quote-translation {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  font-style: italic;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.quote-source {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

/* ── Dorm Preview ─────────────────────────────────────────────── */
.dorm-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 420px;
}

.dorm-preview-img {
  background: linear-gradient(135deg, #2a4070 0%, var(--navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.9;
}

.dorm-preview-content {
  background: var(--light-gray);
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dorm-preview-content h2 { margin-bottom: 1rem; }
.dorm-preview-content p  { color: #666; margin-bottom: 1.5rem; }

/* ── Info Blocks ─────────────────────────────────────────────── */
.info-block {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.info-block-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold);
}

.info-block-text h4 { color: var(--navy); margin-bottom: 0.3rem; }
.info-block-text p  { color: #666; font-size: 0.93rem; margin: 0; }

/* ── Schedule Table ──────────────────────────────────────────── */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}

.schedule-table thead {
  background: var(--navy);
  color: var(--white);
}

.schedule-table thead th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.schedule-table tbody tr:nth-child(even) { background: var(--light-gray); }
.schedule-table tbody tr:nth-child(odd)  { background: var(--white); }

.schedule-table tbody tr:hover { background: rgba(201,168,76,0.08); }

.schedule-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: middle;
}

.schedule-table td:first-child {
  font-weight: 700;
  color: var(--navy);
  white-space: normal;
}

.schedule-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: var(--navy);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

/* ── Steps / Process ─────────────────────────────────────────── */
.step-list {
  counter-reset: steps;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.step-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  counter-increment: steps;
  text-align: center;
}

.step-item::before {
  content: counter(steps);
  display: block;
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-family: var(--font-head);
}

.step-item h4 { color: var(--navy); margin-bottom: 0.5rem; }
.step-item p  { color: #666; font-size: 0.92rem; margin: 0; }

/* ── Form ────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--mid-gray);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark-gray);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,42,74,0.10);
}

.form-group textarea { min-height: 130px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

/* ── Contact Info ─────────────────────────────────────────────── */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gold);
}

.contact-item h4 { color: var(--navy); margin-bottom: 0.2rem; font-size: 0.95rem; }
.contact-item p  { color: #666; font-size: 0.92rem; margin: 0; line-height: 1.5; }

.map-placeholder {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--navy) 0%, #2a4070 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 1.5rem;
}

.map-placeholder .map-icon { font-size: 2.5rem; }

/* ── Highlight Box ───────────────────────────────────────────── */
.highlight-box {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  margin: 2rem 0;
}

.highlight-box h3 { color: var(--gold); margin-bottom: 0.75rem; }
.highlight-box p  { color: rgba(255,255,255,0.8); margin: 0; }

/* ── Stat Bar ────────────────────────────────────────────────── */
.stat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 3rem 0;
}

.stat-item {
  flex: 1;
  min-width: 150px;
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ── Image Grid (placeholder) ────────────────────────────────── */
.img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.img-placeholder {
  aspect-ratio: 4/3;
  width: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, #2a4070 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--gold);
  opacity: 0.85;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .img-placeholder { height: auto !important; }
}

.img-placeholder.tall { grid-row: span 2; aspect-ratio: auto; }

/* ── Checklist ───────────────────────────────────────────────── */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text);
  font-size: 0.95rem;
}

.checklist li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 50%;
  margin-top: 0.1rem;
}

/* ── Values Grid ─────────────────────────────────────────────── */
.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
  transition: transform var(--transition);
}

.value-card:hover { transform: translateX(4px); }
.value-card h4 { color: var(--navy); margin-bottom: 0.5rem; }
.value-card p  { color: #666; font-size: 0.92rem; margin: 0; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
  overflow-x: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo { margin-bottom: 1rem; }

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,0.6);
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}

.social-btn:hover {
  background: var(--gold);
  color: var(--navy);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-col ul { padding: 0; }

.footer-col ul li { margin-bottom: 0.55rem; }

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}

.footer-contact-item span:first-child { color: var(--gold); font-size: 1rem; margin-top: 0.1rem; }

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a { color: var(--gold); }
.footer-bottom a:hover { text-decoration: underline; }

/* ── Fade-in animation ───────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ── Utility ─────────────────────────────────────────────────── */
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mb-0  { margin-bottom: 0; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.py-sm { padding: 2.5rem 0; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4        { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .dorm-preview  { grid-template-columns: 1fr; }
  .dorm-preview-img { height: 260px; }
}

@media (max-width: 768px) {
  .section         { padding: 3.5rem 0; }

  /* All grids collapse to single column and override any inline gap */
  .grid-2,
  .grid-3,
  .grid-4          { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .form-row        { grid-template-columns: 1fr; }
  .img-grid        { grid-template-columns: 1fr 1fr; }

  /* Nav: hide links, show hamburger */
  .nav-links       { display: none; }
  .hamburger       { display: flex; }

  .timeline::before { left: 20px; transform: none; }
  .timeline-item    { flex-direction: column !important; padding-left: 3rem; }
  .timeline-content { width: 100%; text-align: left !important; }
  .timeline-dot     { left: 20px; top: 1.2rem; transform: translateX(-50%); }

  .footer-grid     { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom   { flex-direction: column; text-align: center; }

  /* Stat bar: stack vertically, no min-width forcing overflow */
  .stat-bar        { flex-direction: column; }
  .stat-item       { min-width: 0; width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:last-child { border-bottom: none; }

  .dorm-preview-content { padding: 2rem 1.5rem; }

  .hero-cta { flex-direction: column; align-items: center; }
  .btn      { width: 100%; max-width: 280px; }

  /* All text wraps — prevent any string from breaking layout */
  * { overflow-wrap: break-word; word-break: break-word; }

  /* Except these which should retain their natural sizing */
  img, svg, video, .logo-img, .rabbi-avatar, .mission-icon,
  .stat-number, .timeline-dot { word-break: normal; overflow-wrap: normal; }
}

@media (max-width: 480px) {
  .container { width: 94%; }
  .img-grid  { grid-template-columns: 1fr; }
  .form-card { padding: 1.5rem; }

  /* Page hero text sizing */
  .page-hero h1 { font-size: 1.6rem; }
  .page-hero p  { font-size: 0.95rem; }

  /* Reduce padding on cards so content isn't squeezed */
  .value-card,
  .contact-dept,
  .process-step,
  .highlight-box  { padding: 1.25rem; }

  /* Tables: horizontal scroll within their own container only */
  .schedule-table,
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
