/*
Theme Name: Beit Haverim 2027
Theme URI: https://www.beit-haverim.com/
Author: Beit Haverim
Description: Un thème WordPress moderne, chaleureux et accessible pour le Beit Haverim.
Version: 0.4.1
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: beit-haverim-modern
*/

:root {
  --bh-ink: #171747;
  --bh-blue: #2d3192;
  --bh-ivory: #fbf7ef;
  --bh-paper: #fffdf8;
  --bh-raspberry: #cf326a;
  --bh-pink: #f8d9e5;
  --bh-gold: #f2b544;
  --bh-mint: #dcefdc;
  --bh-lavender: #e9e6fb;
  --bh-line: rgba(23, 23, 71, 0.14);
  --bh-shadow: 0 18px 50px rgba(23, 23, 71, 0.1);
  --bh-radius: 1.25rem;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bh-ivory);
  color: var(--bh-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a { text-underline-offset: 0.2em; }

:focus-visible {
  outline: 3px solid var(--bh-gold);
  outline-offset: 4px;
}

.bh-header {
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 0;
  border-bottom: 1px solid var(--bh-line);
  background: rgba(251, 247, 239, 0.94);
  backdrop-filter: blur(16px);
}

.bh-rainbow-line {
  height: 5px;
  margin: 0;
  background: linear-gradient(90deg, #ef3d4d 0 16.6%, #f58a39 16.6% 33.2%, #f6cf3f 33.2% 49.8%, #3aa16b 49.8% 66.4%, #3b64b8 66.4% 83%, #7f3f98 83%);
}

.bh-header__inner {
  min-height: 82px;
  gap: 1.2rem;
  padding: 0.75rem 1.5rem;
}

.bh-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--bh-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.bh-brand__logo {
  width: 44px;
  height: 52px;
  flex: 0 0 auto;
  background: url("assets/images/logo-beit-haverim.png") center / contain no-repeat;
}

.bh-brand__text { font-size: 1.12rem; }
.bh-nav { font-size: 0.92rem; font-weight: 650; }
.bh-nav .wp-block-navigation-item__content { text-decoration: none; }
.bh-nav .current-menu-item > a,
.bh-nav a:hover { color: var(--bh-raspberry); }

.bh-header-cta .wp-block-button__link {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

.bh-main { margin: 0; }

.bh-section {
  margin: 0;
  padding: clamp(4.5rem, 8vw, 8rem) 1.5rem;
}

.bh-section--paper { background: var(--bh-paper); }
.bh-section--ink { background: var(--bh-ink); color: var(--bh-ivory); }
.bh-section--pink { background: var(--bh-pink); }
.bh-section--lavender { background: var(--bh-lavender); }

.bh-kicker {
  margin: 0 0 1rem;
  color: var(--bh-raspberry);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.bh-section--ink .bh-kicker { color: #f8a9c6; }

.bh-display,
.bh-title {
  margin-top: 0;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.bh-display {
  max-width: 820px;
  font-size: clamp(3rem, 7.6vw, 7.6rem);
  line-height: 0.94;
}

.bh-display em { color: var(--bh-raspberry); font-weight: 500; }

.bh-title {
  max-width: 820px;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1;
}

.bh-lead {
  max-width: 690px;
  margin-top: 1.4rem;
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  line-height: 1.62;
}

.bh-hero {
  position: relative;
  min-height: calc(100svh - 87px);
  margin: 0;
  padding: clamp(4rem, 8vw, 8rem) 1.5rem 4rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(242, 181, 68, 0.4), transparent 28%),
    radial-gradient(circle at 90% 84%, rgba(207, 50, 106, 0.19), transparent 30%),
    var(--bh-ivory);
}

.bh-hero::after {
  content: "";
  position: absolute;
  right: -9rem;
  bottom: -13rem;
  width: 36rem;
  height: 36rem;
  border: 1px solid rgba(45, 49, 146, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(45, 49, 146, 0.035), 0 0 0 8rem rgba(45, 49, 146, 0.025);
  pointer-events: none;
}

.bh-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}

.bh-hero__copy { max-width: 840px; }

.bh-hero__actions {
  gap: 0.8rem;
  margin-top: 2rem;
}

.wp-block-button .wp-block-button__link {
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.wp-block-button .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(23, 23, 71, 0.16);
}

.bh-button-secondary .wp-block-button__link {
  border: 1.5px solid var(--bh-ink);
  background: transparent;
  color: var(--bh-ink);
}

.bh-hero__visual {
  position: relative;
  min-height: 540px;
}

.bh-hero-logo {
  position: absolute;
  z-index: 2;
  top: 2rem;
  right: 1rem;
  width: min(70%, 300px);
  aspect-ratio: 459 / 544;
  border-radius: 1.6rem;
  background: rgba(255,255,255,0.88) url("assets/images/logo-beit-haverim.png") center / 88% auto no-repeat;
  box-shadow: var(--bh-shadow);
  transform: rotate(3deg);
}

.bh-photo-placeholder {
  position: absolute;
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  padding: 1.25rem;
  border-radius: 1.5rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--bh-shadow);
}

.bh-photo-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 45%, rgba(23, 23, 71, 0.82));
}

.bh-photo-placeholder span { position: relative; z-index: 1; }

.bh-photo-placeholder--one {
  bottom: 0;
  left: 0;
  width: 62%;
  background: linear-gradient(135deg, #d85b7f, #713f8e 65%, #2d3192);
  transform: rotate(-3deg);
}

.bh-photo-placeholder--two {
  right: 0;
  bottom: 1rem;
  width: 43%;
  min-height: 190px;
  background: linear-gradient(135deg, #e5a843, #c94f51 55%, #a82e65);
  transform: rotate(5deg);
}

.bh-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.bh-section-heading > * { margin-bottom: 0; }

.bh-text-link {
  color: inherit;
  font-weight: 750;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}

.bh-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.bh-event-card {
  min-height: 360px;
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius);
  background: var(--bh-paper);
  box-shadow: 0 8px 30px rgba(23, 23, 71, 0.06);
}

.bh-event-card:nth-child(2) { background: var(--bh-pink); transform: translateY(1.5rem); }
.bh-event-card:nth-child(3) { background: var(--bh-mint); }

.bh-event-card__date {
  margin: 0 0 3.5rem;
  color: var(--bh-blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bh-event-card h3 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.05;
}

.bh-event-card p { line-height: 1.55; }

.bh-event-card a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--bh-ink);
  font-weight: 800;
}

.bh-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--bh-radius);
  background: rgba(255,255,255,0.2);
}

.bh-pillar {
  min-height: 310px;
  margin: 0;
  padding: 1.6rem;
  background: var(--bh-ink);
}

.bh-pillar__number { color: #f8a9c6; font-size: 0.75rem; font-weight: 800; }
.bh-pillar h3 { margin-top: 5rem; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.bh-pillar p { color: rgba(255,255,255,0.76); line-height: 1.55; }

.bh-community-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.bh-community-card {
  position: relative;
  min-height: 290px;
  margin: 0;
  padding: 1.5rem;
  overflow: hidden;
  border-radius: var(--bh-radius);
  background: var(--bh-paper);
  box-shadow: 0 8px 24px rgba(23,23,71,0.06);
}

.bh-community-card:nth-child(1),
.bh-community-card:nth-child(4) { grid-column: span 7; }
.bh-community-card:nth-child(2),
.bh-community-card:nth-child(3) { grid-column: span 5; }
.bh-community-card:nth-child(1) { background: var(--bh-ink); color: var(--bh-ivory); }
.bh-community-card:nth-child(2) { background: var(--bh-gold); }
.bh-community-card:nth-child(3) { background: var(--bh-mint); }
.bh-community-card:nth-child(4) { background: var(--bh-pink); }

.bh-community-card__tag { font-size: 0.72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.bh-community-card h3 { margin: 5rem 0 0.75rem; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 500; line-height: 1; }
.bh-community-card p { max-width: 38rem; line-height: 1.55; }

.bh-resource-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.bh-resource-card {
  min-height: 320px;
  margin: 0;
  padding: 1.75rem;
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius);
  background: var(--bh-paper);
}

.bh-resource-card:last-child { background: var(--bh-lavender); }
.bh-resource-card h3 { margin-top: 6rem; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 500; line-height: 1; }

.bh-history {
  position: relative;
  overflow: hidden;
}

.bh-history::after {
  content: "50";
  position: absolute;
  right: -0.06em;
  bottom: -0.22em;
  color: rgba(255,255,255,0.07);
  font-family: Georgia, serif;
  font-size: min(48vw, 39rem);
  line-height: 1;
  pointer-events: none;
}

.bh-history__content { position: relative; z-index: 1; max-width: 760px; }
.bh-history .bh-title { font-size: clamp(3rem, 7vw, 7rem); }
.bh-history .wp-block-buttons { margin-top: 2rem; }

.bh-join-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.bh-join-card {
  min-height: 260px;
  margin: 0;
  padding: 1.5rem;
  border: 1.5px solid var(--bh-ink);
  border-radius: var(--bh-radius);
  background: transparent;
  transition: transform 160ms ease, background 160ms ease;
}

.bh-join-card:hover { transform: translateY(-5px); background: var(--bh-paper); }
.bh-join-card h3 { margin: 4rem 0 0.75rem; font-family: Georgia, serif; font-size: 2.3rem; font-weight: 500; }
.bh-join-card a { color: inherit; font-weight: 800; }

.bh-footer { margin: 0; background: #101035; color: var(--bh-ivory); }
.bh-footer__inner { padding: 4rem 1.5rem 2rem; }
.bh-footer__grid { display: grid; grid-template-columns: 1.3fr 0.7fr 0.7fr; gap: 3rem; }
.bh-footer h2 { margin-top: 0; font-family: Georgia, serif; font-size: 2.3rem; font-weight: 500; }
.bh-footer h3 { margin-top: 0; color: #f8a9c6; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.bh-footer a { color: inherit; }
.bh-footer__bottom { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.16); font-size: .8rem; color: rgba(255,255,255,.62); }

.bh-content-shell { padding: clamp(3rem, 7vw, 7rem) 1.5rem; }
.bh-content-shell .wp-block-post-title { font-family: Georgia, serif; font-size: clamp(3rem, 7vw, 6rem); font-weight: 500; line-height: .98; }
.bh-content-shell .wp-block-post-content { font-size: 1.1rem; line-height: 1.75; }
.bh-post-card { padding: 1.5rem; border: 1px solid var(--bh-line); border-radius: 1rem; background: var(--bh-paper); }

.bh-inner-hero {
  position: relative;
  margin: 0;
  padding: clamp(4.5rem, 9vw, 9rem) 1.5rem;
  overflow: hidden;
}

.bh-inner-hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -12rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(23,23,71,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(23,23,71,.025), 0 0 0 8rem rgba(23,23,71,.018);
}

.bh-inner-hero--rose { background: var(--bh-pink); }
.bh-inner-hero--or { background: #f8df9d; }
.bh-inner-hero--lavande { background: var(--bh-lavender); }
.bh-inner-hero--menthe { background: var(--bh-mint); }
.bh-inner-hero--bleu { background: var(--bh-ink); color: var(--bh-ivory); }
.bh-inner-hero--bleu .bh-kicker { color: #f8a9c6; }
.bh-inner-hero--bleu .bh-title { color: var(--bh-ivory); }

.bh-inner-hero__content { position: relative; z-index: 1; max-width: 940px; }
.bh-inner-hero .bh-title { max-width: 960px; font-size: clamp(3.4rem, 8vw, 7.7rem); }

.bh-big-number {
  position: absolute;
  z-index: 0;
  right: .03em;
  bottom: -.23em;
  color: rgba(23,23,71,.065);
  font-family: Georgia, serif;
  font-size: min(36vw, 25rem);
  line-height: 1;
}

.bh-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .65fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}

.bh-split__aside {
  padding: 1.5rem;
  border-radius: var(--bh-radius);
  background: var(--bh-lavender);
}

.bh-split__aside h3 { margin-top: 0; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.bh-split__aside p:last-child { margin-bottom: 0; }

.bh-value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.bh-value-card {
  min-height: 260px;
  padding: 1.5rem;
  border-radius: var(--bh-radius);
  background: var(--bh-paper);
  border: 1px solid var(--bh-line);
}

.bh-value-card:nth-child(2) { background: var(--bh-pink); }
.bh-value-card:nth-child(3) { background: var(--bh-mint); }
.bh-value-card:nth-child(4) { background: var(--bh-lavender); }
.bh-value-card h3 { margin: 4.5rem 0 .75rem; font-family: Georgia, serif; font-size: 2.25rem; font-weight: 500; }
.bh-value-card p { line-height: 1.55; }

.bh-history-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: end;
  gap: clamp(2rem, 7vw, 7rem);
}

.bh-history-intro .bh-lead { color: rgba(255,255,255,.76); }

.bh-history-stat {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: calc(var(--bh-radius) + .5rem);
  background: linear-gradient(145deg, var(--bh-raspberry), #8b3f91 58%, var(--bh-blue));
  box-shadow: 0 24px 65px rgba(0,0,0,.22);
  transform: rotate(2deg);
}

.bh-history-stat strong {
  font-family: Georgia, serif;
  font-size: 7rem;
  font-weight: 500;
  letter-spacing: -.08em;
  line-height: .72;
}

.bh-history-stat span {
  margin-top: 1.3rem;
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bh-history-timeline {
  position: relative;
  margin: clamp(4rem, 8vw, 7rem) 0 0;
  padding: 0;
  list-style: none;
}

.bh-history-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--bh-raspberry), var(--bh-gold) 40%, #72c892 68%, #9d8ee8);
  transform: translateX(-50%);
}

.bh-history-event {
  position: relative;
  display: grid;
  min-height: 240px;
  grid-template-columns: minmax(0, 1fr) 8rem minmax(0, 1fr);
  align-items: center;
  margin: 0;
  padding: 0 0 2rem;
}

.bh-history-event__marker {
  z-index: 1;
  display: grid;
  width: 6rem;
  height: 6rem;
  grid-column: 2;
  grid-row: 1;
  place-items: center;
  justify-self: center;
  border: 2px solid #f8a9c6;
  border-radius: 50%;
  background: var(--bh-ink);
  box-shadow: 0 0 0 10px var(--bh-ink);
  color: #fff;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: .04em;
}

.bh-history-event__card {
  grid-column: 3;
  grid-row: 1;
  margin-left: 1rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: calc(var(--bh-radius) + .25rem);
  background: var(--bh-paper);
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
  color: var(--bh-ink);
}

.bh-history-event:nth-child(even) .bh-history-event__card {
  grid-column: 1;
  margin-right: 1rem;
  margin-left: 0;
}

.bh-history-event:nth-child(3n+2) .bh-history-event__card { background: var(--bh-pink); }
.bh-history-event:nth-child(3n) .bh-history-event__card { background: var(--bh-mint); }
.bh-history-event--future .bh-history-event__card { background: var(--bh-gold); }

.bh-history-event__eyebrow {
  display: inline-block;
  margin-bottom: 1.1rem;
  color: var(--bh-raspberry);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.bh-history-event__card h3 {
  margin: 0 0 .75rem;
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.04;
}

.bh-history-event__card p { margin: 0; line-height: 1.62; }

.bh-history-stage__meta { display: none; }

.bh-history-story--ready {
  position: relative;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.bh-history-story--ready .bh-history-stage {
  position: sticky;
  z-index: 2;
  top: 87px;
  display: grid;
  height: calc(100svh - 87px);
  min-height: 620px;
  grid-template-columns: minmax(290px, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  overflow: hidden;
}

.admin-bar .bh-history-story--ready .bh-history-stage {
  top: 119px;
  height: calc(100svh - 119px);
}

.bh-history-story--ready .bh-history-stage__meta {
  display: block;
  align-self: center;
}

.bh-history-stage__label {
  display: block;
  margin-bottom: 1.1rem;
  color: #f8a9c6;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bh-history-stage__year {
  display: block;
  min-height: .8em;
  font-family: Georgia, serif;
  font-size: clamp(7rem, 14vw, 13rem);
  font-weight: 500;
  letter-spacing: -.085em;
  line-height: .72;
  text-shadow: 0 18px 55px rgba(0,0,0,.25);
}

.bh-history-stage__counter {
  margin-top: 2rem;
  color: rgba(255,255,255,.62);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.bh-history-stage__progress {
  width: min(260px, 100%);
  height: 4px;
  margin-top: .75rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
}

.bh-history-stage__progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bh-raspberry), var(--bh-gold), #72c892);
  transform: scaleX(.1428);
  transform-origin: left center;
  transition: transform 550ms cubic-bezier(.22, 1, .36, 1);
}

.bh-history-stage__meta > p {
  margin: 1.2rem 0 0;
  color: rgba(255,255,255,.58);
  font-size: .8rem;
}

.bh-history-stage__meta > p span {
  display: inline-block;
  margin-left: .25rem;
  color: #f8a9c6;
  animation: bh-history-nudge 1.6s ease-in-out infinite;
}

@keyframes bh-history-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.bh-history-story--ready .bh-history-timeline {
  position: relative;
  height: min(58svh, 560px);
  margin: 0;
}

.bh-history-story--ready .bh-history-timeline::before { display: none; }

.bh-history-story--ready .bh-history-event {
  position: absolute;
  inset: 0;
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(70px) scale(.95) rotate(1.2deg);
  transition: opacity 420ms ease, transform 650ms cubic-bezier(.22, 1, .36, 1);
}

.bh-history-story--ready .bh-history-event.is-before {
  transform: translateY(-70px) scale(.95) rotate(-1.2deg);
}

.bh-history-story--ready .bh-history-event.is-active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1) rotate(0);
}

.bh-history-story--ready .bh-history-event__marker { display: none; }

.bh-history-story--ready .bh-history-event__card,
.bh-history-story--ready .bh-history-event:nth-child(even) .bh-history-event__card {
  display: flex;
  box-sizing: border-box;
  width: auto;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
}

.bh-history-story--ready .bh-history-event__card h3 {
  max-width: 620px;
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.bh-history-story--ready .bh-history-event__card p {
  max-width: 650px;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
}

.bh-history-scrollsteps {
  position: relative;
  z-index: 1;
  margin-top: calc(-100svh + 87px);
  pointer-events: none;
}

.admin-bar .bh-history-scrollsteps { margin-top: calc(-100svh + 119px); }

.bh-history-scrollstep {
  display: block;
  height: 78vh;
  height: 78svh;
}

.bh-motion-enabled .bh-reveal {
  opacity: 0;
  translate: 0 42px;
  transition:
    opacity 650ms cubic-bezier(.22, 1, .36, 1),
    translate 750ms cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--bh-reveal-delay, 0ms);
}

.bh-motion-enabled .bh-reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

.bh-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.bh-directory-card {
  min-height: 310px;
  padding: 1.5rem;
  border-radius: var(--bh-radius);
  background: var(--bh-paper);
  border: 1px solid var(--bh-line);
}
.bh-directory-card:nth-child(3n+2) { background: var(--bh-pink); }
.bh-directory-card:nth-child(3n+3) { background: var(--bh-mint); }
.bh-directory-card h2, .bh-directory-card h3 { margin: 5rem 0 .8rem; font-family: Georgia, serif; font-size: 2.35rem; font-weight: 500; line-height: 1; }
.bh-directory-card p { line-height: 1.55; }
.bh-directory-card a { color: inherit; font-weight: 800; }

.bh-feature-event {
  display: grid;
  grid-template-columns: .55fr 1fr;
  min-height: 390px;
  overflow: hidden;
  border-radius: calc(var(--bh-radius) + .35rem);
  background: var(--bh-paper);
  box-shadow: var(--bh-shadow);
}
.bh-feature-event__visual {
  display: flex;
  align-items: flex-end;
  padding: 1.75rem;
  background: linear-gradient(145deg, var(--bh-raspberry), #824092 58%, var(--bh-blue));
  color: #fff;
}
.bh-feature-event__visual span { font-size: .8rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.bh-feature-event__copy { padding: clamp(2rem, 5vw, 4rem); }
.bh-feature-event__copy h2 { margin: 0 0 1rem; font-family: Georgia, serif; font-size: clamp(2.4rem, 5vw, 4.3rem); font-weight: 500; line-height: 1; }
.bh-feature-event__meta { color: var(--bh-raspberry); font-weight: 850; }

.bh-notice {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 5px solid var(--bh-gold);
  background: var(--bh-paper);
}
.bh-notice p { margin: 0; }

.bh-book-card {
  display: grid;
  grid-template-columns: .7fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: calc(var(--bh-radius) + .5rem);
  background: var(--bh-ink);
  color: var(--bh-ivory);
}
.bh-book-card__cover { display: grid; place-items: center; min-height: 360px; padding: 2rem; border-radius: 1rem; background: linear-gradient(145deg, #f5c44d, #e85366 55%, #743f90); color: #fff; text-align: center; transform: rotate(-2deg); }
.bh-book-card__cover strong { font-family: Georgia, serif; font-size: 2.4rem; line-height: 1; }
.bh-book-card h2 { margin-top: 0; color: #fff; font-family: Georgia, serif; font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 500; line-height: 1; }
.bh-book-card a { color: #fff; font-weight: 800; }

.bh-support-card {
  min-height: 360px;
  padding: 1.75rem;
  border-radius: var(--bh-radius);
  border: 1.5px solid var(--bh-ink);
  background: transparent;
}
.bh-support-card:nth-child(2) { background: var(--bh-pink); }
.bh-support-card:nth-child(3) { background: var(--bh-gold); }
.bh-support-card h2 { margin: 7rem 0 .8rem; font-family: Georgia, serif; font-size: 2.8rem; font-weight: 500; }
.bh-support-card a { color: inherit; font-weight: 850; }

.bh-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.bh-contact-card { min-height: 300px; padding: 1.75rem; border-radius: var(--bh-radius); background: var(--bh-paper); border: 1px solid var(--bh-line); }
.bh-contact-card:nth-child(2) { background: var(--bh-lavender); }
.bh-contact-card h2 { margin: 5rem 0 .8rem; font-family: Georgia, serif; font-size: 2.6rem; font-weight: 500; }
.bh-contact-card a { color: inherit; font-weight: 850; }

.bh-mini-cta { padding: clamp(2rem, 5vw, 4rem); border-radius: calc(var(--bh-radius) + .5rem); background: var(--bh-ink); color: var(--bh-ivory); }
.bh-mini-cta h2 { margin-top: 0; color: #fff; font-family: Georgia, serif; font-size: clamp(2.4rem, 5vw, 4.7rem); font-weight: 500; line-height: 1; }
.bh-mini-cta .wp-block-buttons { margin-top: 1.5rem; }

@media (max-width: 1100px) {
  .bh-header .bh-header-cta { display: none !important; }
  .bh-hero__grid { grid-template-columns: 1fr 0.55fr; }
  .bh-hero__visual { min-height: 430px; }
  .bh-pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .bh-header { background: var(--bh-ivory); backdrop-filter: none; }
  .bh-header__inner { min-height: 70px; padding-inline: 1rem; }
  .bh-brand__text { display: none; }
  .bh-brand__logo { width: 38px; height: 44px; }
  .bh-nav { font-size: 1rem; }
  .bh-nav .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    width: auto !important;
    max-width: none !important;
    height: 100dvh !important;
    min-height: 100vh;
    box-sizing: border-box !important;
    padding: 1.5rem;
    overflow-y: auto;
    background: var(--bh-ivory);
    color: var(--bh-ink);
  }
  .bh-nav .is-menu-open .wp-block-navigation__responsive-container-content {
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100dvh - 5rem);
    padding-top: 3.5rem;
  }
  .bh-nav .is-menu-open .wp-block-navigation__responsive-container-close {
    position: fixed !important;
    top: max(1.25rem, env(safe-area-inset-top)) !important;
    right: max(1.5rem, env(safe-area-inset-right)) !important;
    left: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: max(1.5rem, env(safe-area-inset-right)) !important;
    z-index: 1000000 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    padding: 0 !important;
    border: 1.5px solid var(--bh-ink) !important;
    border-radius: 999px;
    background: var(--bh-ivory) !important;
    color: var(--bh-ink) !important;
    margin: 0 !important;
    transform: none !important;
    translate: none !important;
    box-sizing: border-box !important;
  }
  .bh-nav .is-menu-open .wp-block-navigation__responsive-container-close svg {
    display: block !important;
    width: 1.75rem !important;
    height: 1.75rem !important;
    fill: currentColor;
  }
  .bh-nav .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.15rem !important;
    width: 100%;
  }
  .bh-nav .is-menu-open .wp-block-navigation-item__content {
    color: var(--bh-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 8vw, 2.6rem);
    font-weight: 500;
    line-height: 1.08;
  }
  .bh-nav .is-menu-open .bh-nav-support {
    margin-top: .85rem;
  }
  .bh-nav .is-menu-open .bh-nav-support .wp-block-navigation-item__content {
    padding: .85rem 1.25rem;
    border-radius: 999px;
    background: var(--bh-raspberry);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
  }
  .bh-hero { min-height: auto; padding-top: 4rem; }
  .bh-hero__grid { grid-template-columns: 1fr; }
  .bh-hero__visual { min-height: 480px; }
  .bh-hero-logo { width: 220px; }
  .bh-card-grid, .bh-join-grid { grid-template-columns: 1fr; }
  .bh-event-card, .bh-event-card:nth-child(2) { min-height: 280px; transform: none; }
  .bh-community-card:nth-child(n) { grid-column: span 12; }
  .bh-resource-grid { grid-template-columns: 1fr; }
  .bh-section-heading { display: block; }
  .bh-section-heading .bh-text-link { display: inline-block; margin-top: 1rem; }
  .bh-footer__grid { grid-template-columns: 1fr; }
  .bh-split, .bh-feature-event, .bh-book-card { grid-template-columns: 1fr; }
  .bh-directory-grid { grid-template-columns: 1fr 1fr; }
  .bh-contact-grid { grid-template-columns: 1fr; }
}

@media (min-width: 821px) {
  .bh-nav-support { display: none !important; }
}

@media (max-width: 560px) {
  .bh-section { padding-inline: 1rem; }
  .bh-display { font-size: clamp(2.75rem, 14vw, 4.2rem); }
  .bh-hero__visual { min-height: 390px; }
  .bh-hero-logo { top: 0; right: 0; width: 175px; }
  .bh-photo-placeholder--one { width: 67%; min-height: 190px; }
  .bh-photo-placeholder--two { width: 46%; min-height: 150px; }
  .bh-pillars { grid-template-columns: 1fr; }
  .bh-pillar { min-height: 235px; }
  .bh-value-grid, .bh-directory-grid { grid-template-columns: 1fr; }
  .bh-history-intro { grid-template-columns: 1fr; }
  .bh-history-stat {
    min-height: 170px;
    max-width: none;
    transform: none;
  }
  .bh-history-stat strong { font-size: 5.7rem; }
  .bh-history-timeline::before { left: 2rem; }
  .bh-history-event {
    min-height: 0;
    grid-template-columns: 4rem minmax(0, 1fr);
    align-items: start;
    padding-bottom: 1.5rem;
  }
  .bh-history-event__marker {
    width: 3.45rem;
    height: 3.45rem;
    grid-column: 1;
    margin-top: 1.25rem;
    box-shadow: 0 0 0 6px var(--bh-ink);
    font-size: .72rem;
  }
  .bh-history-event__card,
  .bh-history-event:nth-child(even) .bh-history-event__card {
    grid-column: 2;
    margin: 0 0 0 .8rem;
    padding: 1.35rem;
  }
  .bh-history-event__card h3 { font-size: 1.75rem; }

  .bh-history-story--ready { margin-top: 2rem; }
  .bh-history-story--ready .bh-history-stage {
    display: block;
    height: calc(100svh - 87px);
    min-height: 560px;
    padding-top: 1.2rem;
  }
  .admin-bar .bh-history-story--ready .bh-history-stage {
    top: 133px;
    height: calc(100svh - 133px);
  }
  .bh-history-story--ready .bh-history-stage__meta {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: .5rem 1rem;
  }
  .bh-history-stage__label { grid-column: 1 / -1; margin-bottom: .4rem; }
  .bh-history-stage__year { font-size: clamp(5rem, 25vw, 7.3rem); }
  .bh-history-stage__counter { align-self: end; margin: 0 0 .45rem; }
  .bh-history-stage__progress { width: 100%; grid-column: 1 / -1; margin-top: .1rem; }
  .bh-history-stage__meta > p { display: none; }
  .bh-history-story--ready .bh-history-timeline {
    height: calc(100% - 150px);
    margin-top: 1.15rem;
  }
  .bh-history-story--ready .bh-history-event {
    display: block;
    transform: translateY(48px) scale(.96);
  }
  .bh-history-story--ready .bh-history-event.is-before { transform: translateY(-48px) scale(.96); }
  .bh-history-story--ready .bh-history-event__card,
  .bh-history-story--ready .bh-history-event:nth-child(even) .bh-history-event__card {
    height: calc(100% - .25rem);
    min-height: 0;
    margin: 0;
    padding: 1.5rem;
  }
  .bh-history-story--ready .bh-history-event__card h3 { font-size: clamp(2.2rem, 10vw, 3.4rem); }
  .bh-history-story--ready .bh-history-event__card p { font-size: .98rem; line-height: 1.5; }
  .bh-history-scrollstep {
    height: 86vh;
    height: 86svh;
  }
  .admin-bar .bh-history-scrollsteps { margin-top: calc(-100svh + 133px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
