/* ==========================================================================
   Osprey Softball Legends — shared styles
   Palette: bg #161616 | accent #60b9eb | heading blue #4d9dc9
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;600;700;800&display=swap');

:root {
  --bg-dark: #161616;
  --bg-darker: #101010;
  --white: #f7f7f7;
  --ink: #1b1b1b;
  --muted: #5e5e5e;
  --accent: #60b9eb;
  --accent-hover: #86c6f0;
  --accent-active: #c1dff7;
  --heading-blue: #4d9dc9;
  --border: #e2e2e2;
  --heading-font: 'League Spartan', 'Arial Narrow', Arial, sans-serif;
  --body-font: Helvetica, Arial, sans-serif;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; vertical-align: middle; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4, h5 {
  font-family: var(--heading-font);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 .5em;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img, .brand svg { height: 66px; width: auto; }
.brand .brand-text {
  font-family: var(--heading-font);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1;
  font-size: 20px;
}
.brand .brand-text small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--accent);
  margin-top: 4px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  color: var(--white);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .07em;
  padding: 8px 12px;
  border-radius: 4px;
  transition: color .2s ease, background .2s ease;
}
.main-nav a:hover { color: var(--accent); }
.main-nav a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
  padding: 4px;
}
.nav-toggle svg { width: 34px; height: 34px; fill: currentColor; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px;
  color: var(--white);
  background:
    linear-gradient(to bottom, rgba(0,0,0,.62), rgba(0,0,0,.72)),
    radial-gradient(circle at 30% 20%, #22475f 0%, #161616 55%),
    var(--bg-dark);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/seams.svg") center/cover no-repeat;
  opacity: .10;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero h1 {
  font-size: clamp(38px, 7vw, 64px);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-bottom: 18px;
}
.hero p.subtitle {
  font-size: clamp(17px, 2.4vw, 24px);
  font-weight: 400;
  margin: 0 auto;
  max-width: 640px;
  color: #eaeaea;
}
.hero-page { min-height: 340px; padding: 90px 24px; }
.hero-home {
  min-height: 600px;
  background:
    linear-gradient(to bottom, rgba(11,20,28,.72), rgba(11,20,28,.82)),
    url("assets/team.jpg") center 22%/cover no-repeat,
    var(--bg-dark);
}
.hero-home::after { opacity: .06; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-light { background: var(--white); color: var(--ink); }
.section-dark { background: var(--bg-dark); color: var(--white); }
.section-darker { background: var(--bg-darker); color: var(--white); }

.section-heading {
  text-align: center;
  color: var(--heading-blue);
  font-size: clamp(26px, 4vw, 34px);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-dark .section-heading, .section-darker .section-heading { color: var(--accent); }
.section-rule {
  width: 56px;
  height: 0;
  border: none;
  border-bottom: 3px solid var(--accent);
  margin: 0 auto 40px;
}

.lead { font-size: 19px; max-width: 820px; margin: 0 auto 24px; text-align: center; }
.section-dark a, .section-darker a { color: var(--accent); }

/* ---------- Cards grid ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 8px;
}
.card {
  text-align: center;
  padding: 8px;
}
.card h4 {
  font-size: 22px;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-dark .card h4, .section-darker .card h4 { color: var(--white); }
.card .card-img {
  aspect-ratio: 3 / 2;
  border-radius: 6px;
  background: linear-gradient(135deg, #21455c, #60b9eb);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
}
.card .card-img svg { width: 74px; height: 74px; opacity: .9; }
.card p { margin: 0 0 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #04202f;
  font-family: var(--heading-font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background .2s ease, transform .05s ease;
}
.btn:hover { background: var(--accent-hover); color: #04202f; }
.btn:active { transform: translateY(1px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #04202f; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 8px; }
.pay-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.btn-pay { padding: 12px 22px; font-size: 14px; color: #fff; }
.btn-pay:hover { color: #fff; }
.btn-venmo { background: #008cff; }
.btn-venmo:hover { background: #339eff; }
.btn-paypal { background: #003087; }
.btn-paypal:hover { background: #00449e; }

/* ---------- Prose (bylaws, articles) ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 {
  color: var(--heading-blue);
  text-transform: uppercase;
  font-size: 24px;
  margin-top: 40px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}
.section-dark .prose h2 { color: var(--accent); border-color: rgba(255,255,255,.15); }
.prose h3 {
  font-size: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 24px;
}
.section-dark .prose h3 { color: var(--accent-hover); }
.prose p, .prose li { margin: 0 0 14px; }
.prose ol, .prose ul { padding-left: 22px; }
.prose .divider { text-align: center; color: var(--accent); letter-spacing: .4em; margin: 28px 0; }

/* ---------- Info blocks (golf, officers) ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.info-block h4 {
  color: var(--heading-blue);
  text-transform: uppercase;
  font-size: 20px;
  margin-bottom: 10px;
}
.section-dark .info-block h4 { color: var(--accent); }
.info-block p { margin: 0 0 6px; }

/* Officer / member cards */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 32px auto 0;
}
.person {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}
.section-light .person { background: #fafafa; border-color: var(--border); }
.person .role {
  font-family: var(--heading-font);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.person .name { font-size: 20px; font-weight: 700; }
.section-light .person .name { color: var(--ink); }

.member-list {
  columns: 3 200px;
  column-gap: 40px;
  max-width: 900px;
  margin: 32px auto 0;
  list-style: none;
  padding: 0;
}
.member-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  break-inside: avoid;
}

/* ---------- Forms ---------- */
.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 32px;
}
.section-light .form-card { background: #fafafa; border-color: var(--border); }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
  color: var(--muted);
}
.section-dark .field label { color: var(--accent-hover); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------- Flyer ---------- */
.flyer-wrap { max-width: 620px; margin: 0 auto; text-align: center; }
.flyer-wrap img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.08);
}
.flyer-caption { font-size: 13px; color: var(--muted); margin-top: 14px; }
.section-dark .flyer-caption, .section-darker .flyer-caption { color: #9a9a9a; }

/* ---------- Sponsor tiers ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}
.tier {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.section-light .tier { background: #fafafa; border-color: var(--border); }
.tier.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tier h3 {
  font-size: 20px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}
.tier .price {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 30px;
  color: var(--white);
  margin-bottom: 14px;
}
.section-light .tier .price { color: var(--ink); }
.tier ul { list-style: none; padding: 0; margin: 0; }
.tier li {
  padding: 7px 0 7px 24px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.section-light .tier li { border-color: var(--border); }
.tier li:last-child { border-bottom: none; }
.tier li::before {
  content: "";
  position: absolute;
  left: 4px; top: 14px;
  width: 8px; height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-darker);
  color: #a9a9a9;
  padding: 40px 24px;
  text-align: center;
  font-size: 14px;
}
.site-footer .foot-brand {
  font-family: var(--heading-font);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--white);
  font-size: 16px;
  margin-bottom: 10px;
}
.site-footer a { color: var(--accent); }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed;
  left: 24px;
  bottom: 24px;
  max-width: 340px;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  padding: 20px;
  z-index: 9999;
  font-size: 14px;
}
.cookie h4 { color: var(--ink); font-size: 16px; text-transform: none; }
.cookie.hidden { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 85vw);
    background: var(--bg-dark);
    transform: translateX(100%);
    transition: transform .3s ease;
    padding: 80px 24px 24px;
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0,0,0,.4);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 14px 8px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 15px; }
  .nav-close {
    position: absolute;
    top: 18px; right: 18px;
    background: none; border: 0; color: var(--white); cursor: pointer;
  }
  .nav-close svg { width: 30px; height: 30px; fill: currentColor; }
  .member-list { columns: 2 160px; }
}
@media (min-width: 961px) { .nav-close { display: none; } }
@media (max-width: 520px) {
  .member-list { columns: 1; }
  .brand .brand-text { font-size: 16px; }
  .brand img, .brand svg { height: 52px; }
}
