/*
  Lockeland Springs Neighborhood Association - site stylesheet
  Built to brain/.../lockelandsprings-site/DESIGN-SPEC.md (Desiree, 2026-07-21).
  DRAFT for client review.
*/

/* ============================
   1. Fonts (self-hosted, per spec Section 11)
   ============================ */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================
   2. Design tokens
   ============================ */

:root {
  /* type */
  --font-display: "Fraunces", "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* colour - brand anchors (do not alter) */
  --burgundy-800: #8B2332;
  --ink: #1A1A1A;
  --surface-base: #FCFBFE;

  /* burgundy scale */
  --burgundy-900: #5C1620;
  --burgundy-600: #A6394A;
  --burgundy-100: #F3E3E6;
  --burgundy-50: #FBF0F1;

  /* neutrals */
  --gray-600: #5B5B5B;
  --gray-300: #D8D8D8;
  --brand-gray-anchor: #B8B8B8; /* decorative/border/disabled only - never text */
  --surface-alt: #F5F3EE;

  /* neighborhood accents */
  --canopy-green: #3F5B47;
  --canopy-green-100: #E4EAE5;
  --porch-gold: #B8863A;
  --porch-gold-100: #F5EBDA;

  /* semantic */
  --state-error: #C0392B;
  --state-success: var(--canopy-green);
  --focus-ring: var(--burgundy-800);

  /* spacing scale (8px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* section vertical rhythm - mobile default, overridden at lg */
  --section-padding-y: 72px;

  /* container */
  --container-max: 1280px;
  --container-pad: 20px;

  /* card */
  --card-radius: 16px;
  --card-shadow: 0 4px 16px rgba(26, 26, 26, 0.08);

  /* type scale - mobile default, overridden at lg (1024px+) */
  --fs-h1: 2rem;
  --fs-h2: 1.75rem;
  --fs-h3: 1.375rem;
  --fs-h4: 1.125rem;
  --fs-eyebrow: 0.8125rem;
  --fs-body-lg: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.8125rem;
}

@media (min-width: 768px) {
  :root {
    --container-pad: 40px;
  }
}

@media (min-width: 1024px) {
  :root {
    --container-pad: 64px;
    --section-padding-y: 112px;

    --fs-h1: 3.5rem;
    --fs-h2: 2.5rem;
    --fs-h3: 1.75rem;
    --fs-h4: 1.25rem;
    --fs-body-lg: 1.25rem;
  }
}

@media (min-width: 1280px) {
  :root {
    --container-pad: 80px;
  }
}

/* ============================
   3. Reset / base
   ============================ */

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface-base);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--burgundy-800); }
a:hover { color: var(--burgundy-600); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

h1 { font-size: var(--fs-h1); line-height: 1.1; letter-spacing: -0.01em; }
@media (min-width: 1024px) { h1 { letter-spacing: -0.02em; } }
h2 { font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); line-height: 1.25; font-weight: 500; }

h4, .h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-h4);
  line-height: 1.3;
  margin: 0;
}

p { margin: 0 0 var(--space-4); }
.body-lg { font-size: var(--fs-body-lg); line-height: 1.6; }
.text-small { font-size: var(--fs-small); line-height: 1.5; color: var(--gray-600); }
.text-micro { font-size: var(--fs-micro); line-height: 1.5; color: var(--gray-600); }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--burgundy-800);
  line-height: 1.4;
  margin-bottom: var(--space-3);
}

/* readable-measure prose container, per spec Section 5 */
.prose {
  max-width: 720px;
}
.prose p { max-width: 75ch; }

/* focus visibility, per spec Section 3 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.pill-toggle button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ============================
   4. Layout helpers
   ============================ */

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

.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.section--base { background: var(--surface-base); }
.section--alt { background: var(--surface-alt); }
.section--canopy { background: var(--canopy-green-100); }
.section--burgundy-tint { background: var(--burgundy-100); }

.stack { display: flex; flex-direction: column; }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

.grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 1024px) { .grid { gap: var(--space-6); } }

.text-center { text-align: center; }
.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;
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  background: var(--ink);
  color: var(--surface-base);
  padding: var(--space-3) var(--space-4);
  border-radius: 8px;
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus { top: var(--space-3); }

/* ============================
   5. Buttons (per spec Section 8)
   ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-body);
  text-decoration: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 28px;
  min-height: 44px;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--burgundy-800);
  color: var(--surface-base);
  border-color: var(--burgundy-800);
}
.btn-primary:hover {
  background: var(--burgundy-900);
  border-color: var(--burgundy-900);
  color: var(--surface-base);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(92, 22, 32, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--burgundy-800);
  border-color: var(--burgundy-800);
}
.btn-secondary:hover { background: var(--burgundy-50); color: var(--burgundy-800); }

.btn-tertiary {
  background: transparent;
  color: var(--burgundy-800);
  border: none;
  padding: 4px 0;
  text-decoration: none;
  border-radius: 0;
}
.btn-tertiary:hover { text-decoration: underline; }

/* hero/on-photo exception, per spec Section 8 */
.btn-on-photo {
  background: var(--surface-base);
  color: var(--burgundy-800);
  border-color: var(--surface-base);
}
.btn-on-photo:hover {
  background: #fff;
  color: var(--burgundy-900);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  background: var(--gray-300);
  border-color: var(--gray-300);
  color: var(--gray-600);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============================
   6. Nav (per spec Section 8)
   ============================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 251, 254, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(26,26,26,0.08);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--ink);
}
.brand-badge {
  height: 132px;
  width: 132px;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .brand-badge { height: 168px; width: 168px; }
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.15;
}
@media (min-width: 1024px) { .brand-name { font-size: 1.1875rem; } }

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-2) 0;
  position: relative;
}
.nav-links a:hover { color: var(--burgundy-800); }
.nav-links a[aria-current="page"] {
  color: var(--burgundy-800);
}
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  border-radius: 2px;
  background: var(--burgundy-800);
}

.nav-cta {
  display: none;
}
@media (min-width: 1024px) {
  .nav-cta { display: inline-flex; }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 26px; height: 26px; }

.mobile-panel {
  position: fixed;
  inset: 0;
  background: var(--surface-base);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.mobile-panel.is-open { transform: translateX(0); }

.mobile-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.mobile-panel-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.mobile-panel-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--font-display);
  font-size: 1.375rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--gray-300);
}
.mobile-panel-links a[aria-current="page"] { color: var(--burgundy-800); }

.mobile-panel-cta { margin-top: var(--space-6); }
.mobile-panel-cta .btn { width: 100%; }

body.nav-open { overflow: hidden; }

/* ============================
   7. Hero (per spec Section 7.1 / 7.5)
   ============================ */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 360px;
  overflow: hidden;
  background: var(--burgundy-900);
  color: var(--surface-base);
}
@media (min-width: 600px) { .hero { min-height: 420px; } }
@media (min-width: 1024px) { .hero { min-height: 560px; } }

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(26,26,26,0.8) 0%, rgba(26,26,26,0.55) 40%, rgba(26,26,26,0.35) 70%, rgba(26,26,26,0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.hero-content .eyebrow {
  color: var(--porch-gold);
  text-shadow: 0 1px 4px rgba(26,26,26,0.9);
}
.hero-content h1 {
  color: var(--surface-base);
  max-width: 16ch;
  margin-bottom: var(--space-3);
}
.hero-content .hero-subline {
  color: var(--surface-base);
  font-size: var(--fs-body-lg);
  max-width: 60ch;
  margin-bottom: var(--space-5);
  opacity: 0.95;
}
.hero-content .hero-meta {
  color: var(--surface-base);
  font-size: var(--fs-small);
  margin-bottom: var(--space-4);
  opacity: 0.9;
}

/* ============================
   8. Page Header (inner pages, per spec Section 7.2)
   ============================ */

.page-header {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
  background: var(--canopy-green-100);
  overflow: hidden;
}
@media (min-width: 1024px) { .page-header { min-height: 320px; } }

.page-header-watermark {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  opacity: 0.05;
  pointer-events: none;
}
.page-header-watermark img { width: 100%; height: 100%; }

.page-header-content {
  position: relative;
  z-index: 1;
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}
.page-header-content p {
  font-size: var(--fs-body-lg);
  color: var(--gray-600);
  max-width: 60ch;
  margin-top: var(--space-3);
}

/* ============================
   9. What LSNA Does (icon row)
   ============================ */

.icon-row {
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 600px) { .icon-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .icon-row { grid-template-columns: repeat(4, 1fr); } }

.icon-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.icon-card svg {
  width: 40px;
  height: 40px;
  stroke: var(--canopy-green);
  fill: none;
  stroke-width: 1.75;
}
.icon-card h3 { font-size: var(--fs-h4); font-family: var(--font-body); font-weight: 700; }
.icon-card p { color: var(--gray-600); margin: 0; }

/* ============================
   10. Cards (per spec Section 8)
   ============================ */

.card {
  background: var(--surface-base);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) { .card { padding: var(--space-6); } }

.section--base .card,
.section--canopy .card,
.section--alt .card {
  border: 1px solid var(--gray-300);
  box-shadow: none;
}

.card-media {
  margin: calc(var(--space-5) * -1) calc(var(--space-5) * -1) var(--space-5);
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  overflow: hidden;
  position: relative;
  background: var(--burgundy-100);
  aspect-ratio: 4 / 3;
}
@media (min-width: 1024px) {
  .card-media { margin: calc(var(--space-6) * -1) calc(var(--space-6) * -1) var(--space-6); }
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.card-media.is-muted img {
  opacity: 0.85;
  filter: saturate(0.7);
}

.date-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--burgundy-800);
  color: var(--surface-base);
  font-size: var(--fs-small);
  font-weight: 500;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  z-index: 1;
}

.card h3 { margin-bottom: var(--space-2); }
.card .text-small { margin-bottom: var(--space-3); }
.card .btn-tertiary { margin-top: auto; align-self: flex-start; }

/* ============================
   11. Membership teaser / tier cards
   ============================ */

.tier-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .tier-grid { grid-template-columns: 1fr 1fr; } }

.tier-card { position: relative; }
.tier-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.5rem;
  color: var(--burgundy-800);
  margin-bottom: var(--space-2);
}
.tier-price span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-small);
  color: var(--gray-600);
}
.tier-perks {
  list-style: none;
  margin: var(--space-4) 0 var(--space-5);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.tier-perks li {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}
.tier-perks svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--canopy-green);
  fill: none;
  margin-top: 2px;
}

.eligibility-callout {
  background: var(--porch-gold-100);
  border: 1px solid var(--porch-gold);
  border-radius: 12px;
  padding: var(--space-4);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin: var(--space-5) 0;
}
.eligibility-callout svg {
  width: 24px; height: 24px;
  flex-shrink: 0;
  stroke: var(--porch-gold);
  fill: none;
  margin-top: 2px;
}
.eligibility-callout p { margin: 0; font-size: var(--fs-small); color: var(--ink); }

/* ============================
   12. Embed containers (GHL forms)
   ============================ */

.embed-card {
  background: var(--surface-base);
  border: 1px solid var(--gray-300);
  border-radius: 16px;
  padding: var(--space-5);
  margin-top: var(--space-5);
}
@media (min-width: 1024px) { .embed-card { padding: var(--space-6); } }

.embed-card-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  color: var(--gray-600);
  font-size: var(--fs-small);
}

.embed-placeholder {
  width: 100%;
  min-height: 480px;
  border: 2px dashed var(--gray-300);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-5);
  background: var(--surface-alt);
}
.embed-placeholder p {
  max-width: 40ch;
  color: var(--gray-600);
  margin: 0;
}
.embed-placeholder strong { color: var(--ink); }

.embed-frame-wrap {
  position: relative;
  width: 100%;
}
.embed-frame-wrap iframe {
  width: 100%;
  min-height: 600px;
  border: 0;
  display: block;
  max-height: 900px;
  overflow: auto;
}

/* ============================
   13. Board grid
   ============================ */

.board-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .board-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .board-grid { grid-template-columns: repeat(4, 1fr); } }

.board-card { text-align: left; }
.board-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: var(--space-4);
  background: var(--burgundy-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.board-photo svg { width: 60%; height: 60%; color: var(--burgundy-800); }
.board-photo-img { width: 100%; height: 100%; object-fit: cover; }
.board-photo .board-initials {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  color: var(--burgundy-800);
}
.board-role {
  color: var(--canopy-green);
  font-weight: 500;
  font-size: var(--fs-small);
  margin-bottom: var(--space-2);
}
.board-bio { color: var(--gray-600); font-size: var(--fs-small); margin: 0; }

/* ============================
   14. CTA band
   ============================ */

.cta-band {
  background: var(--burgundy-100);
  border-radius: var(--card-radius);
  padding: var(--space-6);
  text-align: center;
}
@media (min-width: 1024px) { .cta-band { padding: var(--space-7); } }
.cta-band h2 { margin-bottom: var(--space-3); }
.cta-band p { max-width: 60ch; margin: 0 auto var(--space-5); color: var(--gray-600); }

/* ============================
   15. Two-column layouts
   ============================ */

.two-col {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}
.two-col img {
  border-radius: var(--card-radius);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--burgundy-100);
}

.two-col-reverse {
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .two-col-reverse { grid-template-columns: 1fr 1fr; }
  .two-col-reverse .two-col-media { order: 2; }
  .two-col-reverse .two-col-text { order: 1; }
}

.badge-supporting {
  width: 140px;
  height: 140px;
  margin-bottom: var(--space-5);
}
@media (min-width: 1024px) { .badge-supporting { width: 180px; height: 180px; } }

/* ============================
   16. Pill toggle (Events Upcoming/Past)
   ============================ */

.pill-toggle {
  display: inline-flex;
  background: var(--surface-alt);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin-bottom: var(--space-7);
}
.pill-toggle button {
  border: none;
  background: transparent;
  color: var(--gray-600);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-body);
  padding: 10px 24px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 44px;
}
.pill-toggle button[aria-selected="true"] {
  background: var(--burgundy-800);
  color: var(--surface-base);
}

.event-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .event-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .event-grid { grid-template-columns: repeat(3, 1fr); } }

.events-scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-3);
  margin: 0 calc(var(--container-pad) * -1);
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}
.events-scroll-row > * { scroll-snap-align: start; }
@media (min-width: 1024px) {
  .events-scroll-row {
    display: grid;
    grid-auto-flow: initial;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    margin: 0;
    padding: 0;
  }
}

/* ============================
   17. Event detail page
   ============================ */

.event-details-layout {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .event-details-layout { grid-template-columns: 1fr 360px; align-items: start; }
}

.details-card {
  position: sticky;
  top: 96px;
}
.details-card dl { margin: 0; }
.details-card dt {
  font-weight: 700;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-600);
  margin-top: var(--space-4);
}
.details-card dt:first-of-type { margin-top: 0; }
.details-card dd { margin: 2px 0 0; font-size: var(--fs-body); }
.details-card .btn { width: 100%; margin-top: var(--space-5); }

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.secondary-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--gray-300);
}
.secondary-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
}
.secondary-links a:hover { color: var(--burgundy-800); }
.secondary-links svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

/* ============================
   18. Forms
   ============================ */

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.form-field label {
  font-weight: 500;
  font-size: var(--fs-small);
  color: var(--ink);
}
.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  padding: var(--space-3) var(--space-4);
  min-height: 44px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: var(--surface-base);
  color: var(--ink);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: var(--burgundy-800);
}
.form-field .field-error {
  color: var(--state-error);
  font-size: var(--fs-micro);
}
.form-status[hidden] { display: none; }
.form-status {
  padding: var(--space-4);
  border-radius: 8px;
  background: var(--canopy-green-100);
  color: var(--canopy-green);
  font-size: var(--fs-small);
  margin-top: var(--space-4);
}

/* ============================
   19. Contact page
   ============================ */

.contact-layout {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr 400px; }
}
.contact-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.contact-info-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.contact-info-list svg { width: 22px; height: 22px; stroke: var(--burgundy-800); fill: none; margin-top: 2px; flex-shrink: 0; }
.contact-info-list a { text-decoration: none; }
.contact-info-list a:hover { text-decoration: underline; }

.social-row {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--burgundy-100);
  color: var(--burgundy-800);
}
.social-row svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }

/* ============================
   20. Footer (per spec Section 8)
   ============================ */

.site-footer {
  background: var(--burgundy-900);
  color: var(--surface-base);
  padding-top: var(--space-8);
  padding-bottom: var(--space-6);
}

.footer-grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-7);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.footer-brand-mark {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.footer-badge { width: 64px; height: 64px; flex-shrink: 0; }
.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
}
.footer-brand p { color: rgba(252,251,254,0.8); margin: 0; max-width: 32ch; }

.footer-col h4 {
  color: var(--surface-base);
  margin-bottom: var(--space-4);
  font-size: var(--fs-h4);
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-col a {
  color: rgba(252,251,254,0.85);
  text-decoration: none;
}
.footer-col a:hover { color: var(--surface-base); text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(252,251,254,0.15);
  padding-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--fs-micro);
  color: rgba(252,251,254,0.7);
}

/* ============================
   21. Template shell banner (dev-only marker, event-template.html)
   ============================ */

.template-shell-banner {
  background: #111;
  color: #fff;
  text-align: center;
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-small);
  font-family: var(--font-body);
}
.template-shell-banner strong { color: var(--porch-gold); }
