/* =====================================================================
   Salmon Arm Legion Branch #62 — "Cinematic Memorial"
   Dark, luminous, remembrance. Vanilla CSS, no build step.
   ===================================================================== */

/* ---------------------------------------------------------------
   Tokens
   --------------------------------------------------------------- */
:root {
  --bg:      #0e0e11;          /* page canvas */
  --bg-1:    #131317;          /* raised */
  --bg-2:    #1a1a20;          /* cards */
  --bg-3:    #212129;          /* higher / hover */
  --line:    rgba(255,255,255,.10);
  --line-2:  rgba(255,255,255,.18);

  --text:    rgba(255,255,255,.94);
  --body:    rgba(255,255,255,.72);
  --muted:   rgba(255,255,255,.55);
  --faint:   rgba(255,255,255,.38);

  --red:     #e41836;          /* poppy */
  --red-2:   #ff3149;          /* luminous / hover */
  --cream:   #f6f1e7;

  --glow:    0 0 40px rgba(228,24,54,.35);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui:      "Manrope", system-ui, -apple-system, sans-serif;

  --fs-hero: clamp(2.9rem, 7.2vw, 6.25rem);
  --fs-h1:   clamp(2.4rem, 5.2vw, 4.25rem);
  --fs-h2:   clamp(1.95rem, 3.6vw, 3rem);
  --fs-h3:   clamp(1.3rem, 1.8vw, 1.65rem);
  --fs-lead: clamp(1.12rem, 1.55vw, 1.4rem);

  --w:       1240px;
  --w-text:  62ch;
  --pad:     clamp(1.25rem, 4.5vw, 3.25rem);
  --sec:     clamp(4.5rem, 9vw, 9rem);

  --ease:    cubic-bezier(.22,.61,.24,1);
  --radius:  4px;
}

/* ---------------------------------------------------------------
   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; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-ui);
  font-size: clamp(1rem, .5vw + .95rem, 1.125rem);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Cinematic vignette + faint top glow behind everything */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(228,24,54,.06), transparent 55%),
    radial-gradient(140% 100% at 50% 100%, rgba(0,0,0,.55), transparent 60%);
}
body > * { position: relative; z-index: 1; }

img, video { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--text);
  margin: 0 0 .6em;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
a { color: var(--red-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
strong { color: var(--text); font-weight: 700; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .4em; }
hr { border: 0; border-top: 1px solid var(--line); }

::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 300;
  background: #fff; color: #111; padding: .7rem 1.1rem; border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }
.vh { position: absolute!important; width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0; }

/* ---------------------------------------------------------------
   Layout primitives
   --------------------------------------------------------------- */
.container { max-width: var(--w); margin-inline: auto; padding-inline: var(--pad); }
.container--wide { max-width: 1440px; }
.section { padding-block: var(--sec); }
.measure { max-width: var(--w-text); }
.center { text-align: center; margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700; font-size: .78rem;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--red-2); margin: 0 0 1.1rem;
}
.rule { width: 64px; height: 2px; background: var(--red); box-shadow: 0 0 14px 1px rgba(228,24,54,.65); margin: 0 0 1.6rem; }
.center .rule { margin-inline: auto; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--text); font-weight: 400; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .85rem 1.7rem;
  font-family: var(--font-ui); font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  border: 1.5px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease);
}
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-2); color: #fff; box-shadow: 0 10px 34px rgba(228,24,54,.42); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: rgba(255,255,255,.06); border-color: #fff; color: #fff; }
.btn--sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------
   Header (fixed, transparent over media → solid on scroll)
   --------------------------------------------------------------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-head.is-solid {
  background: rgba(14,14,17,.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.topline {
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .8rem; color: var(--muted);
  transition: opacity .3s var(--ease), max-height .3s var(--ease), padding .3s var(--ease);
  overflow: hidden; max-height: 60px;
}
.site-head.is-solid .topline { max-height: 0; opacity: 0; padding-block: 0; border-color: transparent; }
.topline__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topline a { color: var(--muted); text-decoration: none; }
.topline a:hover { color: #fff; }
.topline__contact { display: flex; gap: 1.5rem; align-items: center; }
.topline__contact a { display: inline-flex; align-items: center; gap: .45rem; }
.topline__social { display: flex; gap: .1rem; }
.topline__social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; }
.topline__social a:hover { color: var(--red-2); background: rgba(255,255,255,.06); }

.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.brand__img { height: 42px; width: auto; }
.brand__txt { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: .01em; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem); }
.nav__list { list-style: none; display: flex; gap: clamp(.4rem, 2vw, 1.9rem); margin: 0; padding: 0; }
.nav__list a {
  position: relative; display: inline-block; padding: .5rem .2rem;
  font-weight: 600; font-size: .98rem; color: var(--body); text-decoration: none;
  transition: color .2s var(--ease);
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--red); box-shadow: 0 0 10px rgba(228,24,54,.7);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__list a:hover { color: #fff; }
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__list a[aria-current="page"] { color: #fff; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; color: #fff;
  align-items: center; justify-content: center;
}
.menu-toggle .bar, .menu-toggle .bar::before, .menu-toggle .bar::after {
  content: ""; display: block; width: 26px; height: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s;
}
.menu-toggle .bar { position: relative; }
.menu-toggle .bar::before { position: absolute; top: -8px; left: 0; }
.menu-toggle .bar::after  { position: absolute; top: 8px;  left: 0; }
.menu-toggle[aria-expanded="true"] .bar { background: transparent; }
.menu-toggle[aria-expanded="true"] .bar::before { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar::after  { transform: translateY(-8px) rotate(-45deg); }

/* Mobile overlay menu */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10,10,12,.98);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad);
  transform: translateY(-100%); opacity: 0; visibility: hidden;
  transition: transform .4s var(--ease), opacity .3s var(--ease), visibility .3s;
}
.nav-open .mobile-nav { transform: translateY(0); opacity: 1; visibility: visible; }
.nav-open { overflow: hidden; }
.mobile-nav__list { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.mobile-nav__list a {
  font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3rem); font-weight: 500;
  color: var(--text); text-decoration: none; display: inline-block; padding: .35rem 0;
}
.mobile-nav__list a:hover, .mobile-nav__list a[aria-current="page"] { color: var(--red-2); }
.mobile-nav__meta { color: var(--muted); display: flex; flex-direction: column; gap: 1rem; }
.mobile-nav__meta a { color: var(--muted); text-decoration: none; }
.mobile-nav__social { display: flex; gap: .5rem; }
.mobile-nav__social a { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; }

/* ---------------------------------------------------------------
   Hero (full viewport, video)
   --------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(14,14,17,.55) 0%, rgba(14,14,17,.30) 30%, rgba(14,14,17,.55) 70%, var(--bg) 100%),
    linear-gradient(90deg, rgba(14,14,17,.75), rgba(14,14,17,.15) 60%, transparent);
}
.hero__inner { position: relative; z-index: 1; padding-top: 120px; padding-bottom: clamp(3rem, 8vh, 7rem); width: 100%; }
.hero__eyebrow { color: #ff9aa8; }
.hero__title { font-size: var(--fs-hero); font-weight: 400; max-width: 16ch; margin-bottom: 1.6rem; color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 1;
  color: var(--muted); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  display: inline-flex; flex-direction: column; align-items: center; gap: .5rem; text-decoration: none;
}
.scroll-cue span { width: 1px; height: 42px; background: linear-gradient(var(--red-2), transparent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0%{transform:scaleY(0);transform-origin:top} 40%{transform:scaleY(1);transform-origin:top} 60%{transform:scaleY(1);transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* ---------------------------------------------------------------
   Split (text + luminous media)
   --------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--flip .split__media { order: -1; }
@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; gap: clamp(1.75rem, 6vw, 2.5rem); }
  .split--flip .split__media { order: 0; }
}
.media { position: relative; border-radius: var(--radius); overflow: hidden; }
.media img { width: 100%; display: block; }
.media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--radius); pointer-events: none; }
.media--glow { box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 60px -20px rgba(228,24,54,.25); }

/* ---------------------------------------------------------------
   Full-bleed poppy divider
   --------------------------------------------------------------- */
.divider {
  height: clamp(220px, 34vh, 360px);
  background: url("../assets/img/divider-poppy-macro.jpg") center/cover no-repeat, var(--bg);
  position: relative;
}
.divider::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(14,14,17,.35) 0%, transparent 26%, transparent 50%, var(--bg) 100%), linear-gradient(90deg, var(--bg), transparent 20%, transparent 80%, var(--bg)); }

/* ---------------------------------------------------------------
   Gallery
   --------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.8rem, 1.5vw, 1.4rem); }
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.gallery__item:first-child { aspect-ratio: 4/5; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item::after { content:""; position:absolute; inset:0; box-shadow: inset 0 0 0 1px var(--line), inset 0 -60px 60px -40px rgba(0,0,0,.7); }
.gallery__item:hover img { transform: scale(1.05); }
@media (max-width: 720px){ .gallery { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------
   Events scroller
   --------------------------------------------------------------- */
.events__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.events__nav { display: flex; gap: .5rem; }
.events__btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: #fff; font-size: 1.4rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: .2s var(--ease); }
.events__btn:hover { background: var(--red); border-color: var(--red); }
.events__btn[disabled] { opacity: .3; cursor: default; }
.events__scroller { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--pad); cursor: grab; scrollbar-width: none; }
.events__scroller::-webkit-scrollbar { display: none; }
.events__scroller:active { cursor: grabbing; }
.events__track { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: .5rem var(--pad) 1rem; }
.event { scroll-snap-align: start; flex: 0 0 clamp(280px, 78vw, 340px); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.event:hover { border-color: var(--line-2); transform: translateY(-4px); }
.event__media { aspect-ratio: 16/11; overflow: hidden; background: var(--bg-3); }
.event__media img { width: 100%; height: 100%; object-fit: cover; }
.event__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.event__body h3 { margin: 0; }
.event__body p { margin: 0; color: var(--body); }
.event__tag { align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red-2); border: 1px solid rgba(228,24,54,.35); border-radius: 999px; padding: .2rem .7rem; }
.event--cta { justify-content: center; background: linear-gradient(160deg, #26262e, #16161a); }
.event--cta .btn { margin-top: .5rem; align-self: flex-start; }

/* ---------------------------------------------------------------
   Full-bleed CTA band (image + scrim)
   --------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,17,.78), rgba(14,14,17,.9)); z-index: -1; }
.pullquote { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 400; line-height: 1.3; color: #fff; max-width: 20ch; margin: 2.5rem 0 0; padding-left: 1.5rem; border-left: 2px solid var(--red); }

/* ---------------------------------------------------------------
   Page header (inner pages)
   --------------------------------------------------------------- */
.page-head { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(46vh, 60vh, 640px); }
.page-head__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.page-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,17,.55) 0%, rgba(14,14,17,.35) 40%, rgba(14,14,17,.8) 85%, var(--bg) 100%); z-index: -1; }
.page-head__inner { padding-top: 150px; padding-bottom: clamp(2.5rem, 6vh, 5rem); width: 100%; }
.page-head h1 { font-size: var(--fs-h1); color: #fff; }
.page-head .eyebrow { color: #ff9aa8; }
.page-head .lead { max-width: 54ch; }

/* ---------------------------------------------------------------
   Cards / resources
   --------------------------------------------------------------- */
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 2vw, 2rem); }
.grid { display: grid; gap: clamp(1rem, 1.8vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .grid--3, .grid--4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.resource { background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--radius); padding: 1.4rem 1.6rem; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.resource:hover { transform: translateY(-3px); border-left-color: var(--red-2); }
.resource b { display: block; color: var(--text); font-size: 1.08rem; margin-bottom: .25rem; }
.resource p { margin: 0; color: var(--body); }
.tel { color: var(--red-2); font-weight: 600; white-space: nowrap; text-decoration: none; }
.tel:hover { color: #fff; }

.group-title { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.6rem; }
.group-title .num { font-family: var(--font-display); color: var(--red-2); font-size: 1.1rem; opacity: .8; }

.callout {
  background: linear-gradient(160deg, rgba(228,24,54,.12), rgba(26,26,32,.6));
  border: 1px solid rgba(228,24,54,.3); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.6rem); box-shadow: var(--glow);
}
.callout h2 { font-size: var(--fs-h3); }
.callout p { color: var(--text); max-width: 68ch; margin: 0; }

.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
@media (max-width: 860px){ .board-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px){ .board-grid { grid-template-columns: 1fr; } }
.board-card { margin: 0; background: var(--bg-2); border: 1px solid var(--line); border-top: 2px solid var(--red); border-radius: var(--radius); padding: 1.6rem; text-align: center; }
.board-card b { display: block; color: var(--text); }
.board-card span { color: var(--muted); font-size: .9rem; }

.placeholder-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-2); border: 1px solid rgba(228,24,54,.35); border-radius: 999px; padding: .2rem .8rem; }

/* ---------------------------------------------------------------
   Forms
   --------------------------------------------------------------- */
.field { margin-bottom: 1.4rem; }
.field label { display: block; font-weight: 600; color: var(--text); margin-bottom: .5rem; }
.field .req { color: var(--red-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .8rem 1rem;
  font: inherit; color: var(--text); background: var(--bg-1);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field ::placeholder { color: var(--faint); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--red-2); box-shadow: 0 0 0 3px rgba(228,24,54,.25); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red-2); }
.field__err { color: var(--red-2); font-size: .85rem; margin: .4rem 0 0; min-height: 1em; }
.form-result { font-weight: 600; min-height: 1.4em; margin-top: 1rem; }
.form-result.is-ok { color: #6ee787; }
.form-result.is-err { color: var(--red-2); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }

/* Newsletter inline */
.newsletter { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.newsletter label { width: 100%; color: var(--muted); font-size: .85rem; margin-bottom: .3rem; }
.newsletter input { flex: 1 1 100%; min-width: 0; min-height: 48px; padding: .7rem 1rem; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--text); font: inherit; }
.newsletter button { flex: 0 0 auto; }
.newsletter input:focus-visible { outline: none; border-color: var(--red-2); box-shadow: 0 0 0 3px rgba(228,24,54,.25); }
.form-note { width: 100%; font-size: .85rem; min-height: 1em; margin: .2rem 0 0; }
.form-note.is-ok { color: #6ee787; } .form-note.is-err { color: var(--red-2); }

/* ---------------------------------------------------------------
   Contact layout / map
   --------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 880px){ .contact-grid { grid-template-columns: 1fr; } }
.info-line { display: flex; flex-direction: column; gap: .2rem; margin-bottom: 1.6rem; }
.info-line span { color: var(--muted); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.info-line a, .info-line address { color: var(--text); font-style: normal; font-size: 1.1rem; text-decoration: none; line-height: 1.5; }
.info-line a:hover { color: var(--red-2); }
.map { position: relative; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.3) contrast(1.05) brightness(.9); }

.hours { width: 100%; border-collapse: collapse; }
.hours caption { text-align: left; font-family: var(--font-display); color: var(--text); font-size: 1.2rem; padding-bottom: .6rem; }
.hours th, .hours td { text-align: left; padding: .5rem .6rem .5rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.hours th { color: var(--muted); font-weight: 500; white-space: nowrap; }
.hours td { color: var(--text); }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.site-foot { background: #0a0a0c; border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 6vw, 6rem) 2.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); }
@media (max-width: 860px){ .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .foot-grid { grid-template-columns: 1fr; } }
.foot-brand { display: inline-block; margin-bottom: 1.4rem; }
.foot-brand__img { height: 48px; width: auto; display: block; }
.foot-contact { list-style: none; margin: 1.3rem 0 0; padding: 0; }
.foot-contact li { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .7rem; }
.foot-contact svg { flex: none; width: 18px; height: 18px; margin-top: .15rem; color: var(--red-2); }
.foot-contact a, .foot-contact address { color: var(--body); font-style: normal; text-decoration: none; line-height: 1.55; }
.foot-contact a:hover { color: #fff; }
.foot h4 { font-family: var(--font-ui); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.1rem; font-weight: 700; }
.foot a { color: var(--body); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot p { margin: 0 0 .5rem; }
.foot-social { display: flex; gap: .5rem; margin-top: 1rem; }
.foot-social a { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; }
.foot-social a:hover { border-color: var(--red); color: var(--red-2); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.8rem; border-top: 1px solid var(--line); }
.foot-tagline { font-family: var(--font-display); font-size: 1.4rem; color: #fff; margin: 0; }
.foot-copy { color: var(--faint); font-size: .85rem; margin: 0; }
.foot-legal { display: flex; flex-direction: column; gap: .25rem; text-align: right; }
.foot-credit { color: var(--faint); font-size: .85rem; margin: 0; }
.foot-credit a { color: var(--muted); text-decoration: none; }
.foot-credit a:hover { color: var(--red-2); }
@media (max-width: 620px) { .foot-legal { text-align: left; } }

/* ---------------------------------------------------------------
   Reveal on scroll
   --------------------------------------------------------------- */
[data-reveal] { opacity: 1; }
.js-reveal [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------
   Responsive nav
   --------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav__list, .nav .btn, .topline__contact .topline__email { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav { gap: .5rem; }
}
@media (max-width: 520px) {
  .topline__contact { gap: .9rem; }
}

/* ---------------------------------------------------------------
   Reduced motion
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js-reveal [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__video { display: none; }
  .scroll-cue span { animation: none; }
}

/* ---------------------------------------------------------------
   Homepage layout tweaks
   --------------------------------------------------------------- */
.about-close { max-width: 80ch; margin-top: clamp(1.75rem, 3vw, 2.75rem); }

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.8vw, 1.5rem);
  list-style: none; margin: 0; padding: 0;
}
.events-grid .event { flex: none; }   /* grid item, not a flex card */
/* text-only cards centre their content so equal-height rows read intentionally */
.events-grid .event:not(:has(.event__media)) .event__body { justify-content: center; }
@media (max-width: 900px) { .events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .events-grid { grid-template-columns: 1fr; } }

.pullquote--wide { max-width: none; }

/* About: image top aligns with the body text, with decorative red corner accents */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 5rem); row-gap: clamp(.75rem, 2vw, 1.25rem); align-items: start; }
.about-head { grid-column: 1; grid-row: 1; }
.about-body { grid-column: 1; grid-row: 2; }
.about-media { grid-column: 2; grid-row: 2; position: relative; }
.about-media::before, .about-media::after {
  content: ""; position: absolute; z-index: 2; pointer-events: none;
  width: clamp(46px, 6vw, 78px); height: clamp(46px, 6vw, 78px);
  filter: drop-shadow(0 0 8px rgba(228,24,54,.45));
}
.about-media::before { top: -14px; right: -14px; border-top: 2px solid var(--red); border-right: 2px solid var(--red); }
.about-media::after  { bottom: -14px; left: -14px; border-bottom: 2px solid var(--red); border-left: 2px solid var(--red); }
@media (max-width: 780px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-head, .about-body, .about-media { grid-column: 1; grid-row: auto; }
  .about-media { margin-top: clamp(1.25rem, 3vw, 2rem); }
}

/* Community images: fill their column at a uniform aspect */
.community-media { aspect-ratio: 3 / 2; }
.community-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------
   Community: "How Branch #62 Supports Our Community" pills
   --------------------------------------------------------------- */
.supports { margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.supports h3 { margin-bottom: 1.4rem; }
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; }
.pill-list li {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0;
  padding: .5rem 1.05rem; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--bg-2); color: var(--text); font-size: .95rem; line-height: 1.35;
  transition: border-color .2s var(--ease);
}
.pill-list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px rgba(228,24,54,.7); }
.pill-list li:hover { border-color: rgba(228,24,54,.55); }
.pill-list .pill--more { border-style: dashed; background: transparent; color: var(--muted); font-style: italic; }
.pill-list .pill--more::before { content: none; }

/* ---------------------------------------------------------------
   Regular Monthly Events: paper wall calendar on the dark page
   --------------------------------------------------------------- */
.cal {
  --paper: #f6f1e7; --paper-2: #fffdf8; --ink: #161616; --ink-2: #57514a; --hair: #e4e0d6; --red-ink: #b3112a;
  position: relative; margin-top: clamp(3rem, 6vw, 4rem);
  background: var(--paper); color: var(--ink);
  border-radius: 14px;
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(.5rem, 2.2vw, 1.8rem) clamp(1rem, 2vw, 1.5rem);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), 0 0 80px -30px rgba(228,24,54,.35);
}
.cal :focus-visible { outline-color: var(--red-ink); }

/* binder rings: ::before = punched hole, ::after = metal ring */
.cal__rings { position: absolute; top: -18px; left: 7%; right: 7%; display: flex; justify-content: space-between; pointer-events: none; }
.cal__rings span { position: relative; width: 16px; height: 40px; }
.cal__rings span::before { content: ""; position: absolute; left: 1px; bottom: 0; width: 14px; height: 14px; border-radius: 50%; background: #1d1d22; box-shadow: inset 0 2px 3px rgba(0,0,0,.6); }
.cal__rings span::after { content: ""; position: absolute; left: 4px; top: 0; width: 8px; height: 33px; border-radius: 5px; background: linear-gradient(90deg, #5d5d65, #e6e6ea 45%, #6d6d75); box-shadow: 0 2px 4px rgba(0,0,0,.45); }

.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .4rem 1.1rem; margin-bottom: .6rem; border-bottom: 2px dashed #d8d1c2; }
.cal__title { flex: 1; text-align: center; }
.cal__month { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 500; color: var(--ink); }
.cal__month span { color: var(--red-ink); font-style: italic; }
.cal__today { margin-top: .35rem; min-height: 32px; padding: .2rem .6rem; border: 0; background: none; font: inherit; font-size: .85rem; font-weight: 700; color: var(--red-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cal__nav {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid #cfc8ba; background: var(--paper-2); color: var(--ink);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding-bottom: .15rem;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.cal__nav:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.cal__grid { width: 100%; border-collapse: separate; border-spacing: 6px; table-layout: fixed; }
.cal__grid th { padding: .2rem 0 .3rem; text-align: center; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.cal__grid td { padding: 0; vertical-align: top; }
.cal__grid td.is-out { padding: .5rem; }

.cal__day {
  width: 100%; min-height: 108px; margin: 0; padding: .45rem;
  display: flex; flex-direction: column; align-items: stretch; gap: .3rem;
  font: inherit; text-align: left; color: inherit; cursor: pointer;
  background: var(--paper-2); border: 1px solid var(--hair); border-radius: 8px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.cal__day:hover { border-color: #c9c1b1; transform: translateY(-2px); box-shadow: 0 8px 16px -10px rgba(0,0,0,.35); }
.cal__day.is-sel { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cal__num {
  display: inline-flex; align-items: center; justify-content: center; align-self: flex-start;
  width: 1.9em; height: 1.9em; margin: -.2rem 0 0 -.2rem; border-radius: 50%;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; line-height: 1;
}
.is-past .cal__num { color: #736c61; }
.is-out .cal__num { color: #bdb6a8; }
.is-today .cal__num { background: var(--red); color: #fff; box-shadow: 0 0 0 3px rgba(228,24,54,.2); }

.cal__chips { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.chip { display: block; padding: .22rem .45rem; border-radius: 5px; font-size: .74rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.chip b { font-weight: 800; }
.chip.k-legion { background: #fbe3e7; color: #9e0f25; }
.chip.k-group  { background: #ebe5d8; color: #2b2721; }
.cal__dots { display: none; }

.cal__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.6rem; padding-top: .8rem; font-size: .88rem; color: var(--ink-2); }
.cal__legend span { display: inline-flex; align-items: center; gap: .5rem; }
.cal__legend i { width: 14px; height: 14px; border-radius: 4px; }
.cal__legend .k-legion { background: #fbe3e7; box-shadow: inset 0 0 0 1.5px #d9667a; }
.cal__legend .k-group  { background: #ebe5d8; box-shadow: inset 0 0 0 1.5px #a89f8e; }

@media (max-width: 720px) {
  .cal__grid { border-spacing: 3px; }
  .cal__grid th { font-size: .62rem; letter-spacing: .04em; }
  .cal__grid td.is-out { padding: .3rem 0; text-align: center; }
  .cal__day { min-height: 50px; padding: .3rem .1rem; align-items: center; gap: .2rem; border-radius: 6px; }
  .cal__num { margin: 0; align-self: center; font-size: .95rem; }
  .cal__chips { display: none; }
  .cal__dots { display: flex; gap: 3px; justify-content: center; }
  .cal__dots i { width: 6px; height: 6px; border-radius: 50%; }
  .cal__dots .k-legion { background: var(--red); }
  .cal__dots .k-group  { background: #8a8172; }
  .cal__nav { width: 44px; height: 44px; }
}

/* Below the calendar: selected day, note, and the plain list (also the no-JS fallback) */
.cal-below { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; margin-top: clamp(2rem, 4vw, 3rem); }
@media (max-width: 860px) { .cal-below { grid-template-columns: 1fr; } }

.cal-day { background: var(--bg-2); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); padding: 1.4rem 1.6rem 1.2rem; }
.cal-day__kicker { margin: 0 0 .3rem; font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red-2); }
.cal-day h3 { margin: 0 0 .9rem; font-size: var(--fs-h3); }
.cal-day ul { list-style: none; margin: 0; padding: 0; }
.cal-day li { display: flex; gap: 1rem; margin: 0; padding: .6rem 0; border-top: 1px solid var(--line); color: var(--text); line-height: 1.45; }
.cal-day li .t { flex: none; min-width: 5.2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-day__empty { margin: 0; color: var(--muted); }

.cal-note {
  position: relative; margin: 2rem .5rem 0; padding: 1.3rem 1.3rem 1.1rem;
  background: var(--cream); color: #2b2721; border-radius: 3px;
  font-size: .98rem; line-height: 1.55;
  transform: rotate(-1.5deg); box-shadow: 0 18px 30px -18px rgba(0,0,0,.85);
}
.cal-note::before { content: ""; position: absolute; top: -11px; left: 50%; width: 86px; height: 22px; margin-left: -43px; background: rgba(228,24,54,.6); transform: rotate(2.5deg); }
.cal-note p { margin: 0; }
.cal-note a { color: #9e0f25; font-weight: 700; }
.cal-note a:hover { color: #161616; }

.cal-list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 620px) { .cal-list { grid-template-columns: 1fr; } }
.cal-list h3 { margin-bottom: .7rem; font-size: 1.3rem; }
.cal-list ul { list-style: none; margin: 0; padding: 0; }
.cal-list li { position: relative; display: flex; flex-direction: column; margin: 0; padding: .7rem 0 .7rem 1.3rem; border-top: 1px solid var(--line); line-height: 1.4; }
.cal-list li::before { content: ""; position: absolute; left: 0; top: 1.18rem; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px rgba(228,24,54,.6); }
.cal-list li[data-kind="group"]::before { background: #cfc6b4; box-shadow: none; }
.cal-list b { color: var(--text); font-weight: 600; }
.cal-list li > span { color: var(--muted); font-size: .92rem; }
.cal-list .placeholder-tag { margin-left: .4rem; font-size: .62rem; padding: .1rem .55rem; vertical-align: middle; }
