/* ==========================================================================
   GCCOC (Grove City College Outing Club) — design system
   Replaces responsive.css / banner.php inline styles. Also restyles legacy
   classes still emitted by content/*.php|html (.BodyText, tables, etc.) so
   pages that weren't individually rewritten still inherit the new look.
   ========================================================================== */

:root {
  --color-primary: #2f6b3c;
  --color-primary-dark: #1f4d29;
  --color-primary-light: #3f8a4f;
  --color-accent: #d99a2b;
  --color-accent-dark: #b87f1c;
  --color-bg: #f6f8f5;
  --color-surface: #ffffff;
  --color-text: #1c2318;
  --color-text-muted: #5a6455;
  --color-border: #e0e6dc;

  --radius-sm: 6px;
  --radius-md: 12px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --header-height: 72px;
  --content-max: 960px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
iframe { max-width: 100%; border: 0; }

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover { color: var(--color-accent-dark); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--color-primary-dark);
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h1 { font-size: 1.9rem; font-weight: 700; }
h2 { font-size: 1.4rem; font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin: 0 0 1em; }

ul, ol { padding-left: 1.25em; }

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 1.5em 0;
}

/* Neutralize legacy inline/table borders so cards read as modern surfaces */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 1.5em;
}
table, table td, table th, table tr {
  border: none !important;
}
td, th {
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

/* ---- Legacy content classes (kept so un-rewritten pages still modernize) ---- */
.BodyText {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  padding: 0;
  max-width: var(--content-max);
  margin: 0 auto 1.5em;
}

.footer, .footer:hover {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: inherit;
  text-decoration: none;
}

/* ---- Layout ---- */
.site-main {
  max-width: var(--content-max);
  margin: 2rem auto;
  padding: 0 1.5rem 2rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

/* ---- Header / Nav ---- */
.site-header {
  background: var(--color-primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-md);
}

.site-header__bar {
  max-width: 1200px;
  margin: 0 auto;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: #fff; text-decoration: none; }

.brand__logo {
  height: 48px;
  width: auto;
  flex-shrink: 0;
  border-radius: 4px;
  background: #fff;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.brand__text strong {
  font-size: 1.05rem;
  font-weight: 700;
}
.brand__text small {
  font-size: 0.8rem;
  color: #d7e8da;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
}

.primary-nav {
  background: var(--color-primary-dark);
}

.nav-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 2px;
}

.nav-list li { margin: 0; }

.nav-list a {
  display: block;
  padding: 0.5rem 0.65rem;
  color: #e9f1ea;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.nav-list a:hover {
  background: var(--color-primary-light);
  color: #fff;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 3px solid var(--color-border);
  background: var(--color-surface);
  margin-top: 3rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.site-footer a { color: var(--color-primary); }

/* ---- Officer components ---- */
.officer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
  align-items: start;
}

.officer-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  text-align: center;
  min-width: 0;
}

.officer-card__photo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  background: var(--color-bg);
  display: block;
}

.officer-card__position {
  margin: 0 0 0.35em;
  color: var(--color-accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  overflow-wrap: break-word;
}

.officer-card__name {
  margin: 0;
  font-weight: 600;
  font-size: 1.02rem;
  overflow-wrap: break-word;
}

/* ---- Semester / archive picker ---- */
.semester-picker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.semester-picker__group { min-width: 0; }
.semester-picker__title {
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}
.semester-picker__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.semester-picker__list a {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.9rem;
  font-size: 0.92rem;
  color: var(--color-text);
  text-align: center;
}
.semester-picker__list a:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* ---- Document archive lists (minutes, newsletters) ---- */
.document-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0;
  margin: 1.5rem 0 2rem;
}
.document-list li { margin: 0; }
.document-list a {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
}
.document-list a:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* ---- Buttons / CTA ---- */
.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.btn:hover { background: var(--color-accent-dark); color: #fff; text-decoration: none; }

/* ---- Responsive ---- */
@media (max-width: 800px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    display: none;
  }
  .primary-nav.is-open { display: block; }

  .nav-list { flex-direction: column; padding: 0; }
  .nav-list a { padding: 0.9rem 1.5rem; }
}

@media (min-width: 801px) {
  .primary-nav { display: block !important; }
}
