/* ============================================
   South Forsyth High School Beta Club
   Shared Stylesheet
   School colors: royal blue, silver, black, white
   ============================================ */

:root {
  --blue: #1e4fc2;
  --blue-dark: #143588;
  --blue-darker: #0d2359;
  --navy: #0a1633;
  --silver: #c8cdd6;
  --silver-light: #eef0f4;
  --black: #101418;
  --white: #ffffff;
  --gold: #e8b64a;
  --text: #232936;
  --text-muted: #5b6472;
  --font-display: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(13, 35, 89, 0.10);
  --shadow-sm: 0 2px 10px rgba(13, 35, 89, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

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

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: var(--silver);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.topbar a { color: var(--silver); text-decoration: none; }
.topbar a:hover { color: var(--white); }

/* ---------- Navigation ---------- */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--silver);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--black);
}
.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text .brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: 0.005em;
}
.brand-text .brand-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
nav.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
nav.main-nav a:hover { background: var(--silver-light); color: var(--blue-dark); }
nav.main-nav a.active { background: var(--blue); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(255,255,255,0.14), transparent),
    linear-gradient(135deg, var(--blue-darker) 0%, var(--blue-dark) 55%, var(--blue) 100%);
  color: var(--white);
  padding: 4.5rem 1.5rem 4rem;
  text-align: center;
}
.hero .kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--silver);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 0.35rem 1.1rem;
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 850px;
  margin: 0 auto 1.1rem;
}
.hero p.lead {
  font-size: 1.14rem;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin: 0 auto 2rem;
}
.hero.hero-sub { padding: 3rem 1.5rem 2.6rem; }
.hero.hero-sub h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.hero.hero-photo { background-size: cover !important; background-position: center !important; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.6rem;
  border-radius: 10px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  margin: 0.25rem;
}
.btn-primary { background: var(--white); color: var(--blue-dark); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.btn-outline { border: 2px solid rgba(255,255,255,0.7); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); }

/* ---------- Layout ---------- */
.container { max-width: 1150px; margin: 0 auto; padding: 0 1.5rem; }
section.block { padding: 3.5rem 0; }
section.block.alt { background: var(--silver-light); }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 2.5rem; }
.section-head .eyebrow {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.015em; color: var(--black); }
.section-head p { color: var(--text-muted); margin-top: 0.7rem; font-size: 0.98rem; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-family: var(--font-body); font-size: 1.06rem; font-weight: 700; letter-spacing: -0.005em; margin-bottom: 0.5rem; color: var(--black); }
.card p { font-size: 0.93rem; color: var(--text-muted); line-height: 1.65; }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: #eaf0fc;
  color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.card .icon svg { width: 22px; height: 22px; }
.card-img {
  width: calc(100% + 3.2rem);
  margin: -1.6rem -1.6rem 1.2rem;
  border-radius: var(--radius) var(--radius) 0 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.card a.card-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.card a.card-link:hover { text-decoration: underline; }

/* ---------- Announcement banner ---------- */
.announce {
  background: var(--navy);
  color: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.75rem 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
}
.announce strong { color: var(--gold); }
.announce { font-weight: 500; font-size: 0.92rem; }
.announce strong { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 700; margin-right: 0.6rem; }

/* ---------- Pillars ---------- */
.pillar { text-align: center; }
.pillar .icon { margin: 0 auto 1rem; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  text-align: center;
}
.stat {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--silver);
  padding: 1.5rem 1rem;
}
.stat .num { font-family: var(--font-display); font-size: 2.15rem; font-weight: 700; color: var(--blue-dark); }
.stat .label { font-size: 0.76rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--silver); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 560px; }
thead { background: var(--blue-darker); color: var(--white); }
th { font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; }
th, td { text-align: left; padding: 0.8rem 1rem; }
tbody tr { border-top: 1px solid var(--silver-light); }
tbody tr:nth-child(even) { background: #f7f8fb; }

/* ---------- People ---------- */
.person { text-align: center; }
.person .avatar {
  width: 110px; height: 110px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--silver) 0%, var(--blue) 120%);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 2rem; font-weight: 700; font-family: var(--font-display);
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--silver);
}
.person .avatar img { width: 100%; height: 100%; object-fit: cover; }
.person.featured .avatar { width: 140px; height: 140px; box-shadow: 0 0 0 2px var(--blue); }
.person .role { color: var(--blue); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; }
.person .name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-top: 0.2rem; }
.person .bio { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.4rem; }

/* ---------- Gallery ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  display: flex; align-items: flex-end;
  padding: 1rem;
  color: var(--white);
  font-weight: 600; font-size: 0.88rem;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  background: linear-gradient(160deg, var(--blue) 0%, var(--navy) 100%);
  background-size: cover;
  background-position: center;
  transition: transform 0.15s;
  overflow: hidden;
}
.photo:hover { transform: scale(1.015); }

/* ---------- Forms ---------- */
form.club-form {
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  max-width: 720px;
  margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
label { font-weight: 600; font-size: 0.88rem; display: block; margin-bottom: 0.3rem; }
input, select, textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--silver);
  border-radius: 8px;
  font: inherit;
  font-size: 0.93rem;
  background: #fafbfd;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  background: var(--white);
}
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 1rem; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; position: relative; margin: 0 auto; max-width: 760px; padding-left: 2rem; }
.timeline::before {
  content: "";
  position: absolute; left: 0.5rem; top: 0.3rem; bottom: 0.3rem;
  width: 3px; background: var(--silver); border-radius: 2px;
}
.timeline li { position: relative; padding: 0 0 1.8rem 1rem; }
.timeline li::before {
  content: "";
  position: absolute; left: -1.62rem; top: 0.4rem;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--blue); border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue);
}
.timeline .year { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--blue-dark); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 3.5rem 1.5rem;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.015em; margin-bottom: 0.6rem; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 1.6rem; }

/* ---------- Badges / chips ---------- */
.chip {
  display: inline-block;
  background: var(--silver-light);
  color: var(--blue-dark);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  margin: 0.15rem;
}
.badge-date {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.7rem;
}

/* ---------- Shop ---------- */
.product .swatch {
  aspect-ratio: 1;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.product .price { font-weight: 800; color: var(--blue-dark); font-size: 1.1rem; margin-top: 0.4rem; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy);
  color: var(--silver);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 0;
}
.footer-grid {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.footer-grid h4 { font-family: var(--font-body); color: var(--white); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; margin-bottom: 0.9rem; letter-spacing: 0.14em; }
.footer-grid ul { list-style: none; }
.footer-grid a { color: var(--silver); text-decoration: none; font-size: 0.88rem; line-height: 2; }
.footer-grid a:hover { color: var(--white); }
.footer-grid p { font-size: 0.88rem; }
.footer-bottom {
  max-width: 1150px;
  margin: 2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.78rem;
  color: rgba(200,205,214,0.7);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.notice {
  background: #eef3ff;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .nav-wrap { justify-content: center; }
  nav.main-nav ul { justify-content: center; }
  .hero { padding: 3rem 1rem 2.5rem; }
}
