/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0D0D0D;
  --gold:   #BF0404;
  --gold-lt:#e52e2e;
  --light:  #f5f5f5;
  --white:  #ffffff;
  --gray:   #6b7280;
  --border: #e0e0e0;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--light);
  color: #1f2937;
  line-height: 1.6;
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--gold); }

/* ── Header ───────────────────────────────────────────────── */
header {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px 14px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.tagline {
  font-size: 0.82rem;
  color: var(--gold-lt);
  margin-top: 2px;
}

/* ── Tab Navigation ───────────────────────────────────────── */
nav {
  background: rgba(0,0,0,.18);
  border-top: 1px solid rgba(255,255,255,.08);
}

.tab-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  list-style: none;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-list::-webkit-scrollbar { display: none; }

.tab-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.75);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 13px 18px;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .18s, border-color .18s;
}

.tab-btn:hover { color: var(--white); }

.tab-btn.active {
  color: var(--gold-lt);
  border-bottom-color: var(--gold);
}

/* ── Main ─────────────────────────────────────────────────── */
main {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 24px;
  min-height: 60vh;
}

/* ── Tab Content ──────────────────────────────────────────── */
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn .2s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Section Headings ─────────────────────────────────────── */
.section-title {
  font-size: 1.7rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.section-sub {
  color: var(--gray);
  margin-bottom: 28px;
}

/* ── Hero (Home) ──────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2a0000 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 52px 48px;
  margin-bottom: 32px;
  text-align: center;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.hero p {
  font-size: 1.05rem;
  opacity: .88;
  max-width: 560px;
  margin: 0 auto 24px;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 6px;
  transition: background .18s, transform .12s;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}
.btn:hover { background: var(--gold-lt); color: var(--white); text-decoration: none; transform: translateY(-1px); }

/* ── Card Grid (Home) ─────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(26,39,68,.13); }

.card-icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.card p { font-size: 0.88rem; color: var(--gray); }

/* ── Announcements (Home) ─────────────────────────────────── */
.announcements {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
}

.announcements h2 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.announcement-list { list-style: none; }

.announcement-list li {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.announcement-list li:last-child { border-bottom: none; }

.ann-date {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
  padding-top: 2px;
  min-width: 82px;
}

.ann-text { font-size: 0.93rem; }

/* ── Officers ─────────────────────────────────────────────── */
.officer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.officer-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .15s;
}
.officer-card:hover { transform: translateY(-3px); }

.officer-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 3px solid var(--border);
  background: var(--light);
}

.officer-card h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 6px;
}

.officer-name { font-weight: 600; font-size: 0.97rem; color: var(--navy); }
.officer-email { font-size: 0.78rem; color: var(--gray); margin-top: 4px; }

.officer-avatar-link {
  display: block;
  position: relative;
  width: 96px;
  margin: 0 auto 14px;
  text-decoration: none;
}
.officer-avatar-link .officer-avatar {
  margin: 0;
  transition: border-color .18s, transform .15s;
}
.officer-avatar-link:hover .officer-avatar {
  border-color: #0077b5;
  transform: scale(1.07);
}
.officer-avatar-link::after {
  content: 'in';
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #0077b5;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', system-ui, sans-serif;
  letter-spacing: 0;
}

/* ── Info Box ─────────────────────────────────────────────── */
.info-box {
  background: #fce8e8;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--navy);
  margin-top: 8px;
}

/* ── Resources ────────────────────────────────────────────── */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.resource-category {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.resource-category h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}

.resource-list { list-style: none; }
.resource-list li { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.resource-list li:last-child { border-bottom: none; }
.resource-list a { color: var(--navy); display: flex; align-items: center; gap: 6px; }
.resource-list a::before { content: '→'; color: var(--gold); font-weight: 700; }
.resource-list a:hover { color: var(--gold); }

/* ── Calendar ─────────────────────────────────────────────── */
.calendar-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.btn-outline {
  background: none;
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background .15s, color .15s;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.cal-month-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  min-width: 180px;
  text-align: center;
}

.calendar-grid {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 32px;
}

.cal-day-header {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 10px 4px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cal-cell {
  min-height: 72px;
  padding: 6px 8px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  vertical-align: top;
  position: relative;
  background: var(--white);
}
.cal-cell:nth-child(7n) { border-right: none; }

.cal-cell.empty { background: #f9fafb; }
.cal-cell.today { background: #fce8e8; }

.cal-day-num {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 4px;
  display: block;
}
.cal-cell.today .cal-day-num {
  background: var(--navy);
  color: var(--white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
}

.cal-event {
  background: var(--gold);
  color: var(--white);
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  cursor: default;
}

.upcoming-title {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 14px;
}

.event-list { display: flex; flex-direction: column; gap: 12px; }

.event-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow);
}

.event-date-badge {
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  min-width: 56px;
  text-align: center;
  padding: 8px 6px;
  flex-shrink: 0;
}
.event-date-badge .month {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-lt);
}
.event-date-badge .day {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.event-info h4 { font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.event-info p  { font-size: 0.86rem; color: var(--gray); }

/* ── Past Events ──────────────────────────────────────────── */
.past-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  margin-bottom: 24px;
}

.past-event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s;
}
.past-event-card:hover { transform: translateY(-3px); }

.past-event-img {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0D0D0D 0%, #2a0000 100%);
}

.placeholder-img { font-size: 3.5rem; opacity: .4; }

.past-event-info { padding: 18px 20px; }

.event-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.past-event-info h3 { font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.event-date { font-size: 0.8rem; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.past-event-info p { font-size: 0.87rem; color: var(--gray); }

/* ── Merch ────────────────────────────────────────────────── */
.merch-section {
  margin-bottom: 36px;
}

.merch-category-title {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

.merch-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s;
}
.merch-card:hover { transform: translateY(-3px); }

.merch-preview {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius) var(--radius) 0 0;
}

.merch-mock {
  font-family: 'Georgia', serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-align: center;
  line-height: 1.3;
}
.merch-mock small { font-size: 0.6em; letter-spacing: 4px; display: block; }

.merch-info { padding: 16px 18px; }
.merch-info h3 { font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.merch-info p  { font-size: 0.84rem; color: var(--gray); margin-bottom: 10px; }

.merch-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 4px;
}

.merch-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 4px;
}
.merch-badge.available  { background: #d1fae5; color: #065f46; }
.merch-badge.limited    { background: #fef3c7; color: #92400e; }
.merch-badge.sold-out   { background: #fee2e2; color: #991b1b; }

/* ── Join ─────────────────────────────────────────────────── */
.join-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  text-align: center;
}

.join-dues {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 28px;
  flex-shrink: 0;
}

.dues-amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.dues-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: .8;
  margin-top: 6px;
  white-space: nowrap;
}

.join-blurb {
  font-size: 1rem;
  color: #374151;
  line-height: 1.7;
  flex: 1;
}

.join-mailing {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 40px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.join-mailing h3 {
  font-size: 1.2rem;
  color: var(--navy);
}

.join-mailing p {
  font-size: 0.95rem;
  color: var(--gray);
  max-width: 560px;
}

/* ── Tab last updated ─────────────────────────────────────── */
.tab-last-updated {
  margin-top: 36px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--gray);
  text-align: right;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 28px 24px;
  margin-top: 60px;
  font-size: 0.88rem;
  line-height: 1.9;
}
footer a { color: var(--gold-lt); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 36px 24px; }
  .hero h2 { font-size: 1.45rem; }
  h1 { font-size: 1.15rem; }
  .tab-btn { padding: 11px 13px; font-size: 0.82rem; }
  main { padding: 0 14px; }
}
