/* Temple Beth El of Fort Myers
   Layout and typographic system modelled on the Chabad West Village format:
   full-bleed photographic hero with an overlaid nav, a script accent line over a
   justified serif statement, a grid of labelled photo tiles, and dark navy bands.
   Fonts are open-source stand-ins for their licensed Typekit pair
   (EB Garamond for Adobe Garamond Pro, Montserrat for Proxima Nova).
   Photography and the logo are Temple Beth El's own. */

@font-face {
  font-family: "EB Garamond"; font-style: normal; font-weight: 400 600;
  font-display: swap; src: url("/assets/fonts/ebgaramond.woff2") format("woff2");
}
@font-face {
  font-family: "EB Garamond"; font-style: italic; font-weight: 400 600;
  font-display: swap; src: url("/assets/fonts/ebgaramond-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 300 700;
  font-display: swap; src: url("/assets/fonts/montserrat.woff2") format("woff2");
}
@font-face {
  font-family: "Allura"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("/assets/fonts/allura-400.woff2") format("woff2");
}

:root {
  --rust:      #b04c3b;
  --rust-dark: #8f3c2e;
  --navy:      #102f43;
  --navy-2:    #17415b;
  --grey:      #f4f4f4;
  --grey-2:    #e6e6e6;
  --ink:       #2b2b2b;
  --ink-2:     #5f5f5f;
  --line:      #dcdcdc;
  --white:     #ffffff;

  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --script:"Allura", cursive;

  --step: 1.125rem;
  --pad:  clamp(1.25rem, 5vw, 5rem);
  --band: clamp(3.5rem, 7vw, 7rem);
}
:root[data-text="large"]  { --step: 1.25rem; }
:root[data-text="xlarge"] { --step: 1.375rem; }

*, *::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 { transition: none !important; animation: none !important; }
}

body {
  margin: 0; background: var(--white); color: var(--ink);
  font: var(--step)/1.7 var(--serif);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.2; font-weight: 400; }
p { margin: 0 0 1.15em; }
a { color: var(--rust); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--navy); color: #fff; padding: .9rem 1.3rem; font-family: var(--sans); }
.skip:focus { left: .75rem; top: .75rem; }

.wrap { width: min(1180px, 100% - (2 * var(--pad))); margin-inline: auto; }
.wrap--narrow { width: min(900px, 100% - (2 * var(--pad))); margin-inline: auto; }

/* letterspaced uppercase label, the workhorse of this layout */
.label, .nav a, .btn, .tile__label, .eyebrow, .band-link__text {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 400;
}
.eyebrow {
  font-size: .72rem; color: var(--rust); font-weight: 600;
  letter-spacing: .22em; margin: 0 0 1.1rem;
}

/* ---------- site nav, overlaid on the hero ---------- */
.sitenav {
  position: absolute; inset: 0 0 auto 0; z-index: 50;
  padding: 1.6rem 0;
}
.sitenav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.sitenav__logo img { width: clamp(115px, 13vw, 165px); height: auto; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.3vw, 2.4rem); }
.nav a { color: #fff; font-size: .7rem; opacity: .93; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.75); }
.nav .btn--pill {
  border: 1px solid rgba(255,255,255,.75); border-radius: 999px;
  padding: .62rem 1.5rem; font-size: .7rem; color: #fff;
  transition: background .18s ease, color .18s ease;
}
.nav .btn--pill:hover { background: #fff; color: var(--navy); border-color: #fff; }

.navtoggle { display: none; }
.menu { display: none; }

@media (max-width: 1000px) {
  .nav { display: none; }
  .navtoggle {
    display: inline-flex; align-items: center; gap: .55rem; cursor: pointer;
    background: none; border: 0; color: #fff; padding: .5rem;
    font-family: var(--sans); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  }
  .navtoggle svg { width: 22px; height: 22px; }
  .menu {
    display: block; position: fixed; inset: 0; z-index: 100;
    background: var(--navy); padding: 5.5rem var(--pad) 2rem;
    overflow-y: auto;
  }
  .menu[hidden] { display: none; }
  .menu a {
    display: block; color: #fff; font-family: var(--sans);
    text-transform: uppercase; letter-spacing: .16em; font-size: .82rem;
    padding: 1.05rem 0; border-bottom: 1px solid rgba(255,255,255,.16);
  }
  .menu a:hover { color: #fff; text-decoration: none; }
  .menu__close {
    position: absolute; top: 1.5rem; right: var(--pad);
    background: none; border: 0; color: #fff; cursor: pointer; padding: .5rem;
    font-family: var(--sans); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative; display: grid; align-items: center;
  min-height: min(88vh, 780px);
  padding: 8rem 0 4rem; text-align: center; color: #fff;
  background: var(--navy) center/cover no-repeat;
  isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,26,38,.55) 0%, rgba(10,26,38,.32) 42%, rgba(10,26,38,.62) 100%);
}
.hero__kicker {
  font-family: var(--serif); font-size: clamp(1.05rem, .9rem + .8vw, 1.5rem);
  font-style: normal; margin: 0 0 .5rem; color: rgba(255,255,255,.94);
  max-width: 58ch; margin-inline: auto;
}
.hero__title + .hero__kicker { margin: 1.1rem auto 0; font-size: clamp(1rem, .92rem + .35vw, 1.18rem); }
.hero__title {
  font-family: var(--sans); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2rem, 1rem + 4.6vw, 4.4rem);
  letter-spacing: .02em; line-height: 1.06; margin: 0;
  text-shadow: 0 2px 24px rgba(0,0,0,.3);
}
.hero__actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* inner-page hero: shorter */
.hero--page { min-height: min(52vh, 460px); padding: 9rem 0 3.5rem; }
/* inner heroes reuse smaller, busier photographs, so they need a firmer scrim */
.hero--page::after {
  background: linear-gradient(180deg, rgba(10,26,38,.68) 0%, rgba(10,26,38,.55) 50%, rgba(10,26,38,.68) 100%);
}
.hero--flat { min-height: 0; padding: 9.5rem 0 3.5rem; background: var(--navy); }
.hero--flat::after { background: none; }
.hero--page .hero__title { font-size: clamp(1.75rem, 1rem + 3.2vw, 3.1rem); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-size: .72rem; padding: .95rem 2rem;
  border: 1px solid currentColor; border-radius: 999px; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn--light { color: #fff; }
.btn--light:hover { background: #fff; color: var(--navy); text-decoration: none; }
.btn--rust { background: var(--rust); border-color: var(--rust); color: #fff; }
.btn--rust:hover { background: var(--rust-dark); border-color: var(--rust-dark); color: #fff; text-decoration: none; }
.btn--dark { color: var(--navy); border-color: var(--navy); }
.btn--dark:hover { background: var(--navy); color: #fff; text-decoration: none; }

/* ---------- statement ---------- */
.statement { padding: var(--band) 0; background: #fff; }
.script {
  font-family: var(--script); color: var(--rust); font-weight: 400;
  font-size: clamp(3rem, 1.2rem + 7vw, 7rem);
  line-height: 1.05; margin: 0 0 2rem; letter-spacing: .01em;
}
.leadtext { text-align: justify; hyphens: auto; font-size: 1.06em; }
/* justification needs room; below tablet it just makes rivers */
@media (max-width: 760px) { .leadtext { text-align: left; hyphens: manual; } }
.leadtext p:last-child { margin-bottom: 0; }

/* ---------- photo tiles ---------- */
.tiles { padding: var(--band) 0; background: var(--grey); }
.tiles__grid { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 620px)  { .tiles__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles__grid { grid-template-columns: repeat(3, 1fr); } }
.tile {
  position: relative; display: grid; place-items: center;
  min-height: 215px; aspect-ratio: 3 / 2; overflow: hidden;
  border-radius: 3px; text-align: center; padding: 1.5rem;
  background: var(--navy) center/cover no-repeat;
}
.tile--wide { grid-column: 1 / -1; aspect-ratio: auto; min-height: 235px; }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,35,48,.30), rgba(16,35,48,.52));
  transition: background .25s ease;
}
.tile:hover::after { background: linear-gradient(180deg, rgba(16,35,48,.14), rgba(16,35,48,.30)); }
.tile__label {
  position: relative; z-index: 1; color: #fff; font-size: .82rem;
  line-height: 1.55; text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 2px 18px rgba(0,0,0,.5);
}
.tile:hover { text-decoration: none; }

/* ---------- navy feature bands ---------- */
.bands { display: grid; grid-template-columns: 1fr; }
@media (min-width: 800px) { .bands { grid-template-columns: 1fr 1fr; } }
.band-link {
  display: grid; place-items: center; gap: 1.1rem;
  padding: clamp(3rem, 6vw, 5.5rem) 1.5rem; text-align: center;
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  color: #fff; transition: background .25s ease;
}
.band-link:nth-child(2) { background: linear-gradient(180deg, var(--navy), #0b2130); }
.band-link:hover { text-decoration: none; background: var(--navy-2); }
.band-link__text { font-size: .82rem; color: #fff; }
.band-link svg { width: 54px; height: 54px; stroke: #fff; fill: none; stroke-width: 1.15; }

/* ---------- generic content sections ---------- */
.section { padding: var(--band) 0; }
.section--grey { background: var(--grey); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy a { color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }

h2.h-display, h1.h-display {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .13em;
  font-weight: 300; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.85rem);
  color: var(--ink); margin-bottom: 1.6rem;
}
.section--navy h2.h-display { color: #fff; }
h3.h-sub {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .13em;
  font-weight: 600; font-size: .82rem; color: var(--rust); margin-bottom: .9rem;
}
.section--navy h3.h-sub { color: #d9a294; }

.prose { max-width: 72ch; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.prose li { margin-bottom: .5em; }

.split { display: grid; gap: clamp(2rem, 4vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.3fr 1fr; } }
.split--even { grid-template-columns: 1fr; }
@media (min-width: 900px) { .split--even { grid-template-columns: 1fr 1fr; } }

.grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }

.card { background: #fff; border: 1px solid var(--line); padding: 1.7rem; border-radius: 3px; }
.section--grey .card { border-color: var(--grey-2); }
.card > :last-child { margin-bottom: 0; }
.card h3 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; font-weight: 600; color: var(--rust); margin-bottom: .7rem; }

.panel { background: var(--grey); padding: 1.9rem; border-radius: 3px; }
.section--grey .panel { background: #fff; border: 1px solid var(--grey-2); }
.panel > :last-child { margin-bottom: 0; }
.panel h3 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; font-weight: 600; color: var(--rust); margin-bottom: .9rem; }

.note { border-left: 2px solid var(--rust); padding: .3rem 0 .3rem 1.4rem; margin: 2rem 0; }
.note > :last-child { margin-bottom: 0; }

/* schedule lists */
.times { list-style: none; padding: 0; margin: 0; }
.times li {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1.2rem;
  padding: .85rem 0; border-bottom: 1px solid var(--line);
}
.section--grey .times li { border-color: var(--grey-2); }
.section--navy .times li { border-color: rgba(255,255,255,.18); }
.times li:last-child { border-bottom: 0; }
.times .t-name { font-weight: 400; }
.times .t-when { color: var(--ink-2); font-family: var(--sans); font-size: .74rem;
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; padding-top: .3em; }
.section--navy .times .t-when { color: rgba(255,255,255,.72); }
.times .t-note { flex-basis: 100%; font-style: italic; color: var(--ink-2); font-size: .95em; }
.section--navy .times .t-note { color: rgba(255,255,255,.72); }
@media (max-width: 460px) { .times .t-when { white-space: normal; } }

.times--sched li { display: grid; grid-template-columns: 6.5rem 1fr; gap: .15rem 1.2rem; }
.times--sched .t-time { font-family: var(--sans); font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--rust); padding-top: .35em; }
.section--navy .times--sched .t-time { color: #d9a294; }
.times--sched .t-note { grid-column: 2; }
@media (max-width: 480px) {
  .times--sched li { grid-template-columns: 1fr; }
  .times--sched .t-note { grid-column: 1; }
}

.daygroup { margin-bottom: 1.8rem; }
.daygroup:last-child { margin-bottom: 0; }
.daygroup h4 {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .13em;
  font-size: .72rem; font-weight: 600; color: var(--ink); margin-bottom: .5rem;
}
.section--navy .daygroup h4 { color: #fff; }

.dl { margin: 0; }
.dl div { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.dl dt { font-family: var(--sans); text-transform: uppercase; letter-spacing: .11em;
  font-size: .68rem; font-weight: 600; color: var(--rust); }
.dl dd { margin: .3rem 0 0; }

.people { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.person { }
.person h3 { font-family: var(--serif); font-size: 1.5rem; text-transform: none;
  letter-spacing: 0; color: var(--ink); font-weight: 400; margin-bottom: .15rem; }
.person .role { font-family: var(--sans); text-transform: uppercase; letter-spacing: .13em;
  font-size: .68rem; font-weight: 600; color: var(--rust); margin: 0 0 1rem; }
.person > :last-child { margin-bottom: 0; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 2rem 2.2rem; border-left: 1px solid var(--line); }
.section--grey .timeline li { border-color: var(--grey-2); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -4px; top: .6rem;
  width: 7px; height: 7px; border-radius: 50%; background: var(--rust);
}
.timeline .year { display: block; font-family: var(--sans); text-transform: uppercase;
  letter-spacing: .13em; font-size: .72rem; font-weight: 600; color: var(--rust); margin-bottom: .35rem; }

.funds { list-style: none; padding: 0; margin: 0; }
.funds li { padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.section--grey .funds li { border-color: var(--grey-2); }
.funds li:last-child { border-bottom: 0; }
.funds .fund-name { display: block; font-family: var(--sans); text-transform: uppercase;
  letter-spacing: .11em; font-size: .72rem; font-weight: 600; color: var(--ink); margin-bottom: .2rem; }
.funds .fund-desc { color: var(--ink-2); }

.levels { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.level { padding: 1.1rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: 3px; }
.section--grey .level { border-color: var(--grey-2); }
.level .lvl-name { display: block; font-family: var(--sans); text-transform: uppercase;
  letter-spacing: .13em; font-size: .74rem; font-weight: 600; color: var(--rust); }
.level .lvl-range { display: block; color: var(--ink-2); font-size: .96em; margin-top: .2rem; }

.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* ---------- forms ---------- */
.form { margin-top: 2rem; }
.fieldset { border: 0; margin: 0 0 2.4rem; padding: 0; }
.fieldset legend {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .14em;
  font-size: .74rem; font-weight: 600; color: var(--ink);
  padding: 0 0 .7rem; margin-bottom: 1.3rem; width: 100%;
  border-bottom: 1px solid var(--line);
}
.fieldset .step { color: var(--rust); }
.field { margin-bottom: 1.35rem; }
.field label { display: block; font-family: var(--sans); font-size: .7rem;
  text-transform: uppercase; letter-spacing: .12em; font-weight: 600; margin-bottom: .5rem; }
.field .opt { font-weight: 400; color: var(--ink-2); letter-spacing: .08em; }
.field .hint { display: block; font-family: var(--serif); font-size: .95rem;
  text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-2); margin-top: .45rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #c4c4c4; border-radius: 2px; padding: .8rem .9rem; min-height: 50px;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rust); outline-offset: 1px; }
.field--row { display: grid; gap: 1.35rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .field--row { grid-template-columns: 1fr 1fr; } }
.radios { display: grid; gap: .6rem; }
.radios label { display: flex; align-items: center; gap: .7rem; font-family: var(--serif);
  font-size: 1rem; text-transform: none; letter-spacing: 0; font-weight: 400; min-height: 44px; }
.radios input { width: 18px; height: 18px; accent-color: var(--rust); }
.amounts { display: flex; flex-wrap: wrap; gap: .7rem; }
.amounts label {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 5.5rem; min-height: 50px; padding: .7rem 1.2rem; cursor: pointer;
  border: 1px solid #c4c4c4; border-radius: 999px; background: #fff;
  font-family: var(--sans); font-size: .74rem; letter-spacing: .1em; font-weight: 600;
  text-transform: none; margin-bottom: 0;
}
.amounts label:hover { border-color: var(--rust); }
.amounts label:has(input:checked) { background: var(--rust); color: #fff; border-color: var(--rust); }
.amounts label:has(input:focus-visible) { outline: 2px solid var(--rust); outline-offset: 3px; }
.amounts input { position: absolute; opacity: 0; width: 0; height: 0; }
.formnote { font-size: .96rem; color: var(--ink-2); margin: 1.2rem 0 0; }

/* ---------- shabbat / illustration block ---------- */
.illus { display: grid; place-items: center; }
.illus svg { width: 100%; max-width: 400px; height: auto; stroke: var(--ink); fill: none; stroke-width: 1.1; }

/* ---------- footer ---------- */
.foot { background: var(--navy); color: rgba(255,255,255,.82); padding: var(--band) 0 2.5rem; }
.foot a { color: #fff; }
.foot__grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.foot h3 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .16em;
  font-size: .7rem; font-weight: 600; color: #fff; margin-bottom: 1.1rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .6rem; }
.foot__logo img { width: 190px; margin-bottom: 1.4rem; }
.foot__bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.16);
  display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between;
  font-family: var(--sans); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.social { display: flex; gap: .7rem; margin-top: 1.2rem; }
.social a { display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; }
.social a:hover { background: rgba(255,255,255,.12); }
.social svg { width: 17px; height: 17px; }

.textsize { display: flex; align-items: center; gap: .45rem; margin-top: 1.2rem;
  font-family: var(--sans); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.textsize button {
  font-family: var(--serif); cursor: pointer; background: none; color: #fff;
  border: 1px solid rgba(255,255,255,.35); border-radius: 3px;
  min-width: 2.2rem; min-height: 2.1rem; line-height: 1; padding: .25rem .45rem;
}
.textsize button:hover { border-color: #fff; }
.textsize button[aria-pressed="true"] { background: #fff; color: var(--navy); border-color: #fff; }

.disclaimer { background: #0b2130; color: rgba(255,255,255,.55); padding: 1.3rem 0; font-size: .85rem; }
.disclaimer a { color: rgba(255,255,255,.8); text-decoration: underline; }
.disclaimer p { margin: 0; max-width: 100ch; }
