/* ==========================================================================
   Lockport VFW Post 5788 — vfw5788.org
   Bespoke stylesheet, no framework.
   ========================================================================== */

:root {
  --ink: #17181b;          /* near-black */
  --paper: #f5f4f0;        /* warm off-white page background */
  --paper-alt: #ebe8e0;    /* tinted band background */
  --card: #fbfaf7;         /* form / dues card background */
  --blue: #283878;         /* VFW blue */
  --gold: #e0c07a;         /* accent gold */
  --body-muted: #35373d;   /* body copy on light */
  --gray: #6a6d75;         /* labels, captions */
  --line: #dcd9d0;         /* hairline borders */
  --line-soft: #e4e1d8;    /* mobile menu dividers */
  --line-btn: #cfccc2;     /* burger button border */

  --font-body: "Barlow", sans-serif;
  --font-cond: "Barlow Condensed", sans-serif;

  --max: 1220px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* Base ------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; min-width: 0; }

/* clip on html as well as body — body alone doesn't stop
   mobile browsers from panning the viewport sideways */
html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; }

img { max-width: 100%; }

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

/* Type helpers ----------------------------------------------------------- */

.kicker {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.cta-link {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cta-link--lg { font-size: 16px; }

.link-list {
  display: grid;
  gap: 8px;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Top bar ---------------------------------------------------------------- */

.topbar-wrap {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-cond);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 8px;
  padding-bottom: 8px;
  white-space: nowrap;
}

.topbar a { color: var(--paper); }

.tb-right { margin-left: auto; display: flex; gap: 20px; }

/* Header ----------------------------------------------------------------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 40;
}

.header-inner {
  padding-top: 12px;
  padding-bottom: 12px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(10px, 1.5vw, 16px);
}

.brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(8px, 1.2vw, 14px);
  color: inherit;
  text-decoration: none;
}
.brand:hover { color: inherit; text-decoration: none; }

.brand-logo {
  height: clamp(40px, 4.2vw, 50px);
  width: auto;
  display: block;
}

.brand-text { white-space: nowrap; }

.brand-title {
  display: block;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(17px, 2.1vw, 27px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.05;
}

.brand-sub {
  display: block;
  font-family: var(--font-cond);
  font-weight: 500;
  font-size: clamp(10px, 1.1vw, 13px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

.nav-desktop {
  margin-left: auto;
  display: flex;
  gap: clamp(10px, 1.7vw, 22px);
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: clamp(13px, 1.45vw, 16px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-desktop a { color: var(--ink); }

.nav-burger {
  margin-left: auto;
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-btn);
  background: transparent;
  cursor: pointer;
  flex: none;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 32px rgba(23, 24, 27, 0.14);
  animation: menuIn 0.16s ease;
}

.mobile-nav.is-open { display: block; }

.mobile-nav-inner {
  padding-top: 6px;
  padding-bottom: 14px;
  display: grid;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-nav-inner a {
  color: var(--ink);
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav-inner a:last-child { border-bottom: 0; }

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
  .nav-desktop { display: none; }
  .nav-burger { display: flex; }
  .brand-title { font-size: 24px; }
  .brand-sub { font-size: 12px; }
}

@media (max-width: 640px) {
  .topbar { justify-content: space-between; font-size: 13px; letter-spacing: 0.1em; }
  .topbar .tb-right { margin-left: 0; gap: 16px; }
  .tb-hide { display: none; }
}

/* Narrow phones (S23U ~345px, Pixel 7 ~340px, Z Fold cover ~300px):
   scale the brand lockup so logo + text + burger always fit. The VFW logo
   is ~2.9:1 wide, so its height drives most of the row's width. */
@media (max-width: 420px) {
  .brand-logo { height: clamp(22px, 8.8vw, 40px); }
  .brand-title { font-size: clamp(14px, 5vw, 24px); }
  .brand-sub { font-size: clamp(8px, 2.5vw, 12px); letter-spacing: 0.16em; }
  .topbar { font-size: 12px; }
}

/* Heroes ------------------------------------------------------------------ */

.hero {
  position: relative;
  background: var(--blue);
  color: var(--paper);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  display: block;
}

.hero-bg--dim { opacity: 0.28; }

.hero-inner {
  position: relative;
  padding-top: 56px;
  padding-bottom: 56px;
}

.hero-inner--home {
  padding-top: clamp(56px, 9vw, 96px);
  padding-bottom: clamp(48px, 8vw, 76px);
}

.hero-inner--hall {
  padding-top: 76px;
  padding-bottom: 64px;
}

.hero-kicker {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.breadcrumb {
  font-family: var(--font-cond);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 10px;
}

.breadcrumb--hall { opacity: 0.7; }

.hero-title {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(32px, 6.2vw, 62px);
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

.hero-title--home {
  font-size: clamp(38px, 8vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  max-width: 22ch;
}

.hero-title--hall {
  font-size: clamp(34px, 7vw, 72px);
  margin-bottom: 18px;
}

.hero-title--sub { margin-bottom: 16px; }

.hero-lede {
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.55;
  max-width: 60ch;
  margin: 0;
  opacity: 0.9;
}

.hero-lede--lg {
  font-size: clamp(18px, 2vw, 21px);
  max-width: 58ch;
  opacity: 0.92;
  text-wrap: pretty;
}

.hero-lede--wide { max-width: 62ch; }

/* Home info strip --------------------------------------------------------- */

.info-strip { background: var(--ink); color: var(--paper); }

.info-strip-inner {
  padding-top: 24px;
  padding-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 32px;
  align-items: center;
}

.info-item { display: flex; gap: 14px; align-items: baseline; }

.info-label {
  font-family: var(--font-cond);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
}

.info-value { font-size: 17px; }

/* Sections & layout ------------------------------------------------------- */

.section { padding-top: 72px; padding-bottom: 72px; }
.section--roomy { padding-top: 76px; padding-bottom: 76px; }
.section--snug { padding-top: 68px; padding-bottom: 68px; }
.section--tight { padding-top: 60px; padding-bottom: 60px; }
.section--calendar { padding-top: 56px; padding-bottom: 72px; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 64px;
}

.split--md { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px; }
.split--gap48 { gap: 48px; }
.split--gap40 { gap: 40px; }
.split--center { align-items: center; }

.trio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 40px;
}

.stack { display: grid; gap: 26px; align-content: start; }
.stack--24 { gap: 24px; }

/* Bands ------------------------------------------------------------------- */

.band {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
}
.band--bordered { border-bottom: 1px solid var(--line); }

.band-blue { background: var(--blue); color: var(--paper); }

/* Headings ---------------------------------------------------------------- */

.h-display {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(30px, 5.2vw, 52px);
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.h-section {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(24px, 3.6vw, 36px);
  text-transform: uppercase;
  margin: 0 0 18px;
}

.h-band {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 40px);
  text-transform: uppercase;
  margin: 0;
}

.h-card {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 26px;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.h-card--28 { font-size: 28px; margin-bottom: 10px; }
.h-card--fluid { font-size: clamp(20px, 2.6vw, 26px); }
.h-card--sm { font-size: clamp(19px, 2.4vw, 24px); }
.h-card--band { font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; }
.h-card--cell { margin-bottom: 10px; }

/* Body copy --------------------------------------------------------------- */

.lead {
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.55;
  margin: 0 0 20px;
  text-wrap: pretty;
}

.lead--19 { font-size: 19px; line-height: 1.6; margin-bottom: 18px; }

.copy {
  font-size: 17px;
  line-height: 1.7;
  color: var(--body-muted);
  margin: 0 0 16px;
}

.copy--last { margin-bottom: 0; }

.body-text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--body-muted);
  margin: 0;
}

.body-text--165 { line-height: 1.65; }
.body-text--18 { font-size: 18px; line-height: 1.65; }
.body-text--space { margin-bottom: 12px; }
.body-text--space-lg { margin-bottom: 14px; }

/* Rule cards (border-top blocks) ------------------------------------------ */

.rule-card { border-top: 2px solid var(--ink); padding-top: 18px; }
.rule-card--16 { padding-top: 16px; }
.rule-card--14 { padding-top: 14px; }

/* Cell grids (1px-gap tables) --------------------------------------------- */

.cellgrid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cellgrid--260 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.cellgrid--300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }

.cell { background: var(--paper); padding: 18px 20px; }
.cell--pad { padding: 28px 26px; }
.cell--pad-sm { padding: 26px; }

.cell-label {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 4px;
}

.cell-name { font-size: 19px; font-weight: 500; }
.cell-branch { font-size: 15px; color: var(--gray); }

/* Officer rows (Auxiliary) */
.officer-row {
  background: var(--paper);
  padding: 14px 18px;
  display: grid;
  grid-template-columns: minmax(0, 190px) 1fr;
  gap: 18px;
  align-items: baseline;
}
.officer-row .cell-label { margin-bottom: 0; }
.officer-row span:last-child { font-size: 18px; }

/* Hours rows (Canteen) */
.hours-row {
  background: var(--paper);
  padding: 13px 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.hours-row span:first-child { color: var(--gray); }
.hours-row span:last-child { font-weight: 500; }

/* Definition grids (Contact hours & meetings) */
.def-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 28px;
  font-size: 18px;
}
.def-grid dt,
.def-grid span.def-key { color: var(--gray); }

/* Feature list (Queen of Hearts) ------------------------------------------ */

.feature-list {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body-muted);
  margin: 0 0 22px;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

/* Stats band (Hall rental) ------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(205px, 100%), 1fr));
  gap: 32px;
}

.stat-value {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1;
}

.stat-caption { font-size: 16px; color: var(--gray); }

/* Crisis strip (Mental wellness) ------------------------------------------ */

.crisis-strip { background: var(--gold); color: var(--ink); }

.crisis-strip-inner { padding-top: 40px; padding-bottom: 40px; }

.crisis-kicker {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.crisis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 20px 40px;
  align-items: start;
}

.crisis-number {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
}

.crisis-number a { color: var(--ink); text-decoration: underline; }

.crisis-caption { font-size: 16px; margin-top: 4px; }

/* Blue crisis CTA (Resources) --------------------------------------------- */

.crisis-cta-inner { padding-top: 48px; padding-bottom: 48px; }

.crisis-cta-kicker {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.crisis-cta-text {
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.45;
  margin: 0;
  max-width: 62ch;
}

.crisis-cta-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}
.crisis-cta-link:hover { color: var(--paper); }

/* Cards & forms ------------------------------------------------------------ */

.panel-card {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 30px;
}

.panel-card--dues { padding: 26px; }

.panel-title {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 26px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.dues-label {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}

.dues-amount {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(34px, 5.6vw, 56px);
  line-height: 1;
  margin-bottom: 18px;
}

.dues-links {
  display: grid;
  gap: 12px;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-grid { display: grid; gap: 16px; }

.field {
  display: grid;
  gap: 6px;
  font-size: 15px;
  color: var(--gray);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 17px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.field textarea { resize: vertical; }

.btn {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 14px 20px;
  cursor: pointer;
}

.btn:hover { background: var(--blue); }

/* Calendar ----------------------------------------------------------------- */

.calendar-frame { border: 1px solid var(--line); background: #ffffff; }

.calendar-frame iframe {
  display: block;
  width: 100%;
  height: clamp(480px, 72vh, 780px);
  border: 0;
}

.calendar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-top: 18px;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Contact ------------------------------------------------------------------ */

.address-block { font-size: 19px; line-height: 1.7; margin-bottom: 28px; }
.address-block .org { font-weight: 600; }

.blockquote { margin: 0; font-size: 18px; line-height: 1.55; color: var(--body-muted); }

.blockquote footer {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 10px;
  color: var(--ink);
}

.values-list {
  display: grid;
  gap: 6px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--body-muted);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 28px;
}
.section-head .h-band { margin: 0; }
.section-head .cta-link { margin-left: auto; }

/* Footer ------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
}

.site-footer a { color: var(--paper); }

.ft-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  padding-top: 48px;
  padding-bottom: 26px;
}

.ft-logo {
  width: clamp(150px, 18vw, 230px);
  height: auto;
  display: block;
  margin-bottom: 16px;
}

.ft-title {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ft-address {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 10px;
}

.ft-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-size: 16px;
}

.ft-heading {
  font-family: var(--font-cond);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 12px;
}

.ft-links { display: grid; gap: 8px; font-size: 16px; }

.ft-legal {
  padding-bottom: 34px;
  font-size: 14px;
  opacity: 0.45;
}

@media (max-width: 720px) {
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .ft-brand { grid-column: 1 / -1; }
}
