:root {
  --sg-wine: #651b25;
  --sg-wine-dark: #300c13;
  --sg-gold: #dda83d;
  --sg-cream: #fbf5e9;
  --sg-paper: #fffdf8;
  --sg-ink: #281f1c;
  --sg-muted: #756961;
  --sg-line: rgba(88, 54, 40, .17);
  --sg-serif: "Playfair Display", Georgia, serif;
  --sg-sans: "DM Sans", Arial, sans-serif;
  --sg-edge: clamp(20px, 6vw, 96px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.sg-page { margin: 0; overflow-x: hidden; background: var(--sg-cream); color: var(--sg-ink); font-family: var(--sg-sans); }
.sg-page main { display: block; }
.sg-page a { color: inherit; }
.sg-page button, .sg-page input, .sg-page select { font: inherit; }
.sg-page :focus-visible { outline: 3px solid var(--sg-gold); outline-offset: 3px; }

.sg-hero { position: relative; min-height: 560px; padding: clamp(76px, 9vw, 126px) var(--sg-edge) 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 60px; align-items: end; overflow: hidden; background: var(--sg-wine-dark); color: #fff; }
.sg-hero::before { content: ""; position: absolute; inset: 0; opacity: .34; background: radial-gradient(circle at 82% 17%, rgba(221,168,61,.8), transparent 27%), linear-gradient(135deg, transparent 44%, rgba(255,255,255,.06)); }
.sg-hero::after { content: "AV"; position: absolute; right: -2vw; top: 20px; color: rgba(255,255,255,.04); font: 700 clamp(180px, 32vw, 470px)/.8 var(--sg-serif); letter-spacing: -.08em; }
.sg-hero__copy, .sg-hero__stats { position: relative; z-index: 1; }
.sg-eyebrow { color: var(--sg-gold); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.sg-hero h1 { max-width: 730px; margin: 16px 0 20px; font: 600 clamp(54px, 7vw, 98px)/.91 var(--sg-serif); letter-spacing: -.045em; }
.sg-hero__copy > p { max-width: 580px; margin: 0; color: rgba(255,255,255,.7); font-size: clamp(16px, 1.6vw, 20px); line-height: 1.7; }
.sg-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sg-btn { min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 700; transition: transform .2s, background .2s, color .2s; }
.sg-btn:hover { transform: translateY(-2px); }
.sg-btn--gold { background: var(--sg-gold); color: #2c1707; }
.sg-btn--outline { border: 1px solid rgba(255,255,255,.55); color: #fff; }
.sg-btn--outline:hover { background: #fff; color: var(--sg-wine); }
.sg-btn--dark { background: var(--sg-wine-dark); color: #fff; }
.sg-hero__stats { min-width: 235px; display: grid; border-top: 1px solid rgba(255,255,255,.25); }
.sg-hero__stats > div { padding: 18px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 28px; border-bottom: 1px solid rgba(255,255,255,.25); }
.sg-hero__stats strong { color: var(--sg-gold); font: 600 31px var(--sg-serif); }
.sg-hero__stats span { color: rgba(255,255,255,.58); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; text-align: right; }

.sg-directory { padding: clamp(80px, 10vw, 140px) var(--sg-edge); background: var(--sg-cream); }
.sg-directory__head { display: grid; grid-template-columns: 1fr minmax(260px, 420px); gap: 70px; align-items: end; margin-bottom: 42px; }
.sg-directory__head h2, .sg-support h2 { max-width: 750px; margin: 12px 0 0; font: 600 clamp(40px, 5vw, 68px)/1 var(--sg-serif); letter-spacing: -.035em; }
.sg-directory__head p { margin: 0; color: var(--sg-muted); line-height: 1.7; }

.sg-filter { display: grid; grid-template-columns: 1.45fr 1fr 1fr auto; gap: 1px; padding: 1px; background: var(--sg-line); border: 1px solid var(--sg-line); }
.sg-field { min-width: 0; padding: 15px 17px; background: var(--sg-paper); }
.sg-field label { display: block; margin-bottom: 5px; color: #9a6d16; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sg-field input, .sg-field select { width: 100%; min-height: 30px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--sg-ink); font-size: 14px; }
.sg-field select { cursor: pointer; }
.sg-filter__submit { min-width: 155px; border: 0; padding: 0 20px; background: var(--sg-wine); color: #fff; font-weight: 700; cursor: pointer; }
.sg-filter__submit:hover { background: var(--sg-wine-dark); }
.sg-filter__reset { grid-column: 1 / -1; justify-self: end; margin: 10px 3px 0; color: var(--sg-wine); font-size: 12px; font-weight: 700; }

.sg-results__bar { display: flex; justify-content: space-between; gap: 20px; margin: 30px 0 16px; color: var(--sg-muted); font-size: 12px; }
.sg-results__bar p { margin: 0; }
.sg-results__bar strong { color: var(--sg-ink); }
.sg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--sg-line); border-left: 1px solid var(--sg-line); }
.sg-card { min-height: 285px; padding: 25px; display: flex; flex-direction: column; justify-content: space-between; gap: 34px; border-right: 1px solid var(--sg-line); border-bottom: 1px solid var(--sg-line); background: rgba(255,253,248,.46); transition: background .25s, color .25s, transform .25s; animation-delay: var(--sg-delay); }
.sg-card:hover { z-index: 1; background: var(--sg-wine); color: #fff; transform: translateY(-3px); }
.sg-card__top { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.sg-card__mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; color: #9b6c13; font: 600 18px var(--sg-serif); }
.sg-card:hover .sg-card__mark { color: var(--sg-gold); }
.sg-card__count { color: var(--sg-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.sg-card:hover .sg-card__count { color: rgba(255,255,255,.65); }
.sg-card__location { margin: 0 0 8px; color: #9b6c13; font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.sg-card:hover .sg-card__location { color: var(--sg-gold); }
.sg-card h3 { margin: 0; font: 600 clamp(24px, 2.4vw, 34px)/1.08 var(--sg-serif); overflow-wrap: anywhere; }
.sg-card__meta { display: flex; justify-content: space-between; align-items: end; gap: 18px; padding-top: 15px; border-top: 1px solid var(--sg-line); color: var(--sg-muted); font-size: 10px; }
.sg-card:hover .sg-card__meta { border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.6); }
.sg-card__meta a { flex: none; color: var(--sg-wine); font-size: 11px; font-weight: 700; text-decoration: none; }
.sg-card:hover .sg-card__meta a { color: #fff; }

.sg-empty { min-height: 260px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 9px; text-align: center; border-block: 1px solid var(--sg-line); }
.sg-empty strong { font: 600 28px var(--sg-serif); }
.sg-empty span { color: var(--sg-muted); }
.sg-text-link { color: var(--sg-wine); font-size: 13px; font-weight: 700; text-decoration: none; border-bottom: 1px solid; padding-bottom: 3px; }
.sg-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 36px; }
.sg-pagination a, .sg-pagination__current, .sg-pagination__gap { min-width: 40px; min-height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--sg-line); text-decoration: none; font-size: 12px; }
.sg-pagination a:hover, .sg-pagination__current { background: var(--sg-wine); border-color: var(--sg-wine); color: #fff; }
.sg-pagination__gap { border-color: transparent; }

.sg-support { min-height: 650px; display: grid; grid-template-columns: 1fr 1fr; background: var(--sg-gold); color: #2f1d10; }
.sg-support__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(70px, 9vw, 130px) var(--sg-edge); }
.sg-support__copy .sg-eyebrow { color: #6f4710; }
.sg-support__copy > p { max-width: 560px; margin: 22px 0 0; font-size: 17px; line-height: 1.75; }
.sg-support__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 30px; }
.sg-support__image { min-height: 520px; background: #6a1b26 url("../assets/generated/community-gathering-hero.webp") 68% center / cover no-repeat; }

.sg-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.sg-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .sg-hero { grid-template-columns: 1fr; }
  .sg-hero__stats { grid-template-columns: repeat(3, 1fr); }
  .sg-hero__stats > div { display: block; }
  .sg-hero__stats span { display: block; margin-top: 4px; text-align: left; }
  .sg-directory__head { grid-template-columns: 1fr; gap: 20px; }
  .sg-filter { grid-template-columns: 1fr 1fr; }
  .sg-field--search { grid-column: 1 / -1; }
  .sg-filter__submit { min-height: 60px; }
  .sg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-support { grid-template-columns: 1fr; }
  .sg-support__image { min-height: 480px; }
}

@media (max-width: 640px) {
  .sg-hero { min-height: 620px; padding-top: 84px; }
  .sg-hero__stats { grid-template-columns: 1fr; }
  .sg-hero__stats > div { display: flex; }
  .sg-hero__stats span { display: inline; text-align: right; }
  .sg-filter { grid-template-columns: 1fr; }
  .sg-field--search { grid-column: auto; }
  .sg-filter__submit { min-height: 56px; }
  .sg-grid { grid-template-columns: 1fr; }
  .sg-card { min-height: 245px; }
  .sg-results__bar { align-items: flex-start; flex-direction: column; }
  .sg-support__copy { padding-inline: 20px; }
  .sg-support__image { min-height: 400px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .sg-reveal { opacity: 1; transform: none; }
}
