:root {
  --navy: #0d2f66;
  --royal: #1f62c4;
  --sky: #82c7ff;
  --gold: #f3c661;
  --cream: #f6f1e7;
  --ink: #11213d;
  --track: #eef5ff;
  --shadow: 0 20px 45px rgba(7, 24, 52, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(130, 199, 255, 0.35), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #edf4fb 58%, #f5eee1 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  background: rgba(248, 251, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(13, 47, 102, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(13, 47, 102, 0.18);
}

.brand-text {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.top-nav a {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(13, 47, 102, 0.06);
  font-weight: 700;
}

.top-nav a.active,
.top-nav a:hover {
  background: var(--navy);
  color: white;
}

.hero {
  position: relative;
  min-height: calc(100vh - 88px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 39, 0.75) 0%, rgba(7, 17, 39, 0.4) 45%, rgba(7, 17, 39, 0.2) 100%),
    url("assets/hero-team.jpg") center 30% / cover no-repeat;
  transform: scale(1.03);
}

.hero-content,
.year-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: clamp(2rem, 5vw, 4rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1,
.year-hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 0.95;
}

.hero h1 {
  max-width: 8ch;
  color: white;
  font-size: clamp(3.4rem, 8vw, 7rem);
}

.hero-copy,
.year-hero p,
.meet-card-content p,
.detail-panel p {
  max-width: 56ch;
  line-height: 1.6;
}

.hero-copy {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.button,
.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
}

.button-primary {
  background: var(--gold);
  color: var(--navy);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.section,
.subpage-main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.section-tight {
  padding-top: 0;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-credit {
  margin: 0.85rem 0 0;
  max-width: 52ch;
  line-height: 1.6;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.year-grid,
.meet-grid,
.detail-grid {
  display: grid;
  gap: 1.25rem;
}

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

.year-card,
.meet-card,
.detail-panel {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.year-card {
  position: relative;
  min-height: 480px;
}

.year-card img,
.meet-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.year-card-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 1.35rem;
  color: white;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 17, 39, 0.84) 100%);
}

.year-label {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
  font-weight: 800;
}

.year-card-overlay strong,
.meet-card-content h3,
.detail-panel h3 {
  display: block;
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  text-transform: uppercase;
  line-height: 1;
}

.meet-card-content .eyebrow {
  color: var(--royal);
  margin-bottom: 0.55rem;
}

.subpage-main {
  padding-bottom: 4rem;
}

.year-hero {
  position: relative;
  min-height: 420px;
  margin-top: 1rem;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.year-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.year-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 17, 39, 0.78), rgba(7, 17, 39, 0.15));
}

.year-hero-2025::before {
  background-image: url("assets/club-meets.jpg");
  background-position: center 38%;
}

.year-hero-2026::before {
  background-image: url("assets/year-2026.jpg");
  background-position: center 28%;
}

.year-hero-copy {
  position: relative;
  z-index: 1;
  padding-top: clamp(2rem, 8vw, 5rem);
}

.year-hero h1,
.year-hero p {
  color: white;
}

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

.meet-card {
  background: white;
}

.meet-card-media {
  position: relative;
  overflow: hidden;
}

.meet-card-link {
  display: block;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.meet-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(7, 24, 52, 0.22);
}

.meet-card img {
  aspect-ratio: 4 / 3;
}

.meet-card-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 1rem 1.15rem 1.1rem;
  color: white;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 17, 39, 0.88) 100%);
}

.cover-kicker {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cover-title {
  margin: 0;
  color: white;
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  text-transform: uppercase;
  line-height: 0.98;
}

.meet-card-content,
.detail-panel {
  padding: 1.4rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.pill-button {
  background: var(--navy);
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.pill-row .pill-button:hover {
  background: var(--royal);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(7, 24, 52, 0.18);
}

.pill-row .pill-button:focus {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meet-grid-three {
  /*grid-template-columns: repeat(3, minmax(0, 1fr)); */
    grid-template-columns: 1fr;
  max-width: 700px;
  margin: 0 auto;
}

.zones-cover {
  object-position: 58% center;
}

.detail-panel {
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(31, 98, 196, 0.06), rgba(243, 198, 97, 0.2)),
    var(--cream);
}

.year-hero-school-meets::before {
  background-image: url("assets/city-finals.jpg");
  background-position: center 40%;
}

.year-hero-school-meets-2026::before {
  background-image: url("assets/2026-banner.jpg");
  background-position: center 40%;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .year-grid,
  .meet-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .year-card {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: calc(100vh - 122px);
  }

  .hero h1 {
    max-width: 10ch;
  }

  .brand-text {
    font-size: 1rem;
  }
}

/* ===== Meet Modal (matches existing design system) ===== */

.meet-modal {
  position: fixed;
  inset: 0;
  background: rgba(13, 47, 102, 0.55);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
}

.meet-modal.hidden {
  display: none;
}

.meet-modal-content {
  width: min(520px, 100%);
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: var(--track);
  border: 1px solid rgba(13, 47, 102, 0.12);
  padding: 1.5rem;
  animation: modalPop 160ms ease-out;
}

/* Title matches your headings */
#meetTitle {
  margin: 0 0 1rem;
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", sans-serif;
  text-transform: uppercase;
  font-size: 2rem;
  color: var(--navy);
  line-height: 1;
}

/* Links match pill/button system */
.meet-links {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.meet-links a {
  display: block;
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  background: white;
  border: 1px solid rgba(13, 47, 102, 0.1);
  font-weight: 800;
  color: var(--ink);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.meet-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(7, 24, 52, 0.18);
}

/* Close button = your pill style */
.close-btn {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-weight: 800;
  border: none;
  cursor: pointer;
}

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

/* animation consistent with soft UI feel */
@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
