:root {
  --forest: #1f4d3a;
  --forest-dark: #14332a;
  --cub-blue: #005e95;
  --cub-blue-dark: #00456d;
  --gold: #e8a33d;
  --gold-dark: #c8801f;
  --district-accent: #6a4c93;
  --cream: #faf6ec;
  --paper: #ffffff;
  --ink: #1c2b26;
  --ink-soft: #4a5c55;
  --line: #e4ddc9;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(20, 51, 42, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  margin: 0 0 24px;
  color: var(--forest-dark);
  font-size: 1.6rem;
  text-align: center;
}

p { margin: 0 0 16px; color: var(--ink-soft); }

a { color: inherit; }

/* Top utility bar */
.topbar {
  background: var(--cub-blue);
  color: #e8f2fa;
  font-size: 0.85rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-contact, .topbar-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar a {
  text-decoration: none;
  color: #dfe9e3;
}
.topbar a:hover { color: var(--gold); }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand-logo {
  height: 64px;
  width: auto;
  display: block;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > a, .nav-item > a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--forest-dark);
}
.site-nav > a:hover, .nav-item > a:hover { color: var(--gold-dark); }

.nav-item { position: relative; }

.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-item > a::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.6;
  transition: transform 0.15s ease;
}

.nav-item:hover > a::after,
.nav-item:focus-within > a::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 14px 0 8px;
  min-width: 220px;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0s linear 0.4s;
}

.dropdown-menu a {
  display: block;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--forest-dark);
  text-decoration: none;
  white-space: nowrap;
}
.dropdown-menu a:hover { color: var(--gold-dark); background: var(--cream); }

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

/* Subpage content */
.page-content h1 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--forest-dark);
  font-size: 2.1rem;
  margin: 0 0 24px;
}

.page-content h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--forest-dark);
  font-size: 1.2rem;
  margin: 32px 0 10px;
}

.page-content h3.sketch-heading {
  font-family: "Cabin Sketch", cursive, Georgia, serif;
  font-weight: 700;
  color: #333333;
  text-align: center;
  font-size: 1.8rem;
}

.page-content ul, .page-content ol {
  color: var(--ink-soft);
  padding-left: 22px;
  margin: 0 0 16px;
}
.page-content li { margin-bottom: 8px; }

.page-content .lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.back-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--forest-dark);
  font-weight: 700;
  text-decoration: none;
}
.back-link:hover { color: var(--gold-dark); }

/* Contact cards */
.contact-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.contact-card {
  flex: 1 1 220px;
  background: var(--cub-blue);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow);
  transition: background 0.15s ease;
  cursor: pointer;
}
.contact-card:hover { background: var(--cub-blue-dark); }

.contact-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 700;
}

.contact-value { font-size: 1.15rem; font-weight: 700; }

/* Leaders grid */
.leader-grid {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px 24px;
}

/* Page hero banner (photo + dark overlay + title), e.g. About Us */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 56px 24px;
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-family: "Cabin Sketch", cursive, Georgia, serif;
  font-weight: 700;
  font-size: 2.1rem;
  text-transform: none;
}

.leaders-hero {
  text-align: center;
  margin-bottom: 24px;
}

.leaders-logo {
  width: 140px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.page-content .leaders-heading {
  font-family: "Cabin Sketch", cursive, Georgia, serif;
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1;
  color: #333333;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
}

.rules-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.rules-hero-logo {
  flex: 0 0 22%;
  max-width: 180px;
  height: auto;
}

.page-content .rules-hero-title {
  flex: 1;
  font-family: "Cabin Sketch", cursive, Georgia, serif;
  font-weight: 500;
  font-size: 3.4rem;
  line-height: 1.05;
  color: #333333;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
}

.page-content .rules-intro {
  font-style: italic;
  text-align: center;
  font-weight: 500;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto 32px;
}

@media (max-width: 640px) {
  .rules-hero {
    flex-direction: column;
    text-align: center;
  }
  .rules-hero-logo {
    max-width: 120px;
  }
  .rules-hero-title {
    font-size: 2.2rem;
  }
}

.leader-grid li {
  margin-bottom: 0;
  text-align: center;
}

.leader-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--cream);
  display: block;
  margin-bottom: 14px;
}

.leader-photo--badge {
  object-fit: contain;
  padding: 24px;
}

.leader-name {
  display: block;
  font-family: "Cabin Sketch", cursive, Georgia, serif;
  font-weight: 700;
  font-size: 2rem;
  color: #333333;
  text-transform: uppercase;
}
.leader-role { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-top: 4px; }

/* Product layout (hats & shirts) */
.product-block {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.product-block img {
  width: 260px;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-block .product-info { flex: 1 1 320px; }

.product-price {
  display: inline-block;
  background: var(--cub-blue);
  color: #fff;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.purchase-note {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 14px 18px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--forest-dark);
}

/* Resource lists */
.resource-list a, .doc-list a {
  color: var(--forest-dark);
  font-weight: 600;
  text-decoration: none;
}
.resource-list a:hover, .doc-list a:hover { color: var(--gold-dark); text-decoration: underline; }

/* Calendar */
.calendar-today-banner {
  background: var(--cream);
  border-left: 4px solid var(--cub-blue);
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--forest-dark);
  margin: 20px 0 0;
}

.today-tag {
  color: var(--cub-blue);
  font-weight: 800;
  font-size: 0.85em;
}

.calendar-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 24px 0;
}

.switch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--forest-dark);
  cursor: pointer;
  user-select: none;
}

.switch-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-track {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 24px;
  background: #ccc;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.switch-toggle input:checked + .switch-track {
  background: var(--cub-blue);
}
.switch-toggle input:checked + .switch-track .switch-thumb {
  transform: translateX(20px);
}
.switch-toggle--uga input:checked + .switch-track {
  background: #ba0c2f;
}
.switch-toggle--district input:checked + .switch-track {
  background: var(--district-accent);
}
.switch-toggle input:focus-visible + .switch-track {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.calendar-month {
  margin-bottom: 36px;
}

.calendar-month h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--forest-dark);
  font-size: 1.2rem;
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}

.calendar-events {
  list-style: none;
  margin: 0;
  padding: 0;
}

.calendar-event {
  display: flex;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.calendar-event .event-date {
  flex: 0 0 110px;
  font-weight: 700;
  color: var(--cub-blue);
}

.calendar-event .event-label {
  color: var(--ink-soft);
}

.calendar-event.uga-event .event-date {
  color: #ba0c2f;
}

.uga-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #ba0c2f;
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 4px;
  vertical-align: middle;
}

.uga-badge--away {
  background: #fff;
  color: #ba0c2f;
  border: 1px solid #ba0c2f;
}

.uga-badge--neutral {
  background: var(--ink-soft);
}

.calendar-event.district-event .event-date {
  color: var(--district-accent);
}

.calendar-event.district-event .event-label a {
  color: var(--district-accent);
  font-weight: 700;
  text-decoration: underline;
}
.calendar-event.district-event .event-label a:hover {
  color: var(--gold-dark);
}

.calendar-event.deadline-event {
  background: #fff6e5;
  border-left: 4px solid #c8801f;
  padding-left: 12px;
  border-radius: 6px;
}

.deadline-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #c8801f;
  color: #fff;
  padding: 3px 9px;
  border-radius: 999px;
  margin-right: 8px;
  vertical-align: middle;
}

/* Top logo */
.badge-row {
  padding: 40px 0 12px;
  background: var(--paper);
}

.badge-row-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-center { width: 100%; max-width: 710px; height: auto; }

/* Sections */
.section { padding: 20px 0 44px; }
.section-alt { background: var(--cub-blue); padding: 44px 0; }
.section-alt h2 { color: #ffffff; }

/* Dens grid */
.den-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.den-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px 24px;
  text-align: center;
  font-weight: 700;
  color: var(--forest-dark);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.den-badge { width: 72px; height: auto; }

/* Bottom photo */
.bottom-photo {
  line-height: 0;
}
.bottom-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile + tablet nav: hamburger toggle replaces the horizontal nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--forest-dark);
  border-radius: 2px;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .site-header { position: relative; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px 0;
    z-index: 30;
  }

  body.nav-open .site-nav { display: flex; }

  .site-nav > a, .nav-item > a {
    padding: 14px 24px;
    width: 100%;
  }

  .nav-item { position: static; }

  .nav-item > a::after { display: none; }

  .dropdown-menu {
    position: static;
    margin: 0;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: none;
    background: var(--cream);
    border: none;
    border-left: 3px solid var(--gold);
    border-radius: 0;
    box-shadow: none;
    padding: 4px 0;
  }

  .dropdown-menu a { padding: 10px 24px 10px 40px; }
}

/* Responsive */
@media (max-width: 640px) {
  .badge-center { max-width: 320px; }
  .den-badge { width: 56px; }

  .topbar-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 16px;
    gap: 0;
    row-gap: 6px;
  }

  .topbar-contact, .topbar-links {
    display: contents;
  }

  .topbar a {
    white-space: nowrap;
    font-size: 0.78rem;
  }

  .topbar-inner a:not(:first-child)::before {
    content: "|";
    margin: 0 8px;
    color: #7fb3d5;
  }

  .topbar-links a:first-child::before {
    content: "|";
    margin: 0 8px;
    color: #7fb3d5;
  }
}
