/* ==========================================================================
   Grimsby Philatelic Society — main stylesheet
   A clean, modern site dressed in a light "philatelic" motif: perforated
   edges, postmark circles and stamp-frame cards, built on a calm paper
   background with maroon / gold accents drawn from the Society crest.
   ========================================================================== */

:root {
  --ink:        #1c1c1e;
  --ink-soft:   #4a4a4d;
  --paper:      #ffffff;
  --cream:      #faf6ee;
  --cream-deep: #f1e9d8;
  --maroon:     #7a1f2b;
  --maroon-dark:#5c1620;
  --maroon-tint:#fbeceb;
  --navy:       #142a3d;
  --gold:       #b6862c;
  --gold-light: #d8b56b;
  --gold-soft:  #f4e6c4;
  --line:       #e4dcc9;

  /* Semantic text tokens — separate from the brand colours above so the
     always-dark decorative surfaces (header, hero, buttons, badges) can
     stay exactly as designed while heading/link text still adapts to
     the dark theme below. */
  --heading: var(--maroon-dark);
  --accent:  var(--maroon);

  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(28, 21, 10, 0.08);
  --shadow-md: 0 8px 24px rgba(28, 21, 10, 0.10);
  --shadow-lg: 0 18px 44px rgba(28, 21, 10, 0.16);

  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  color-scheme: light;
}

/* ==========================================================================
   Dark theme
   Two triggers, same values: the OS/browser preference (unless the visitor
   has explicitly picked "light" on this site) and an explicit choice made
   with the sun/moon toggle in the header, which always wins.
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:         #f2ece2;
    --ink-soft:    #c8bfb1;
    --paper:       #241a1c;
    --cream:       #16100f;
    --cream-deep:  #1f1613;
    --maroon-tint: rgba(217, 99, 108, 0.16);
    --gold-soft:   rgba(182, 134, 44, 0.20);
    --line:        #3a2c2c;

    --heading: var(--gold-light);
    --accent:  #d9636c;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 26px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 46px rgba(0, 0, 0, 0.55);

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ink:         #f2ece2;
  --ink-soft:    #c8bfb1;
  --paper:       #241a1c;
  --cream:       #16100f;
  --cream-deep:  #1f1613;
  --maroon-tint: rgba(217, 99, 108, 0.16);
  --gold-soft:   rgba(182, 134, 44, 0.20);
  --line:        #3a2c2c;

  --heading: var(--gold-light);
  --accent:  #d9636c;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 26px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 46px rgba(0, 0, 0, 0.55);

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body, .card, .schedule-item, .officer-card, .next-meeting, .contact-form,
.info-card, .schedule-meta, .feature__media, input, select, textarea {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--heading); text-decoration: underline; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--maroon);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* Eyebrow label used above section headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--maroon { background: var(--maroon); color: #fff; }
.btn--maroon:hover { background: var(--maroon-dark); color: #fff; }

.btn--gold { background: var(--gold); color: #241b06; }
.btn--gold:hover { background: #a2761f; color: #241b06; }

.btn--outline { background: transparent; border-color: rgba(255,255,255,0.65); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,0.12); color: #fff; }

.btn--outline-dark { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn--outline-dark:hover { background: var(--accent); color: #fff; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-1px); }
.theme-toggle svg { width: 20px; height: 20px; display: block; }
/* Icon shows the theme a click will switch TO — a moon on the light
   site (press to go dark), a sun once dark (press to go back). */
.theme-toggle .icon-sun { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
}
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.btn--small { padding: 9px 18px; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* ==========================================================================
   Perforation motif — a row of "punched" circles, like a stamp edge
   ========================================================================== */
.perf {
  height: 16px;
  width: 100%;
  background-image: radial-gradient(circle at 10px 8px, var(--cream) 8px, transparent 8.5px);
  background-size: 22px 16px;
  background-repeat: repeat-x;
}
.perf--bottom { background-color: var(--maroon); margin-top: -1px; }
.perf--top { background-color: var(--cream); transform: translateY(1px); }
.perf--onnavy { background-color: var(--navy); }
.perf--oncream-onto-paper { background-image: radial-gradient(circle at 10px 8px, var(--paper) 8px, transparent 8.5px); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  background: var(--maroon);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
  position: relative;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 18px;
}
/* DOM order is checkbox, label, nav, toggle (so the checked ~ nav
   selector works); these put the visible pieces back in the right
   spot: nav, then the theme toggle, then the hamburger last. */
.site-header__right .site-nav { order: 1; }
.site-header__right .theme-toggle { order: 2; }
.site-header__right .nav-toggle { order: 3; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand:hover { text-decoration: none; color: #fff; }
.brand__mark {
  background: #fff;
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.22rem;
  color: #fff;
}
.brand__tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  color: #f3e6da;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.site-nav a:hover { background: rgba(255,255,255,0.12); color: #fff; text-decoration: none; }
.site-nav a.is-active { background: var(--gold); color: #241b06; }

.nav-toggle-input { display: none; }
.nav-toggle {
  display: none;
  order: 3;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
}

/* ==========================================================================
   Hero (home page)
   ========================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(182,134,44,0.28), transparent 55%),
    linear-gradient(155deg, var(--maroon) 0%, var(--maroon-dark) 55%, #3d0f16 100%);
  color: #fff;
  padding: 76px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.10) 1px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero__eyebrow {
  color: var(--gold-light);
}
.hero__eyebrow::before { background: var(--gold-light); }
.hero h1 { color: #fff; margin-bottom: 0.35em; }
.hero p.lede {
  color: #f0e2d8;
  font-size: 1.14rem;
  max-width: 46ch;
}
.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
/* The hero column is the taller of the two grid items, so it — not the
   section's own bottom padding — determines where the perforated edge
   below the hero begins. Without this, the buttons can end up sitting
   right against that perforated edge with no breathing room. */
.hero .hero__ctas { margin-bottom: 24px; }

.hero__stamp-frame {
  background: #fff;
  border-radius: 14px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: rotate(2deg);
}
.hero__stamp-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1.5px dashed var(--gold);
  border-radius: 8px;
  pointer-events: none;
}
.hero__stamp-frame img { position: relative; z-index: 1; }

.hero__postmark {
  position: absolute;
  right: -34px;
  top: -18px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 3px solid var(--navy);
  background: rgba(255,255,255,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-14deg);
  box-shadow: var(--shadow-md);
}
.hero__postmark span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.35;
}

/* ==========================================================================
   Page header (non-home pages)
   ========================================================================== */
.page-header {
  background:
    radial-gradient(ellipse at 85% 0%, rgba(182,134,44,0.22), transparent 55%),
    linear-gradient(155deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: #fff;
  padding: 58px 0 68px;
  text-align: center;
}
.page-header .eyebrow { color: var(--gold-light); justify-content: center; }
.page-header .eyebrow::before { background: var(--gold-light); }
.page-header h1 { color: #fff; }
.page-header p { color: #f0e2d8; max-width: 60ch; margin: 0 auto; }

/* ==========================================================================
   Sections & generic layout
   ========================================================================== */
section { padding: 72px 0; }
section.section--tight { padding: 52px 0; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--deep { background: var(--cream-deep); }

.section-head { max-width: 700px; margin: 0 auto 44px; text-align: center; }
.section-head.left { text-align: left; margin: 0 0 40px; }

.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Stamp-style card: perforated top edge + dashed inner frame on hover */
.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  border: 1px solid var(--line);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.card__perf {
  height: 14px;
  background-color: var(--gold);
  background-image: radial-gradient(circle at 9px 7px, var(--paper) 6.5px, transparent 7px);
  background-size: 18px 14px;
  background-repeat: repeat-x;
}
.card__body { padding: 26px 24px 28px; }
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--maroon-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Two-column feature (image/text) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature--reverse .feature__media { order: 2; }
.feature__media {
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 22px;
  position: relative;
}
.feature__media img { border-radius: 6px; }
/* The full wordmark logo has dark ink text with no plate behind it, so
   this variant keeps a fixed white backing (like a stamp on a dark
   table) instead of following the theme — the crest-only crop used
   elsewhere is self-contained and can go dark with the card. */
.feature__media--paper { background: #fff; }
.feature ul.check-list { margin-top: 20px; }

ul.check-list {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
ul.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-soft);
}
ul.check-list li::before {
  content: "✓";
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ---------- Stat strip ---------- */
.stat-strip {
  background: var(--navy);
  color: #fff;
  padding: 40px 0;
}
.stat-strip .grid { text-align: center; }
.stat-strip .stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 2.1rem;
  color: var(--gold-light);
}
.stat-strip .stat span {
  font-size: 0.88rem;
  color: #cdd8e2;
  letter-spacing: 0.03em;
}

/* ---------- Next meeting highlight card ---------- */
.next-meeting {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 30px 32px;
}
.next-meeting__date {
  background: var(--maroon);
  color: #fff;
  border-radius: 12px;
  width: 92px;
  text-align: center;
  padding: 14px 8px;
  flex: none;
}
.next-meeting__date .day { font-family: var(--font-head); font-size: 2rem; font-weight: 700; line-height: 1; }
.next-meeting__date .month { text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--gold-light); }
.next-meeting__body .badge { margin-bottom: 8px; }
.next-meeting__body h3 { margin-bottom: 6px; }
.next-meeting__body p { margin-bottom: 0; }

.badge {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.badge--maroon { background: var(--maroon); color: #fff; }
.badge--outline { background: transparent; border: 1px solid var(--gold); color: var(--accent); }

/* ---------- Countdown card (schedule page) ---------- */
.countdown-card {
  background: linear-gradient(155deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.countdown-card__perf {
  height: 14px;
  background-color: var(--gold);
  background-image: radial-gradient(circle at 9px 7px, var(--cream-deep) 6.5px, transparent 7px);
  background-size: 18px 14px;
  background-repeat: repeat-x;
}
.countdown-card__inner {
  padding: 40px 32px 44px;
  text-align: center;
  color: #fff;
}
.countdown-card__intro .eyebrow { color: var(--gold-light); justify-content: center; }
.countdown-card__intro .eyebrow::before { background: var(--gold-light); }
.countdown-card__intro h2 { color: #fff; margin-bottom: 6px; }
.countdown-card__intro p { color: #f0e2d8; margin-bottom: 0; }

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 30px 0 6px;
}
.countdown-timer__unit {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  min-width: 92px;
  padding: 16px 10px 14px;
}
.countdown-timer__unit .value {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.countdown-timer__unit .label {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e7d3c6;
}

.countdown-live-msg {
  margin: 26px 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gold-light);
}
.countdown-card.is-live .countdown-timer { display: none; }

@media (max-width: 560px) {
  .countdown-timer { gap: 10px; }
  .countdown-timer__unit { min-width: 72px; padding: 12px 6px 10px; }
  .countdown-timer__unit .value { font-size: 1.9rem; }
}

/* ==========================================================================
   Schedule page
   ========================================================================== */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.schedule-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.schedule-item.is-next {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.schedule-item.is-next::before {
  content: "Next Meeting";
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--gold);
  color: #241b06;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.schedule-item.is-past { opacity: 0.62; }
.schedule-item__date {
  border-right: 1px dashed var(--line);
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.schedule-item__date .weekday { font-size: 0.78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.schedule-item__date .day { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; color: var(--heading); line-height: 1.1; }
.schedule-item__date .month-year { font-size: 0.85rem; color: var(--ink-soft); }
.schedule-item__body h3 { margin-bottom: 6px; }
.schedule-item__body p { margin-bottom: 10px; }

.schedule-meta {
  background: var(--cream-deep);
  border-radius: 14px;
  padding: 26px 28px;
  margin-bottom: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.schedule-meta div h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}
.schedule-meta div p { margin: 0; color: var(--ink); font-weight: 600; }

/* ==========================================================================
   About page — officers / values
   ========================================================================== */
.timeline {
  border-left: 2px dashed var(--gold);
  margin-left: 10px;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--maroon);
  border: 3px solid var(--gold-soft);
}
.timeline-item h4 { margin: 0 0 4px; font-family: var(--font-head); color: var(--heading); }

.officers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.officer-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}
.officer-card .avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--maroon-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 auto 14px;
}
.officer-card h4 { margin: 0 0 2px; }
.officer-card .role { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; display: block; }
.officer-card p { font-size: 0.92rem; margin: 0; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px;
  box-shadow: var(--shadow-md);
}
.form-row { margin-bottom: 20px; }
.form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row--check label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.form-row--check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--maroon);
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--ink);
}
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--maroon-tint);
  background: var(--paper);
}
textarea { resize: vertical; min-height: 140px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 14px; }

.alert {
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 26px;
  font-weight: 600;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.alert--success { background: #eaf6ee; color: #1f6e3a; border: 1px solid #bfe6cb; }
.alert--error { background: #fbecec; color: #9c2626; border: 1px solid #f3c6c6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .alert--success { background: #17301f; color: #8fdba8; border-color: #244a30; }
  :root:not([data-theme="light"]) .alert--error { background: #351515; color: #f2a3a3; border-color: #4d2323; }
}
:root[data-theme="dark"] .alert--success { background: #17301f; color: #8fdba8; border-color: #244a30; }
:root[data-theme="dark"] .alert--error { background: #351515; color: #f2a3a3; border-color: #4d2323; }

.info-card {
  background: var(--cream-deep);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 24px;
}
.info-card h3 { margin-bottom: 16px; }
.info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .info-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.info-list strong { display: block; color: var(--ink); }

.map-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.map-frame iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: linear-gradient(155deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.10) 1px, transparent 1.4px);
  background-size: 26px 26px;
}
.cta-band__inner { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #f0e2d8; max-width: 56ch; margin: 0 auto 26px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: #cdd8e2; }
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
}
.footer-logo { background: #fff; border-radius: 50%; padding: 4px; margin-bottom: 14px; }
.site-footer h2 { color: #fff; font-size: 1.25rem; margin-bottom: 10px; }
.site-footer h3 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer p { color: #a9b8c6; font-size: 0.94rem; }
.footer-links, .footer-contact, .footer-social { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-contact a, .footer-social a { color: #cdd8e2; font-size: 0.94rem; }
.footer-links a:hover, .footer-contact a:hover, .footer-social a:hover { color: var(--gold-light); text-decoration: none; }
.footer-col--about .btn { margin-top: 6px; }

.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); }
.site-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0;
  font-size: 0.85rem;
  color: #8397a8;
}
.site-footer__bottom p { margin: 0; color: inherit; font-size: inherit; }
.site-footer__bottom a { color: var(--gold-light); }
.site-footer__bottom a:hover { color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__stamp-frame { max-width: 380px; margin: 0 auto; transform: rotate(0); }
  .feature, .feature--reverse .feature__media { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .officers-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .schedule-meta { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--maroon-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav ul { flex-direction: column; padding: 10px 24px 18px; gap: 2px; }
  .site-nav a { display: block; padding: 12px 14px; }
  .nav-toggle { display: flex; }
  .nav-toggle-input:checked ~ .site-nav { max-height: 320px; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .officers-grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; padding-bottom: 30px; }
  .next-meeting { grid-template-columns: 1fr; text-align: center; }
  .next-meeting__date { margin: 0 auto; }
  .schedule-item { grid-template-columns: 1fr; }
  .schedule-item__date { border-right: none; border-bottom: 1px dashed var(--line); padding-right: 0; padding-bottom: 14px; flex-direction: row; gap: 8px; align-items: baseline; }
  .form-row--split { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .hero { padding: 56px 0 76px; }
}
