/* ==========================================================================
   Burke County Recreation Department
   Theme built from the department logo color scheme.
   Green / Gold / Blue / Orange brand accents on a navy + light-gray system.
   ========================================================================== */

:root {
  /* Brand colors pulled from the logo */
  --green: #57b947;
  --gold: #fbb40f;
  --blue: #2e9be6;
  --orange: #f15a29;

  /* Neutral system */
  --navy: #2f3a4a;
  --navy-deep: #232c39;
  --ink: #2f3a4a;
  --muted: #64707f;
  --line: #e4e9ee;
  --bg: #f5f7f9;
  --surface: #ffffff;
  --white: #ffffff;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(35, 44, 57, 0.06), 0 2px 8px rgba(35, 44, 57, 0.06);
  --shadow-md: 0 10px 30px rgba(35, 44, 57, 0.12);
  --container: 1180px;

  --font-head: "Poppins", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Inter", "Segoe UI", Tahoma, sans-serif;
}

/* ------------------------------ Reset ---------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.15rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

/* ------------------------------ Layout --------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 68px 0; }
.section--tight { padding: 44px 0; }
.section--alt { background: var(--surface); }
.text-center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.section-head { max-width: 62ch; margin-bottom: 34px; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ------------------------------ Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #e04d1f; color: var(--white); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: #2588cc; color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: #f0f3f6; color: var(--navy); }
.btn-lg { padding: 17px 30px; font-size: 1.08rem; }
.btn-disabled, .btn-disabled:hover { opacity: .45; cursor: not-allowed; pointer-events: none; transform: none; }

/* --------------------------- Top utility bar --------------------------- */
.topbar {
  background: var(--navy-deep);
  color: #cfd6de;
  font-size: .86rem;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { color: #eef2f6; }
.topbar-info { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.topbar-info span { display: inline-flex; align-items: center; gap: 7px; }
.topbar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ------------------------------ Header --------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 52px; width: auto; }
.brand:hover { text-decoration: none; }

.nav-toggle {
  display: none;
  width: 46px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  margin: 0 auto;
  background: var(--navy);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-7px) rotate(-45deg); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .98rem;
  color: var(--navy);
  padding: 9px 13px;
  border-radius: 8px;
  position: relative;
}
.main-nav a:hover { text-decoration: none; background: #eef3f7; }
.main-nav a.active { color: var(--orange); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 2px;
  height: 3px; border-radius: 3px;
  background: var(--orange);
}
.main-nav .btn { margin-left: 8px; padding: 10px 20px; }

/* Sports dropdown: "Sports" is a button that opens the menu (there is no Sports page) */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .98rem;
  color: var(--navy);
  padding: 9px 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-trigger:hover { background: #eef3f7; }
.nav-trigger.active { color: var(--orange); }
.nav-trigger.active::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 2px;
  height: 3px; border-radius: 3px;
  background: var(--orange);
}
.nav-trigger .caret {
  width: 7px; height: 7px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.has-dropdown.is-open .caret { transform: translateY(4px) rotate(-135deg); }

.dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  z-index: 60;
  gap: 28px;
  margin-top: 8px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
/* Invisible bridge so the menu stays open while the pointer crosses the gap */
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-dropdown.is-open .dropdown { display: flex; }
.dropdown-group { min-width: 130px; }
.dropdown ul { list-style: none; margin: 4px 0 0; padding: 0; }
.main-nav .dropdown a { display: block; padding: 6px 10px; white-space: nowrap; font-size: .93rem; }
.main-nav .dropdown .dropdown-heading {
  display: block;
  padding: 6px 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
}

@media (min-width: 821px) {
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown { display: flex; }
}

/* Colorful thin brand ribbon */
.brand-ribbon {
  height: 5px;
  background: linear-gradient(90deg,
    var(--green) 0 25%,
    var(--gold) 25% 50%,
    var(--blue) 50% 75%,
    var(--orange) 75% 100%);
}

/* ------------------------------ Hero ----------------------------------- */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: #eef2f6;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle at center, rgba(46,155,230,.35), transparent 62%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  padding-top: 66px;
  padding-bottom: 66px;
}
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero p { color: #c3ccd6; font-size: 1.15rem; max-width: 52ch; }
.hero .accent { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 26px;
}
.hero-card h3 { color: var(--white); }
.hero-card ul { list-style: none; margin: 0; padding: 0; }
.hero-card li {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.1);
  color: #d7dee6;
}
.hero-card li:last-child { border-bottom: 0; }
.hero-card li strong { color: var(--white); font-family: var(--font-head); }

/* Alert / notice banner */
.notice {
  background: var(--gold);
  color: #3a2c00;
}
.notice .container {
  display: flex; align-items: center; gap: 14px;
  padding-top: 13px; padding-bottom: 13px;
  font-weight: 500;
}
.notice .badge {
  background: #3a2c00; color: var(--gold);
  font-family: var(--font-head); font-weight: 700; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.notice a { color: #3a2c00; font-weight: 700; text-decoration: underline; }

/* ------------------------------ Cards ---------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* Logo grid (About page) */
.logo-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 32px; max-width: 880px; margin: 40px auto 0;
}
.logo-grid img {
  width: calc((100% - 96px) / 4); height: 140px;
  object-fit: contain;
}
@media (max-width: 720px) {
  .logo-grid { gap: 20px; }
  .logo-grid img { width: calc((100% - 20px) / 2); height: 100px; }
}

/* Category tiles with colored top */
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  height: 100%;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tile__bar { height: 8px; }
.tile__bar--green { background: var(--green); }
.tile__bar--gold { background: var(--gold); }
.tile__bar--blue { background: var(--blue); }
.tile__bar--orange { background: var(--orange); }
.tile__body { padding: 24px; }
.tile__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 14px;
  font-family: var(--font-head); font-weight: 700; color: var(--white); font-size: 1.2rem;
}
.tile__body h3 { margin-bottom: 6px; }
.tile__body p { color: var(--muted); margin-bottom: 0; }
a.tile--link { display: block; color: inherit; }
.tile__more { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--blue); }
a.tile--link:hover .tile__more { text-decoration: underline; }
.event-info { margin-bottom: 18px; }
.event-info p { margin: 0 0 4px; font-weight: 600; color: var(--navy); }
/* Separates a page's own content from its "Currently Registering" listings */
.content-divider { border: 0; border-top: 2px solid var(--line); margin: 40px 0 32px; }
.registering-heading { margin-bottom: 24px; }
.class-listing + .class-listing { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
/* ProgramDescription comes from Jarvis as pasted HTML (often with its own fonts,
   sizes and inline styles); force it to match the rest of the page. */
.program-description { font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink); }
.program-description * {
  font-family: inherit !important; font-size: inherit !important; line-height: inherit !important;
  color: inherit !important; background: transparent !important;
}
.program-description a { color: var(--blue) !important; }
.tag-list { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li {
  font-size: .85rem; font-weight: 500;
  background: #eef3f7; color: var(--navy);
  padding: 5px 11px; border-radius: 999px;
}

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 10px; }
.stat b { display: block; font-family: var(--font-head); font-size: 2.2rem; color: var(--navy); }
.stat span { color: var(--muted); font-size: .95rem; }

/* ------------------------------ Tables --------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data th, table.data td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
table.data tbody tr:nth-child(even) { background: #f8fafb; }
table.data tbody tr:hover { background: #eef3f7; }

/* ------------------------------ Facility --------------------------------- */
.facility {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.facility__accent--green { background: var(--green); }
.facility__accent--gold { background: var(--gold); }
.facility__accent--blue { background: var(--blue); }
.facility__accent--orange { background: var(--orange); }
.facility__body { padding: 24px 26px; }
.facility__body h3 { margin-bottom: 4px; }
.facility__meta { color: var(--muted); margin: 0 0 14px; }
.facility__list { list-style: none; padding: 0; margin: 0; }
.facility__list li { padding: 6px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 14px; }
.facility__list li:last-child { border-bottom: 0; }
.badge-closed { background: #fdece7; color: var(--orange); font-weight: 600; font-size: .78rem; padding: 3px 10px; border-radius: 999px; }

/* ------------------------------ Forms ---------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--navy); }
.field .req { color: var(--orange); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46,155,230,.18);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .err { color: var(--orange); font-size: .85rem; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--orange); }
.field.invalid .err { display: block; }
.form-note { color: var(--muted); font-size: .9rem; }
.alert-success {
  background: #edf8ea; border: 1px solid var(--green); color: #24651a;
  padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 18px;
}

/* --------------------------- Split / info ------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .k { font-family: var(--font-head); font-weight: 600; color: var(--navy); min-width: 128px; }
.info-list .v { color: var(--muted); }

.page-hero {
  background: var(--navy-deep);
  color: #eef2f6;
  padding: 52px 0;
}
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero p { color: #c3ccd6; margin: 0; max-width: 60ch; }

/* ------------------------------ Footer --------------------------------- */
.site-footer { background: var(--navy-deep); color: #b9c3cd; padding: 54px 0 0; }
.site-footer h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.4fr 1.2fr; gap: 34px; }
.site-footer a { color: #cdd6df; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 5px 0; }
.site-footer .footer-links { columns: 2; column-gap: 24px; }
.site-footer .footer-links li { break-inside: avoid; }
.footer-logo { height: 46px; margin-bottom: 16px; }
.footer-bottom {
  margin-top: 40px; border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0; font-size: .86rem; color: #8b98a5;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
}

/* --------------------------- Utilities --------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ------------------------------ Reveal --------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --------------------------- Responsive -------------------------------- */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 18px;
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 10px; }
  .main-nav a.active::after,
  .nav-trigger.active::after { display: none; }
  .main-nav .btn { margin: 8px 0 0; justify-content: center; }
  .site-header .container { position: relative; }
  .main-nav { max-height: calc(100vh - 90px); overflow-y: auto; }
  .nav-item { flex-wrap: wrap; }
  .nav-trigger { flex: 1; justify-content: space-between; padding: 12px 10px; }
  .dropdown {
    position: static;
    flex-basis: 100%;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 6px;
    padding: 4px 0 4px 14px;
    border: 0; border-left: 2px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }
  .dropdown::before { display: none; }
  .main-nav .dropdown a { padding: 8px 10px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 48px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .topbar-info { font-size: .8rem; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .brand img { height: 42px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ------------------------------ Map embed ------------------------------ */
.map-embed { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
