/* ==========================================================================
   Congregation Shaarei Shamayim — site.css
   Palette: #000000 · #00bbff · #ffffff · supporting greys
   Type:    Newsreader (display) · Public Sans (body / UI)
   ========================================================================== */

:root {
  --black: #000000;
  --ink: #141517;
  --white: #ffffff;
  --sky: #00bbff;
  --sky-deep: #0087ba;      /* accessible link colour on white */
  --sky-tint: #e8f8ff;
  --g100: #f5f6f7;
  --g200: #e5e7ea;
  --g300: #cfd3d8;
  --g500: #6b7079;
  --g700: #3a3e44;
  --g900: #1c1e21;

  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --max: 1250px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 9vw, 120px);
  --radius: 3px;
  --nav-h: 84px;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--black);
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 400; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
strong { font-weight: 600; }
blockquote { margin: 0; }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--g200); margin: 2rem 0; }
table { border-collapse: collapse; width: 100%; }
sup { font-size: 0.7em; line-height: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 780px); margin-inline: auto; }
/* Top bar, header and mobile nav run edge to edge (gutter only, no max-width). */
.topbar .wrap, .header .wrap, .mobile-nav .wrap { width: calc(100% - 2 * var(--gutter)); max-width: none; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--grey { background: var(--g100); }
.section--black { background: var(--black); color: var(--white); }
.section--black h1, .section--black h2, .section--black h3, .section--black h4 { color: var(--white); }
.section--black a { color: var(--sky); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Eyebrow: the small "gate bar" label that opens each section */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--body); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--g500);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--sky); }
.section--black .eyebrow { color: var(--g300); }

.lede { font-size: 1.2rem; line-height: 1.55; color: var(--g700); max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-size: 0.95rem; font-weight: 600;
  padding: 14px 24px; border-radius: var(--radius);
  border: 2px solid var(--black); background: var(--black); color: var(--white);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  line-height: 1.1; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--sky); border-color: var(--sky); color: var(--black); text-decoration: none; }
.btn--sky { background: var(--sky); border-color: var(--sky); color: var(--black); }
.btn--sky:hover { background: var(--white); border-color: var(--white); }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.section--black .btn--ghost { color: var(--white); border-color: var(--white); }
.section--black .btn--sky { color: var(--black); }
.section--black .btn--sky:hover { background: var(--white); color: var(--black); }
.section--black .btn--ghost:hover { background: var(--white); color: var(--black); }
.btn svg { width: 16px; height: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------------
   Top bar + header
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--sky); color: var(--black);
  font-size: 0.85rem; font-weight: 600;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.topbar a { color: var(--black); }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.topbar p { margin: 0; line-height: 1.2; }
.topbar .tagline { display: none; }
@media (min-width: 900px) { .topbar .tagline { display: block; font-weight: 500; } }

.header {
  background: var(--black); color: var(--white);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid #222;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-h); gap: 24px; }
.brand img { height: 64px; width: auto; }
.brand { display: flex; align-items: center; }

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav li { position: relative; }
.nav a, .nav button { white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--white); font-family: var(--body); font-size: 0.92rem; font-weight: 500;
  padding: 10px 12px; background: none; border: 0; cursor: pointer; border-radius: var(--radius);
  line-height: 1;
}
.nav a:hover, .nav button:hover, .nav li.is-current > a { color: var(--sky); text-decoration: none; }
.nav .has-sub > a::after, .nav .has-sub > button::after {
  content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.nav .sub {
  display: none; position: absolute; top: 100%; left: 0; min-width: 240px;
  background: var(--white); color: var(--black); padding: 8px; border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,.25); flex-direction: column; gap: 0;
}
.nav .sub a { color: var(--black); width: 100%; padding: 10px 12px; font-weight: 500; }
.nav .sub a:hover { background: var(--g100); color: var(--black); }
.nav .has-sub:hover > .sub, .nav .has-sub:focus-within > .sub { display: flex; }
.nav .nav-cta a { background: var(--sky); color: var(--black); margin-left: 10px; padding: 11px 16px; font-weight: 600; }
.nav .nav-cta a:hover { background: var(--white); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 1px solid #444; color: var(--white); border-radius: var(--radius);
  padding: 10px 14px; font-family: var(--body); font-weight: 600; font-size: 0.9rem; cursor: pointer;
}
.nav-toggle span.bars { display: inline-block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle span.bars::before, .nav-toggle span.bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-toggle span.bars::before { top: -6px; } .nav-toggle span.bars::after { top: 6px; }

/* Mobile drawer */
.mobile-nav {
  display: none; background: var(--black); border-top: 1px solid #222;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px 0 16px; }
.mobile-nav li { border-bottom: 1px solid #1f1f1f; }
.mobile-nav a { display: block; color: var(--white); padding: 14px 0; font-weight: 500; }
.mobile-nav .sub { padding-left: 18px; }
.mobile-nav .sub a { color: var(--g300); font-size: 0.95rem; padding: 10px 0; }
.mobile-nav .sub li { border: 0; }

@media (min-width: 1000px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative; background: var(--black); color: var(--white);
  min-height: clamp(520px, 78vh, 760px); display: flex; align-items: flex-end; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,.82) 100%);
}
.hero .wrap { position: relative; padding-block: clamp(48px, 7vw, 96px); }
.hero h1 { color: var(--white); max-width: 14ch; margin-bottom: 0.4em; }
.hero p { font-size: clamp(1.1rem, 1.7vw, 1.35rem); max-width: 52ch; color: #e9ecef; margin-bottom: 1.6em; }
.hero__rule { width: 72px; height: 3px; background: var(--sky); margin-bottom: 24px; }
.hero .btn--ghost { color: var(--white); border-color: var(--white); }
.hero .btn--ghost:hover { background: var(--white); color: var(--black); }

/* Quick links strip */
.quicklinks { background: var(--white); border-bottom: 1px solid var(--g200); }
.quicklinks ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.quicklinks li { border-left: 1px solid var(--g200); display: flex; }
.quicklinks li:first-child { border-left: 0; }
.quicklinks a {
  flex: 1; display: flex; align-items: center; gap: 14px; padding: 22px 20px;
  color: var(--black); font-weight: 600; font-size: 0.98rem;
}
.quicklinks a:hover { background: var(--g100); text-decoration: none; color: var(--black); }
.quicklinks a:hover svg { stroke: var(--black); }
.quicklinks svg { width: 22px; height: 22px; stroke: var(--sky); flex: none; }
.quicklinks small { display: block; font-weight: 400; color: var(--g500); font-size: 0.82rem; }
@media (max-width: 899px) {
  .quicklinks ul { grid-template-columns: 1fr 1fr; }
  .quicklinks li { border-top: 1px solid var(--g200); }
  .quicklinks li:nth-child(odd) { border-left: 0; }
}
@media (max-width: 520px) {
  .quicklinks ul { grid-template-columns: 1fr; }
  .quicklinks li { border-left: 0; }
}

/* Two-column feature */
.split { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.2fr 0.8fr; } .split--rev { grid-template-columns: 0.8fr 1.2fr; } .split--rev > :first-child { order: 2; } }
.split img { border-radius: var(--radius); width: 100%; }
.split img.portrait { max-width: 340px; margin-inline: auto; }
.prose p { max-width: 62ch; }
.prose--wide p { max-width: none; }
.intro-row { margin-bottom: clamp(32px, 5vw, 64px); }
.pull {
  font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.4;
  border-left: 3px solid var(--sky); padding-left: 22px; margin: 1.8rem 0 0; color: var(--g700); max-width: 56ch;
}
.pull cite { display: block; font-family: var(--body); font-style: normal; font-size: 0.82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--g500); margin-top: 10px; }

/* Statement band (Torah slide copy) */
.statement { text-align: center; }
.statement h2 { max-width: 20ch; margin-inline: auto; }
.statement p { max-width: 50ch; margin: 0 auto; color: var(--g300); }
.statement .statement__cta { font-family: var(--display); font-size: 1.5rem; color: var(--white); margin: 2.2rem auto 1.2rem; }

/* Cards */
.cards { display: grid; gap: 24px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white); border: 1px solid var(--g200); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
}
.card__media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body h3 { margin: 0; font-size: 1.35rem; }
.card__body p { margin: 0; color: var(--g700); }
.card__body .more { margin-top: auto; font-weight: 600; color: var(--black); padding-top: 8px; }
.card__body .more:hover { color: var(--sky-deep); }

/* Sermons block */
.sermons { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 900px) { .sermons { grid-template-columns: 1.1fr 0.9fr; } }
.sermon-feature { border-top: 3px solid var(--black); padding-top: 22px; }
.sermon-feature time, .sermon-list time, .entry-meta time { font-size: 0.82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--g500); font-weight: 600; }
.sermon-feature h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 10px 0 8px; }
.sermon-feature .subtitle { font-family: var(--display); font-size: 1.25rem; color: var(--g700); margin-bottom: 14px; }
.sermon-list { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--black); }
.sermon-list li { border-bottom: 1px solid var(--g200); }
.sermon-list a { display: flex; flex-direction: column; gap: 3px; padding: 14px 0; color: var(--black); font-weight: 500; }
.sermon-list a:hover { color: var(--sky-deep); text-decoration: none; }
.sermon-list .end { padding-top: 18px; }

/* Payments */
.pay { display: grid; gap: 24px; }
@media (min-width: 800px) { .pay { grid-template-columns: 1fr 1fr; } }
.pay__box { background: var(--white); border: 1px solid var(--g200); border-radius: var(--radius); padding: 28px; }
.pay__box h3 { margin-bottom: 6px; }
.pay__box p { color: var(--g700); }
.pay__box select {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--g300); border-radius: var(--radius);
  background: var(--white); margin: 12px 0 16px;
}
.pay__box input[type="image"] { max-width: 100%; height: auto; }
.pay__box img[height="1"] { display: none; }

/* --------------------------------------------------------------------------
   Inner page header
   -------------------------------------------------------------------------- */
.page-head { background: var(--black); color: var(--white); padding: clamp(40px, 6vw, 72px) 0; }
.page-head h1 { color: var(--white); margin-bottom: 0.2em; }
.page-head .crumbs { font-size: 0.85rem; color: var(--g300); margin-bottom: 22px; }
.page-head .gatebar { margin-bottom: 18px; }
.page-head { border-bottom: 6px solid var(--sky); }
.page-head .crumbs a { color: var(--g300); }
.page-head .crumbs span { margin: 0 8px; color: var(--g500); }
.page-head .lede { color: var(--g300); }

/* Generic content styles */
.content { font-size: 1.05rem; }
.content img { border-radius: var(--radius); }
.content h2, .content h3 { margin-top: 1.6em; }
.content .float-img { float: left; margin: 6px 24px 12px 0; width: 158px; }
.content table td, .content table th { padding: 10px 12px; border-bottom: 1px solid var(--g200); vertical-align: top; text-align: left; }
.content table p { margin: 0; }
.content a { text-decoration: underline; text-underline-offset: 3px; }

/* Schedule of services */
.schedule { display: grid; gap: 20px; }
@media (min-width: 760px) { .schedule { grid-template-columns: repeat(2, 1fr); } }
.sched-block { border: 1px solid var(--g200); border-radius: var(--radius); padding: 24px; background: var(--white); }
.sched-block h3 { font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase; font-family: var(--body); font-weight: 700; margin-bottom: 14px; }
.sched-block h3::after { content: ""; display: block; width: 28px; height: 3px; background: var(--sky); margin-top: 10px; }
.sched-day { padding: 10px 0; border-top: 1px solid var(--g200); }
.sched-day:first-of-type { border-top: 0; }
.sched-day strong { display: block; }
.sched-day ul { list-style: none; margin: 4px 0 0; padding: 0; color: var(--g700); font-size: 0.97rem; }
.sched-standing { background: var(--black); color: var(--white); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.sched-standing strong { font-family: var(--display); font-weight: 400; font-size: 1.6rem; }
.sched-standing span { color: var(--sky); font-weight: 600; font-size: 1.2rem; }

/* Religious school calendar */
.cal { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--black); }
.cal li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--g200); }
.cal li.off { color: var(--g500); }
.cal li.off .what::before { content: "No school · "; font-weight: 600; color: var(--black); }
.cal .when { font-weight: 600; }
@media (max-width: 480px) { .cal li { grid-template-columns: 1fr; gap: 2px; } }
.cal-meta { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 28px; }
.cal-meta div { border-left: 3px solid var(--sky); padding-left: 14px; }
.cal-meta small { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: 0.75rem; color: var(--g500); font-weight: 600; }

/* Organization */
.org { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 700px) { .org { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .org { grid-template-columns: 1fr 1fr 1fr; } }
.org li { border: 1px solid var(--g200); border-radius: var(--radius); padding: 20px 22px; background: var(--white); }
.org small { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: 0.74rem; color: var(--g500); font-weight: 600; margin-bottom: 6px; }
.org strong { display: block; font-family: var(--display); font-size: 1.25rem; font-weight: 500; }
.org a { display: block; font-size: 0.92rem; word-break: break-all; margin-top: 4px; }

/* Audio exercises */
.audio-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.audio-item { border: 1px solid var(--g200); border-radius: var(--radius); padding: 20px 22px; background: var(--white); display: grid; gap: 10px; }
.audio-item h3 { margin: 0; font-size: 1.2rem; }
.audio-item audio, .audio-item video { width: 100%; border-radius: var(--radius); }
.audio-item .meta { font-size: 0.82rem; color: var(--g500); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

/* Article / sermon entry */
.entry-meta { margin-bottom: 18px; }
.entry { font-size: 1.08rem; }
.entry p { max-width: 68ch; }
.entry img { border-radius: var(--radius); margin: 1rem 0; }
.entry-nav { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--g200); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Archive */
.archive-year { margin-top: 32px; }
.archive-year summary { cursor: pointer; font-family: var(--display); font-size: 1.6rem; padding: 12px 0; border-top: 1px solid var(--g200); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.archive-year summary::-webkit-details-marker { display: none; }
.archive-year summary small { font-family: var(--body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--g500); }
.archive-year[open] summary { color: var(--sky-deep); }
.archive-list { list-style: none; margin: 0; padding: 0 0 16px; columns: 1; }
@media (min-width: 760px) { .archive-list { columns: 2; column-gap: 40px; } }
.archive-list li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--g100); display: flex; gap: 14px; }
.archive-list time { flex: none; width: 92px; font-size: 0.8rem; color: var(--g500); font-weight: 600; padding-top: 3px; }
.archive-list a { color: var(--black); font-weight: 500; }
.archive-list span.na { color: var(--g700); }
.filter { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 24px 0 8px; }
.filter input { font: inherit; padding: 12px 14px; border: 1px solid var(--g300); border-radius: var(--radius); flex: 1; min-width: 220px; }
.filter select { font: inherit; padding: 12px 14px; border: 1px solid var(--g300); border-radius: var(--radius); background: var(--white); }

.list-simple { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--black); }
.list-simple li { border-bottom: 1px solid var(--g200); }
.list-simple a { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; color: var(--black); font-weight: 500; }
.list-simple a:hover { color: var(--sky-deep); text-decoration: none; }
.list-simple time { flex: none; width: 110px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--g500); font-weight: 600; }
@media (max-width: 520px) { .list-simple a { flex-direction: column; gap: 4px; } }

/* Videos */
.videos { display: grid; gap: 24px; }
@media (min-width: 760px) { .videos { grid-template-columns: 1fr 1fr; } }
.video { position: relative; aspect-ratio: 16/9; background: var(--black); border-radius: var(--radius); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video--single { max-width: 900px; margin-inline: auto; }

/* Forms */
.form { display: grid; gap: 18px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; }
.form legend { font-family: var(--display); font-size: 1.5rem; font-weight: 500; padding: 0; margin: 12px 0 4px; width: 100%; border-top: 1px solid var(--g200); padding-top: 22px; }
.form .row { display: grid; gap: 18px; }
@media (min-width: 700px) { .form .row--2 { grid-template-columns: 1fr 1fr; } .form .row--3 { grid-template-columns: 1fr 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field label .req { color: var(--sky-deep); }
.field input, .field textarea, .field select {
  font: inherit; padding: 12px 14px; border: 1px solid var(--g300); border-radius: var(--radius); background: var(--white); width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--sky); outline: 3px solid var(--sky-tint); }
.field textarea { min-height: 150px; resize: vertical; }
.choices { display: grid; gap: 10px; }
.choices label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--g200); border-radius: var(--radius); cursor: pointer; }
.choices label:hover { border-color: var(--sky); }
.choices input { margin-top: 4px; accent-color: var(--sky-deep); }
.form .note { color: var(--g500); font-size: 0.9rem; }
.form-placeholder { background: var(--sky-tint); border: 1px dashed var(--sky); padding: 14px 16px; border-radius: var(--radius); font-size: 0.9rem; color: var(--g700); }

/* Contact */
.contact { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 900px) { .contact { grid-template-columns: 0.9fr 1.1fr; } }
.contact-card { display: grid; gap: 22px; }
.contact-card .item { display: flex; gap: 16px; align-items: flex-start; }
.contact-card svg { width: 22px; height: 22px; stroke: var(--sky); flex: none; margin-top: 4px; }
.contact-card small { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: 0.74rem; color: var(--g500); font-weight: 600; }
.contact-card .item > div > a, .contact-card .item > div > span { font-size: 1.15rem; font-weight: 500; color: var(--black); }
.map { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--g200); background: var(--g100); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------------------------
   Community footer (.sp-bottom) + footer
   -------------------------------------------------------------------------- */
.community { background: var(--g100); border-top: 1px solid var(--g200); padding-block: clamp(48px, 6vw, 80px); }
.community .grid { display: grid; gap: 36px; }
@media (min-width: 700px) { .community .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .community .grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; } }
.community h3 { font-family: var(--body); font-size: 0.78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.community h3::after { content: ""; display: block; width: 24px; height: 3px; background: var(--sky); margin-top: 8px; }
.community address { font-style: normal; line-height: 1.7; }
.community address strong { font-family: var(--display); font-size: 1.35rem; font-weight: 500; display: block; margin-bottom: 4px; }
.community ul { list-style: none; margin: 0; padding: 0; }
.community li { padding: 5px 0; }
.community a { color: var(--black); font-weight: 500; }
.community a:hover { color: var(--sky-deep); }
.community .badge img { max-width: 220px; border-radius: var(--radius); border: 1px solid var(--g200); background: var(--white); }
.community .badge--tall img { max-width: 170px; }

.footer { background: var(--black); color: var(--g300); font-size: 0.9rem; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding-block: 28px; }
.footer p { margin: 0; }
.footer .motto { color: var(--white); font-family: var(--display); font-size: 1.05rem; }
.footer a { color: var(--white); }
.footer img { height: 30px; opacity: .85; }

/* Helper */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ==========================================================================
   Home v2 — editorial / institutional layout
   ========================================================================== */
.gatebar { display: block; width: 64px; height: 10px; border-top: 3px solid var(--sky); border-bottom: 3px solid var(--sky); margin-bottom: 26px; }
.section-head { display: flex; flex-direction: column; margin-bottom: 36px; }
.section-head h2 { margin: 0; }
h2 em { font-style: italic; color: var(--sky-deep); }

/* Hero: black text panel over the sanctuary photo */
.hero2 { position: relative; background: var(--black); overflow: hidden; }
.hero2__photo { position: absolute; inset: 0; }
.hero2__photo video { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero2__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,0) 100%); }
.hero2__grid { position: relative; min-height: clamp(560px, 72vh, 720px); display: flex; align-items: center; padding-block: clamp(56px, 8vw, 110px) clamp(96px, 12vw, 150px); }
.hero2__panel { background: rgba(0,0,0,.8); color: var(--white); padding: clamp(32px, 4vw, 52px); max-width: 620px; border-left: 6px solid var(--sky); }
.hero2__panel h1 { color: var(--white); font-size: clamp(2.5rem, 4.8vw, 3.9rem); margin-bottom: .45em; }
.hero2__panel p { color: #d9dde3; font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 44ch; margin-bottom: 1.6em; }
.hero2 .btn--ghost { color: var(--white); border-color: #555; }
.hero2 .btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--black); }

/* Tiles pulled up over the hero */
.tiles { position: relative; z-index: 2; margin-top: -76px; }
.tiles ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.tiles li { display: flex; }
.tiles a { flex: 1; display: flex; align-items: center; gap: 14px; padding: 22px 40px 22px 20px; background: var(--white); color: var(--black); border-right: 1px solid var(--g200); position: relative; transition: background .18s ease; }
.tiles li:last-child a { border-right: 0; }
.tiles a:hover { background: var(--black); color: var(--white); text-decoration: none; }
.tile__icon { flex: none; width: 48px; height: 48px; display: grid; place-items: center; background: var(--sky); color: var(--black); }
.tile__icon svg { width: 24px; height: 24px; stroke: currentColor; }
.tile__text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.tile__text strong { font-size: .95rem; line-height: 1.2; }
.tile__text small { color: var(--g500); font-size: .82rem; }
.tiles a:hover small { color: var(--g300); }
.tiles a > svg { position: absolute; right: 16px; top: 50%; margin-top: -9px; width: 18px; height: 18px; opacity: 0; transform: translateX(-6px); transition: opacity .18s, transform .18s; }
.tiles a:hover > svg { opacity: 1; transform: none; }
@media (max-width: 999px) { .tiles ul { grid-template-columns: 1fr 1fr; } .tiles li:nth-child(2) a { border-right: 0; } .tiles li:nth-child(-n+2) a { border-bottom: 1px solid var(--g200); } }
@media (max-width: 560px) { .tiles { margin-top: -40px; } .tiles ul { grid-template-columns: 1fr; } .tiles a { border-right: 0; border-bottom: 1px solid var(--g200); } }

/* About: offset frame + quote panel */
.about2 { padding-top: calc(var(--section) + 20px); }
.about2__grid { display: grid; gap: clamp(36px, 6vw, 88px); align-items: start; }
@media (min-width: 960px) { .about2__grid { grid-template-columns: 0.85fr 1.15fr; } }
.about2__photo { display: grid; gap: 28px; }
.frame { position: relative; padding: 0 22px 22px 0; max-width: 360px; }
.frame::before { content: ""; position: absolute; inset: 22px 0 0 22px; background: var(--sky); }
.frame img { position: relative; width: 100%; }
.quote-panel { background: var(--black); color: var(--white); padding: 28px 30px; border-left: 6px solid var(--sky); max-width: 420px; }
.quote-panel p { font-family: var(--display); font-size: 1.3rem; line-height: 1.4; margin: 0 0 12px; }
.quote-panel cite { font-style: normal; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); font-weight: 600; }
.about2__text h2 { margin-bottom: .6em; }

/* Black band with Hebrew watermark */
.band { position: relative; background: var(--black); color: var(--white); overflow: hidden; }
.band h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3.2rem); max-width: 14ch; }
.band .eyebrow { color: var(--g300); }
.band__lede { color: var(--g300); font-size: 1.1rem; max-width: 46ch; }
.band__mark { position: absolute; right: 2vw; top: 50%; transform: translateY(-50%); font-family: "Times New Roman", "David", "Frank Ruehl", serif; font-size: clamp(7rem, 15vw, 13rem); line-height: 1; color: #ffffff; opacity: .1; pointer-events: none; user-select: none; direction: rtl; white-space: nowrap; }
.band__grid { position: relative; display: grid; gap: 40px; align-items: end; }
@media (min-width: 900px) { .band__grid { grid-template-columns: 1.2fr .8fr; } }
.band__cta { border-top: 1px solid #333; padding-top: 28px; }
.band__cta p { font-family: var(--display); font-size: 1.5rem; margin-bottom: 20px; color: var(--white); }
@media (min-width: 900px) { .band__cta { border-top: 0; border-left: 1px solid #333; padding: 0 0 0 40px; } }

/* Media & books */
.media2__grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .media2__grid { grid-template-columns: 1fr 1fr; } }
.video-card { position: relative; display: block; background: var(--black); overflow: hidden; color: var(--white); min-height: 340px; }
.video-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: .85; transition: transform .4s ease, opacity .3s; }
.video-card:hover img { transform: scale(1.03); opacity: .7; }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.85) 100%); }
.video-card__play { position: absolute; right: 28px; bottom: 26px; width: 72px; height: 72px; background: var(--sky); color: var(--black); display: grid; place-items: center; z-index: 2; transition: transform .2s; }
.video-card:hover .video-card__play { transform: scale(1.08); }
.video-card__play svg { width: 32px; height: 32px; }
.video-card__label { position: absolute; left: 28px; right: 120px; bottom: 26px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.video-card__label small { color: var(--sky); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; }
.video-card__label strong { font-family: var(--display); font-weight: 500; font-size: 1.5rem; line-height: 1.15; }
.video-card:hover { text-decoration: none; }
.book-card { display: grid; grid-template-columns: 200px 1fr; background: var(--g100); border: 1px solid var(--g200); }
.book-card__cover { background: var(--sky); display: grid; place-items: center; padding: 28px; }
.book-card__cover img { width: 140px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.book-card__body { padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.book-card__body small { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--sky-deep); }
.book-card__body h3 { margin: 0; font-size: 1.6rem; }
.book-card__body p { margin: 0; color: var(--g700); font-size: .98rem; }
.book-card__body .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 560px) { .book-card { grid-template-columns: 1fr; } }

/* Payments refinement */
.pay__box { border-top: 4px solid var(--sky); box-shadow: 0 10px 30px rgba(0,0,0,.05); }

/* Community cards */
.community .badge a { display: block; }
.community .badge img { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
@media (max-width: 959px) { .about2__photo { order: 2; } .frame { max-width: 300px; } .hero2__grid { min-height: 0; padding-top: 100px; } .hero2__panel { padding: 28px 24px; } }
