/* Winston-Salem Rugby - shared design system.
   Linked by every page so they stay visually consistent. index.html also keeps
   its own inline <style> (which wins via source order); this file's only added
   contribution there is the site nav. New pages (join, faq) rely on this file
   plus a small page-specific <style> block. All paths are relative so the site
   works from any directory (web root or e.g. /dev). */

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

:root {
  --black: #0a0a0a;
  --white: #f5f0e8;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --red: #8b1a1a;
  --dark: #111;
}

html, body {
  min-height: 100%;
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  position: relative;
}

/* Shared backdrop: subtle gold corner glow. */
body::after {
  content: '';
  position: fixed;
  bottom: 0; right: 0;
  width: 280px; height: 280px;
  background: radial-gradient(circle at bottom right, rgba(201,168,76,0.12) 0%, transparent 70%);
  z-index: 0;
}

/* ---------------- Site nav ---------------- */
/* Left-aligned and in-flow so it never collides with the fixed Instagram
   badge that sits top-right on the home page. */
.site-nav {
  position: relative;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 5%;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 17px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.site-nav .brand {
  color: var(--white);
  text-decoration: none;
  font-size: 21px;
  letter-spacing: 0.08em;
  margin-right: 6px;
}
.site-nav .brand span { color: var(--gold); }
.site-nav a.navlink {
  color: rgba(245,240,232,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a.navlink:hover { color: var(--gold); }
.site-nav a.navlink.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 1px;
}

/* ---------------- Page content wrapper ---------------- */
.content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  padding: 24px 5% 120px 5%;
  animation: fadeUp 1s ease both;
}

.page-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 5px 14px;
  margin-bottom: 16px;
}
.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 10px;
}
.page-title .accent { color: var(--gold); }
.page-intro {
  font-size: 16px;
  letter-spacing: 0.03em;
  color: rgba(245,240,232,0.78);
  max-width: 620px;
  line-height: 1.5;
  margin-bottom: 8px;
}
.page-intro a { color: var(--gold); text-decoration: none; border-bottom: 1px dashed rgba(201,168,76,0.5); }
.page-intro a:hover { border-bottom-color: var(--gold); }

.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 22px 0 28px 0;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--black);
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: var(--gold-light); transform: translateX(2px); }
.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-ghost:hover { background: rgba(201,168,76,0.12); color: var(--gold-light); }

/* ---------------- Forms (intake) ---------------- */
.form-card {
  margin-top: 8px;
  padding: 26px 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.25);
  border-left: 4px solid var(--gold);
  max-width: 640px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}
.form-section {
  grid-column: 1 / -1;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 19px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 16px 0 -2px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(201,168,76,0.25);
}
.form-section:first-child { margin-top: 0; }
.form-section .opt { color: rgba(245,240,232,0.5); font-size: 14px; letter-spacing: 0.06em; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.field label .req { color: var(--red); margin-left: 3px; }
.field input,
.field select,
.field textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.25s;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold); }
.field input::placeholder,
.field textarea::placeholder { color: rgba(245,240,232,0.3); }
.field textarea { resize: vertical; min-height: 90px; }
.field select option { color: #000; }

.consent-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(245,240,232,0.85);
}
.consent-row input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--gold); }

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 4px;
}
/* This link sits outside .site-nav, so the nav's link color doesn't reach it;
   give it a readable gold (otherwise it falls back to the browser's blue/purple
   link defaults, which are hard to read on black). */
.form-actions a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
.form-actions a:hover { color: var(--gold-light); }

.form-note {
  grid-column: 1 / -1;
  font-size: 13px;
  letter-spacing: 0.03em;
  line-height: 1.45;
  color: rgba(245,240,232,0.55);
  border-top: 1px solid rgba(201,168,76,0.15);
  padding-top: 14px;
}

.form-status {
  font-size: 15px;
  letter-spacing: 0.04em;
  margin: 18px 0 0 0;
  min-height: 20px;
}
.form-status.success { color: var(--gold-light); }
.form-status.error { color: var(--red); }

/* Success / next-steps panel revealed after a good submission. */
.next-steps {
  display: none;
  margin-top: 22px;
  padding: 22px 24px;
  background: rgba(201,168,76,0.08);
  border: 1px solid var(--gold);
  border-left: 4px solid var(--gold);
  max-width: 640px;
}
.next-steps h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 10px;
}
.next-steps p { font-size: 15px; line-height: 1.55; color: rgba(245,240,232,0.85); margin-bottom: 12px; }

/* ---------------- FAQ ---------------- */
.faq-section {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 36px 0 4px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(201,168,76,0.4);
}
.faq-section:first-of-type { margin-top: 12px; }
.faq-item {
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  position: relative;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.03em;
  color: var(--white);
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold); }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  color: var(--gold);
  line-height: 1;
}
.faq-item[open] summary::after { content: '\2013'; }
.faq-item[open] summary { color: var(--gold); }
.faq-answer {
  padding: 0 40px 20px 0;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: rgba(245,240,232,0.82);
}
.faq-answer a { color: var(--gold); text-decoration: none; border-bottom: 1px dashed rgba(201,168,76,0.5); }
.faq-answer a:hover { border-bottom-color: var(--gold); }
.faq-answer strong { color: var(--white); font-weight: 600; }
.faq-answer p { margin: 0 0 11px; }
.faq-answer ol,
.faq-answer ul { margin: 4px 0 6px; padding-left: 22px; }
.faq-answer li { margin-bottom: 8px; padding-left: 4px; }
.faq-answer li::marker { color: var(--gold); font-weight: 600; }
.faq-answer > :last-child { margin-bottom: 0; }

/* ---------------- Bottom bar ---------------- */
.bottom-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5%;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(201,168,76,0.15);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.28);
}
.bottom-bar a {
  color: rgba(245,240,232,0.65);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.bottom-bar a:hover { color: var(--gold); }
.bottom-bar a svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------------- Animations ---------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------------- Mobile ---------------- */
@media (max-width: 700px) {
  .site-nav { gap: 16px; padding: 12px 5%; font-size: 15px; padding-right: 56px; }
  .site-nav .brand { font-size: 18px; }
  .content { padding: 16px 5% 90px 5%; }
  .form-card { padding: 20px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
