/* ============================================================
   LANDING PAGE — header, hero, carousel, sticker
   Inherits all tokens from base.css
   ============================================================ */

body.landing {
  background: var(--color-primary);
  color: #fff;
}

/* ---- Page wrapper (full-bleed; hero reaches right edge) ---- */
.page {
  width: 100%;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  padding: var(--space-5) var(--gutter);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}

/* Brand lockup: logo + text */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: #fff;
}
.brand:hover { text-decoration: none; }

.brand__logo {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  object-fit: cover;
}

.brand__text { display: flex; flex-direction: column; line-height: 1; }

.brand__eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
}

.brand__name {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: clamp(0.95rem, 0.8rem + 0.6vw, 1.2rem);
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin-top: 3px;
}

/* Navigation */
.nav-toggle {
  display: none;          /* shown on mobile only */
  background: none;
  border: 0;
  cursor: pointer;
  padding: var(--space-2);
  color: #fff;
}
.nav-toggle svg { width: 28px; height: 28px; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.nav__link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.1rem, 0.9rem + 0.7vw, 1.5rem);
  color: #fff;
  padding: var(--space-1) 0;
  position: relative;
}
.nav__link:hover { text-decoration: none; }
/* underline-on-hover affordance */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  /* push the image in from the left (~15%), stay flush right */
  padding-left: 15%;
  padding-top: var(--space-4);
}

.hero__media {
  position: relative;
  border-top-left-radius: var(--radius-lg);
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  /* note: overflow NOT hidden, so content can overhang the left edge */
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: var(--radius-lg);
}

/* dark overlay so text stays legible */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(0, 47, 108, 0.78) 0%,
    rgba(0, 47, 108, 0.45) 45%,
    rgba(0, 47, 108, 0.15) 100%
  );
  border-top-left-radius: var(--radius-lg);
}

.hero__content {
  position: relative;   /* above overlay */
  z-index: 1;
  max-width: 800px;
  padding: var(--space-6) var(--space-6) var(--space-9);
}

/* headline overhangs the image's left edge the most */
.hero__title {
  color: #fff;
  font-size: var(--fs-2xl);
  line-height: 0.98;
  margin-bottom: var(--space-5);
  margin-left: calc(-2 * var(--space-9));   /* big overhang onto blue */
}

/* subhead + button overhang less than the headline */
.hero__lead {
  border-left: 4px solid var(--color-accent);
  padding-left: var(--space-5);
  margin-left: calc(-2 * var(--space-7));   /* smaller overhang */
}

.hero__text {
  font-size: var(--fs-lg);
  max-width: 46ch;
  margin-bottom: var(--space-6);
  font-weight: 500;
}

/* gold CTA */
.hero .btn--accent {
  font-size: var(--fs-lg);
  padding: var(--space-4) var(--space-6);
}

/* ============================================================
   CAROUSEL
   ============================================================ */
.gallery {
  position: relative;
  /* indented further than the hero image (hero is 15%) */
  padding-left: 22%;
  padding-right: 0;
  margin-top: 0;
  padding-bottom: var(--space-8);
}

.gallery__track {
  display: flex;
  gap: 0;                 /* no gaps between images */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.gallery__item {
  flex: 0 0 auto;
  width: clamp(300px, 32vw, 540px);
  aspect-ratio: 16 / 11;
  scroll-snap-align: start;
  overflow: hidden;
  background: var(--color-quaternary);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Angled gold sticker overlapping the carousel */
.sticker {
  position: absolute;
  z-index: 2;
  left: 38%;
  bottom: var(--space-6);
  background: var(--color-accent);
  color: var(--color-quaternary);
  font-family: var(--font-heading);
  text-transform: uppercase;
  text-align: center;
  font-size: clamp(1.25rem, 0.9rem + 1.4vw, 1.9rem);
  line-height: 1.1;
  padding: var(--space-4) var(--space-7);
  transform: skewX(-12deg);
  box-shadow: var(--shadow-md);
}
.sticker > span {
  display: block;
  transform: skewX(12deg);   /* un-skew the text */
}

/* ============================================================
   LEAGUES — three-card grid (#leagues)
   ============================================================ */
.leagues {
  position: relative;
  overflow: hidden;   /* clip the slanted band to the section */
}

/* navy band that slants down toward the right, bleeding in from the hero/carousel above */
.leagues::before {
  content: "";
  position: absolute;
  top: -1px;            /* cover the seam */
  left: 0;
  right: 0;
  height: 140px;
  background: var(--color-primary);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 0 100%);
  z-index: 0;
}

/* keep the content above the band */
.leagues .container {
  position: relative;
  z-index: 1;
}

.leagues__head {
  margin-top: var(--space-7);;
  margin-bottom: var(--space-7);
  max-width: 100ch;
}

.leagues__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  flex: 1;          /* equal-height bodies so buttons line up */
}

.card__title { font-size: var(--fs-lg); }
.card__text { color: var(--color-ink); margin: 0; }

/* push the button to the bottom of every card */
.card__body .btn { margin-top: auto; }

/* ============================================================
   HOBBY CTA — navy band, watermark, photo + text (#learn)
   ============================================================ */
.hobby {
  position: relative;
  overflow: hidden;                 /* clip watermark + slant to the section */
  background: var(--color-surface-2);
  color: #fff;
  padding-block: var(--space-9);
  /* slanted top edge: navy dips lower on the right, like the mock */
}

.hobby::before {                        /* NEW — navy band with the slant */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 100%);
  z-index: 0;
}

/* giant faint heading text behind everything */
.hobby__watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: clamp(5rem, 16vw, 20rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: #fff;
  opacity: 0.05;
  pointer-events: none;
  white-space: normal;
  overflow: hidden;
  z-index: 0;
  text-align: left;
}

.hobby__inner {
  position: relative;               /* above the watermark */
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: var(--space-8);
}

.hobby__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.hobby__content { display: flex; flex-direction: column; gap: var(--space-5); }

.hobby__title { color: #fff; font-size: var(--fs-xl); }
.hobby__text { color: #fff; font-size: var(--fs-lg); max-width: 42ch; }
.hobby__content .btn { align-self: flex-start; }

/* ============================================================
   PHOTO GALLERY — full-bleed grid + lightbox (#gallery)
   ============================================================ */
.photos { width: 100%; }
.photos__grid { background: var(--color-secondary); }   /* unfilled space blends in */
 
.photos__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 1fr;
  gap: 2px;                          /* thin seams, near-touching like the hero gallery */
  min-height: 80vh;
}
 
.photos__item { min-height: 0; }     /* let grid rows control height */
 
.photos__btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--color-quaternary);
  cursor: pointer;
  overflow: hidden;
}
.photos__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition), opacity var(--transition);
}
.photos__btn:hover img,
.photos__btn:focus-visible img { transform: scale(1.04); opacity: 0.92; }
 
/* play badge on video thumbnails */
.photos__btn--video { position: relative; }
.photos__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 47, 108, 0.7);
  color: #fff;
  font-size: 1.25rem;
  border-radius: 50%;
  padding-left: 0.2em;            /* optically center the ▶ glyph */
  pointer-events: none;
  transition: background var(--transition), transform var(--transition);
}
.photos__btn--video:hover .photos__play,
.photos__btn--video:focus-visible .photos__play {
  background: var(--color-accent);
  color: var(--color-quaternary);
  transform: scale(1.08);
}
 
/* ---- Lightbox overlay ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-5);
  background: rgba(0, 20, 50, 0.92);
}
.lightbox[hidden] { display: none; }
 
.lightbox__figure {
  margin: 0;
  max-width: min(1100px, 90vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.lightbox__video {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: #000;
}
.lightbox__img[hidden],
.lightbox__video[hidden] { display: none; }
.lightbox__caption {
  color: #fff;
  font-size: var(--fs-sm);
  text-align: center;
  max-width: 60ch;
}
 
.lightbox__nav,
.lightbox__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition);
}
.lightbox__nav { width: 3rem; height: 3rem; font-size: 2rem; line-height: 1; }
.lightbox__nav:hover,
.lightbox__close:hover { background: rgba(255, 255, 255, 0.28); }
 
.lightbox__close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.75rem;
}
 
/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-primary);
  color: #fff;
  padding-top: var(--space-6);
}
 
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-inline: var(--gutter);
  padding-bottom: var(--space-6);
}
 
/* smaller logo in the footer than the header */
.brand--footer .brand__logo { width: 56px; height: 56px; }
 
/* centered copyright that grows to fill the middle */
.site-footer__copy {
  flex: 1 1 auto;
  margin: 0;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--color-secondary);
}
.site-footer .brand--footer,
.site-footer__contact { flex: 1 1 0; }
.site-footer__contact { justify-content: flex-end; }
 
.site-footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-4);
}
.site-footer__email {
  color: #fff;
  font-size: var(--fs-base);
}
.site-footer__email:hover { color: var(--color-accent); }
 
.site-footer__social { display: flex; gap: var(--space-3); }
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--transition), color var(--transition);
}
.site-footer__social a:hover {
  background: var(--color-accent);
  color: var(--color-quaternary);
}
 
/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  /* Mobile nav: collapse links behind a toggle */
  .nav-toggle { display: inline-flex; }
 
  .site-header__inner { align-items: center; }
 
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80vw, 320px);
    background: var(--color-quaternary);
    padding: var(--space-8) var(--space-6);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 100;
  }
  .nav[data-open="true"] { transform: translateX(0); }
 
  .nav__list { flex-direction: column; align-items: flex-start; gap: var(--space-5); }
  .nav__link { font-size: var(--fs-xl); }
 
  /* dim background when menu open */
  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition);
    z-index: 90;
  }
  .nav-scrim[data-open="true"] { opacity: 1; visibility: visible; }
 
  .hero { padding-top: var(--space-5); padding-left: var(--space-5); }
  .hero__content { padding: var(--space-5) var(--space-4); }
  .hero__title { margin-left: calc(-1 * var(--space-4)); }
  .hero__lead { margin-left: calc(-1 * var(--space-2)); }
 
  .gallery { padding-left: var(--space-6); }
  .gallery__item { width: 78vw; }
 
  .sticker { left: auto; right: var(--space-4); bottom: var(--space-4); }
 
  .leagues__grid { grid-template-columns: 1fr; }
 
  .hobby__inner { grid-template-columns: 1fr; gap: var(--space-6); }
  .hobby__media { order: -1; }                 /* photo above text */
  .hobby__watermark { font-size: clamp(3.5rem, 22vw, 7rem); }
 
  .photos__grid { grid-template-columns: repeat(2, 1fr); min-height: auto; }
  .lightbox { flex-direction: column; }
  .lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  .lightbox__nav--prev { left: var(--space-3); }
  .lightbox__nav--next { right: var(--space-3); }
 
  .site-footer__inner { flex-direction: column; align-items: center; gap: var(--space-6); text-align: center; }
  .site-footer__contact { align-items: center; }
}
 
/* tablet: two columns */
@media (min-width: 861px) and (max-width: 1024px) {
  .leagues__grid { grid-template-columns: repeat(2, 1fr); }
  .photos__grid { grid-template-columns: repeat(3, 1fr); }
}
 
@media (min-width: 861px) {
  .nav-toggle, .nav-scrim { display: none; }
}