/* Congregation Beth Sholom Chabad — bethsholommineola.com
   Colour is the Chabad logo's (chabadbrand.com): neutrals carry the page,
   dark maroon for large areas, maroon for small high-impact elements. */

:root {
  --maroon: #871a39;
  --maroon-dk: #5d0b30;
  --maroon-xdk: #3f0720;
  --orange: #f27730;
  --ink: #131313;
  --ink-2: #2e2e2d;
  --grey: #555555;
  --mute: #929292;
  --line: #e0e0e0;
  --paper: #f2f2f2;
  --white: #ffffff;

  --display: "ivymode", "Iowan Old Style", Georgia, serif;
  --text: "comma-base", "Gill Sans", "Segoe UI", sans-serif;
  --semi: 500;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --header: 72px;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink-2);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--maroon); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--maroon-dk); }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 400; }
p { margin: 0 0 1em; }
dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.eyebrow {
  margin: 0 0 18px;
  font: var(--semi) 13px/1.2 var(--text);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--maroon);
}
.eyebrow--light { color: #f6b48c; }

/* Buttons: solid, 8px radius, sentence case. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: var(--semi) 16px/1 var(--text); text-decoration: none;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn--orange { background: var(--orange); color: var(--ink); }
.btn--orange:hover { background: #ff8a47; color: var(--ink); }
.btn--ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }
.btn--light { background: var(--white); color: var(--maroon-dk); }
.btn--light:hover { background: var(--paper); color: var(--maroon-dk); }

.textlink { display: inline-block; margin-top: 8px; font-weight: var(--semi); text-decoration: none; }
.textlink span { display: inline-block; transition: transform .2s; }
.textlink:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.top__in {
  max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter);
  height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.mark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.mark__name { font: 400 25px/1 var(--display); letter-spacing: -.005em; }
.mark__place { font: var(--semi) 12px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--maroon); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--maroon); }
.nav .nav__call { color: var(--maroon); font-weight: var(--semi); padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.nav .nav__call:hover { border-color: var(--maroon); }
.menu-btn { display: none; }

@media (max-width: 1020px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: none; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 10px 14px; font: var(--semi) 14px/1 var(--text); color: var(--ink); cursor: pointer;
  }
  .menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
    display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s;
  }
  .menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
  .menu-btn__bars::before { top: -5px; }
  .menu-btn__bars::after { top: 5px; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-5px) rotate(-45deg); }

  .nav {
    position: absolute; top: var(--header); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    box-shadow: 0 18px 30px -20px rgba(0,0,0,.25);
  }
  .js .nav { display: none; }
  .js .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .nav__call { margin-top: 16px; text-align: center; border-bottom: 1px solid var(--line); }
  .no-js .menu-btn { display: none; }
  .no-js .nav { position: static; box-shadow: none; }
}
@media (max-width: 420px) {
  .mark__name { font-size: 21px; }
  .mark__place { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: min(780px, calc(100svh - var(--header) - 110px));
  background: var(--maroon-dk);
}
.hero__photo { order: 2; position: relative; overflow: hidden; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.hero__panel {
  order: 1; position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 72px clamp(28px, 4.5vw, 72px) 150px;
  color: rgba(255,255,255,.86);
}
.hero__title {
  margin: 0 0 22px;
  font: 400 clamp(46px, 5.6vw, 88px)/.98 var(--display);
  letter-spacing: -.015em;
  color: var(--white);
}
.hero__title span { display: block; }
.hero__lead {
  margin: 0 0 34px;
  font: 400 italic clamp(22px, 2vw, 28px)/1.3 var(--display);
  color: #f6b48c;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero__addr { margin: 0; font-size: 15px; color: rgba(255,255,255,.66); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__photo { order: 1; aspect-ratio: 16 / 10; }
  .hero__panel { order: 2; padding: 40px var(--gutter) 130px; }
}

/* ---------- This Shabbat (overlaps the hero) ---------- */
.shabbat { position: relative; z-index: 2; margin-top: -96px; padding: 0 var(--gutter); }
.shabbat__card {
  max-width: 1100px; margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 30px 60px -30px rgba(63,7,32,.35);
  padding: 30px clamp(22px, 3.5vw, 44px) 34px;
}
.shabbat__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.shabbat__title { font: 400 30px/1.1 var(--display); }
.shabbat__when { margin: 0; color: var(--grey); font-size: 15px; }
.shabbat__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.shabbat__cell + .shabbat__cell { border-left: 1px solid var(--line); padding-left: 24px; }
.shabbat__cell dt { font: var(--semi) 13px/1.3 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--maroon); margin-bottom: 10px; }
.shabbat__cell .big { display: block; font: 400 clamp(36px, 3.6vw, 50px)/1 var(--display); color: var(--ink); letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.shabbat__cell .small { display: block; margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--grey); }

@media (max-width: 760px) {
  .shabbat__grid { grid-template-columns: 1fr; gap: 0; }
  .shabbat__cell { display: flex; flex-direction: column; padding: 16px 0; }
  .shabbat__cell + .shabbat__cell { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .shabbat__cell:first-child { padding-top: 0; }
}

/* ---------- The Shul ---------- */
.shul { padding: clamp(80px, 10vw, 140px) 0 clamp(80px, 10vw, 130px); }
.shul__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.shul__title { font: 400 clamp(38px, 4.2vw, 56px)/1.05 var(--display); margin-bottom: 30px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-bottom: 40px; border-top: 1px solid var(--line); }
.facts > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts__wide { grid-column: 1 / -1; }
.facts dt { font: var(--semi) 13px/1.35 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--maroon); margin-bottom: 8px; }
.facts dd { color: var(--ink); font-size: 18px; }
.facts__big { display: block; font: 400 clamp(40px, 4.4vw, 60px)/1 var(--display); letter-spacing: -.015em; font-variant-numeric: lining-nums; white-space: nowrap; }
@media (max-width: 520px) { .facts__big { font-size: 8vw; } .facts { gap: 0 20px; } }
.shul__photo { border-radius: 14px; overflow: hidden; aspect-ratio: 5 / 4; }
.shul__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }

@media (max-width: 860px) {
  .shul__grid { grid-template-columns: 1fr; }
  .shul__photo { order: -1; aspect-ratio: 3 / 2; }
}

/* ---------- Davening Times (dark maroon, parochet bleeds left) ---------- */
.times { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--maroon-xdk); color: rgba(255,255,255,.82); }
.times__photo { position: relative; min-height: 560px; overflow: hidden; }
.times__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 55%; }
.times__body { padding: clamp(64px, 8vw, 110px) clamp(24px, 6vw, 96px); max-width: 680px; }
.times__title { font: 400 clamp(38px, 4vw, 54px)/1.05 var(--display); color: var(--white); margin-bottom: 30px; }
.times__sub { font: 400 clamp(26px, 2.6vw, 34px)/1.1 var(--display); color: var(--white); margin: 52px 0 16px; }
.rows { border-top: 1px solid rgba(255,255,255,.18); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.row dt { font-weight: var(--semi); color: var(--white); }
.row dt small { display: block; font-weight: 400; font-size: 14px; color: rgba(255,255,255,.6); margin-top: 2px; }
.row dt small:empty { display: none; }
.row dd { color: rgba(255,255,255,.86); }
.times__note { margin: 30px 0 0; font-size: 15px; color: rgba(255,255,255,.7); }
.times__note a { color: #f6b48c; white-space: nowrap; }
.times__note a:hover { color: var(--white); }

@media (max-width: 960px) {
  .times { grid-template-columns: 1fr; }
  .times__photo { min-height: 0; aspect-ratio: 16 / 10; }
  .times__body { max-width: none; }
}
@media (max-width: 520px) {
  .row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Leadership ---------- */
.lead { padding: clamp(80px, 10vw, 140px) 0; background: var(--paper); }
.lead__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.lead__light { border-radius: 50%; overflow: hidden; aspect-ratio: 1; max-width: 420px; width: 100%; justify-self: center; box-shadow: 0 0 0 14px var(--white), 0 0 0 15px var(--line); }
.lead__light img { width: 100%; height: 100%; object-fit: cover; }
.lead__title { text-wrap: balance; font: 400 clamp(36px, 4.2vw, 56px)/1.05 var(--display); margin-bottom: 26px; }
.lead__intro { font-size: 20px; line-height: 1.55; color: var(--ink); }
.lead__text p { max-width: 38em; }

@media (max-width: 860px) {
  .lead__grid { grid-template-columns: 1fr; }
  .lead__light { max-width: 240px; justify-self: start; margin-left: 15px; }
}

/* ---------- History ---------- */
.hist { padding: clamp(80px, 10vw, 140px) 0; }
.hist__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 0 clamp(40px, 7vw, 110px); align-items: start; }
.hist__title { font: 400 clamp(38px, 4.2vw, 56px)/1.05 var(--display); margin-bottom: 22px; }
.hist__lead { font-size: 20px; color: var(--ink); max-width: 20em; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); }
.timeline__year { font: 400 clamp(34px, 3.4vw, 46px)/1 var(--display); color: var(--maroon); letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.timeline p { margin: 0; font-size: 18px; color: var(--ink); }

@media (max-width: 860px) {
  .hist__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .timeline li { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
}

/* ---------- Hospital & Eruv ---------- */
.hosp { padding: clamp(80px, 10vw, 140px) 0; background: var(--paper); }
.hosp__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.hosp__title { font: 400 clamp(38px, 4.2vw, 56px)/1.05 var(--display); margin-bottom: 22px; }
.hosp__lead { font-size: 20px; color: var(--ink); max-width: 30em; }
.hosp__sub { font: var(--semi) 14px/1.3 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 38px 0 6px; }
.steps { list-style: none; counter-reset: step; margin: 0 0 36px; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 14px 0 14px 46px; border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--maroon); color: var(--white);
  font: var(--semi) 14px/1 var(--text);
}
.eruv { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 18px 22px; }
.eruv p { margin: 0; }
.eruv__label { font: var(--semi) 13px/1.3 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--maroon); margin-bottom: 4px !important; }
.eruv a { font-weight: var(--semi); white-space: nowrap; }
.hosp__map iframe { display: block; width: 100%; aspect-ratio: 1; min-height: 360px; border: 0; border-radius: 14px; background: var(--paper); filter: grayscale(.35) contrast(1.02); }
.hosp__map .textlink { margin-top: 14px; }

@media (max-width: 860px) {
  .hosp__grid { grid-template-columns: 1fr; }
  .hosp__map iframe { aspect-ratio: 4 / 3; }
}

/* ---------- Contact ---------- */
.contact { padding: clamp(80px, 10vw, 130px) 0; background: var(--maroon-dk); color: rgba(255,255,255,.82); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__title { font: 400 clamp(36px, 4vw, 54px)/1.08 var(--display); color: var(--white); margin-bottom: 30px; max-width: 12em; }
.info { margin-top: 46px; border-top: 1px solid rgba(255,255,255,.18); }
.info > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.info dt { font: var(--semi) 13px/1.6 var(--text); letter-spacing: .1em; text-transform: uppercase; color: #f6b48c; }
.info dd { color: var(--white); overflow-wrap: anywhere; }
.info a { color: var(--white); }
.info a:hover { color: #f6b48c; }
.social { display: flex; gap: 18px; margin-top: 22px; }
.social a { display: inline-flex; color: var(--white); }
.social a:hover { color: #f6b48c; }

.form { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: clamp(24px, 3.5vw, 40px); }
.field { display: block; margin-bottom: 18px; }
.field span { display: block; margin-bottom: 8px; font-size: 14px; font-weight: var(--semi); color: var(--white); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px;
  font: 400 16px/1.4 var(--text); color: var(--ink);
  background: var(--white); border: 1px solid transparent; border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.form .btn { width: 100%; margin-top: 4px; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form__done { margin: 18px 0 0; color: var(--white); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .info > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: rgba(255,255,255,.6); padding: 36px 0; font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 28px; }
.foot p { margin: 0; }
.foot__name { font: 400 20px/1.2 var(--display); color: var(--white); }
.foot a { color: rgba(255,255,255,.85); }
.foot a:hover { color: var(--white); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
