/* Lextham Relay Volleyball Club
   Brand: dark navy + white, volt accent for buttons/highlights only.
   Headings: Oswald (uppercase, condensed). Body: Inter. */
:root {
  --navy: #0b1f3a;
  --ink: #08142a;          /* darkest sections, footer */
  --navy-2: #13294b;       /* raised surfaces on dark */
  --volt: #d4ff3f;         /* accent: buttons, highlighted words, badges */
  --white: #ffffff;
  --paper: #eef1f5;        /* light alternating sections */
  --text: #0b1f3a;
  --muted: #5a6b85;
  --line: #d6dde8;
  --line-dark: rgba(255,255,255,.14);
  --radius: 14px;
  --max: 1180px;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  font-size: 1rem;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3 {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: .005em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h3 { font-size: 1.35rem; font-weight: 500; }
.hl { color: var(--volt); }
.section-light .hl, .section-paper .hl { color: var(--navy); background: var(--volt); padding: 0 .15em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .container { padding: 0 28px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-volt { background: var(--volt); color: var(--ink); }
.btn-volt:hover { background: #e3ff7a; }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ink);
  color: var(--white);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand span { font-family: var(--display); text-transform: uppercase; font-size: 1.25rem; letter-spacing: .03em; line-height: 1.05; }
.brand small { display: block; white-space: nowrap; font-family: var(--body); text-transform: uppercase; font-size: .66rem; letter-spacing: .14em; opacity: .7; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.site-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 8px 11px;
  font-size: .9rem;
  font-weight: 500;
  opacity: .82;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { opacity: 1; }
.site-nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--volt); }
.site-nav .nav-cta a { opacity: 1; border: 0; margin-left: 8px; padding: 9px 18px; font-size: .9rem; color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.4);
  color: var(--white);
  border-radius: 999px;
  padding: 7px 16px;
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}
@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--ink); padding: 8px 16px 20px; border-top: 1px solid var(--line-dark); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line-dark); }
  .site-nav .nav-cta a { margin: 12px 0 0; text-align: center; justify-content: center; }
}

/* ---------- Photo slots ----------
   Any element with .photo shows navy art until a photo is set:
   style="--photo: url(images/hero.jpg)"                                  */
.photo {
  position: relative;
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, rgba(8,20,42,.92) 0%, rgba(8,20,42,.55) 55%, rgba(8,20,42,.25) 100%),
    var(--photo, radial-gradient(circle at 78% 30%, #1d3a6b 0%, var(--navy) 45%, var(--ink) 100%));
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.photo-art {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(58vw, 640px);
  opacity: .9;
  pointer-events: none;
}
@media (max-width: 700px) {
  .photo-art { opacity: .3; width: 90vw; right: -30%; }
  .brand small { font-size: .58rem; letter-spacing: .08em; }
}

/* ---------- Hero ---------- */
.hero { color: var(--white); padding: 96px 0 88px; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 11ch; }
.hero .lead { font-size: 1.12rem; max-width: 520px; opacity: .88; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--white);
}
.chip-volt { background: var(--volt); color: var(--ink); border-color: var(--volt); }
.eyebrow {
  display: inline-block;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .9rem;
  color: var(--volt);
  margin-bottom: 14px;
}
.section-light .eyebrow, .section-paper .eyebrow { color: var(--muted); }

.page-hero { padding: 72px 0 60px; }
.page-hero h1 { max-width: none; font-size: clamp(2.4rem, 6vw, 4.2rem); }
.page-hero .lead a { color: var(--volt); }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-light { background: var(--white); }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-dark a:not(.btn), .section-navy a:not(.btn) { color: var(--white); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2 { margin: 0; max-width: 16ch; }
.section-head p { max-width: 420px; margin: 0; color: var(--muted); }
.section-dark .section-head p { color: rgba(255,255,255,.7); }

/* Stats row */
.stats { display: grid; gap: 28px; grid-template-columns: 1.3fr repeat(3, 1fr); align-items: start; }
.stats h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.stat strong { display: block; font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 500; line-height: 1; margin-bottom: 8px; }
.stat span { display: block; font-weight: 600; margin-bottom: 4px; }
.stat p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stats > :first-child { grid-column: 1 / -1; } }

/* Feature rows (dark section, numbered list) */
.split { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.rows li:first-child { border-top: 1px solid var(--line-dark); }
.rows .num { font-family: var(--display); color: var(--volt); font-size: 1.4rem; grid-row: span 2; }
.rows h3 { margin: 0; }
.rows p { margin: 0; color: rgba(255,255,255,.72); }
.panel {
  border-radius: var(--radius);
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  color: var(--white);
}
.panel .photo-art { width: 90%; right: -18%; }
.panel blockquote { position: relative; z-index: 1; margin: 0; font-family: var(--display); text-transform: uppercase; font-size: 1.6rem; line-height: 1.2; max-width: 16ch; }

/* Program cards with photo backgrounds */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }
.pcard {
  border-radius: var(--radius);
  min-height: 340px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  color: var(--white);
  text-decoration: none;
}
.pcard.photo { background-image: linear-gradient(180deg, rgba(8,20,42,.1) 0%, rgba(8,20,42,.88) 100%), var(--photo, linear-gradient(160deg, #1d3a6b, var(--ink))); }
.pcard .icon { position: absolute; top: 22px; left: 22px; width: 46px; height: 46px; color: var(--volt); }
.pcard h3 { position: relative; font-size: 1.5rem; margin-bottom: 6px; }
.pcard p { position: relative; font-size: .92rem; opacity: .82; margin-bottom: 16px; }
.pcard .btn { position: relative; width: 100%; justify-content: center; padding: 10px; font-size: .88rem; }
.pcard:hover .btn { background: var(--volt); color: var(--ink); border-color: var(--volt); }

/* Generic cards (inner pages) */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { color: var(--navy); }
.card ul { margin: 0; padding-left: 1.1em; }
.section-paper .card { border-color: transparent; }
.section-dark .card, .section-navy .card { background: var(--navy-2); border-color: var(--line-dark); color: var(--white); }
.section-dark .card h3, .section-navy .card h3 { color: var(--white); }

/* CTA band */
.cta-band { background: var(--volt); color: var(--ink); padding: 64px 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; max-width: 18ch; }
.cta-band p { margin: 8px 0 0; max-width: 520px; }

/* TBD marker: quiet, not alarming */
.tbd {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  background: var(--paper);
  border-radius: 999px;
  padding: 2px 9px;
  vertical-align: middle;
}
.section-dark .tbd, .section-navy .tbd, .hero .tbd { background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 1em; }
table { width: 100%; border-collapse: collapse; background: var(--white); }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { background: var(--ink); color: var(--white); font-family: var(--display); text-transform: uppercase; font-weight: 500; letter-spacing: .04em; }
tbody th, table > tr > th, th[scope="row"] { background: var(--paper); color: var(--navy); font-weight: 600; width: 32%; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
details summary {
  font-weight: 600;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--navy); }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); max-width: 70ch; }
details p a { color: var(--navy); }

/* Forms */
form { display: grid; gap: 16px; max-width: 580px; }
label { font-weight: 600; display: grid; gap: 6px; font-size: .95rem; }
input, select, textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 100%;
  background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
form .btn { justify-self: start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); padding: 72px 0 0; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }
.footer-top .tagline { color: var(--white); font-family: var(--display); text-transform: uppercase; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.2; margin: 0 0 16px; }
.footer-top h4 { font-family: var(--display); text-transform: uppercase; font-weight: 500; letter-spacing: .06em; margin: 0 0 14px; font-size: 1rem; }
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top li { margin-bottom: 8px; }
.footer-top a, .footer-top p { color: rgba(255,255,255,.72); text-decoration: none; font-size: .92rem; }
.footer-top a:hover { color: var(--volt); }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 20px 0; font-size: .82rem; color: rgba(255,255,255,.55); }
.wordmark {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(5rem, 22vw, 17rem);
  line-height: .78;
  letter-spacing: .01em;
  color: rgba(212,255,63,.10);
  white-space: nowrap;
  text-align: center;
  margin-bottom: -.06em;
  user-select: none;
}

/* Four-State Transition Framework diagram */
.panel-center { align-items: center; justify-content: center; }
.panel-center .photo-art { opacity: .35; }
.cycle { position: relative; z-index: 1; width: 100%; max-width: 400px; height: auto; }
.muted-dark { color: rgba(255,255,255,.75); max-width: 56ch; }
