/* ═══════════════════════════════════════════
   VHS SWIM TEAM — Shared Stylesheet v3
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,200;0,300;0,600;0,800;0,900;1,300&family=Barlow:wght@300;400;500&display=swap');

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

:root {
  --navy:     #07111f;
  --blue:     #0e2547;
  --blue-mid: #1a3a6e;
  --gold:     #c9a84c;
  --gold-lt:  #e6c97a;
  --gold-dim: rgba(201,168,76,.15);
  --white:    #f0f4fb;
  --muted:    #7a8fad;
  --card:     rgba(10,22,42,.82);
  --card2:    rgba(13,26,48,.88);
  --border:   rgba(201,168,76,.16);
  --border2:  rgba(255,255,255,.07);
}

html { scroll-behavior: smooth; }

/* ── FIXED FULL-SITE POOL BACKGROUND ── */
body {
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
  /* The pool photo is pinned fixed and covers the whole viewport */
  background-image: url('https://images.unsplash.com/photo-1530549387789-4c1017266635?q=80&w=2070&auto=format&fit=crop');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
}

/* Dark overlay on top of the fixed photo so all content is readable */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(7,17,31,.55) 0%,
    rgba(7,17,31,.72) 40%,
    rgba(7,17,31,.82) 100%
  );
  pointer-events: none;
}

/* All content sits above the fixed bg + overlay */
nav, .hero, .marquee-strip, section, footer, .filter-bar,
.roster-bar, .upcoming-banner, .page-hero {
  position: relative; z-index: 1;
}

/* ── LANE LINES ── */
.lane-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.lane-bg::after {
  content: '';
  position: absolute; inset: -50%;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent calc(100%/10 - 1px),
    rgba(255,255,255,.018) calc(100%/10 - 1px),
    rgba(255,255,255,.018) calc(100%/10)
  );
  animation: laneShimmer 16s linear infinite;
}
@keyframes laneShimmer {
  from { transform: translateX(0); }
  to   { transform: translateX(10%); }
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center;
  padding: 0 2.5rem; height: 62px;
  background: rgba(7,17,31,.82);
  backdrop-filter: blur(28px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
nav.scrolled { background: rgba(7,17,31,.96); }

.nav-logo {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; margin-right: auto;
}
.nav-logo img {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; border: 1.5px solid var(--gold);
  transition: transform .3s, box-shadow .3s;
}
.nav-logo:hover img {
  transform: rotate(-5deg) scale(1.08);
  box-shadow: 0 0 16px rgba(201,168,76,.4);
}
.nav-logo .wordmark {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 1.05rem;
  letter-spacing: .04em; color: var(--white); text-transform: uppercase;
}
.nav-logo .wordmark em { color: var(--gold); font-style: normal; }

.nav-links { display: flex; align-items: stretch; height: 62px; }
.nav-links a {
  display: flex; align-items: center; padding: 0 1.2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: .82rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color .22s, background .22s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -1px; left: 50%; right: 50%;
  height: 2px; background: var(--gold);
  transition: left .28s cubic-bezier(.2,.8,.3,1), right .28s cubic-bezier(.2,.8,.3,1);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.04); }
.nav-links a:hover::after, .nav-links a.active::after { left: 0; right: 0; }
.nav-links a.active { color: var(--gold); }

/* ── SECTION BACKGROUNDS — glass panels over the fixed photo ── */
section {
  padding: 5rem 3rem;
  background: transparent;  /* let the fixed photo show through */
}

/* alternating glass tints for visual rhythm */
section.tint-dark  { background: rgba(7,17,31,.65); }
section.tint-blue  { background: rgba(14,37,71,.55); }
section.tint-clear { background: rgba(7,17,31,.35); }

/* ── SECTION LABELS / TITLES ── */
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 300; font-size: .72rem;
  letter-spacing: .45em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .4rem;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.8rem);
  text-transform: uppercase; letter-spacing: -.02em; line-height: .95;
}
.section-title .outline { -webkit-text-stroke: 2px var(--gold); color: transparent; }
.section-header { margin-bottom: 3rem; }
.gold-rule {
  width: 52px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-top: .8rem;
}

/* ── GLASS CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform .32s cubic-bezier(.2,.8,.3,1), border-color .32s, box-shadow .32s;
}
.card:hover {
  transform: translateY(-7px);
  border-color: rgba(201,168,76,.4);
  box-shadow: 0 24px 64px rgba(0,0,0,.6), 0 0 0 1px rgba(201,168,76,.1);
}

/* ── SCROLL FADE ── */
[data-fade] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .65s cubic-bezier(.2,.8,.3,1), transform .65s cubic-bezier(.2,.8,.3,1);
}
[data-fade].visible { opacity: 1; transform: translateY(0); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.2rem 3rem;
  background: rgba(7,17,31,.88);
  backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: .78rem; color: var(--muted);
}
.footer-brand { display: flex; align-items: center; gap: .6rem; }
.footer-brand img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.footer-brand span { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: .95rem; color: var(--white); }
.footer-brand span em { color: var(--gold); font-style: normal; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .78rem; letter-spacing: .05em; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: .74rem; color: var(--muted); }
.footer-copy a { color: #5b9cf6; text-decoration: none; transition: color .2s; }
.footer-copy a:hover { color: #93c4ff; text-decoration: underline; }

/* ── TAGS ── */
.tag {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase;
  padding: .22rem .65rem; border-radius: 2px;
}
.tag-Meet        { background: rgba(201,168,76,.15); color: var(--gold); }
.tag-Announcement{ background: rgba(26,100,200,.25);  color: #7ab4ff; }
.tag-Update      { background: rgba(80,200,130,.12);  color: #6ed9a0; }
.tag-Information { background: rgba(180,100,220,.18); color: #d4a0ff; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.6rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: .85rem;
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer;
  border-radius: 2px;
  transition: transform .22s, box-shadow .22s;
  position: relative; overflow: hidden;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(201,168,76,.4); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--muted); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ── KEYFRAMES ── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes floatY   { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }
@keyframes pulse-gold { 0%,100% { box-shadow:0 0 0 0 rgba(201,168,76,.5); } 50% { box-shadow:0 0 0 12px rgba(201,168,76,0); } }
@keyframes ringExpand { 0% { opacity:.45; transform:scale(.45); } 100% { opacity:0; transform:scale(1.3); } }
@keyframes arrowPulse { 0%,100% { opacity:.5; transform:translateY(0); } 50% { opacity:1; transform:translateY(6px); } }
@keyframes marqueeScroll { from { transform:translateX(0); } to { transform:translateX(-50%); } }
@keyframes rippleUp {
  0%   { opacity:.6; transform:translateX(-50%) scale(.5) translateY(60px); }
  100% { opacity:0;  transform:translateX(-50%) scale(1.4) translateY(-100px); }
}
@keyframes photoKenBurns {
  0%   { transform: scale(1)    translateX(0)   translateY(0); }
  50%  { transform: scale(1.06) translateX(-1%) translateY(-1%); }
  100% { transform: scale(1)    translateX(0)   translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  nav { padding: 0 1.2rem; }
  .nav-links a { padding: 0 .7rem; font-size: .75rem; }
  section { padding: 3.5rem 1.4rem; }
  footer { padding: 2rem 1.4rem; flex-direction: column; gap: .8rem; }
}
