/* ============================================================
   Bullitt Central High School Athletic Boosters – Style Sheet
   Mirrors element.style from bullittschools.org/o/bchs
   ============================================================ */

:root {
  --primary-color: #4B2D2F;
  --primary-color-contrast: #ffffff;
  --secondary-color: #A5A5A5;
  --secondary-color-contrast: #000000;
  --link-color: #4B2D2F;
  --links-color: #4B2D2F;
  --heading: #4B2D2F;
  --heading-color: #4B2D2F;
  --page-builder-color: #4B2D2F;
  --alert-text-color: #FFFFFF;
  --alert-background-color: #4B2D2F;
  --alert-link-color: #FFFFFF;
  --alert-lightbox-shadow-color: #4B2D2F;
  --font-family: 'Inter', Helvetica, Arial, sans-serif;
  

  /* Additional tokens */
  --bg-light: #f7f5f5;
  --border-color: #e0d6d7;
  --card-shadow: 0 2px 8px rgba(75, 45, 47, .12);
  --radius: 8px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--secondary-color-contrast);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--link-color);
  text-decoration: none;
  transition: opacity .2s;
}

a:hover {
  opacity: .8;
  text-decoration: underline;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; margin-bottom: .75rem; }
h3 { font-size: 1.35rem; margin-bottom: .5rem; }

p {
  margin-bottom: 1rem;
}

/* ---- Layout Utilities ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
  scroll-margin-top: 76px;
}

.section--alt {
  background: var(--bg-light);
}

.text-center {
  text-align: center;
}

/* ---- Alert / Announcement Bar ---- */
.alert-bar {
  background: var(--alert-background-color);
  color: var(--alert-text-color);
  text-align: center;
  padding: .65rem 1rem;
  font-size: .9rem;
}

.alert-bar a {
  color: var(--alert-link-color);
  font-weight: 600;
  text-decoration: underline;
}

/* ---- Header / Navbar ---- */
.site-header {
  background: #ffffff;
  border-bottom: 3px solid var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.site-brand img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.nav-links a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--primary-color);
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}

.nav-links a:hover,
.nav-links a.active {
  border-color: var(--primary-color);
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary-color);
  margin: 5px 0;
  border-radius: 2px;
  transition: .3s;
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #6d3e40 100%);
  color: var(--primary-color-contrast);
  text-align: center;
  padding: 4.5rem 1.25rem;
}

.hero h1 {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: .5rem;
}

.hero p {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 1.5rem;
  opacity: .92;
}

.btn {
  display: inline-block;
  padding: .7rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s, transform .15s;
  border: none;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn--primary {
  background: var(--primary-color-contrast);
  color: var(--primary-color);
  border: 2px solid var(--primary-color-contrast);
}

.btn--primary:hover {
  background: #f0eaea;
}

.btn--outline {
  background: transparent;
  color: var(--primary-color-contrast);
  border: 2px solid var(--primary-color-contrast);
}

.btn--outline:hover {
  background: rgba(255,255,255,.15);
}

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

.btn--dark:hover {
  background: #3b2224;
}

/* ---- Card Grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(75,45,47,.16);
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  color: var(--heading-color);
}

/* ---- Officers ---- */
.officers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.officer-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 1.75rem;
  text-align: center;
}

.officer-card .role {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: .2rem .65rem;
  border-radius: 50px;
  margin-bottom: .6rem;
}

.officer-card .name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading-color);
}

.officer-card .contact {
  font-size: .88rem;
  color: var(--secondary-color);
  margin-top: .25rem;
}

/* ---- Calendar ---- */
.calendar-wrapper {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--primary-color);
  color: #fff;
}

.calendar-header h3 {
  color: #fff;
  margin: 0;
}

.calendar-header button {
  background: rgba(255,255,255,.2);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .2s;
}

.calendar-header button:hover {
  background: rgba(255,255,255,.35);
}

.calendar-grid-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: .82rem;
  font-weight: 700;
  color: var(--secondary-color);
  padding: .6rem 0;
  border-bottom: 1px solid var(--border-color);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.calendar-cell {
  position: relative;
  padding: .65rem .25rem;
  min-height: 52px;
  font-size: .9rem;
  border: 1px solid var(--border-color);
  cursor: default;
}

.calendar-cell.empty {
  background: var(--bg-light);
}

.calendar-cell.today {
  background: rgba(75, 45, 47, .08);
  font-weight: 700;
}

.calendar-cell.has-event {
  cursor: pointer;
}

.calendar-cell .dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
  margin: 3px auto 0;
}

/* Event popover */
.event-popover {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: #fff;
  padding: .55rem .85rem;
  border-radius: var(--radius);
  font-size: .8rem;
  white-space: nowrap;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(75,45,47,.25);
}

.calendar-cell.has-event:hover .event-popover {
  display: block;
}

/* Events list below calendar */
.events-list {
  padding: 1.25rem;
}

.events-list h4 {
  margin-bottom: .75rem;
  color: var(--heading-color);
}

.event-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border-color);
}

.event-item:last-child {
  border-bottom: none;
}

.event-date-badge {
  flex-shrink: 0;
  width: 48px;
  text-align: center;
  background: var(--primary-color);
  color: #fff;
  border-radius: var(--radius);
  padding: .35rem .25rem;
  font-size: .75rem;
  line-height: 1.3;
}

.event-date-badge .day {
  font-size: 1.15rem;
  font-weight: 700;
}

.event-info .event-title {
  font-weight: 600;
  color: var(--heading-color);
}

.event-info .event-time {
  font-size: .85rem;
  color: var(--secondary-color);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--primary-color);
  color: var(--primary-color-contrast);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: .75rem;
  font-size: 1rem;
}

.footer-col p,
.footer-col a {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: .4rem;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 1rem;
  font-size: .82rem;
  opacity: .75;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem 1.25rem;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    padding: .6rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-toggle {
    display: block;
  }

  .officers-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 2.5rem 0;
  }
}

@media (max-width: 480px) {
  .officers-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Admin panel (simple) ---- */
.admin-panel {
  background: var(--bg-light);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1rem;
}

.admin-panel label {
  display: block;
  margin-bottom: .3rem;
  font-weight: 600;
  font-size: .9rem;
}

.admin-panel input,
.admin-panel select,
.admin-panel textarea {
  width: 100%;
  padding: .5rem .65rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: var(--font-family);
  font-size: .9rem;
  margin-bottom: .85rem;
}

.admin-panel textarea {
  min-height: 80px;
  resize: vertical;
}

/* ---- Admin events table ---- */
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.admin-table th,
.admin-table td {
  padding: .55rem .6rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.admin-table th {
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
  position: sticky;
  top: 0;
}

.admin-table tbody tr:hover {
  background: rgba(108, 16, 30, .04);
}

.admin-table .past-event {
  opacity: .5;
}

.admin-table .editing-row {
  background: #fffbe6;
}

.admin-table .desc-cell {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table .actions-cell {
  white-space: nowrap;
  text-align: center;
}

.tbl-input {
  width: 100%;
  padding: .3rem .4rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: var(--font-family);
  font-size: .85rem;
  box-sizing: border-box;
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  transition: background .15s, border-color .15s;
}

.btn-sm:hover {
  background: var(--bg-light);
  border-color: var(--primary-color);
}

.btn-save {
  color: #2a7d2e;
  border-color: #2a7d2e;
}

.btn-save:hover {
  background: #e8f5e9;
}

.btn-cancel {
  color: #888;
}

.btn-delete {
  color: #c62828;
}

.btn-delete:hover {
  background: #ffebee;
  border-color: #c62828;
}

.btn-edit {
  color: var(--primary-color);
}

.btn-edit:hover {
  border-color: var(--primary-color);
}

/* ---- Documents section ---- */
.doc-list {
  list-style: none;
}

.doc-list li {
  padding: .5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.doc-list li:last-child {
  border-bottom: none;
}

.doc-list a {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.doc-list .icon {
  font-size: 1.3rem;
}

/* Quick‑info strip */
.quick-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 1.25rem;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

.quick-info-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .92rem;
}

.quick-info-item strong {
  color: var(--primary-color);
}
