/* ==========================================================================
   Grubby's Events: styles
   Palette: LA Rams royal blue & gold
   ========================================================================== */

:root {
  --royal: #003594;
  --royal-deep: #00246b;
  --navy: #001a4d;
  --navy-ink: #0d1b3d;
  --gold: #ffa300;
  --gold-bright: #ffc72c;
  --white: #ffffff;
  --off-white: #f5f7fc;
  --cloud: #e8edf7;
  --text: #1c2740;
  --text-soft: #46526e;
  --shadow: 0 10px 30px rgba(0, 26, 77, 0.15);
  --radius: 14px;
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", "Segoe UI", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--royal);
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.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;
}

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--navy-ink);
}

.section-kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--royal);
  background: var(--cloud);
  border-left: 4px solid var(--gold);
  padding: 0.3rem 0.8rem;
  margin-bottom: 0.9rem;
}

.section-head {
  margin-bottom: 2.2rem;
}

.section-head p {
  max-width: 640px;
  color: var(--text-soft);
  margin-top: 0.6rem;
  font-size: 1.05rem;
}

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

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-ink);
  box-shadow: 0 6px 18px rgba(255, 163, 0, 0.35);
}

.btn-gold:hover {
  background: var(--gold-bright);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-royal {
  background: var(--royal);
  color: var(--white);
}

.btn-royal:hover {
  background: var(--royal-deep);
}

/* ---------- Navigation ---------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(0, 20, 60, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--gold);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.nav-brand img {
  height: 48px;
  width: auto;
  mix-blend-mode: screen;
}

.nav-brand span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-brand span em {
  color: var(--gold-bright);
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

.nav-links .nav-cta {
  background: var(--gold);
  color: var(--navy-ink);
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  border-bottom: none;
  font-weight: 700;
}

.nav-links .nav-cta:hover {
  background: var(--gold-bright);
  color: var(--navy-ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

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

.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(0, 53, 148, 0.9), transparent 60%),
    linear-gradient(160deg, #021031 0%, #001a4d 45%, #00246b 100%);
  color: var(--white);
  padding: 7.5rem 0 0;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 80%, rgba(255, 163, 0, 0.12), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(255, 199, 44, 0.1), transparent 40%);
  pointer-events: none;
}

.hero-logo {
  width: min(520px, 82vw);
  margin: 0 auto 1.2rem;
  mix-blend-mode: screen;
}

.hero .tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.hero .sub {
  max-width: 620px;
  margin: 0.8rem auto 1.8rem;
  color: #cdd8ef;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.6rem;
}

/* Countdown */

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(0.6rem, 2.5vw, 1.4rem);
  margin-bottom: 2.8rem;
}

.countdown .unit {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 199, 44, 0.35);
  border-radius: var(--radius);
  padding: 0.8rem 0;
  width: clamp(72px, 18vw, 108px);
}

.countdown .num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  color: var(--gold-bright);
  line-height: 1;
}

.countdown .lbl {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b9c6e4;
  margin-top: 0.35rem;
}

.countdown-caption {
  color: #cdd8ef;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin: -1.8rem 0 2.4rem;
  font-size: 0.95rem;
}

/* Hero photo strip */

.hero-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  border-top: 4px solid var(--gold);
}

.hero-strip img {
  width: 100%;
  height: clamp(120px, 18vw, 220px);
  object-fit: cover;
}

/* ---------- Games bar ---------- */

.games-bar {
  background: var(--royal);
  color: var(--white);
  padding: 1.6rem 0;
}

.games-bar .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
}

.game-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.game-chip svg {
  width: 34px;
  height: 34px;
  fill: var(--gold-bright);
  flex-shrink: 0;
}

/* ---------- Sections ---------- */

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--white);
}

.section-dark {
  background: linear-gradient(160deg, #021031, #001a4d 60%, #002a7a);
  color: var(--white);
}

.section-dark .section-title {
  color: var(--white);
}

.section-dark .section-kicker {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-bright);
}

.section-dark .section-head p {
  color: #c3cfe9;
}

/* ---------- Next event spotlight ---------- */

.event-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  background: linear-gradient(120deg, var(--royal), var(--royal-deep));
  color: var(--white);
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow);
  padding: 1.6rem 2rem;
  margin-bottom: 2.2rem;
}

.event-banner .date-badge {
  text-align: center;
  background: var(--gold);
  color: var(--navy-ink);
  border-radius: 10px;
  padding: 0.7rem 1.2rem;
  font-family: var(--font-display);
  line-height: 1.05;
}

.event-banner .date-badge .month {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
}

.event-banner .date-badge .day {
  display: block;
  font-size: 2.3rem;
}

.event-banner .date-badge .year {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.event-banner h3 {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  color: var(--white);
}

.event-banner .fee {
  margin-left: auto;
  text-align: center;
}

.event-banner .fee .amount {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-bright);
  line-height: 1;
}

.event-banner .fee .note {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c3cfe9;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.4rem;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.info-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--royal);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.info-card h4 svg {
  width: 24px;
  height: 24px;
  fill: var(--gold);
  flex-shrink: 0;
}

.info-card p,
.info-card li {
  color: var(--text-soft);
  font-size: 0.98rem;
}

.info-card ul {
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
}

.info-card strong {
  color: var(--text);
}

.info-card .map-link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 0.35rem;
}

.venue + .venue {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--cloud);
}

.deadline-flag {
  display: inline-block;
  background: #fff3dc;
  border: 1px solid var(--gold);
  border-radius: 8px;
  color: #7a5200;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.45rem 0.9rem;
  margin-top: 0.9rem;
}

/* ---------- Schedule ---------- */

.schedule {
  display: grid;
  gap: 0.9rem;
}

.sched-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
  background: var(--white);
  border-radius: 12px;
  border-left: 5px solid var(--royal);
  box-shadow: 0 4px 14px rgba(0, 26, 77, 0.08);
  padding: 1rem 1.4rem;
}

.sched-row.featured {
  border-left-color: var(--gold);
  background: linear-gradient(120deg, #fff9ec, var(--white) 55%);
}

.sched-date {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--royal);
  min-width: 175px;
}

.sched-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.sched-tags {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
}

.tag-confirmed {
  background: #e2f2e5;
  color: #1c6b2e;
}

.tag-tentative {
  background: var(--cloud);
  color: var(--text-soft);
}

.tag-next {
  background: var(--gold);
  color: var(--navy-ink);
}

.schedule-note {
  color: var(--text-soft);
  font-size: 0.93rem;
  margin-top: 1.1rem;
}

/* ---------- Format explainer ---------- */

.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.3rem;
}

.format-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 199, 44, 0.28);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.format-card h3 {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.format-card p {
  color: #c3cfe9;
  font-size: 0.95rem;
}

/* ---------- Highlights / gallery preview ---------- */

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.highlight-grid a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 26, 77, 0.12);
}

.highlight-grid img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.highlight-grid a:hover img {
  transform: scale(1.05);
}

.center-cta {
  text-align: center;
  margin-top: 2.2rem;
}

/* ---------- Payment ---------- */

.pay-wrap {
  display: grid;
  grid-template-columns: minmax(320px, 560px) 1fr;
  gap: 2.5rem;
  align-items: center;
}

.qr-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.qr-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.qr-card img {
  border-radius: 8px;
  width: 100%;
}

.qr-card p {
  margin-top: auto;
  padding-top: 0.7rem;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--royal);
}

.pay-details h3 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 1rem;
}

.pay-details p {
  color: #c3cfe9;
  margin-bottom: 0.9rem;
}

.pay-details .handle {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}

.pay-steps {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin: 1.2rem 0 1.5rem;
}

.pay-steps li {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  color: #dde5f5;
}

.pay-steps .step-num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  border-top: 4px solid var(--royal);
  box-shadow: var(--shadow);
  padding: 1.8rem 1.6rem;
  text-align: center;
}

.contact-card svg {
  width: 42px;
  height: 42px;
  fill: var(--royal);
  margin: 0 auto 0.8rem;
}

.contact-card h3 {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.contact-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-bottom: 0.7rem;
}

.contact-card a.big-link {
  font-weight: 800;
  font-size: 1.08rem;
  text-decoration: none;
  color: var(--royal);
  word-break: break-word;
}

.contact-card a.big-link:hover {
  color: var(--royal-deep);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}

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

.site-footer {
  background: #021031;
  color: #9fb0d4;
  padding: 2.6rem 0 2rem;
  border-top: 3px solid var(--gold);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.footer-inner img {
  height: 64px;
  mix-blend-mode: screen;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  list-style: none;
}

.footer-links a {
  color: #c3cfe9;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Gallery page ---------- */

.page-header {
  background:
    radial-gradient(ellipse at 50% -30%, rgba(0, 53, 148, 0.9), transparent 65%),
    linear-gradient(160deg, #021031, #001a4d);
  color: var(--white);
  padding: 8rem 0 3rem;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.page-header p {
  color: #c3cfe9;
  max-width: 560px;
  margin: 0.8rem auto 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 2.2rem 0;
}

.filter-btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--royal);
  border: 2px solid var(--cloud);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--gold);
}

.filter-btn.active {
  background: var(--royal);
  border-color: var(--royal);
  color: var(--white);
}

.filter-count {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  padding-bottom: 4rem;
}

.gallery-grid button {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 26, 77, 0.12);
  aspect-ratio: 4 / 3;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-grid button:hover img {
  transform: scale(1.05);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(2, 8, 26, 0.93);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 84vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox .lb-caption {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  color: #dde5f5;
  font-size: 0.95rem;
  text-align: center;
  max-width: 84vw;
}

.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lightbox button:hover {
  background: rgba(255, 163, 0, 0.4);
}

.lb-close {
  top: 1.2rem;
  right: 1.2rem;
}

.lb-prev {
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

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

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #021031;
    border-bottom: 2px solid var(--gold);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .nav-links .nav-cta {
    margin: 0.8rem auto 1.1rem;
    display: inline-block;
    padding: 0.6rem 1.6rem;
  }

  .hero-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .highlight-grid img {
    height: 160px;
  }

  .pay-wrap {
    grid-template-columns: 1fr;
  }

  .venmo-card {
    max-width: 340px;
    margin-inline: auto;
  }

  .event-banner .fee {
    margin-left: 0;
    text-align: left;
  }

  .sched-tags {
    margin-left: 0;
  }
}
