/* =========================================================================
   MECHANICSBURG MUSIC ALLIANCE — SITE STYLES
   -------------------------------------------------------------------------
   This is the ONE file that controls how every page looks: colors, fonts,
   spacing, buttons, cards, header, footer, etc.

   To change the site's look (for example, the maroon color), edit the
   variables in the ":root" block right below this comment. Every page on
   the site will update automatically.
   ========================================================================= */

:root {
  /* ---- Brand colors --------------------------------------------------- */
  --maroon-900: #26081a;
  --maroon-800: #3a0d26;
  --maroon-700: #551332;
  --maroon-600: #71173d;
  --maroon-500: #8c1d49;
  --maroon-100: #f6e7ed;

  --steel-900: #222b33;
  --steel-700: #3d4b58;
  --steel-500: #62778a;
  --steel-300: #a3b4c1;
  --steel-100: #e8eef2;

  --gold-500: #c69a3e;
  --gold-100: #f7ecd4;

  --cream: #faf7f2;
  --white: #ffffff;
  --ink: #241a1f;
  --ink-soft: #5a4f53;

  --success: #2c7a4b;

  /* ---- Type ------------------------------------------------------------ */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---- Layout ------------------------------------------------------------ */
  --max-width: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(38, 8, 26, 0.08), 0 1px 2px rgba(38, 8, 26, 0.06);
  --shadow-md: 0 8px 24px rgba(38, 8, 26, 0.12);
  --shadow-lg: 0 20px 45px rgba(38, 8, 26, 0.18);
}

/* ---------------------------------------------------------------------
   Reset & base
--------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--maroon-600); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--maroon-500); }
ul, ol { padding-left: 1.3em; }
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--maroon-800);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.3rem; color: var(--steel-900); }
p { margin: 0 0 1.1em; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}
.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------------------------------------------------------------------
   Buttons
--------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--maroon-600);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--maroon-500); color: var(--white); box-shadow: var(--shadow-md); }
.btn-gold {
  background: var(--gold-500);
  color: var(--maroon-900);
}
.btn-gold:hover { background: #d6ac52; color: var(--maroon-900); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--maroon-700);
}
.btn-outline:hover { background: var(--maroon-700); color: var(--white); }
.btn-outline.on-dark { color: var(--white); }
.btn-outline.on-dark:hover { background: var(--white); color: var(--maroon-800); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

/* ---------------------------------------------------------------------
   Header / primary navigation
--------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(38, 8, 26, 0.08);
}
/* Note: intentionally no backdrop-filter here — it would make this sticky
   header a "containing block" for the fixed-position mobile menu inside it,
   breaking the full-height slide-out panel on phones. */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { height: 42px; width: auto; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  font-family: var(--font-display);
  color: var(--maroon-800);
  font-size: 1.08rem;
}
.brand-text span {
  font-size: 0.72rem;
  color: var(--steel-500);
  letter-spacing: 0.04em;
}

.primary-nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-list > li > button.nav-toggle-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--steel-900);
  text-decoration: none;
  padding: 10px 11px;
  border-radius: 999px;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li.open > button.nav-toggle-item,
.nav-list > li > a.active {
  background: var(--maroon-100);
  color: var(--maroon-700);
}
.nav-caret { width: 9px; height: 9px; transition: transform 0.15s ease; }
.nav-list > li.open .nav-caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.nav-list > li.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (hover: hover) and (min-width: 901px) {
  .nav-list > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-list > li:hover > button.nav-toggle-item { background: var(--maroon-100); color: var(--maroon-700); }
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
}
.dropdown a:hover { background: var(--maroon-100); color: var(--maroon-700); }

.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 10px; }
/* The Sign Up / Pay button lives inside the nav list, so it needs to win
   over the plainer ".nav-list > li > a" link styling above. */
.nav-list > li.nav-cta > a.btn {
  background: var(--gold-500);
  color: var(--maroon-900);
  padding: 11px 22px;
  border-radius: 999px;
}
.nav-list > li.nav-cta > a.btn:hover { background: #d6ac52; color: var(--maroon-900); }
.nav-toggle-btn {
  display: none;
  background: var(--maroon-700);
  border: none;
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle-btn span, .nav-toggle-btn::before, .nav-toggle-btn::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  margin: 4px auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
  .nav-toggle-btn { display: flex; }
  .primary-nav {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--white);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    border-top: 1px solid var(--steel-100);
  }
  .primary-nav.mobile-open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; padding: 14px; gap: 4px; }
  .nav-list > li > a, .nav-list > li > button.nav-toggle-item { width: 100%; justify-content: space-between; padding: 14px 16px; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: 1px solid var(--steel-100);
    margin: 4px 0 8px;
  }
  .nav-list > li.open .dropdown { display: block; }
  .nav-cta { margin: 14px 16px; flex-direction: column; align-items: stretch; }
}

/* ---------------------------------------------------------------------
   Page header (non-home pages)
--------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--maroon-800), var(--maroon-600) 60%, var(--maroon-700));
  color: var(--white);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(198,154,62,0.28), transparent 45%),
                     radial-gradient(circle at 10% 90%, rgba(255,255,255,0.08), transparent 40%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero .eyebrow { color: var(--gold-500); }
.page-hero h1 { color: var(--white); margin-bottom: 0.35em; }
.page-hero .lede { color: rgba(255,255,255,0.85); }
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
}
.breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------
   Sections & cards
--------------------------------------------------------------------- */
section { padding: 64px 0; }
section.tight { padding: 40px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(38,8,26,0.06);
}
.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); }
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--maroon-100);
  color: var(--maroon-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.icon-badge svg { width: 24px; height: 24px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--maroon-900);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  color: var(--white);
}
.stat-strip .stat b {
  font-family: var(--font-display);
  font-size: 2.1rem;
  display: block;
  color: var(--gold-500);
}
.stat-strip .stat span { font-size: 0.85rem; color: rgba(255,255,255,0.75); }
@media (max-width: 760px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

.callout {
  background: var(--gold-100);
  border: 1px solid rgba(198,154,62,0.35);
  border-radius: var(--radius-md);
  padding: 22px 26px;
}
.callout.maroon {
  background: var(--maroon-100);
  border-color: rgba(140,29,73,0.25);
}
.callout.steel {
  background: var(--steel-100);
  border-color: rgba(98,119,138,0.3);
}

.person-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid rgba(38,8,26,0.06);
}
.person-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--maroon-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  flex-shrink: 0;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
table.data-table th, table.data-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--steel-100);
  font-size: 0.95rem;
}
table.data-table th {
  background: var(--maroon-800);
  color: var(--white);
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
table.data-table tr:last-child td { border-bottom: none; }

.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid rgba(38,8,26,0.08);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.doc-list li a:hover { border-color: var(--maroon-500); color: var(--maroon-700); background: var(--maroon-100); }
.doc-list li a .doc-icon { color: var(--maroon-500); flex-shrink: 0; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--steel-100);
  color: var(--steel-700);
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--maroon-700), var(--maroon-500));
  border-radius: var(--radius-lg);
  padding: 46px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 0; max-width: 46ch; }

/* Alert / notice box */
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fdf1ed;
  border: 1px solid #f0c4b4;
  color: #7a2b12;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 0.92rem;
}

/* ---------------------------------------------------------------------
   Events (used on events.html)
--------------------------------------------------------------------- */
.event-list { display: grid; gap: 18px; }
.event-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid rgba(38,8,26,0.08);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.event-date {
  flex-shrink: 0;
  width: 74px;
  text-align: center;
  background: var(--maroon-800);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
}
.event-date .month {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-500);
}
.event-date .day {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
}
.event-body h3 { margin-bottom: 6px; }
.event-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-meta svg { color: var(--maroon-500); flex-shrink: 0; }
@media (max-width: 560px) {
  .event-card { flex-direction: column; }
  .event-date { width: auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; }
  .event-date .month, .event-date .day { display: inline; }
}

/* ---------------------------------------------------------------------
   Footer
--------------------------------------------------------------------- */
.site-footer {
  background: var(--maroon-900);
  color: rgba(255,255,255,0.82);
  margin-top: 40px;
}
.footer-top {
  padding: 56px 0 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand strong { color: var(--white); font-family: var(--font-display); font-size: 1.15rem; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.78); text-decoration: none; font-size: 0.93rem; }
.footer-col a:hover { color: var(--gold-500); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: background 0.15s ease;
}
.footer-social a:hover { background: var(--gold-500); color: var(--maroon-900); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* ---------------------------------------------------------------------
   Utilities
--------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.rounded-img { border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.w-full { width: 100%; }
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--maroon-700);
  color: white;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }
