/* ============================================================
   NDCC — National Deaf Cheer Competition
   Design System · styles.css  v2
   Brand: Red #C8202E · Blue #1A3A9C · Navy #0D1B3E · White
   Primary Font: Varela Round (self-hosted)
   Display Font: Anton (headlines only)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

@font-face {
  font-family: 'Varela Round';
  src: url('../fonts/VarelaRound-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul   { list-style: none; }

/* ── Tokens ── */
:root {
  --red:      #C8202E;
  --red-dark: #A0181E;
  --blue:     #1A3A9C;
  --blue-dk:  #122D80;
  --navy:     #0D1B3E;
  --navy-lt:  #132249;
  --white:    #FFFFFF;
  --off:      #F4F5F8;
  --muted:    rgba(255,255,255,0.45);
  --faint:    rgba(255,255,255,0.05);
  --border:   rgba(255,255,255,0.10);

  /* Varela Round is the primary font throughout */
  --font-primary:  'Varela Round', sans-serif;
  /* Anton only for large display numbers / hero titles */
  --font-display:  'Anton', sans-serif;

  --max-w: 1120px;
  --nav-h: 72px;
  --radius: 8px;
  --radius-lg: 14px;
  --transition: 0.22s ease;
}

/* ── Base ── */
body {
  font-family: var(--font-primary);
  background: var(--navy);
  color: var(--white);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  letter-spacing: 1px;
  line-height: 1;
}
h1 { font-size: clamp(52px, 8vw, 80px); }
h2 { font-size: clamp(30px, 5vw, 46px); }
h3 { font-size: clamp(20px, 3vw, 28px); }
h4 { font-size: 18px; }
p  { color: rgba(255,255,255,0.68); line-height: 1.75; }

/* Varela Round used for nav, labels, buttons, body prose */
.label {
  font-family: var(--font-primary);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.label::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--red);
  display: block;
  flex-shrink: 0;
}

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 36px; }
.section    { padding: 88px 0; }
.section--sm { padding: 52px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  font-family: var(--font-primary);
  font-size: 13px;
  letter-spacing: 1px;
  border-radius: var(--radius);
  border: none;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--red     { background: var(--red);  color: var(--white); }
.btn--red:hover { background: var(--red-dark); }
.btn--blue    { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-dk); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.28);
}
.btn--outline:hover { border-color: var(--white); }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13,27,62,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
/* Logo only — no wordmark text */
.nav__brand { display: flex; align-items: center; }
.nav__logo  { height: 50px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-family: var(--font-primary);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 400;
  transition: color var(--transition);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--transition);
}
.nav__links a:hover,
.nav__links a.active { color: var(--white); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav__cta {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  font-family: var(--font-primary);
  font-size: 13px;
  letter-spacing: 1px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.nav__cta:hover { background: var(--red-dark); transform: translateY(-1px); }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__mobile {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--navy-lt);
  border-bottom: 1px solid var(--border);
  padding: 24px 36px;
  flex-direction: column;
  gap: 18px;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: var(--font-primary);
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--muted);
  transition: color var(--transition);
}
.nav__mobile a:hover, .nav__mobile a.active { color: var(--white); }

/* ── Ticker ── */
.ticker {
  background: var(--blue);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker__track {
  display: inline-flex;
  gap: 56px;
  animation: ticker 28s linear infinite;
}
.ticker__item {
  font-family: var(--font-primary);
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.90);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.ticker__dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  flex-shrink: 0;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0;
}
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 64px),
    repeating-linear-gradient(0deg,  rgba(255,255,255,0.018) 0, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 64px);
  pointer-events: none;
}
.hero__stripe {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--red);
}
.hero__logo-watermark {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.055;
  pointer-events: none;
}
.hero__logo-watermark img { height: 560px; width: auto; }
.hero__content { position: relative; z-index: 2; max-width: 620px; }
.hero__eyebrow { margin-bottom: 20px; }
.hero__title   { color: var(--white); margin-bottom: 4px; }
.hero__title span { color: var(--red); }
.hero__divider {
  width: 52px; height: 4px;
  background: var(--blue);
  margin: 22px 0;
}
.hero__desc {
  font-family: var(--font-primary);
  font-size: 16px;
  max-width: 460px;
  margin-bottom: 36px;
  color: rgba(255,255,255,0.65);
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Page Hero ── */
.page-hero {
  position: relative;
  padding: 72px 0 60px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero__bg {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg,rgba(255,255,255,0.015) 0,rgba(255,255,255,0.015) 1px,transparent 1px,transparent 64px);
  pointer-events: none;
}
.page-hero__stripe {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--red);
}
.page-hero__content { position: relative; z-index: 2; }
.page-hero__content p { font-family: var(--font-primary); }

/* ── Cards ── */
.card {
  background: var(--faint);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-3px);
}
.card--blue {
  background: rgba(26,58,156,0.10);
  border-color: rgba(26,58,156,0.28);
}

/* ── Person Card ── */
.person-card {
  background: var(--faint);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.person-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.2);
}
.person-card__photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
}
.person-card__photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--navy-lt) 0%, rgba(26,58,156,0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.person-card__initials {
  font-family: var(--font-display);
  font-size: 52px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.10);
}
.person-card__body { padding: 20px 18px; }
.person-card__name {
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 4px;
}
.person-card__title {
  font-family: var(--font-primary);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 400;
  margin-bottom: 12px;
}
.person-card__bio {
  font-family: var(--font-primary);
  font-size: 13px;
  color: rgba(255,255,255,0.48);
  line-height: 1.65;
}

/* ── Result Card ── */
.result-card {
  background: var(--faint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  position: relative;
  overflow: hidden;
  transition: background var(--transition), border-color var(--transition);
}
.result-card:hover { background: rgba(255,255,255,0.07); }
.result-card--champion {
  border-color: var(--red);
  background: rgba(200,32,46,0.08);
}
.result-card--champion::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
}
.result-rank {
  font-family: var(--font-primary);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}
.result-rank--gold   { color: #E8B84B; }
.result-rank--silver { color: #B0BAC9; }
.result-rank--bronze { color: #CD7F32; }
.result-school {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.result-team {
  font-family: var(--font-primary);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* ── Photo Grid ── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}
.photo-item {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--faint);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
}
.photo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-item:hover img { transform: scale(1.05); }
.photo-placeholder {
  width: 100%; height: 100%; min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.10);
  font-size: 32px;
}
.photo-placeholder span {
  font-family: var(--font-primary);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.14);
}
.photo-item__overlay {
  position: absolute; inset: 0;
  background: rgba(13,27,62,0.72);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  transition: opacity var(--transition);
}
.photo-item:hover .photo-item__overlay { opacity: 1; }
.photo-item__caption {
  font-family: var(--font-primary);
  font-size: 12px;
  color: var(--white);
  letter-spacing: 0.5px;
}

/* ── Divider ── */
.divider { height: 1px; background: var(--border); }

/* ── Countdown ── */
.countdown { display: flex; align-items: center; gap: 16px; }
.count-unit { text-align: center; }
.count-num {
  font-family: var(--font-display);
  font-size: 52px;
  letter-spacing: 2px;
  color: var(--white);
  line-height: 1;
  display: block;
}
.count-lbl {
  font-family: var(--font-primary);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.count-sep {
  font-family: var(--font-display);
  font-size: 44px;
  color: rgba(255,255,255,0.18);
  line-height: 1;
}

/* ── Sponsor ── */
.sponsor-logo {
  background: var(--faint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 22px;
  font-family: var(--font-primary);
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.35);
  display: inline-flex;
  align-items: center;
}
.sponsor-logo--primary {
  color: #6a8fd8;
  border-color: rgba(26,58,156,0.30);
  background: rgba(26,58,156,0.08);
}

/* ── Socials ── */
.social-links { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 18px;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  text-decoration: none;
}
.social-btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(200,32,46,0.06);
}

/* ── Footer ── */
.footer {
  background: rgba(0,0,0,0.35);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer__logo { height: 48px; width: auto; margin-bottom: 16px; }
.footer__independence {
  font-family: var(--font-primary);
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  line-height: 1.75;
  max-width: 300px;
  margin-bottom: 14px;
}
.footer__independence strong {
  color: rgba(255,255,255,0.60);
  font-weight: 400;
}
.footer__independence a { color: #6a8fd8; }
.footer__independence a:hover { color: var(--white); }
.footer__copy {
  font-family: var(--font-primary);
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  line-height: 1.6;
}
.footer__nav-title {
  font-family: var(--font-primary);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  font-weight: 400;
  margin-bottom: 14px;
}
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a {
  font-family: var(--font-primary);
  font-size: 13px;
  color: rgba(255,255,255,0.42);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--white); }
.footer__bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom-copy {
  font-family: var(--font-primary);
  font-size: 11px;
  color: rgba(255,255,255,0.20);
}

/* ── Vision Block ── */
.vision-block {
  background: rgba(26,58,156,0.10);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 24px;
  margin-bottom: 14px;
}
.vision-block .vb-tag {
  font-family: var(--font-primary);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #6a8fd8;
  font-weight: 400;
  margin-bottom: 7px;
}
.vision-block p {
  font-family: var(--font-primary);
  color: rgba(255,255,255,0.72);
  font-size: 14px;
}

/* ── History ── */
.history-year {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}
.history-year__header {
  background: var(--faint);
  border-bottom: 1px solid transparent;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background var(--transition);
  user-select: none;
}
.history-year__header:hover { background: rgba(255,255,255,0.07); }
.history-year__header.open  { border-bottom-color: var(--border); }
.history-year__title {
  font-family: var(--font-primary);
  font-size: 18px;
  color: var(--white);
  letter-spacing: 1px;
}
.history-year__body { padding: 24px; display: none; }
.history-year__body.open { display: block; }
.history-year__chevron {
  color: var(--muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.history-year__header.open .history-year__chevron { transform: rotate(180deg); }

/* ── Bylaws ── */
.bylaws-section {
  background: var(--faint);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin-bottom: 16px;
}
.bylaws-section h3 {
  font-family: var(--font-primary);
  font-size: 17px;
  color: var(--white);
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.bylaws-section p, .bylaws-section li {
  font-family: var(--font-primary);
  font-size: 14px;
  color: rgba(255,255,255,0.58);
  line-height: 1.78;
}
.bylaws-section ul, .bylaws-section ol { padding-left: 20px; }
.bylaws-section li { margin-bottom: 7px; }
.bylaws-section strong { color: rgba(255,255,255,0.82); font-weight: 400; }

/* ── Utility ── */
.text-red   { color: var(--red); }
.text-blue  { color: #6a8fd8; }
.text-muted { color: var(--muted); }
.mt-8  { margin-top:  8px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom:  8px; } .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.10s; }
.fade-up-delay-2 { transition-delay: 0.20s; }
.fade-up-delay-3 { transition-delay: 0.30s; }
.fade-up-delay-4 { transition-delay: 0.40s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .hero { min-height: auto; padding: 60px 0; }
  .hero__logo-watermark { display: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero__title { font-size: 46px; }
  .count-num { font-size: 36px; }
}
