/* ============================================================
   Lower Delco Lady Wildcats — modern static stylesheet
   Palette inherited from the 2009 site:
   navy #1a1a8c · deep navy #000034 · maroon #9a0201 · orange #f47f13
   ============================================================ */

:root {
  --navy: #1b1b8f;
  --navy-bright: #2626b3;
  --navy-dark: #0d0d4d;
  --navy-ink: #131355;
  --orange: #f47f13;
  --orange-dark: #d96a08;
  --maroon: #9a0201;
  --bg: #f6f7fb;
  --card: #ffffff;
  --ink: #23253a;
  --muted: #5b5f77;
  --line: #e3e5f0;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(13, 13, 77, 0.08);
  --shadow-lg: 0 14px 40px rgba(13, 13, 77, 0.14);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--navy-ink);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); letter-spacing: -0.3px; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container { max-width: 1120px; margin-inline: auto; padding-inline: 22px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--orange); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------------- Header & navigation ---------------- */

.site-header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 70%, var(--navy-bright) 100%);
  color: #fff;
  border-bottom: 4px solid var(--orange);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 22px;
  max-width: 1120px; margin-inline: auto;
}

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand img { width: 46px; height: 46px; flex: none; }
.brand-name {
  font-size: 1.22rem; font-weight: 700; letter-spacing: 0.4px; line-height: 1.2;
  text-transform: uppercase;
}
.brand-name small {
  display: block; font-size: 0.72rem; font-weight: 500; letter-spacing: 1.6px;
  color: #f9b273; text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9px; padding: 9px 14px; font: inherit; font-size: 0.95rem; cursor: pointer;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }

.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.mainnav li { position: relative; }
.mainnav a {
  display: block; padding: 10px 14px; color: #e8e9ff; text-decoration: none;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.2px; border-radius: 8px;
}
.mainnav a:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.mainnav li.active > a { color: #fff; box-shadow: inset 0 -3px 0 var(--orange); border-radius: 8px 8px 2px 2px; }

.mainnav .has-sub > a::after { content: " ▾"; font-size: 0.72em; opacity: 0.75; }
.mainnav li ul {
  display: none;
  position: absolute; top: 100%; left: 0; z-index: 30;
  min-width: 240px; padding: 8px;
  background: #fff; border-radius: 12px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.mainnav li:hover > ul, .mainnav li:focus-within > ul { display: block; }
.mainnav li ul a { color: var(--navy-ink); font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.mainnav li ul a:hover { background: #eef0fb; color: var(--navy); }
.mainnav li ul li.active a { background: #eef0fb; color: var(--navy); }

/* ---------------- Page hero (inner pages) ---------------- */

.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff; padding: 34px 0 30px;
  border-bottom: 4px solid var(--orange);
}
.page-hero h1 { color: #fff; margin: 6px 0 0; }
.page-hero .lede { color: #c9cdf5; max-width: 62ch; margin: 8px 0 0; }
.breadcrumbs { font-size: 0.85rem; color: #aeb2e8; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: #7d82c9; }
.breadcrumbs a { color: #cdd0f5; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs [aria-current] { color: #f9b273; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 700; font-size: 0.98rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(244, 127, 19, 0.35); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-outline { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* ---------------- Cards & grids ---------------- */

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
}

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--orange-dark); margin: 0 0 6px;
}
.section { padding: 46px 0; }
.section-alt { background: #eef0f8; }
.section-head { max-width: 760px; margin: 0 auto 28px; text-align: center; }

/* ---------------- Homepage hero ---------------- */

.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1000px 380px at 85% -60px, rgba(244, 127, 19, 0.28), transparent 60%),
    radial-gradient(700px 320px at -60px 110%, rgba(154, 2, 1, 0.35), transparent 60%),
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 75%);
  padding: 64px 0 58px;
  border-bottom: 4px solid var(--orange);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.045) 0 2px, transparent 2px 26px);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 1120px; margin-inline: auto; padding: 0 22px; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3.1rem); margin: 0 0 14px; }
.hero h1 em { font-style: normal; color: #f9b273; }
.hero p.lede { font-size: clamp(1.02rem, 1.7vw, 1.22rem); color: #d6d8f6; max-width: 640px; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stats-band {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; margin-top: 40px;
}
.stat {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px; padding: 16px 18px; backdrop-filter: blur(2px);
}
.stat b { display: block; font-size: 1.55rem; color: #f9b273; line-height: 1.2; }
.stat span { font-size: 0.85rem; letter-spacing: 0.6px; text-transform: uppercase; color: #d6d8f6; }

/* ---------------- Feature / highlight cards ---------------- */

.icon-chip {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-bright));
  color: #f9b273; font-size: 1.3rem; margin-bottom: 12px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .more { font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.card .more:hover { text-decoration: underline; }

/* ---------------- News / article ---------------- */

.article { max-width: 800px; }
.article .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }
figure.media { margin: 0 0 22px; }
figure.media img { border-radius: 12px; box-shadow: var(--shadow); width: 100%; }
figure.media figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; text-align: center; }

.news-item { display: flex; flex-direction: column; gap: 6px; }
.news-item time { font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--orange-dark); }
.news-item h3 { margin: 0; }
.news-item h3 a { text-decoration: none; }
.news-item h3 a:hover { text-decoration: underline; }

/* ---------------- Photo gallery ---------------- */

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.gallery-grid figure { margin: 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.gallery-grid a { display: block; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 0.25s ease; }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption { font-size: 0.82rem; color: var(--muted); padding: 9px 12px; }

/* Simple lightbox */
#lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(7, 7, 40, 0.88); padding: 4vh 4vw;
}
#lightbox.open { display: grid; place-items: center; }
#lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
#lightbox .lb-close {
  position: absolute; top: 14px; right: 18px; background: none; border: 0;
  color: #fff; font-size: 2rem; cursor: pointer; line-height: 1;
}
#lightbox figcaption { color: #cfd2f2; text-align: center; margin-top: 10px; font-size: 0.9rem; }

/* ---------------- Tables ---------------- */

.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
table.data th {
  background: var(--navy); color: #fff; text-align: left; padding: 12px 14px;
  font-size: 0.85rem; letter-spacing: 0.6px; text-transform: uppercase; white-space: nowrap;
}
table.data td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
table.data tbody tr:nth-child(even) { background: #f4f5fb; }
table.data td.num { text-align: center; white-space: nowrap; }

/* ---------------- Calendar ---------------- */

table.calendar { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--shadow); border-radius: 12px; overflow: hidden; }
table.calendar caption { caption-side: top; font-weight: 800; font-size: 1.15rem; color: var(--navy-ink); padding: 0 0 14px; }
table.calendar th { background: var(--navy); color: #fff; padding: 10px 6px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.8px; }
table.calendar td {
  border: 1px solid var(--line); height: 92px; vertical-align: top; padding: 8px; width: 14.28%;
  background: #fff; font-size: 0.88rem;
}
table.calendar td .daynum { font-weight: 800; color: var(--navy-ink); }
table.calendar td.off { background: #f4f5fb; }
table.calendar td .event { display: block; margin-top: 6px; font-size: 0.78rem; background: #fff3e3; border-left: 3px solid var(--orange); border-radius: 6px; padding: 3px 7px; color: #7c4a10; }
table.calendar td .event b { color: var(--maroon); }

/* ---------------- FAQ ---------------- */

.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--navy-ink);
  list-style: none; position: relative; padding-right: 52px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: #eef0fb; color: var(--navy);
  display: grid; place-items: center; font-size: 1.15rem; font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); background: #fafbff; }
.faq .faq-a { padding: 14px 20px 18px; color: var(--ink); font-size: 0.97rem; }

/* ---------------- Callouts & notices ---------------- */

.callout {
  border-left: 5px solid var(--orange); background: #fff7ec; border-radius: 10px;
  padding: 16px 20px; margin: 0 0 1.4em;
}
.callout p { margin: 0; }
.callout.note { border-left-color: var(--navy); background: #eef0fb; }
.callout.warn { border-left-color: var(--maroon); background: #fbeeee; }

.badge {
  display: inline-block; background: var(--maroon); color: #fff; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.6px; padding: 3px 12px; text-transform: uppercase;
}
.badge.orange { background: var(--orange); }
.badge.navy { background: var(--navy); }

/* ---------------- Rosters (team pages) ---------------- */

.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.player-chip {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  box-shadow: var(--shadow); text-align: center;
}
.player-chip b { display: block; color: var(--navy-ink); font-size: 0.98rem; }
.player-chip span { font-size: 0.82rem; color: var(--muted); }

/* ---------------- Team banner links ---------------- */

.team-banners { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.team-banners a {
  display: block; padding: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.team-banners a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.team-banners img { display: block; image-rendering: auto; }
.team-banners .t-label { display: block; text-align: center; font-size: 0.85rem; font-weight: 700; color: var(--navy-ink); padding-top: 6px; }

/* ---------------- Sponsors ---------------- */

.sponsor-box {
  background: #fff; border: 1px dashed #c9c9df; border-radius: 12px; padding: 18px;
  display: grid; place-items: center; min-height: 130px; text-align: center;
}
.sponsor-box img { max-height: 110px; width: auto; }

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--navy-dark); color: #c9ccf0; margin-top: 60px;
  border-top: 4px solid var(--orange);
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 34px; padding: 44px 0 34px;
}
.site-footer h2 { color: #fff; font-size: 1.02rem; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 14px; }
.site-footer h2::after { content: ""; display: block; width: 34px; height: 3px; background: var(--orange); margin-top: 7px; border-radius: 2px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #c9ccf0; text-decoration: none; font-size: 0.93rem; }
.site-footer a:hover { color: #f9b273; text-decoration: underline; }
.site-footer p { font-size: 0.93rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 18px 0;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: #9fa3d8;
}
.footer-bottom a { color: #b9bcec; }
.to-top { text-decoration: none; font-weight: 700; }

/* ---------------- Utilities ---------------- */

.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; }
.mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 32px; }
.muted { color: var(--muted); }
.small { font-size: 0.87rem; }
.meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }
ul.listreg { list-style: disc; padding-left: 22px; margin: 0 0 1em; }
ul.listreg li { margin-bottom: 4px; }
.clear { clear: both; }
.text-cols-2 { columns: 2; column-gap: 40px; }
@media (max-width: 760px) { .text-cols-2 { columns: 1; } }

/* ---------------- Responsive navigation ---------------- */

@media (max-width: 940px) {
  .nav-toggle { display: inline-block; }
  .mainnav { display: none; width: 100%; }
  .mainnav.open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .mainnav ul { flex-direction: column; gap: 2px; padding: 6px 0 12px; }
  .mainnav li ul {
    position: static; display: block; box-shadow: none; border: 0; background: rgba(255, 255, 255, 0.07);
    margin: 2px 0 6px 10px; padding: 6px; border-radius: 10px; min-width: 0;
  }
  .mainnav li ul a { color: #dfe1ff; }
  .mainnav li ul a:hover { background: rgba(255, 255, 255, 0.12); }
  .mainnav .has-sub > a::after { content: " ▾"; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 44px 0 40px; }
  .section { padding: 34px 0; }
  .footer-grid { gap: 26px; }
  table.calendar td { height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .hero-actions { display: none; }
  body { background: #fff; }
}