/* ==========================================================================
   The Waterford Lions — Site Stylesheet
   Primary: #581825 (Lions wine)  |  Complement: #18584b (civic teal)
   Accent:  #c9a24b (heritage gold, echoes the club's Lions gold)
   ========================================================================== */

:root {
  /* Brand */
  --wine:        #581825;
  --wine-dark:   #3a0f18;
  --wine-mid:    #7a2436;
  --wine-tint:   #efc3cc;
  --wine-tint-2: #faebee;

  --teal:        #18584b;
  --teal-dark:   #103d34;
  --teal-mid:    #23806d;

  --gold:        #c9a24b;
  --gold-light:  #e8d19b;
  --gold-dark:   #92742f;

  --ink:         #2b2426;
  --ink-soft:    #5b4f52;
  --cream:       #faf7f4;
  --paper:       #ffffff;
  --line:        #e4d9d3;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max: 1120px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --radius: 3px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { padding-left: 1.25em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--wine-dark);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; letter-spacing: 0.01em; }
p { margin: 0 0 1em; max-width: 68ch; }
.container p { color: var(--ink-soft); }

:focus-visible {
  outline: 3px solid var(--teal-mid);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap);
}
.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.section--tint {
  background: var(--wine-tint-2);
}
.section--dark {
  background: var(--wine-dark);
  color: #f4e9ea;
}
.section--dark h2, .section--dark h3 { color: var(--gold-light); }
.section--dark p { color: #e3cdd0; }
.rule {
  height: 3px;
  width: 64px;
  background: var(--gold);
  border: none;
  margin: 0 0 1.25em;
}
.rule--center { margin-inline: auto; }
.grid {
  display: grid;
  gap: var(--gap);
}
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header__bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex: none;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--wine-dark);
  line-height: 1.1;
}
.brand__name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--teal);
  font-weight: 600;
}
.nav {
  display: none;
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  border-bottom-color: var(--wine);
  color: var(--wine-dark);
}
.nav-toggle {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
  cursor: pointer;
}
@media (min-width: 900px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
}
.nav-mobile {
  border-top: 1px solid var(--line);
  padding: 0.5rem var(--gap) 1rem;
}
.nav-mobile[hidden] { display: none; }
.nav-mobile ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.nav-mobile a { text-decoration: none; color: var(--ink); }
@media (min-width: 900px) {
  .nav-mobile { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--wine);
  color: var(--wine-tint-2);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) var(--gap);
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 860px) {
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; }
}
.hero__eyebrow-free h1 { color: var(--paper); }
.hero p.lede {
  font-size: 1.15rem;
  color: var(--wine-tint);
  max-width: 46ch;
}
.hero__figure {
  border: 6px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }

.page-banner {
  background: var(--wine);
  color: var(--wine-tint-2);
  padding: clamp(2.2rem, 5vw, 3.2rem) 0;
}
.page-banner h1 { color: var(--paper); margin-bottom: 0.35em; }
.page-banner p { color: var(--wine-tint); margin: 0; max-width: 60ch; }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
}
.btn--gold {
  background: var(--gold);
  color: var(--wine-dark);
}
.btn--gold:hover { background: var(--gold-light); }
.btn--outline {
  border-color: var(--gold);
  color: var(--paper);
}
.btn--outline:hover { background: rgba(201,162,75,0.15); }
.btn--teal {
  background: var(--teal);
  color: var(--paper);
}
.btn--teal:hover { background: var(--teal-mid); }
.btn--ink {
  border-color: var(--wine);
  color: var(--wine-dark);
}
.btn--ink:hover { background: var(--wine-tint-2); }

.text-link {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
.text-link:hover { color: var(--teal-dark); }

/* ---------- Cards / panels ---------- */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--wine);
  border-radius: var(--radius);
  padding: 1.6rem 1.75rem;
}
.panel--teal { border-left-color: var(--teal); }
.panel--gold { border-left-color: var(--gold); }

.stat {
  border-top: 3px solid var(--gold);
  padding-top: 0.75rem;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--wine);
}

/* ---------- Lists (support orgs, links) ---------- */
.support-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
@media (min-width: 640px) {
  .support-list { grid-template-columns: 1fr 1fr; }
}
.support-list li {
  padding: 0.6rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid var(--teal);
}
.support-list li strong { color: var(--wine-dark); }

.card-links {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) { .card-links { grid-template-columns: repeat(3, 1fr); } }
.card-links .panel h3 { margin-bottom: 0.35em; }
.card-links .panel p { margin-bottom: 0.75em; }

/* ---------- Table (meetings / downloads) ---------- */
table.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
}
table.info-table th, table.info-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}
table.info-table th {
  font-family: var(--font-display);
  color: var(--wine-dark);
  font-weight: 600;
}

/* ---------- Form ---------- */
.form-field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}
.form-field label { font-weight: 600; font-size: 0.92rem; }
.form-field input, .form-field textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
  font-family: inherit;
  font-size: 1rem;
  background: var(--paper);
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--teal);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--wine-dark);
  color: #e6d3d6;
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}
.site-footer h4 {
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.8rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.95rem; }
.site-footer a { text-decoration: none; color: #e6d3d6; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding: 1.2rem var(--gap) 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  color: #c9adb1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.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;
}
