/* =========================================================
   Warzone Miniature Wargaming Club — Stylesheet
   ========================================================= */

:root {
  --yellow: #F5C400;
  --black: #111111;
  --charcoal: #1E1E1E;
  --offwhite: #F7F7F7;
  --grey: #888888;

  --font-head: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--offwhite);
  color: var(--black);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--black);
  margin: 0 0 0.5em;
}

a { color: var(--black); text-decoration: none; }
a:hover { color: var(--yellow); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  position: relative;
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 28px;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--black);
  border: 2px solid var(--yellow);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn:hover::before { left: 120%; }
.btn:hover { background: transparent; color: var(--yellow); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  color: var(--offwhite);
  border: 2px solid var(--offwhite);
}
.btn-outline:hover { background: var(--offwhite); color: var(--black); }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover { transform: none; }
  .btn::before { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--black);
  border-bottom: 3px solid var(--yellow);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-link img { height: 48px; width: auto; transition: transform 0.35s ease, filter 0.35s ease; }
.logo-link:hover img { transform: rotate(-4deg) scale(1.06); filter: drop-shadow(0 0 6px rgba(245, 196, 0, 0.55)); }

.logo-text {
  font-family: var(--font-head);
  color: var(--offwhite);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.logo-text span { color: var(--yellow); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 34px;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  position: relative;
  color: var(--offwhite);
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--yellow);
  transition: right 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--yellow);
}
.main-nav a:hover::after,
.main-nav a.active::after { right: 0; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(rgba(17,17,17,0.85), rgba(17,17,17,0.85)),
    repeating-linear-gradient(45deg, #222 0, #222 40px, #1a1a1a 40px, #1a1a1a 80px);
  background-size: auto, 226px 226px;
  color: var(--offwhite);
  padding: 90px 20px;
  text-align: center;
  animation: hero-drift 26s linear infinite;
}

.hero h1 {
  color: var(--offwhite);
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 0.3em;
  animation: fade-rise 0.7s ease both;
}

.hero .highlight { color: var(--yellow); }

.hero p {
  max-width: 700px;
  margin: 0 auto 1.6em;
  color: #d5d5d5;
  font-size: 1.15rem;
  animation: fade-rise 0.7s ease both 0.12s;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fade-rise 0.7s ease both 0.24s;
}

@keyframes hero-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 0, 226px 226px; }
}
@keyframes fade-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero { animation: none; }
  .hero h1, .hero p, .hero-buttons { animation: none; opacity: 1; transform: none; }
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--black);
  color: var(--offwhite);
  padding: 60px 20px;
  text-align: center;
  border-bottom: 4px solid var(--yellow);
}
.page-header h1 { color: var(--offwhite); }
.page-header p { color: var(--grey); max-width: 600px; margin: 10px auto 0; }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-alt { background: #efefef; }
.section-dark {
  background: var(--charcoal);
  color: var(--offwhite);
}
.section-dark h2, .section-dark h3 { color: var(--offwhite); }

.section-title {
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--grey);
  max-width: 640px;
  margin: 0 auto 44px;
}

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 26px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card-dark {
  background: var(--charcoal);
  color: var(--offwhite);
  border: 1px solid #333;
}
.card-dark h3 { color: var(--yellow); }

.icon-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  font-family: var(--font-head);
  margin-bottom: 14px;
}
.icon-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  animation: badge-ping 2.4s ease-out infinite;
}
@keyframes badge-ping {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .icon-badge::after { animation: none; display: none; }
}

/* ---------- Game system cards (JSON-driven, animated) ---------- */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.systems-loading {
  grid-column: 1 / -1;
  color: var(--grey);
  text-align: center;
  padding: 20px 0;
}
.systems-showcase {
  position: relative;
  background:
    linear-gradient(rgba(239,239,239,0.93), rgba(239,239,239,0.93)),
    url('../images/gallery/battle-reports/battle-reports-05.jpg') center 30%/cover no-repeat;
}
.system-card {
  --accent: #F5C400;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--black);
  color: var(--offwhite);
  text-decoration: none;
  border-left: 4px solid var(--accent);
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
html.js-reveal .system-card {
  opacity: 0;
  transform: translateY(18px);
}
html.js-reveal .system-card.in-view {
  opacity: 1;
  transform: translateY(0);
}
.system-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 85% 0%, var(--accent) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.system-card:hover,
.system-card:focus-visible {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  border-color: var(--accent);
}
.system-card:hover::before,
.system-card:focus-visible::before {
  opacity: 0.16;
}
.system-card-icon {
  font-size: 1.4rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.3s ease;
}
.system-card:hover .system-card-icon {
  transform: scale(1.2) rotate(-6deg);
}
.system-card-name {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}
.system-card-maker {
  font-size: 0.78rem;
  color: var(--grey);
  transition: color 0.25s ease;
}
.system-card:hover .system-card-maker {
  color: var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  .system-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .system-card:hover,
  .system-card:focus-visible {
    transform: none;
  }
}

/* ---------- Events ---------- */
.event-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.event-date {
  flex: 0 0 90px;
  background: var(--black);
  color: var(--yellow);
  text-align: center;
  padding: 12px 6px;
  border-radius: var(--radius);
  font-family: var(--font-head);
}
.event-date .day { font-size: 1.8rem; font-weight: 700; line-height: 1; display: block; }
.event-date .month { text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }
.event-body h3 { margin-bottom: 4px; }
.event-meta { color: var(--grey); font-size: 0.9rem; margin-bottom: 8px; }
.event-tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
#events-empty, #events-error { text-align: center; color: var(--grey); padding: 30px; }

/* ---------- Gallery ---------- */
.album-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black);
  color: var(--offwhite);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  border: 2px solid var(--charcoal);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.album-card:hover {
  border-color: var(--yellow);
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.3);
}
.album-card::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: repeating-linear-gradient(135deg, #2a2a2a 0, #2a2a2a 20px, #222 20px, #222 40px);
  opacity: 0.7;
  transition: opacity 0.25s ease;
  animation: album-drift 12s linear infinite;
}
.album-card:hover::before { opacity: 0.9; animation-play-state: running; }
.album-card .album-label {
  position: relative;
  z-index: 1;
}
.album-card h3 { color: var(--yellow); margin-bottom: 2px; }
.album-card p { color: #ccc; margin: 0; font-size: 0.9rem; }

@keyframes album-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-56px, -56px); }
}
@media (prefers-reduced-motion: reduce) {
  .album-card::before { animation: none; }
  .album-card:hover { transform: none; }
}

.gallery-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.gallery-placeholder-grid .ph {
  aspect-ratio: 1;
  background: repeating-linear-gradient(45deg, #ddd 0, #ddd 10px, #e8e8e8 10px, #e8e8e8 20px);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  font-size: 0.8rem;
  text-align: center;
  padding: 8px;
}

/* ---------- Gallery photo grid (JSON-driven) ---------- */
.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.gallery-photo-grid .photo-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #e2e2e2;
  background: var(--charcoal);
}
.gallery-photo-grid .photo-tile {
  transition: box-shadow 0.25s ease;
}
.gallery-photo-grid .photo-tile:hover {
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.gallery-photo-grid .photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-photo-grid .photo-tile:hover img { transform: scale(1.08); }
.gallery-photo-grid .photo-tile .photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
  font-size: 0.8rem;
  padding: 18px 10px 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-photo-grid .photo-tile:hover .photo-caption { opacity: 1; }
.gallery-empty-note { color: var(--grey); padding: 10px 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: scale(0.94);
  transition: transform 0.25s ease;
}
.lightbox.open img { transform: scale(1); }
.lightbox-caption {
  color: var(--offwhite);
  margin-top: 14px;
  font-family: var(--font-head);
  text-align: center;
}
.lightbox-caption:empty { display: none; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 26px;
  background: none;
  border: none;
  color: var(--yellow);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.lightbox-close:hover { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox img, .lightbox-close { transition: none; }
}

/* ---------- Members ---------- */
/* Each card sets --accent inline (from the member's main game system's
   accent_color, supplied by php/members.php) so the profile is themed
   dynamically per game system without per-system CSS classes. --accent
   falls back to the club yellow when a member has no system set. */
.member-card {
  --accent: var(--yellow);
  background: #fff;
  border: 1px solid #e2e2e2;
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  text-align: center;
  padding: 26px 18px;
  position: relative;
}
.member-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: var(--charcoal);
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  overflow: hidden;
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-card h3 { margin-bottom: 2px; }
.member-role { color: var(--accent); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; margin-bottom: 8px; }
.member-armies { color: var(--grey); font-size: 0.9rem; }
.member-system-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--black);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.member-featured-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--black);
  color: var(--accent);
  border: 2px solid var(--accent);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}
.member-bio { color: var(--grey); font-size: 0.85rem; margin-top: 10px; }
#members-loading, #members-empty, #members-error { text-align: center; color: var(--grey); padding: 30px; grid-column: 1 / -1; }

/* ---------- Campaigns ---------- */
.campaign-card {
  --accent: var(--yellow);
  background: #fff;
  border: 1px solid #e2e2e2;
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.campaign-status {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.campaign-status.ongoing { background: var(--yellow); color: var(--black); }
.campaign-status.upcoming { background: var(--charcoal); color: var(--offwhite); }
.campaign-status.completed { background: #ddd; color: var(--grey); }
.campaign-meta { color: var(--grey); font-size: 0.9rem; margin-bottom: 10px; }
.campaign-system-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--black);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: 8px;
}
#campaigns-list-ongoing, #campaigns-list-upcoming { margin-bottom: 10px; }
#campaigns-loading, #campaigns-empty, #campaigns-error { text-align: center; color: var(--grey); padding: 20px; }

/* ---------- Membership contract form ---------- */
.contract-wrap {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: var(--radius);
  overflow: hidden;
}
.hazard-stripe {
  height: 10px;
  background: repeating-linear-gradient(135deg, var(--yellow) 0, var(--yellow) 22px, var(--black) 22px, var(--black) 44px);
}
.contract-notice {
  margin: 24px;
  padding: 18px 20px;
  background: #fffbe8;
  border: 1px solid var(--yellow);
  border-radius: var(--radius);
}
.contract-notice strong { display: block; margin-bottom: 6px; font-family: var(--font-head); text-transform: uppercase; }
.contract-body { padding: 0 24px 24px; }
.contract-section-title {
  background: var(--black);
  color: var(--yellow);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  margin: 30px 0 18px;
  border-radius: var(--radius);
  font-size: 1.05rem;
}
.contract-subsection-title {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 6px;
  margin: 22px 0 14px;
}
.contract-divider {
  height: 6px;
  background: repeating-linear-gradient(135deg, var(--yellow) 0, var(--yellow) 14px, var(--black) 14px, var(--black) 28px);
  border-radius: 3px;
  margin: 26px 0;
}
.membership-type-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}
.membership-type-table td {
  border: 1px solid #e2e2e2;
  padding: 12px 14px;
  vertical-align: top;
}
.membership-type-table td.mt-radio { width: 40px; text-align: center; }
.membership-type-table label { font-weight: 600; }
.terms-scrollbox {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--offwhite);
  font-size: 0.9rem;
  color: #333;
}
.terms-scrollbox h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.9rem;
  margin: 16px 0 6px;
}
.terms-scrollbox h4:first-child { margin-top: 0; }
.terms-scrollbox ul { margin: 6px 0 6px 20px; padding: 0; }
.terms-scrollbox li { margin-bottom: 6px; }
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  text-transform: none;
  font-family: var(--font-body);
  margin-bottom: 12px;
}
.checkbox-row input { width: auto; margin-top: 3px; }
.consent-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.consent-table td { border: 1px solid #e2e2e2; padding: 10px 14px; }
.consent-table td.c-radio { width: 40px; text-align: center; }
.minors-fields { display: none; margin-top: 16px; padding: 18px; background: #fffbe8; border: 1px solid var(--yellow); border-radius: var(--radius); }
.minors-fields.open { display: block; }
.declaration-box {
  background: var(--charcoal);
  color: var(--offwhite);
  padding: 20px;
  border-radius: var(--radius);
  margin-top: 10px;
}
.declaration-box .checkbox-row { color: var(--offwhite); }

/* ---------- Forms ---------- */
.form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: var(--radius);
  padding: 36px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--offwhite);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--yellow);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--grey); margin-top: 6px; }
.form-status {
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius);
  display: none;
  font-weight: 600;
}
.form-status.success { display: block; background: #e5f7e0; color: #266b1e; border: 1px solid #b6e2a8; }
.form-status.error { display: block; background: #fbe4e4; color: #8a1f1f; border: 1px solid #f3b8b8; }

/* ---------- Info blocks (venue / contact) ---------- */
.info-block { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.info-block .icon-badge { flex-shrink: 0; margin-bottom: 0; }
.map-embed {
  border: 0;
  width: 100%;
  height: 320px;
  border-radius: var(--radius);
}

/* ---------- Store cards ---------- */
.store-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: var(--radius);
  padding: 24px;
}
.store-card h3 { margin-bottom: 4px; }
.store-card p { margin: 6px 0; font-size: 0.92rem; }
.store-card .store-hours { color: var(--grey); font-size: 0.82rem; }
.store-card a { color: inherit; text-decoration: underline; }
.store-card .store-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--charcoal);
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
}
.store-card .store-link:hover { text-decoration: underline; }
.store-tag {
  display: inline-block;
  background: var(--charcoal);
  color: var(--yellow);
  font-size: 0.75rem;
  font-family: var(--font-head);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--offwhite);
  padding: 50px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 30px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 42px; }
.footer-brand .logo-text { font-size: 1.15rem; }
.footer-tagline { color: var(--grey); max-width: 320px; }
.site-footer h4 {
  color: var(--yellow);
  font-size: 1rem;
  margin-bottom: 14px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #ccc; }
.footer-links a:hover { color: var(--yellow); }
.social-icons { display: flex; gap: 14px; }
.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}
.social-icons a:hover {
  background: var(--yellow);
  color: var(--black);
  transform: translateY(-3px) rotate(-8deg);
}
@media (prefers-reduced-motion: reduce) {
  .social-icons a:hover { transform: none; }
}
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  color: var(--grey);
  font-size: 0.85rem;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    border-bottom: 3px solid var(--yellow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 500px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 20px;
  }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid #2a2a2a; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .event-card { flex-direction: column; }
  .event-date { flex: none; width: 90px; }
}

/* ---------- Generic scroll-reveal (progressive enhancement) ----------
   Gated behind html.js-reveal, added by js/main.js the instant it runs.
   If JS never runs, nothing here applies and content stays fully visible. */
html.js-reveal .card,
html.js-reveal .card-dark,
html.js-reveal .store-card,
html.js-reveal .member-card,
html.js-reveal .event-card,
html.js-reveal .campaign-card,
html.js-reveal .album-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.2s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
html.js-reveal .card.in-view,
html.js-reveal .card-dark.in-view,
html.js-reveal .store-card.in-view,
html.js-reveal .member-card.in-view,
html.js-reveal .event-card.in-view,
html.js-reveal .campaign-card.in-view,
html.js-reveal .album-card.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .card,
  html.js-reveal .card-dark,
  html.js-reveal .store-card,
  html.js-reveal .member-card,
  html.js-reveal .event-card,
  html.js-reveal .campaign-card,
  html.js-reveal .album-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
