@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto:ital,wght@0,400;0,500;0,700;0,900;1,400&display=swap');

:root {
  --navy: #23346d;
  --navy-deep: #172352;
  --crimson: #d71344;
  --orange: #fa4616;
  --orange-deep: #d63a10;
  /* WCAG AA text-contrast variants -- #fa4616 fails 4.5:1 on navy/white for small
     text (only passes the 3:1 large-text threshold). Use these instead for any
     text/icon under ~24px; --orange itself is fine for large display type only. */
  --orange-text-on-navy: #ff9166;
  --orange-btn-bg: #c73410;
  --orange-btn-bg-hover: #a82c0c;
  --cream: #f6f4ea;
  --ice: #e3edf2;
  --lavender: #c6c4d2;
  --white: #ffffff;
  --ink: #182140;
  --shadow: 0 18px 40px -20px rgba(23, 35, 82, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Roboto', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  letter-spacing: 0.03em;
  margin: 0;
}

a { color: inherit; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Faint, non-distorted background wordmarks -- brand rule compliant (no rotation, no
   stretching, no recoloring; the corporate name stays intact under the "W"). Decorative
   only, so hidden from assistive tech and non-interactive. */
.section-watermark {
  position: absolute;
  width: 460px;
  height: auto;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.section-watermark--roster { bottom: -70px; right: -70px; }
.section-watermark--gallery { top: -50px; left: -70px; }
.section-watermark--lineup { top: -40px; right: -70px; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(250, 70, 22, 0.25), transparent 45%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 40px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.hero__main {
  flex: 1 1 380px;
  min-width: 0;
}

.hero__side {
  flex: 0 1 380px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}

.hero__schedule {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 22px 26px;
}

.hero__schedule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 12px;
  margin-bottom: 10px;
}

.hero__schedule-key {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  color: var(--ice);
  text-transform: none;
  letter-spacing: normal;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.dot--home { background: var(--orange-text-on-navy); }

.hero__schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
}

.hero__schedule-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  color: #aeb9d6;
}

.hero__schedule-list li.is-home {
  color: var(--white);
  font-weight: 700;
}

.hero__schedule-list .sched-date {
  flex: 0 0 74px;
  color: inherit;
}

.hero__schedule-list li.is-home .sched-date { color: var(--orange-text-on-navy); }

.hero__schedule-list .sched-opp {
  flex: 1;
}

.hero__schedule-list .sched-loc {
  font-size: 12px;
  color: inherit;
}

.sched-hc {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--orange-btn-bg);
  color: var(--white);
  border-radius: 4px;
  padding: 2px 5px;
  margin-left: 3px;
  vertical-align: 1px;
}

.hero__schedule-fine {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  color: #aeb9d6;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .hero__side { align-items: flex-start; }
}

.hero__logo { height: 128px; width: auto; margin-bottom: 8px; }

.hero__eyebrow {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-text-on-navy);
  text-decoration: none;
  text-align: right;
  max-width: 260px;
  line-height: 1.5;
}

.hero__title {
  font-size: clamp(52px, 9vw, 108px);
  line-height: 0.92;
  margin-top: 14px;
  color: var(--white);
}

.hero__title span { color: var(--orange); }

.hero__tagline {
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  color: var(--ice);
  max-width: 540px;
  margin-top: 14px;
  line-height: 1.5;
}

.hero__banner {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 16px 22px;
  backdrop-filter: blur(6px);
  flex-wrap: wrap;
}

.hero__banner-label {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange-text-on-navy);
}

.hero__banner-game {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 0.02em;
}

.hero__banner-count {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: var(--ice);
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  padding-left: 18px;
}

.hero__banner-count strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--white);
  display: block;
}

/* ---------- Section headings ---------- */

section { padding: 56px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  color: var(--navy);
}

.section-head p {
  font-family: 'Roboto', sans-serif;
  color: #5a6285;
  font-size: 14px;
  max-width: 420px;
  margin: 0;
}

.lineup { background: var(--white); position: relative; overflow: hidden; }

/* ---------- Photo alerts CTA ---------- */

.cta-banner {
  margin-top: 36px;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-banner__qr {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  background: var(--white);
  padding: 8px;
  flex-shrink: 0;
}

.cta-banner__text { flex: 1; min-width: 220px; }

.cta-banner__text h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.cta-banner__text p {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: var(--ice);
  line-height: 1.5;
  margin: 0 0 16px;
  max-width: 480px;
}

/* ---------- Cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

.card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(23, 35, 82, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px -18px rgba(23, 35, 82, 0.45);
}

/* Player cards (roster/lineup, not the photo-gallery cards) grow big on hover -- but only on
   devices with a real mouse. Touch devices (phones/tablets) don't have a hover state, so they
   get tap-to-expand instead (see .card-modal below and the click handler in script.js). */
.card--player { cursor: pointer; }

@media (hover: hover) and (pointer: fine) {
  .card--player:hover {
    transform: scale(1.16) translateY(-6px);
    z-index: 5;
    box-shadow: 0 34px 64px -20px rgba(23, 35, 82, 0.55);
  }
}

.card__top {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 18px 18px 46px;
  position: relative;
  color: var(--white);
}

.card__number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  color: var(--orange-text-on-navy);
  letter-spacing: 0.08em;
}

.card__avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  position: absolute;
  bottom: -32px;
  left: 18px;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.card__body {
  padding: 42px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card__name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.badges { display: flex; flex-wrap: wrap; gap: 6px; }

.badge {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge--season { background: var(--crimson); color: var(--white); }
.badge--game { background: var(--ice); color: var(--navy); }
.badge--tbd { background: var(--lavender); color: var(--navy); }

.card__bio {
  font-family: 'Roboto', sans-serif;
  font-size: 13.5px;
  color: #565f82;
  line-height: 1.5;
  flex: 1;
  white-space: pre-line;
}

.card__contact {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  color: #4a5170;
  line-height: 1.6;
}

.card__cta {
  margin-top: 4px;
  display: inline-block;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  background: var(--orange-btn-bg);
  color: var(--white);
  transition: background 0.15s ease;
}

.card__cta:hover { background: var(--orange-btn-bg-hover); }

.card__cta[aria-disabled="true"] {
  background: var(--lavender);
  color: #6a6f85;
  cursor: default;
  pointer-events: none;
}

/* ---------- Roster section ---------- */

.roster { background: var(--cream); position: relative; overflow: hidden; }

.gallery { background: var(--white); position: relative; overflow: hidden; }

.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}

.filter-btn.is-active {
  background: var(--navy);
  color: var(--white);
}

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

footer {
  background: var(--white);
  border-top: 1px solid var(--ice);
  padding: 40px 0;
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__logo { height: 120px; margin-bottom: 12px; }

.footer__site-link {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--crimson);
  text-decoration: none;
}
.footer__site-link:hover { text-decoration: underline; }

.footer__offices {
  font-family: 'Roboto', sans-serif;
  font-size: 12.5px;
  color: #6a7196;
  line-height: 1.7;
  columns: 2;
  column-gap: 32px;
}

.footer__fine {
  font-family: 'Roboto', sans-serif;
  font-size: 11.5px;
  color: #5f6684;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .hero__banner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero__banner-count { border-left: none; padding-left: 0; }
}

/* ---------- Card expand modal (tap-to-expand on touch, also reachable by keyboard/click
   on desktop) ---------- */

.card-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 35, 82, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  animation: modal-fade-in 0.15s ease;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.card-modal {
  background: var(--white);
  border-radius: 22px;
  max-width: 480px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
}

.card-modal .card__top {
  padding: 28px 28px 64px;
}

.card-modal .card__avatar {
  width: 128px;
  height: 128px;
  font-size: 42px;
  bottom: -48px;
  left: 28px;
}

.card-modal .card__body {
  padding: 62px 28px 28px;
  gap: 14px;
}

.card-modal .card__name {
  font-size: 34px;
}

.card-modal .card__bio {
  font-size: 15px;
}

.card-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.card-modal__close:hover { background: rgba(255, 255, 255, 0.32); }
