:root {
  --bills-navy: #14296b;
  --bills-navy-deep: #0e1c4e;
  --bills-red: #c8102e;
  --em-blue: #2563ac;
  --em-green: #45a249;

  --ink: #1a2233;
  --muted: #61697a;
  --line: #e6e9f1;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --card: #ffffff;

  --radius: 16px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 3px rgba(20, 35, 80, 0.08);
  --shadow: 0 12px 36px rgba(16, 30, 70, 0.10);
  --shadow-lg: 0 26px 70px rgba(10, 25, 60, 0.18);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.12; }
img { display: block; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===================== BRAND HEADER ===================== */
.brandbar { background: var(--bills-navy); color: #fff; }
.brandbar__inner {
  max-width: 1120px; margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brandbar__logos {
  display: flex; align-items: center; gap: 16px;
  background: #fff; padding: 9px 18px; border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.logo--bills { height: 48px; width: auto; }
.logo--em { height: 28px; width: auto; }
.brandbar__divider { width: 1px; height: 32px; background: rgba(20,41,107,0.18); }
.brandbar__meta { text-align: right; line-height: 1.35; }
.brandbar__eyebrow {
  display: block; font-size: 0.62rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.6); font-weight: 600;
}
.brandbar__line { display: block; font-size: 0.9rem; font-weight: 600; }

/* ===================== HERO ===================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(160deg, var(--bills-navy) 0%, var(--bills-navy-deep) 100%);
  color: #fff; text-align: center;
}
.hero__art {
  position: absolute; inset: 0; z-index: -3;
  background: url("images/stadium-bg.svg") center/cover no-repeat;
}
.hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 38%; z-index: -2;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(75% 55% at 50% 0%, rgba(37,99,172,0.22), transparent 72%),
    linear-gradient(180deg, rgba(8,18,46,0.34) 0%, rgba(8,18,46,0.52) 42%, rgba(11,23,58,0.86) 100%);
}
.hero__inner {
  max-width: 760px; margin: 0 auto;
  padding: clamp(56px, 9vw, 96px) 28px clamp(72px, 11vw, 112px);
}
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px; margin-bottom: 26px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: #cfeebf;
  background: rgba(69,162,73,0.16);
  border: 1px solid rgba(69,162,73,0.4);
  border-radius: 999px;
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--em-green); }
.hero__title {
  margin: 0 0 20px; font-weight: 800;
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.hero__subtitle {
  margin: 0 auto 30px; max-width: 36em;
  font-size: clamp(1rem, 2.2vw, 1.15rem); color: rgba(255,255,255,0.86);
}
.hero__facts {
  list-style: none; margin: 0 0 36px; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 14px; font-weight: 600; font-size: 0.95rem;
}
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts svg { width: 17px; height: 17px; color: var(--em-green); }
.hero__facts .dotsep { color: var(--bills-red); font-weight: 700; }

.hero__actions {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 30px; font: inherit; font-weight: 700; font-size: 1rem;
  border-radius: 12px; border: none; cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: #fff; color: var(--bills-navy);
  box-shadow: 0 14px 32px rgba(0,0,0,0.28);
}
.btn--primary:hover { background: var(--bills-red); color: #fff; transform: translateY(-2px); }
.btn--ghost {
  background: rgba(255,255,255,0.08); color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
}
.btn--ghost:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
.btn--dark { color: var(--bills-navy); background: var(--bg-soft); border: 1px solid var(--line); }
.btn--dark:hover { background: var(--bills-navy); color: #fff; }
.btn--submit {
  width: 100%; margin-top: 8px; padding: 16px;
  background: var(--bills-navy); color: #fff;
  box-shadow: 0 12px 28px rgba(20,41,107,0.32);
}
.btn--submit:hover { background: var(--bills-red); transform: translateY(-2px); }
.btn--submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Add-to-calendar menu */
.cal { position: relative; }
.cal__menu {
  /* Opens upward so it stays inside the hero (which clips overflow) and
     above the detail cards below it. */
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 6px; min-width: 220px; z-index: 30; text-align: left;
}
.cal__menu a {
  display: block; padding: 11px 14px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 600;
}
.cal__menu a:hover { background: var(--bg-soft); color: var(--bills-navy); }

/* ===================== PAGE ===================== */
.page { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ================== EVENT DETAILS ================== */
.details {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin: -40px auto 0; position: relative; z-index: 2;
}
.detail-card {
  background: var(--card); border: 1px solid var(--line);
  border-top: 3px solid var(--bills-red);
  border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow);
}
.detail-card__icon { width: 24px; height: 24px; color: var(--em-blue); margin-bottom: 14px; }
.detail-card__label {
  display: block; font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.14em; font-weight: 700; color: var(--muted); margin-bottom: 4px;
}
.detail-card__value { display: block; font-size: 1.12rem; font-weight: 700; }

/* ================== ABOUT ================== */
.kicker {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--em-green);
  margin-bottom: 12px;
}
.kicker--red { color: var(--bills-red); }
.about {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px;
  align-items: center; padding: 80px 0;
}
.about__copy h2 { margin: 0 0 18px; font-size: clamp(1.7rem, 3.6vw, 2.3rem); font-weight: 800; }
.about__copy p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.perks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.perks li { display: flex; align-items: center; gap: 13px; font-weight: 600; font-size: 0.98rem; }
.perks__ic {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; color: var(--em-green);
  background: rgba(69,162,73,0.1);
}
.perks__ic svg { width: 19px; height: 19px; }

.about__visual {
  position: relative; border-radius: 20px; overflow: hidden;
  min-height: 360px; box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--bills-navy), var(--bills-navy-deep));
}
.about__photo { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.about__placeholder {
  display: none;
  position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; color: rgba(255,255,255,0.85); text-align: center; padding: 24px;
}
.about__visual--placeholder .about__placeholder { display: flex; }
.about__placeholder::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,0.05) 46px 47px);
  mask-image: linear-gradient(to bottom, transparent, #000 40%, transparent);
}
.about__placeholder svg { width: 64px; height: 64px; position: relative; }
.about__placeholder span {
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600; position: relative;
}
.about__note {
  margin: 18px 0 0; font-size: 0.92rem; color: var(--muted);
  border-left: 3px solid var(--bills-red); padding-left: 14px;
}
.about__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 36px 20px 16px; color: #fff;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: linear-gradient(to top, rgba(8,18,46,0.9), rgba(8,18,46,0));
}
.about__caption svg { width: 16px; height: 16px; color: var(--em-green); }

/* ================== GALLERY (carousel) ================== */
.gallery {
  position: relative; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--bills-navy-deep);
  aspect-ratio: 16 / 10;
}
.gallery__viewport { position: absolute; inset: 0; }
.gallery__slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity 0.6s ease; pointer-events: none;
}
.gallery__slide.is-active { opacity: 1; pointer-events: auto; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 42px 18px 16px; color: #fff;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: linear-gradient(to top, rgba(8,18,46,0.92), rgba(8,18,46,0));
}
.gallery__caption svg { width: 16px; height: 16px; color: var(--em-green); flex: 0 0 auto; }
.gallery__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; cursor: pointer; z-index: 3;
  background: rgba(255,255,255,0.92); color: var(--bills-navy); border: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
  transition: background 0.15s, transform 0.12s;
}
.gallery__arrow:hover { background: #fff; }
.gallery__arrow:active { transform: translateY(-50%) scale(0.93); }
.gallery__arrow svg { width: 22px; height: 22px; }
.gallery__arrow--prev { left: 12px; }
.gallery__arrow--next { right: 12px; }
.gallery__dots {
  position: absolute; bottom: 14px; right: 16px; z-index: 3;
  display: flex; gap: 7px;
}
.gallery__dot {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.5); transition: width 0.2s, background 0.2s, border-radius 0.2s;
}
.gallery__dot.is-active { background: #fff; width: 22px; border-radius: 4px; }

/* ================== AGENDA ================== */
.agenda { padding: 8px 0 84px; }
.agenda__head { text-align: center; margin-bottom: 38px; }
.agenda__head h2 { margin: 0; font-size: clamp(1.7rem, 3.6vw, 2.3rem); font-weight: 800; }
.agenda__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); gap: 18px;
}
.agenda-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 18px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.18s ease;
}
.agenda-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.agenda-card__ic {
  display: inline-grid; place-items: center; width: 54px; height: 54px;
  margin-bottom: 16px; border-radius: 14px; color: var(--em-green);
  background: rgba(69,162,73,0.1);
}
.agenda-card__ic svg { width: 27px; height: 27px; }
.agenda-card h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 700; line-height: 1.25; }
.agenda-card p { margin: 0; font-size: 0.86rem; color: var(--muted); line-height: 1.5; }

/* ===================== RSVP ===================== */
.rsvp { background: var(--bg-soft); padding: 72px 28px; border-top: 1px solid var(--line); }
.rsvp__card {
  max-width: 620px; margin: 0 auto; background: var(--card);
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow); padding: clamp(28px, 5vw, 46px);
}
.rsvp__head { text-align: center; margin-bottom: 30px; }
.rsvp__head h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; }
.rsvp__head p { margin: 0; color: var(--muted); font-size: 0.96rem; }

.attend {
  border: 0; padding: 0; margin: 0 0 22px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.attend__option {
  position: relative; display: flex; align-items: center; gap: 13px;
  padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.attend__option:hover { box-shadow: var(--shadow-sm); }
.attend__option input { position: absolute; opacity: 0; pointer-events: none; }
.attend__check {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: #eef1f7; color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.attend__check svg { width: 18px; height: 18px; }
.attend__text { display: flex; flex-direction: column; line-height: 1.25; }
.attend__text strong { font-size: 0.98rem; font-weight: 700; }
.attend__text small { font-size: 0.8rem; color: var(--muted); }
.attend__option:has(input:checked) { border-color: var(--bills-navy); background: rgba(20,41,107,0.04); }
.attend__option:has(input:checked) .attend__check { background: var(--bills-navy); color: #fff; }
.attend__option[data-kind="no"]:has(input:checked) { border-color: var(--muted); background: rgba(97,105,122,0.06); }
.attend__option[data-kind="no"]:has(input:checked) .attend__check { background: var(--muted); }
.attend__option:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(37,99,172,0.2); }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field[hidden] { display: none; }
/* Honeypot: kept in the DOM for bots but hidden from people and screen readers. */
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.field label { font-size: 0.84rem; font-weight: 600; margin-bottom: 7px; }
.req { color: var(--bills-red); }

input[type="text"], input[type="email"], select, textarea {
  font: inherit; font-size: 0.97rem; padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--em-blue);
  box-shadow: 0 0 0 4px rgba(37,99,172,0.14);
}
textarea { resize: vertical; }
select {
  appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2361697a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}

.form__status { margin: 16px 0 0; font-size: 0.92rem; text-align: center; min-height: 1.2em; }
.form__status.error { color: var(--bills-red); font-weight: 600; }

/* ===================== SUCCESS ===================== */
.success { text-align: center; padding: 18px 6px; }
.success__check {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--em-green); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(69,162,73,0.35);
}
.success__check svg { width: 34px; height: 34px; }
.success h3 { margin: 0 0 8px; font-size: 1.5rem; font-weight: 800; }
.success p { margin: 0 0 22px; color: var(--muted); }
.success__actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.link-btn {
  background: none; border: none; color: var(--em-blue); font: inherit;
  font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

/* ===================== FOOTER ===================== */
.footer { background: var(--bills-navy); color: rgba(255,255,255,0.75); text-align: center; padding: 40px 28px; }
.footer__chip {
  display: inline-block; margin-bottom: 16px;
  background: #fff; padding: 8px 14px; border-radius: 10px;
}
.footer__chip img { height: 26px; width: auto; display: block; }
.footer p { margin: 4px 0; font-size: 0.86rem; }
.footer__small { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer a { color: rgba(255,255,255,0.85); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; gap: 36px; padding: 56px 0; }
  .about__visual { min-height: 240px; }
  .about__photo { min-height: 240px; }
}
@media (max-width: 560px) {
  .brandbar__meta { display: none; }
  .details { grid-template-columns: 1fr; margin-top: -30px; }
  .form__row { grid-template-columns: 1fr; }
  .attend { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; }
}
