/* ============================================================
   Paddles with Purpose — Stylesheet
   Theme: black background, white type, two accent colors —
   blue (primary: buttons, links, borders) and teal (secondary:
   gradients, glows, and the second paddle in the logo).
   Edit the CSS variables below to retheme the entire site.
   ============================================================ */

:root {
  /* --- Primary accent: blue (interactive elements) --- */
  --color-blue: #3b82f6;
  --color-blue-dark: #1e3a8a;
  --color-blue-light: #60a5fa;
  --color-blue-tint: rgba(59, 130, 246, 0.14);   /* translucent blue wash for chips/hovers */
  --color-blue-glow: rgba(59, 130, 246, 0.35);   /* used in glow shadows */

  /* --- Secondary accent: teal (gradients, glows, logo) --- */
  --color-teal: #3fd0d9;
  --color-teal-dark: #145b62;
  --color-teal-light: #8ce9ef;
  --color-teal-tint: rgba(63, 208, 217, 0.14);
  --color-teal-glow: rgba(63, 208, 217, 0.35);

  --color-black: #000000;
  --color-white: #ffffff;

  /* Text hierarchy (light-on-dark) */
  --color-gray-900: #f5f5f4;   /* primary body text — near white */
  --color-gray-700: #b9b8b4;   /* secondary text */
  --color-gray-500: #8f8e8a;   /* muted / labels */
  --color-gray-300: #2e2e2c;   /* borders, hairlines */
  --color-gray-100: #181816;   /* subtle surfaces / dividers */

  /* Backgrounds */
  --color-bg: #050505;         /* page background — near-black */
  --color-bg-alt: #0c0c0b;     /* alternating section background */
  --color-surface: #121211;    /* card / panel background */
  --color-surface-alt: #191917;/* slightly raised surface (hover, inputs) */

  /* --- Type & spacing --- */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;

  /* Shadows double as "glow" accents since flat black shadows don't read on a black bg */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.06);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 28px rgba(59, 130, 246, 0.16);
  --max-width: 1160px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-gray-900);
  background-color: var(--color-bg);
  /* Faint ambient blue glows for depth — purely decorative, no layout impact */
  background-image:
    radial-gradient(circle at 12% 0%, rgba(59, 130, 246, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 88% 15%, rgba(59, 130, 246, 0.07) 0%, transparent 42%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--color-blue-glow); color: #fff; }

/* Dark-themed scrollbar (WebKit browsers) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-gray-300); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-blue); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }
@media (max-width: 640px) {
  section { padding: 56px 0; }
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { color: var(--color-gray-700); }

/* Small label with a signature blue dash — reused above most section titles */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-blue-light);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  display: inline-block;
  border-radius: 2px;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.section-header p { margin-top: 14px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
  box-shadow: 0 4px 20px var(--color-blue-glow);
}
.btn-primary:hover { background: var(--color-blue-light); box-shadow: 0 6px 28px rgba(59, 130, 246, 0.5); }

/* "Dark" button = neutral gray solid. True black would vanish on a black page,
   so this is a raised charcoal surface instead — kept the original class name
   so markup didn't need to change. */
.btn-dark {
  background: var(--color-surface-alt);
  color: var(--color-white);
  border-color: var(--color-gray-300);
}
.btn-dark:hover { background: #1c1f27; border-color: var(--color-blue); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); }

.btn-outline-blue {
  background: transparent;
  color: var(--color-blue-light);
  border-color: var(--color-blue);
}
.btn-outline-blue:hover { background: var(--color-blue-tint); }

.btn-block { width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 6, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-white);
}
.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.4));
}
.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--color-gray-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-gray-700);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--color-blue-tint); color: var(--color-blue-light); }
.nav-links a.active { color: var(--color-blue-light); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
}

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-gray-300);
    padding: 12px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin-left: 0; margin-top: 4px; text-align: center; }
}

/* ---------- Hero ---------- */
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #000000 0%, var(--color-blue-dark) 130%);
  color: var(--color-white);
}
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 15%, rgba(140, 233, 239, 0.28), transparent 55%);
  pointer-events: none;
}
.hero > .container,
.page-hero > .container { position: relative; z-index: 1; }

.hero { padding: 100px 0 90px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--color-white); }
.hero .eyebrow { color: var(--color-blue-light); }
.hero p.lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.15rem;
  margin: 20px 0 32px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}

/* Small page header for interior pages */
.page-hero { padding: 70px 0; text-align: center; }
.page-hero h1 { color: var(--color-white); }
.page-hero p { color: rgba(255, 255, 255, 0.78); max-width: 620px; margin: 14px auto 0; font-size: 1.05rem; }

/* ---------- Stats ---------- */
.stats {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-gray-300);
  border-bottom: 1px solid var(--color-gray-300);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  /* Gradient-filled number — blends both accent colors */
  background: linear-gradient(90deg, var(--color-teal-light), var(--color-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--color-blue);
  -webkit-text-fill-color: transparent;
}
.stat-label {
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--color-gray-500);
  font-weight: 600;
}
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
}

/* ---------- Cards / Grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: rgba(59, 130, 246, 0.4); transform: translateY(-3px); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-blue-tint);
  color: var(--color-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; display: block; }
.card h3 { margin-bottom: 10px; }

/* Placeholder image block — swap for a real <img> later */
.img-placeholder {
  background: repeating-linear-gradient(
    45deg,
    var(--color-surface),
    var(--color-surface) 12px,
    var(--color-surface-alt) 12px,
    var(--color-surface-alt) 24px
  );
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-500);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 16px;
  min-height: 160px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-teal-dark) 100%);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.18);
}
.cta-band h2 { color: var(--color-white); }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 560px; margin: 12px auto 28px; }
.cta-band .btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Alternate CTA treatment for use on already-dark sections — a bordered
   charcoal panel with a blue glow, instead of a solid color block. */
.cta-band-alt {
  background: linear-gradient(135deg, #0b1220 0%, #11151d 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 50px rgba(59, 130, 246, 0.12);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg-alt);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 28px;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-grid h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a:hover { color: var(--color-blue-light); }
.footer-brand p { color: rgba(255, 255, 255, 0.55); margin-top: 12px; max-width: 280px; font-size: 0.92rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-gray-300);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  padding: 36px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: var(--color-gray-900);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--color-gray-300);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.98rem;
  background: var(--color-surface-alt);
  color: var(--color-gray-900);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-gray-500); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}
.form-group input:disabled,
.form-group textarea:disabled,
.form-group select:disabled {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-gray-500);
  cursor: not-allowed;
  opacity: 1;
}
.form-note { font-size: 0.85rem; color: var(--color-gray-500); margin-top: 6px; }
.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  display: none;
}
.form-status.success {
  display: block;
  background: var(--color-blue-tint);
  color: var(--color-blue-light);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

/* ---------- Badges / tags ---------- */
.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge-blue { background: var(--color-blue-tint); color: var(--color-blue-light); border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-black { background: var(--color-surface-alt); color: var(--color-gray-700); border: 1px solid var(--color-gray-300); }

/* ---------- Sponsor logo grid ---------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.logo-box {
  aspect-ratio: 3/2;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-500);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  padding: 12px;
  transition: border-color 0.15s ease;
}
.logo-box:hover { border-color: rgba(59, 130, 246, 0.4); }
@media (max-width: 720px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Sponsor tier cards get a highlighted variant for the featured tier */
.tier-featured {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 1px var(--color-blue) inset, var(--shadow-md);
}

/* ---------- Gallery grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 18px;
  grid-auto-flow: dense; /* backfills gaps left by tall/wide spans at narrower widths */
}
.gallery-grid .img-placeholder { height: 100%; min-height: 0; border-radius: var(--radius); }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }

/* Photo tile — used in the gallery grid and for inline page photos */
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-gray-300);
  background: var(--color-surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(59, 130, 246, 0.4);
}
/* Inside the mosaic, tiles stretch to fill their grid cell */
.gallery-grid .gallery-item { height: 100%; }

/* Circular team headshot */
.headshot {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  max-width: 140px;
  min-height: 0; /* beats .img-placeholder's 160px so empty slots stay circular */
  margin: 0 auto 18px;
}
.headshot:hover { transform: none; } /* keep avatars still; the card itself lifts */

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery-grid .wide { grid-column: span 2; }
  .gallery-grid .tall { grid-row: span 1; }
}

/* ---------- Event cards ---------- */
.event-card {
  background: var(--color-surface);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.event-card:hover { box-shadow: var(--shadow-md); border-color: rgba(59, 130, 246, 0.4); transform: translateY(-3px); }
.event-card .event-photo {
  aspect-ratio: 16/9;
}
.event-card .event-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.event-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 18px;
  font-size: 0.92rem;
  color: var(--color-gray-700);
}
.event-meta span { display: flex; align-items: center; gap: 8px; }
.event-meta strong { color: var(--color-white); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), transparent);
  margin: 0;
  border: none;
}

.alt-bg { background: var(--color-bg-alt); }

/* Placeholder text highlight — helps you spot what to replace.
   Dashed blue outline + italic keeps it distinct from real copy
   without introducing a color outside the blue/black/gray palette. */
.placeholder-text {
  background: rgba(59, 130, 246, 0.10);
  color: var(--color-blue-light);
  border: 1px dashed rgba(59, 130, 246, 0.5);
  padding: 1px 6px;
  border-radius: 4px;
  font-style: italic;
}
