/* =================================================================
   Trinity Positive Business Group — global styles
   Brand: deep teal + warm gold on cream, Cabin (variable) throughout
   ================================================================= */

/* ---------- Self-hosted Cabin (variable, latin) ---------- */
@font-face {
  font-family: 'Cabin';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/cabin-latin-variable.woff2') format('woff2-variations'),
       url('/fonts/cabin-latin-variable.woff2') format('woff2');
}
/* Fallback metrics — minimize CLS while web font loads */
@font-face {
  font-family: 'Cabin Fallback';
  src: local('Arial');
  ascent-override: 101.7818%;
  descent-override: 26.3684%;
  size-adjust: 94.8106%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand palette — sourced from Duda export */
  --brand-teal: #1C768F;
  --brand-teal-dk: #155f73;
  --brand-gold: #FA991C;
  --brand-gold-dk: #d57e0a;
  --brand-cream: #FCF8F0;
  --brand-cream-warm: #FCF8F0;
  --brand-navy: #032539;
  --brand-navy-soft: #0a3a55;

  /* Text */
  --text-body: #4d4750;
  --text-muted: #8B888E;
  --text-on-dark: rgba(255, 255, 255, 0.92);

  /* UI */
  --border: rgba(3, 37, 57, 0.08);
  --border-strong: rgba(3, 37, 57, 0.18);

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 880px;
  --gutter: 1.5rem;
  --section-y: clamp(4rem, 8vw, 7rem);

  /* Type */
  --font-sans: 'Cabin', 'Cabin Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --t-display: clamp(2.5rem, 5.5vw, 4.5rem);
  --t-h1: clamp(2rem, 4.5vw, 3.25rem);
  --t-h2: clamp(1.625rem, 3vw, 2.5rem);
  --t-h3: clamp(1.2rem, 2vw, 1.55rem);
  --t-body: 1.0625rem;
  --t-small: 0.9rem;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(3, 37, 57, 0.05), 0 4px 12px rgba(3, 37, 57, 0.05);
  --shadow: 0 8px 24px rgba(3, 37, 57, 0.09);
  --shadow-lg: 0 24px 56px rgba(3, 37, 57, 0.14);

  --t-fast: 150ms ease;
  --t-base: 250ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--text-body);
  background: var(--brand-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: 0 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { padding-left: 1.25em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 3rem 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--brand-navy);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; }
a { color: var(--brand-teal); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand-teal-dk); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brand-gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand-teal);
  margin-bottom: 1rem;
}
.lead { font-size: 1.18rem; line-height: 1.6; color: var(--text-body); }

/* ---------- Layout ---------- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section-tight { padding: calc(var(--section-y) * 0.6) 0; }
.section-cream { background: var(--brand-cream); }
.section-warm  { background: var(--brand-cream-warm); }
.section-white { background: #fff; }
.section-navy  { background: var(--brand-navy); color: var(--text-on-dark); }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4 { color: #fff; }
.section-navy .eyebrow { color: var(--brand-gold); }
.section-navy a:not(.btn) { color: var(--brand-gold); }
.section-navy a:not(.btn):hover { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform var(--t-fast), background var(--t-base), border-color var(--t-base), box-shadow var(--t-base), color var(--t-base);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn-primary { background: var(--brand-teal); color: #fff; border-color: var(--brand-teal); }
.btn-primary:hover { background: var(--brand-teal-dk); border-color: var(--brand-teal-dk); transform: translateY(-1px); box-shadow: var(--shadow); color: #fff; }
.btn-gold { background: var(--brand-gold); color: var(--brand-navy); border-color: var(--brand-gold); }
.btn-gold:hover { background: var(--brand-gold-dk); border-color: var(--brand-gold-dk); transform: translateY(-1px); box-shadow: var(--shadow); color: var(--brand-navy); }
.btn-outline { background: transparent; color: var(--brand-navy); border-color: var(--brand-navy); }
.btn-outline:hover { background: var(--brand-navy); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-outline-light:hover { background: #fff; color: var(--brand-navy); border-color: #fff; }
.btn-arrow::after { content: '→'; transition: transform var(--t-fast); }
.btn:hover.btn-arrow::after { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 248, 240, 0.94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}
.logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.logo img { width: 240px; height: auto; }
@media (max-width: 1100px) { .logo img { width: 200px; } }
@media (max-width: 980px)  { .logo img { width: 170px; } }
@media (max-width: 480px)  { .logo img { width: 150px; } }

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  flex-shrink: 0;
}

.primary-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav > li { position: relative; }
.primary-nav a {
  color: var(--brand-navy);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  display: inline-block;
}
.primary-nav a:hover, .primary-nav a.active { color: var(--brand-teal); }
.primary-nav a.active { font-weight: 600; }

.nav-dropdown-toggle::after {
  content: '⌄';
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.85em;
  transform: translateY(-2px);
}
.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  padding: 0.5rem 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  border: 1px solid var(--border);
  list-style: none;
  margin: 0.4rem 0 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
}
.primary-nav > li:hover > .nav-submenu,
.primary-nav > li:focus-within > .nav-submenu,
.primary-nav > li.open > .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-submenu a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  margin: 0 0.25rem;
}
.nav-submenu a:hover { background: var(--brand-cream); color: var(--brand-teal); }

.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.9rem; border-radius: 10px; }

/* Member icon link in the header (links to portal) */
.member-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  color: var(--brand-navy);
  background: #fff;
  text-decoration: none;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
  flex-shrink: 0;
}
.member-link:hover,
.member-link:focus-visible {
  border-color: var(--brand-teal);
  color: var(--brand-teal);
  background: rgba(28, 118, 143, 0.06);
}
.member-link svg { display: block; }
@media (max-width: 480px) {
  .member-link { width: 38px; height: 38px; }
  .member-link svg { width: 18px; height: 18px; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brand-navy);
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .header-right .btn { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
  .primary-nav {
    position: fixed;
    top: 67px;
    right: 0;
    bottom: 0;
    width: min(380px, 92vw);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0;
    transform: translateX(110%);
    transition: transform var(--t-base);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav > li { border-bottom: 1px solid var(--border); }
  .primary-nav > li:last-child { border-bottom: 0; }
  .primary-nav a { padding: 0.85rem 0; font-size: 1rem; }
  .nav-dropdown-toggle::after { float: right; transition: transform var(--t-fast); }
  .primary-nav > li.open .nav-dropdown-toggle::after { transform: rotate(180deg); }
  .nav-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0.6rem 1rem;
    margin: 0;
    display: none;
  }
  .primary-nav > li.open > .nav-submenu { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  padding: 6rem 0 4.5rem;
  min-height: 78vh;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 37, 57, 0.55) 0%, rgba(3, 37, 57, 0.85) 100%),
    linear-gradient(120deg, rgba(28, 118, 143, 0.35) 0%, rgba(3, 37, 57, 0.0) 60%);
}
.hero-content { max-width: 800px; color: #fff; position: relative; }
.hero-content .eyebrow { color: var(--brand-gold); }
.hero h1 {
  color: #fff;
  font-size: var(--t-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin-bottom: 1.25rem;
  min-height: 200px;
}
.hero-sub {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2.25rem;
  max-width: 640px;
  min-height: 60px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-meta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}
.hero-meta-item { display: flex; align-items: center; gap: 0.6rem; }
.hero-meta-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.85; }
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 3.5rem 0 3rem; }
  .hero h1 { min-height: 160px; }
  .hero-sub { min-height: 90px; }
  .hero-meta { gap: 1.25rem; }
}

/* ---------- Two-column splits (about / mission / community) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.split-narrow { grid-template-columns: 1.05fr 0.95fr; }
.split-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.split-img-wrap.is-landscape { aspect-ratio: 4 / 3; }
.split-img-wrap.is-square    { aspect-ratio: 1 / 1; }
.split-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.split-img-wrap.with-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 860px) {
  .split, .split-narrow { grid-template-columns: 1fr; }
  .split-img-wrap { order: -1; }
}

/* ---------- Member photo grid ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2.5rem 0;
}
.photo-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brand-cream-warm);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-sm);
}
.photo-grid img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.photo-grid figure:nth-child(1) { border-top-left-radius: var(--radius-lg); }
.photo-grid figure:nth-child(3) { border-top-right-radius: var(--radius-lg); }
/* Middle (member-2: Chocolates by Michelle) — keep the member visible on the left side of the frame */
.photo-grid figure:nth-child(2) img { object-position: left center; }
@media (max-width: 720px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid figure:nth-child(3) { display: none; }
}

/* ---------- Mission cards ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.mission-card {
  padding: 2rem 1.75rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.mission-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mission-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(28, 118, 143, 0.10);
  color: var(--brand-teal);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.mission-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.mission-card p { color: var(--text-muted); font-size: 0.98rem; margin: 0; }
@media (max-width: 800px) { .mission-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 820px; margin: 2.5rem auto 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--brand-navy);
  gap: 1rem;
}
.faq-q-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(28, 118, 143, 0.10);
  color: var(--brand-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.35s cubic-bezier(.4,.0,.2,1), background var(--t-base);
}
.faq-item[open] .faq-q-icon { transform: rotate(45deg); background: var(--brand-teal); color: #fff; }
.faq-item[aria-expanded="true"] .faq-q-icon { transform: rotate(45deg); background: var(--brand-teal); color: #fff; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-base), padding var(--t-base);
  color: var(--text-body);
}
.faq-item[aria-expanded="true"] .faq-a {
  max-height: 1000px;
  padding: 0 0 1.5rem;
}
.faq-a a { font-weight: 600; }

/* ---------- Forms ---------- */
.form-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-wrap h2, .form-wrap h3 { margin-top: 0; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--brand-navy);
  font-size: 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 0;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 4px rgba(28, 118, 143, 0.12);
}
.form-group textarea { min-height: 130px; resize: vertical; }

.form-success { display: none; text-align: center; padding: 2rem 0; }
.form-success.show { display: block; }
.form-success .success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-teal);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.form-success h3 { margin-bottom: 0.5rem; }
.form-success p { color: var(--text-muted); }

/* Hide reCAPTCHA badge — attribution lives in the footer */
.grecaptcha-badge { visibility: hidden; }

/* ---------- Contact / get-in-touch layout ---------- */
.contact-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-info dt {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-teal);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.4rem;
}
.contact-info dd { margin: 0 0 1.5rem; font-size: 1.05rem; color: var(--brand-navy); }
.contact-info dd a { color: var(--brand-navy); border-bottom: 1px solid var(--brand-teal); }
.contact-info dd a:hover { color: var(--brand-teal); }
@media (max-width: 800px) { .contact-split { grid-template-columns: 1fr; } }

/* The HTML 'hidden' attribute should beat any 'display' rule */
[hidden] { display: none !important; }

/* ---------- Page hero (smaller variant for inner pages) ---------- */
.hero-page {
  min-height: 52vh;
  padding: 4.5rem 0 3.5rem;
}
.hero-page h1 {
  min-height: auto;
  font-size: var(--t-h1);
  margin-bottom: 1rem;
}
.hero-page .hero-sub {
  min-height: auto;
  font-size: 1.15rem;
  margin-bottom: 0;
  max-width: 720px;
}
@media (max-width: 768px) {
  .hero-page { min-height: auto; padding: 3rem 0 2.5rem; }
  .hero-page h1 { font-size: 2rem; }
}

/* ---------- Board grid (About / leadership) ---------- */
.board-photo {
  max-width: 880px;
  margin: 0 auto 3.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.board-photo img { width: 100%; height: auto; display: block; }

.board-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
.board-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform var(--t-base), box-shadow var(--t-base);
  flex: 1 1 calc(33.333% - 1.25rem);
  max-width: 340px;
  min-width: 240px;
}
@media (max-width: 820px) { .board-card { flex: 1 1 calc(50% - 0.75rem); max-width: none; } }
@media (max-width: 480px) { .board-card { flex: 1 1 100%; } }
.board-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.board-card-role {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-teal);
  background: rgba(28, 118, 143, 0.10);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 0.85rem;
}
.board-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.65rem;
}
.board-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ---------- Blog index ---------- */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.filter-btn {
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--text-muted);
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.filter-btn:hover { color: var(--brand-teal); border-color: var(--brand-teal); }
.filter-btn.active { background: var(--brand-teal); color: #fff; border-color: var(--brand-teal); }

.blog-grid, .post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}
.post-card-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--brand-cream);
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex-grow: 1; }
.post-card-cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-teal);
}
.post-card-title { font-size: 1.1rem; font-weight: 600; color: var(--brand-navy); line-height: 1.3; }
.post-card-meta { font-size: 0.85rem; color: var(--text-muted); margin-top: auto; }

/* ---------- Individual blog post ---------- */
.blog-post-hero {
  position: relative;
  padding: 5rem 1.5rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.blog-post-hero img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.blog-post-hero-content { max-width: 900px; }
.blog-post-cat {
  display: inline-block;
  padding: 0.3rem 0.95rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-teal);
  background: rgba(28, 118, 143, 0.10);
  margin-bottom: 1rem;
}
.blog-post-hero-content h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.18; margin-bottom: 1.25rem; color: var(--brand-navy); }
.post-meta { font-size: 0.95rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }
.post-meta-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.4; }

.blog-post-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
@media (max-width: 900px) { .blog-post-wrap { grid-template-columns: 1fr; } }

.blog-article { font-size: 1.05rem; line-height: 1.75; color: var(--brand-navy); }
.blog-article h2 { font-size: 1.65rem; margin: 2.75rem 0 1rem; line-height: 1.25; }
.blog-article h3 { font-size: 1.25rem; margin: 2rem 0 0.7rem; line-height: 1.3; }
.blog-article h4 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.blog-article p { margin-bottom: 1.25rem; }
.blog-article ul, .blog-article ol { margin: 0 0 1.4rem 1.5rem; }
.blog-article li { margin-bottom: 0.55rem; }
.blog-article a { color: var(--brand-teal); text-decoration: underline; text-underline-offset: 3px; }
.blog-article a:hover { color: var(--brand-navy); }
.blog-article strong { color: var(--brand-navy); }
.blog-article blockquote {
  border-left: 3px solid var(--brand-teal);
  padding: 0.4rem 0 0.4rem 1.25rem;
  margin: 1.75rem 0;
  color: var(--text-muted);
  font-style: italic;
}

.blog-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.sidebar-head {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-teal);
  margin-bottom: 1rem;
}
.sidebar-body { display: flex; flex-direction: column; }
.sidebar-link {
  display: block;
  padding: 0.6rem 0;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--brand-navy);
  border-bottom: 1px solid var(--border);
  transition: color var(--t-fast);
}
.sidebar-link:last-child { border-bottom: 0; }
.sidebar-link:hover { color: var(--brand-teal); }
.sidebar-cta {
  background: var(--brand-navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  text-align: center;
}
.sidebar-cta-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.5rem; }
.sidebar-cta p { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin-bottom: 1rem; }
.sidebar-cta a {
  display: inline-block;
  background: var(--brand-gold);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}
.sidebar-cta a:hover { background: var(--brand-gold-dk); }

/* ---------- Apply form (multi-card) ---------- */
.apply-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.75rem 1.5rem;
  position: relative;
}
@media (max-width: 600px) { .form-card { padding: 1.25rem; } }
.form-card legend {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brand-navy);
}
.form-card-num {
  display: inline-flex;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--brand-teal);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.radio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.95rem 1.05rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio-card:hover { border-color: var(--brand-teal); }
.radio-card:has(input:checked) {
  border-color: var(--brand-teal);
  background: rgba(28, 118, 143, 0.06);
  box-shadow: 0 0 0 3px rgba(28, 118, 143, 0.10);
}
.radio-card-title { font-weight: 600; color: var(--brand-navy); font-size: 0.95rem; }
.radio-card-sub   { font-size: 0.8rem; color: var(--text-muted); }

.checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--brand-cream);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--brand-navy);
}
.checkbox-card input[type="checkbox"] {
  width: 20px; height: 20px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--brand-teal);
}
.checkbox-card:has(input:checked) { border-color: var(--brand-teal); background: rgba(28, 118, 143, 0.06); }

.photo-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.85rem;
  padding: 0.75rem;
  background: var(--brand-cream);
  border-radius: var(--radius-sm);
}
.photo-preview img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #fff;
}
.photo-preview-name { font-size: 0.88rem; color: var(--brand-navy); font-weight: 500; }

/* ---------- Member directory grid ---------- */
.directory-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.directory-search {
  width: min(360px, 100%);
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.95rem;
  color: var(--brand-navy);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.directory-search:focus {
  outline: 0;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 4px rgba(28, 118, 143, 0.12);
}
.directory-sort {
  padding: 0.7rem 2.4rem 0.7rem 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23032539' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 1rem center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-size: 0.95rem;
  color: var(--brand-navy);
  cursor: pointer;
  transition: border-color var(--t-fast);
}
.directory-sort:focus { outline: 0; border-color: var(--brand-teal); }
.directory-sort:hover { border-color: var(--brand-teal); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.directory-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.directory-card:hover,
.directory-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
  text-decoration: none;
}
.directory-card:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 2px;
}
.directory-card-img {
  aspect-ratio: 1 / 1;
  background: var(--brand-cream);
  position: relative;
  overflow: hidden;
  padding: 0.5rem;
}
.directory-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* For sources already cropped to 1:1, fill the card edge-to-edge */
.directory-card-img.is-square {
  padding: 0;
}
.directory-card-img.is-square img {
  object-fit: cover;
}

/* ---------- Member profile pages ---------- */
.profile-breadcrumb { font-size: 0.92rem; }
.profile-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.profile-breadcrumb a:hover { color: var(--brand-teal); }
.profile-hero { padding-top: 2.5rem; }
.profile-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) {
  .profile-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}
.profile-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
  font-weight: 700;
  color: var(--brand-teal);
  background: linear-gradient(135deg, rgba(28,118,143,.10), rgba(250,153,28,.12));
}
.profile-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-gold-dk);
  background: rgba(250, 153, 28, 0.14);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 0.85rem;
}
.profile-biz { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: 0 0 0.45rem; line-height: 1.15; }
.profile-member { font-size: 1.15rem; color: var(--brand-navy); margin: 0 0 0.5rem; font-weight: 500; }
.profile-service { font-size: 1rem; color: var(--brand-teal); font-weight: 600; margin: 0 0 1rem; }
.profile-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Two-column About + Get in touch sidebar */
.profile-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 820px) {
  .profile-content { grid-template-columns: 1fr; gap: 2rem; }
}
.profile-content-main h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.profile-content-main p { margin-bottom: 1rem; }
.profile-content-main p.lead { font-size: 1.15rem; color: var(--brand-navy); }

.profile-info-card {
  background: var(--brand-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  position: sticky;
  top: 90px;
}
.profile-info-card h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-teal);
  margin: 0 0 1rem;
}
.profile-info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.profile-info-list li { display: flex; flex-direction: column; gap: 0.2rem; }
.profile-info-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.profile-info-list a {
  color: var(--brand-navy);
  text-decoration: none;
  word-break: break-word;
}
.profile-info-list a:hover { color: var(--brand-teal); text-decoration: underline; }
.directory-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 700;
  color: var(--brand-teal);
  background: linear-gradient(135deg, rgba(28, 118, 143, 0.08), rgba(250, 153, 28, 0.10));
}
.directory-card-body {
  padding: 1.1rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.directory-card-cat {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-gold-dk);
  background: rgba(250, 153, 28, 0.14);
  padding: 0.22rem 0.65rem;
  border-radius: 100px;
  margin-bottom: 0.55rem;
}
.directory-card-biz {
  font-size: 1.02rem;
  line-height: 1.3;
  margin: 0 0 0.35rem;
  color: var(--brand-navy);
}
.directory-card-mem {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
}
.directory-card-more {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-teal);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--t-base);
}
.directory-card:hover .directory-card-more,
.directory-card:focus-visible .directory-card-more {
  gap: 0.55rem;
}

/* ---------- Events page ---------- */
.event-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.event-toolbar .btn { font-size: 0.92rem; padding: 0.6rem 1.1rem; }

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.event-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.event-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 720px) {
  .event-item { grid-template-columns: 70px 1fr; }
  .event-item .event-actions { grid-column: 1 / -1; justify-self: stretch; }
}
.event-date {
  text-align: center;
  background: rgba(28, 118, 143, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.5rem;
  border: 1px solid rgba(28, 118, 143, 0.18);
}
.event-date-month {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-teal);
  margin: 0;
  line-height: 1;
}
.event-date-day {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin: 0.15rem 0 0.05rem;
  line-height: 1;
}
.event-date-dow {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.event-body { min-width: 0; }
.event-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.45rem; }
.event-pill {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(250, 153, 28, 0.14);
  color: var(--brand-gold-dk);
  padding: 0.22rem 0.7rem;
  border-radius: 100px;
}
.event-pill.is-recurring { background: rgba(28, 118, 143, 0.12); color: var(--brand-teal); }
.event-pill.is-speaker   { background: rgba(3, 37, 57, 0.10);   color: var(--brand-navy); }
.event-title {
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--brand-navy);
}
.event-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}
.event-meta-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.4; align-self: center; }
.event-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.event-actions .btn {
  font-size: 0.85rem;
  padding: 0.5rem 0.95rem;
}

/* Calendar view */
.calendar-views {
  display: flex;
  gap: 0.4rem;
  background: var(--brand-cream);
  padding: 0.3rem;
  border-radius: var(--radius-sm);
}
.calendar-views button {
  border: 0;
  background: transparent;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.calendar-views button.active {
  background: #fff;
  color: var(--brand-navy);
  box-shadow: var(--shadow-sm);
}
.calendar-views button:hover:not(.active) { color: var(--brand-navy); }

.month-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.month-nav button {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--border-strong);
  background: #fff;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--t-fast);
}
.month-nav button:hover { border-color: var(--brand-teal); color: var(--brand-teal); }
.month-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-navy);
  min-width: 160px;
  text-align: center;
}

.month-grid {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.month-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--brand-cream);
  border-bottom: 1px solid var(--border);
}
.month-dow span {
  padding: 0.6rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: center;
}
.month-cells {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(108px, auto);
}
.month-day {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem;
  position: relative;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.month-day:nth-child(7n) { border-right: 0; }
.month-day.is-other { background: rgba(252, 248, 240, 0.5); color: var(--text-muted); }
.month-day.is-today .month-day-num {
  background: var(--brand-teal);
  color: #fff;
}
.month-day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 600;
  align-self: flex-start;
  color: var(--brand-navy);
}
.month-day.is-other .month-day-num { color: var(--text-muted); }
.month-event {
  display: block;
  background: rgba(28, 118, 143, 0.10);
  color: var(--brand-teal);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.78rem;
  line-height: 1.25;
  font-weight: 600;
  text-decoration: none;
  border-left: 3px solid var(--brand-teal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background var(--t-fast);
}
.month-event:hover { background: rgba(28, 118, 143, 0.18); }
.month-event.is-speaker { background: rgba(250, 153, 28, 0.12); color: var(--brand-gold-dk); border-left-color: var(--brand-gold); }
.month-more {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.15rem;
}

@media (max-width: 720px) {
  .month-cells { grid-auto-rows: minmax(76px, auto); }
  .month-day { padding: 0.3rem; }
  .month-day-num { width: 22px; height: 22px; font-size: 0.78rem; }
  .month-event { font-size: 0.7rem; padding: 0.15rem 0.35rem; }
}

/* Photo gallery */
.event-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-auto-rows: 220px;
  gap: 0.75rem;
}
.event-gallery button {
  position: relative;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--brand-cream);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.event-gallery button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.event-gallery button:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 3px;
}
.event-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3, 37, 57, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background var(--t-fast);
}
.lightbox-close { top: 1.5rem; right: 1.5rem; font-size: 1.4rem; }
.lightbox-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.22); }

/* Featured events teaser ---------- */
.event-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
}
.event-teaser-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.event-teaser-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 800px) { .event-teaser { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-navy);
  color: var(--text-on-dark);
  padding: 4rem 0 2rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { color: rgba(255, 255, 255, 0.75); max-width: 320px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 0.55rem; }
.footer-list a { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }
.footer-list a:hover { color: var(--brand-gold); }

.social-row { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-row a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background var(--t-fast), transform var(--t-fast);
}
.social-row a:hover { background: var(--brand-gold); color: var(--brand-navy); transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.65); }
.footer-bottom a:hover { color: var(--brand-gold); }
.footer-recaptcha { font-size: 0.75rem; color: rgba(255, 255, 255, 0.45); }
.footer-recaptcha a { color: rgba(255, 255, 255, 0.55); border-bottom: 1px solid rgba(255, 255, 255, 0.2); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand-navy);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 200;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0; color: #fff; }
