/* ============================================
   Communauté Or Shalom (Dollard-des-Ormeaux) - Styles
   Teal + navy from the Or Shalom logo, light header,
   Jost headings / Inter body. Same component contract
   as the other Shul Services sites (site-data.js etc.).
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Or Shalom: teal from the logo, navy from the original site */
  --primary: #188590;
  --primary-light: #22a3ad;
  --primary-dark: #0f5f68;
  --navy: #081b33;
  --navy-light: #12304f;
  --accent: #188590;
  --accent-light: #7fd0d6;
  --accent-dark: #0f5f68;
  --lime: #cbcb64;
  --green: #2f9b68;
  --coral: #e54a35;
  --bg: #f7fafb;
  --bg-warm: #eef5f6;
  --bg-card: #ffffff;
  --text: #1f2a37;
  --text-light: #4e5d6c;
  --text-muted: #7c8a99;
  --border: #dbe4e7;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --font-heading: 'Jost', 'Futura', 'Century Gothic', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
}

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

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

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

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

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.section {
  padding: 100px 0;
}

.section--alt {
  background: var(--bg-warm);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 24px auto 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-transform: uppercase;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn--outline:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-2px);
}

.btn--outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--outline-dark:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Header / Navigation --- */
/* Light header on every page: the teal logo needs a white ground. */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(8, 27, 51, 0.06);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 18px rgba(8, 27, 51, 0.08);
}

.header--solid {
  background: rgba(255, 255, 255, 0.98);
}

.header--solid.scrolled {
  background: rgba(255, 255, 255, 0.98);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
}

.logo-icon {
  height: 54px;
  flex-shrink: 0;
  opacity: 1;
}

.logo-icon img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Navy footer: the teal logo sits on a white tile */
.footer .logo-icon {
  background: #fff;
  border-radius: 12px;
  padding: 6px 10px;
  height: 64px;
}

.logo-text {
  display: none;
}

.logo span {
  display: none;
}

/* The logo IS the image (wordmark included); the generic span rule above
   must not hide it. */
.logo span.logo-icon {
  display: inline-flex;
  align-items: center;
  height: 60px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--navy);
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--primary-dark);
  background: var(--bg-warm);
}

/* Member Login — a pill CTA that clearly stands apart from the text nav links */
.nav a.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff !important;
  background: var(--primary);
  font-weight: 600;
  padding: 9px 20px;
  margin-left: 10px;
  border-radius: 50px;
  box-shadow: 0 3px 12px rgba(24,133,144,0.28);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.nav a.nav-login .nav-login-ic { flex-shrink: 0; }
.nav a.nav-login:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(0,0,0,0.28);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  border: 1px solid var(--border);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  color: var(--text) !important;
  padding: 10px 20px;
  font-size: 0.88rem;
  border-radius: 0;
  background: none !important;
}

.dropdown-menu a:hover {
  background: var(--bg-warm) !important;
  color: var(--primary-dark) !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  margin: 6px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/building.jpg') center 40%/cover no-repeat;
  opacity: 0.55;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(8,27,51,0.88) 0%, rgba(8,27,51,0.62) 45%, rgba(15,95,104,0.62) 100%);
  pointer-events: none;
}

/* Geometric decorative pattern */
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(255,255,255,0.5) 50px, rgba(255,255,255,0.5) 51px),
    repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(255,255,255,0.5) 50px, rgba(255,255,255,0.5) 51px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: rgba(127, 208, 214, 0.14);
  border: 1px solid rgba(127, 208, 214, 0.45);
  color: var(--accent-light);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 3.8rem;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero h1 .accent {
  color: var(--accent-light);
}

.hero h1 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.85;
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  text-align: center;
  animation: float 2s ease-in-out infinite;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  margin: 8px auto 0;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* --- Page Hero (for sub-pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 55%, var(--primary-dark) 100%);
  padding: 160px 0 80px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 80%, rgba(34, 163, 173, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
}

.page-hero p {
  font-size: 1.15rem;
  opacity: 0.8;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}

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

.card-body {
  padding: 32px;
}

.card-body h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  text-align: center;
  padding: 48px 32px;
}

.feature-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(24, 133, 144, 0.12), rgba(24, 133, 144, 0.05));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
}

/* --- About Preview (Home) --- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-preview-text h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.about-preview-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-preview-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}

.about-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-image-placeholder {
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 40px;
}

.about-image-placeholder .icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.about-image-placeholder p {
  font-size: 1.1rem;
}

/* Decorative accent bar */
.accent-bar {
  width: 50px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 24px;
}

/* --- Info Boxes / Stats --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--accent);
  font-weight: 700;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* --- Schedule Table --- */
.schedule-block {
  margin-bottom: 48px;
}

.schedule-block h3 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.schedule-table thead {
  background: var(--primary);
  color: #fff;
}

.schedule-table th {
  padding: 16px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.schedule-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

.schedule-table tbody tr:hover {
  background: var(--bg-warm);
}

/* Schedule Tabs */
.schedule-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.schedule-tab {
  padding: 12px 28px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--bg-card);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  transition: all var(--transition);
}

.schedule-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.schedule-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.schedule-content {
  display: none;
}

.schedule-content.active {
  display: block;
}

/* --- Classes List --- */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 28px;
}

.class-card {
  padding: 36px;
  position: relative;
}

.class-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  border-radius: 2px 0 0 2px;
}

.class-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.class-card .class-teacher {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.class-card .class-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.class-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.class-detail .label {
  font-weight: 600;
  color: var(--text);
  min-width: 70px;
}

.zoom-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(24, 133, 144, 0.10);
  color: var(--accent-dark);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 12px;
}

/* --- Rabbi Section --- */
.rabbi-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: start;
}

.rabbi-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 120px;
}

.rabbi-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rabbi-bio h2 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.rabbi-bio .rabbi-title {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.rabbi-bio p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.rabbi-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.rabbi-detail-item {
  background: var(--bg-warm);
  padding: 20px;
  border-radius: var(--radius-md);
}

.rabbi-detail-item h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-dark);
  margin-bottom: 8px;
  font-family: var(--font-body);
}

.rabbi-detail-item p {
  color: var(--text);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* --- Rabbi Quote --- */
.rabbi-quote {
  background: var(--bg-warm);
  border-left: 4px solid var(--accent);
  padding: 24px 28px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
}

.rabbi-bio h3 {
  font-size: 1.3rem;
  margin-top: 32px;
  margin-bottom: 16px;
}

.rabbi-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 20px;
  background: rgba(24, 133, 144, 0.10);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-dark);
  transition: all var(--transition);
}

.rabbi-email:hover {
  background: rgba(24, 133, 144, 0.18);
  color: var(--accent-dark);
}

/* --- Section Divider --- */
.section-divider {
  border: none;
  height: 1px;
  background: var(--border);
  max-width: 200px;
  margin: 80px auto;
}

/* --- Rabbanit Section --- */
.rabbanit-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}

.rabbanit-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 120px;
}

.rabbanit-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

  .rabbanit-photo {
    max-width: 350px;
    margin: 0 auto;
    position: static;
    order: -1;
  }
}

@media (max-width: 768px) {
  .rabbanit-layout {
    grid-template-columns: 1fr;
  }
}

/* --- Membership --- */
.membership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.membership-contact-card {
  padding: 32px;
  text-align: center;
}

.membership-contact-card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.membership-contact-card .role {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.membership-contact-card .contact-info {
  font-size: 0.9rem;
  color: var(--text-light);
}

.membership-contact-card .contact-info a {
  display: block;
  margin-bottom: 4px;
}

/* --- Donate Section --- */
.donate-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.donate-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.donate-icon {
  font-size: 4rem;
  margin-bottom: 24px;
}

.donate-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.donate-method {
  padding: 32px;
  text-align: center;
}

.donate-method h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.donate-method p {
  font-size: 0.9rem;
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay h3 {
  color: #fff;
  font-size: 1.1rem;
}

.gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 3rem;
  height: 100%;
}

/* --- Holidays --- */
.holiday-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.holiday-info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.holiday-info-card p {
  color: var(--text-light);
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.holiday-highlight {
  background: rgba(24, 133, 144, 0.08);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

.holiday-highlight p {
  color: var(--text);
  font-weight: 500;
  margin: 0;
}

/* --- Holiday Feature Cards --- */
.holidays-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1040px;
  margin: 0 auto;
}

.holiday-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.holiday-card-banner {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.holiday-card-banner--purim {
  background: linear-gradient(135deg, #5b2c8e 0%, #7b3fa0 40%, #9b59b6 100%);
}

.holiday-card-banner--pesach {
  background: linear-gradient(135deg, #8a6f19 0%, #c9a227 40%, #dcc154 100%);
}

.holiday-card-banner-icon {
  font-size: 5rem;
  z-index: 1;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.holiday-card-banner-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.5) 20px, rgba(255,255,255,0.5) 21px),
    repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(255,255,255,0.5) 20px, rgba(255,255,255,0.5) 21px);
  pointer-events: none;
}

.holiday-card-date {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.holiday-card-body {
  padding: 32px;
}

.holiday-card-body h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.holiday-card-body .hebrew-name {
  font-size: 1.1rem;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 16px;
  font-style: italic;
}

.holiday-card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 12px;
  line-height: 1.7;
}

.holiday-card-body .holiday-detail-list {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

.holiday-detail-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.holiday-detail-list li:last-child {
  border-bottom: none;
}

.holiday-detail-list .detail-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* --- Upcoming Event Cards --- */
.upcoming-events-grid {
  display: grid;
  /* Cap the column width: with a single event, a 1fr column hands the card the
     whole container and a portrait flyer band becomes absurdly tall. */
  grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
  justify-content: center;
  gap: 32px;
}

.upcoming-event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.upcoming-event-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.event-card-header {
  padding: 28px 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.event-card-header--purim {
  background: linear-gradient(135deg, #5b2c8e, #7b3fa0);
}

.event-card-header--pesach {
  background: linear-gradient(135deg, #8a6f19, #c9a227);
}

.event-card-header-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 15px, rgba(255,255,255,0.5) 15px, rgba(255,255,255,0.5) 16px);
  pointer-events: none;
}

.event-card-header h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 4px;
  position: relative;
}

.event-card-header .event-card-date {
  font-size: 0.9rem;
  opacity: 0.85;
  position: relative;
}

.event-card-body {
  padding: 28px 32px;
}

.event-card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 12px;
  line-height: 1.7;
}

.event-card-body .event-tag {
  display: inline-block;
  background: rgba(24, 133, 144, 0.10);
  color: var(--accent-dark);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 6px;
  margin-bottom: 6px;
}

@media (max-width: 540px) {
  .holidays-grid,
  .upcoming-events-grid {
    grid-template-columns: 1fr;
  }
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 100%);
  padding: 80px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(127, 208, 214, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 16px;
  position: relative;
}

.cta-banner p {
  opacity: 0.8;
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.72);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: #fff;
}

/* --- Events Timeline --- */
.events-timeline {
  max-width: 700px;
  margin: 0 auto;
}

.event-item {
  position: relative;
  padding-left: 40px;
  padding-bottom: 40px;
  border-left: 2px solid var(--border);
}

.event-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.event-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.event-item h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.event-date {
  font-size: 0.85rem;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.event-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .about-preview {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .rabbi-layout {
    grid-template-columns: 1fr;
  }

  .rabbi-photo {
    max-width: 350px;
    margin: 0 auto;
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1100px) {
  :root {
    --header-height: 70px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 0;
    transition: right 0.4s ease;
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
  }

  .nav.open {
    right: 0;
  }

  .nav a {
    width: 100%;
    padding: 14px 0;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav a:hover,
  .nav a.active {
    color: #fff;
    background: transparent;
  }

  /* Drawer over the light header: the toggle must stay visible when open */
  .menu-toggle.open span {
    background: #fff;
  }

  .nav-join {
    width: 100%;
    justify-content: center;
    margin: 10px 0 0;
    padding: 12px 14px;
    color: rgba(255,255,255,0.92);
    border-color: rgba(255,255,255,0.45);
  }

  /* Member Login: a big, centered pill CTA that anchors the bottom of the drawer */
  .nav a.nav-login {
    justify-content: center;
    gap: 9px;
    width: 100%;
    margin: 24px 0 0;
    padding: 15px 20px;
    font-size: 1.05rem;
    border-bottom: none;
    border-radius: 50px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  }
  .nav a.nav-login .nav-login-ic { width: 17px; height: 17px; }

  .nav-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: 4px 0;
    padding: 4px 0;
    display: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    color: rgba(255,255,255,0.7) !important;
    padding: 10px 16px;
  }

  .dropdown-menu a:hover {
    background: rgba(255,255,255,0.05) !important;
    color: var(--accent-light) !important;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .page-hero {
    padding: 130px 0 60px;
  }

  .page-hero h1 {
    font-size: 2.2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .classes-grid {
    grid-template-columns: 1fr;
  }

  .rabbi-details {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 12px 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .logo {
    font-size: 1.05rem;
  }

  .logo span {
    display: none;
  }

  .membership-pricing-grid {
    grid-template-columns: 1fr !important;
  }
}

/* --- Membership Pricing Grid --- */
.membership-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

/* --- Members-only price badge (event tickets + seats) --- */
.member-only-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--primary, #188590);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  vertical-align: middle;
  white-space: nowrap;
}

/* --- Member price label on ticket/seat rows --- */
.ev-member-price {
  color: var(--primary, #188590);
  font-weight: 600;
}

/* ===== Event flyer / photo + full-screen lightbox ===== */

/* The flyer is a fixed-ratio band welded to the bottom of the card header, not
   a loose image dropped between header and body:
   - fixed aspect-ratio so every card in the grid lines up
   - a blurred, scaled copy of the image fills the band, so a PORTRAIT flyer has
     no dead letterbox stripes beside it
   - the real image sits on top with object-fit:contain, so nothing is ever
     cropped -- the full flyer is also one tap away in the lightbox
   - an inset shadow at the top bleeds the header colour down into the image */
.event-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--primary-dark, #0f5f68);
  cursor: zoom-in;
  line-height: 0;
  /* Backstop: never let the band run away, whatever the container width. */
  max-height: 380px;
}

/* A portrait flyer gets a taller band so the poster stays readable; landscape
   photos keep the wide band. Set from the image's real dimensions on load. */
.event-card-media--portrait {
  aspect-ratio: 4 / 5;
  max-height: 520px;
}

.event-card-media__fill {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(22px) saturate(1.25) brightness(0.62);
  transform: scale(1.18);           /* hide the blur's soft edges */
  pointer-events: none;
}

.event-card-media img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform var(--transition);
}

/* Top edge: fade the header colour into the media band so the seam disappears.
   Bottom edge: a slight darkening so the zoom badge always has contrast. */
.event-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(8, 27, 51, 0.45) 0, rgba(8, 27, 51, 0) 42px),
    linear-gradient(to top, rgba(8, 27, 51, 0.30) 0, rgba(8, 27, 51, 0) 70px);
}

.event-card-media__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(8, 27, 51, 0.55);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  transition: background var(--transition), transform var(--transition);
}

.upcoming-event-card:hover .event-card-media img {
  transform: scale(1.03);
}

.upcoming-event-card:hover .event-card-media__zoom {
  background: var(--accent, #188590);
  transform: scale(1.08);
}

.event-card-media:focus-visible {
  outline: 3px solid var(--accent, #188590);
  outline-offset: -3px;
}

.upcoming-event-card--past {
  opacity: 0.92;
}

.upcoming-event-card--past .event-card-header {
  filter: grayscale(0.35);
}

.upcoming-event-card--past .event-card-media img {
  filter: saturate(0.85);
}

/* Past events reuse the upcoming card grid. `.events-timeline` is a narrow
   700px column for the static milestone list; once the portal supplies real
   past events we switch that container to the same responsive card grid. */
.events-timeline.past-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
  justify-content: center;
  gap: 32px;
  max-width: none;
}

/* ---- Lightbox ---- */
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 27, 51, 0.92);
  overscroll-behavior: contain;
}

.img-lightbox.open {
  display: flex;
}

.img-lightbox img {
  max-width: 100%;
  /* Use dynamic viewport units where supported so mobile browser chrome
     (address bar) doesn't push the image out of view. */
  max-height: 92vh;
  max-height: 92dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.img-lightbox__close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 44px;          /* 44px minimum touch target */
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-lightbox__close:hover,
.img-lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 768px) {
  /* Slightly taller ratio on phones: a portrait flyer gets more usable height
     when the card is full-width. */
  .event-card-media {
    aspect-ratio: 4 / 3;
  }

  /* Full-width card on a phone: give a portrait flyer real height. */
  .event-card-media--portrait {
    aspect-ratio: 3 / 4;
  }

  .img-lightbox {
    padding: 12px;
  }

  .events-timeline.past-events-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Event card: flag that sponsorships exist before the modal is opened. */
.event-sponsor-flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(24,133,144,0.14), rgba(24,133,144,0.05));
  border: 1px solid rgba(24,133,144,0.45);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 600;
}

.event-sponsor-flag span {
  color: var(--accent);
  font-size: 0.95rem;
  line-height: 1;
}

/* "Request access" — sits beside Member Login. Deliberately quieter than the
   login pill: most visitors already have a login, or want to sign in. */
.nav-join {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 8px 14px;
  border-radius: 50px;
  border: 1px solid rgba(8, 27, 51, 0.25);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition);
}

.nav-join:hover {
  background: var(--bg-warm);
  color: var(--primary-dark);
  border-color: var(--primary);
}

@media (max-width: 968px) {
  .nav-join { margin-left: 0; margin-top: 8px; }
}

/* Seats left / sold out on an event card, and the adults+children inputs used
   by buyer-specified packages in the checkout. */
.event-seats-left {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-warm);
  color: var(--text-light);
  font-size: 0.82rem;
  font-weight: 600;
}

.event-seats-left.is-low {
  background: rgba(229, 62, 62, 0.10);
  border: 1px solid rgba(229, 62, 62, 0.45);
  color: #c53030;
}

.event-sold-out {
  display: inline-block;
  margin-top: 14px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #4a5568;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ev-heads { display: flex; gap: 10px; flex-shrink: 0; }

.ev-heads label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ev-heads input {
  width: 62px;
  padding: 6px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px;   /* 16px keeps iOS from zooming on focus */
}

/* Holds the date pill over a holiday flyer. Only used when the holiday HAS an
   image — without one the gold .holiday-card-banner carries the pill instead. */
.holiday-card-media { position: relative; }
.holiday-card-media .holiday-card-date { z-index: 2; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); }

/* Rich descriptions (events, classes) — written in the portal with formatting. */
.rich-desc { color: inherit; }
.rich-desc p { margin: 0 0 .6em; }
.rich-desc p:last-child { margin-bottom: 0; }
.rich-desc ul, .rich-desc ol { margin: .3em 0 .6em 1.25em; padding: 0; }
.rich-desc li { margin: .15em 0; }
.rich-desc a { text-decoration: underline; }
.rich-desc blockquote { margin: .4em 0; padding-left: .8em; border-left: 3px solid currentColor; opacity: .85; }

/* Live-content placeholder: shown only until the portal answers. Holds a little
   height so the section does not collapse and jump when the cards arrive. */
.content-loading { min-height: 120px; display: flex; align-items: center; justify-content: center; opacity: .7; margin: 0; }

/* The card a ?event= link points at (from the weekly email). */
.upcoming-event-card.is-linked,
.holiday-feature-card.is-linked {
  box-shadow: 0 0 0 3px var(--accent, #188590), 0 14px 34px rgba(0, 0, 0, 0.14);
}


/* ==========================================================================
   Or Shalom additions
   ========================================================================== */

/* Quick-info strip under the hero */
.info-strip {
  position: relative;
  z-index: 2;
  margin-top: -44px;
}
.info-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.info-cell {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 24px;
  border-right: 1px solid var(--border);
  color: var(--text);
  min-height: 44px;
}
.info-cell:last-child { border-right: none; }
a.info-cell:hover { background: var(--bg-warm); }
.info-ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(24,133,144,0.10);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-ico svg { width: 20px; height: 20px; }
.info-cell b {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.info-cell span { font-size: 0.86rem; color: var(--text-light); line-height: 1.5; }

/* Section eyebrow */
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

/* Hero: the three-star mark from the logo, as a tiny flourish */
.hero-stars {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 18px;
}
.hero-stars span { font-size: 1.1rem; line-height: 1; }
.hero-stars span:nth-child(1) { color: var(--accent-light); }
.hero-stars span:nth-child(2) { color: #6fd1a0; }
.hero-stars span:nth-child(3) { color: var(--lime); }

/* Photo strip (home) */
.photo-strip {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 14px;
}
.photo-strip a, .photo-strip button {
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--navy);
  cursor: zoom-in;
}
.photo-strip a:first-child, .photo-strip button:first-child { grid-row: span 2; }
.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.photo-strip a:hover img, .photo-strip button:hover img { transform: scale(1.05); }

/* Two-column feature (rabbi teaser, garderie/salle teasers) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
.split-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.split-photo--portrait { aspect-ratio: 3 / 4; max-width: 420px; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: 2.1rem; margin-bottom: 16px; }
.split p { color: var(--text-light); margin-bottom: 14px; font-size: 1.03rem; }

.quote {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--navy);
  border-left: 3px solid var(--primary);
  padding: 6px 0 6px 20px;
  margin: 18px 0 22px;
}

/* Teaser cards (garderie, salle) */
.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.teaser {
  display: grid;
  grid-template-columns: 200px 1fr;
  overflow: hidden;
}
.teaser img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
.teaser-body { padding: 26px 28px; }
.teaser-body h3 { font-size: 1.3rem; margin-bottom: 8px; }
.teaser-body p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 14px; }
.link-arrow {
  font-weight: 600;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
.link-arrow:hover { color: var(--primary); gap: 10px; }

/* Long-form text pages (history, garderie) */
.prose { max-width: 780px; margin: 0 auto; }
.prose p { color: var(--text-light); font-size: 1.05rem; margin-bottom: 18px; line-height: 1.85; }
.prose h2 { font-size: 1.8rem; margin: 40px 0 16px; }
.prose h3 { font-size: 1.3rem; margin: 28px 0 12px; }
.prose ul { margin: 0 0 20px 22px; color: var(--text-light); }
.prose li { margin-bottom: 8px; line-height: 1.7; }
.prose figure { margin: 32px 0; }
.prose figure img { width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.prose figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 10px; text-align: center; }
.prose-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }
.prose-2col img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); }

/* Timeline (history) */
.timeline { position: relative; margin: 40px 0; padding-left: 28px; border-left: 2px solid var(--border); }
.tl-item { position: relative; padding-bottom: 28px; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(24,133,144,0.18);
}
.tl-year { font-family: var(--font-heading); font-weight: 600; color: var(--primary-dark); font-size: 1.05rem; letter-spacing: 0.04em; }
.tl-item p { margin: 4px 0 0; color: var(--text-light); }

/* Team cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.team-card { text-align: center; padding: 28px 22px; }
.team-photo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  background: var(--bg-warm);
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(24,133,144,0.25);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: rgba(24,133,144,0.10);
}
.team-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.team-role { color: var(--primary-dark); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.team-card details { margin-top: 14px; text-align: left; }
.team-card summary { cursor: pointer; color: var(--primary-dark); font-weight: 600; font-size: 0.9rem; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.team-card details p { font-size: 0.9rem; color: var(--text-light); margin-top: 10px; }
.people-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.people-list li { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; font-weight: 500; }
.people-list li small { display: block; color: var(--text-muted); font-weight: 400; font-size: 0.82rem; margin-top: 2px; }

/* Gallery */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.gal-grid button {
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--navy);
  cursor: zoom-in;
}
.gal-grid button img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gal-grid button:hover img { transform: scale(1.05); }
.gal-grid button:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.gal-section { margin-bottom: 64px; }
.gal-section h2 { font-size: 1.7rem; margin-bottom: 18px; }

/* Business directory */
.dir-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.dir-filters button {
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}
.dir-filters button:hover { border-color: var(--primary); color: var(--primary-dark); }
.dir-filters button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.dir-card { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.dir-card.is-hidden { display: none; }
.dir-logo {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.dir-logo img { max-height: 72px; max-width: 100%; width: auto; object-fit: contain; }
.dir-logo--text { font-family: var(--font-heading); font-weight: 600; color: var(--primary-dark); font-size: 1.3rem; text-align: center; }
.dir-card h3 { font-size: 1.05rem; }
.dir-cat { font-size: 0.78rem; color: var(--primary-dark); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

/* Holiday schedule cards (Grandes Fêtes) */
.fetes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.fete-card { padding: 0; overflow: hidden; }
.fete-card h3 {
  background: linear-gradient(135deg, var(--navy), var(--primary-dark));
  color: #fff;
  font-size: 1.05rem;
  padding: 14px 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fete-day { padding: 12px 20px 4px; font-weight: 600; color: var(--primary-dark); font-size: 0.9rem; }
.fete-card table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.fete-card td { padding: 7px 20px; border-bottom: 1px solid var(--border); }
.fete-card td:last-child { text-align: right; font-weight: 600; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fete-card tr:last-child td { border-bottom: none; }
.fete-card .fete-day + table tr:first-child td { padding-top: 4px; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-card { padding: 30px; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.contact-card p { color: var(--text-light); margin-bottom: 6px; }
.contact-card a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.contact-list { list-style: none; display: grid; gap: 18px; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 8px 0; border-bottom: 1px solid var(--border); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--navy); }
.hours-table tr:last-child td { border-bottom: none; }

/* Footer extras */
.footer-contact li { list-style: none; margin-bottom: 12px; font-size: 0.9rem; }
.footer-contact li strong { color: #fff; }
.footer-contact a { color: rgba(255,255,255,0.8); }
.footer-contact a:hover { color: var(--accent-light); }
.footer-brand p { color: rgba(255,255,255,0.72); }
.footer-social a svg { width: 18px; height: 18px; }

/* Home events: cap at three cards */
.home-events .upcoming-events-grid > .upcoming-event-card:nth-child(n+4) { display: none; }

@media (max-width: 1024px) {
  .info-strip-grid { grid-template-columns: 1fr 1fr; }
  .info-cell:nth-child(2) { border-right: none; }
  .info-cell:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse > :first-child { order: 0; }
  .split-photo--portrait { margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .teaser-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .info-strip { margin-top: -24px; }
  .info-strip-grid { grid-template-columns: 1fr; }
  .info-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .info-cell:last-child { border-bottom: none; }
  .photo-strip { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 160px 160px; }
  .photo-strip a:first-child, .photo-strip button:first-child { grid-column: span 2; grid-row: span 1; }
  .teaser { grid-template-columns: 1fr; }
  .teaser img { max-height: 200px; }
  .prose-2col { grid-template-columns: 1fr; }
  .hero { min-height: 82vh; }
  .hero-scroll { display: none; }
}

/* --- Language switcher (FR | EN) — in the nav, so it is in the drawer too --- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
  padding: 4px 6px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.lang-switch a {
  padding: 6px 7px !important;
  margin: 0 !important;
  color: var(--text-muted) !important;
  border-radius: 50px;
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  border-bottom: none !important;
  font-size: 0.78rem !important;
}
.lang-switch a.is-current {
  color: var(--primary-dark) !important;
  background: rgba(24, 133, 144, 0.12);
  font-weight: 700;
}
.lang-switch a:hover { color: var(--primary) !important; }
.lang-switch .lang-sep { opacity: 0.45; }
@media (max-width: 1100px) {
  .lang-switch {
    margin: 18px 0 0;
    padding: 0;
    color: rgba(255,255,255,0.6);
  }
  .lang-switch a { color: rgba(255,255,255,0.75) !important; }
  .lang-switch a.is-current { color: #fff !important; background: rgba(255,255,255,0.14); }
}
