/* ==========================================================================
   For Fun FC — stylesheet
   Identity: a real football club, run for people the sport usually leaves out.
   Palette: pitch green, chalk white, floodlight gold, sky teal.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --ink: #17281f;
  --ink-soft: #44584c;
  --green: #2e7d46;
  --green-dark: #1f5a34;
  --gold: #ffb627;
  --teal: #3aa6b9;
  --tint: #eaf4e9;
  --tint-warm: #fff6e4;
  --line: #d9e6dc;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(23, 40, 31, 0.08);
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  color: var(--green-dark);
}

p {
  margin: 0 0 1em 0;
}

a {
  color: var(--green-dark);
}

img, svg {
  display: block;
  max-width: 100%;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

/* ---------------- Header / nav ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green-dark);
  letter-spacing: 0.01em;
}

.crest {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  background: var(--tint);
  color: var(--green-dark);
}

.nav-links a[aria-current="page"] {
  background: var(--green);
  color: #fff;
}

/* ---------------- Hero ---------------- */

.hero {
  padding: 64px 0 40px;
  background: linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--tint-warm);
  border: 1px solid var(--gold);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 18px;
}

.hero h1 .accent {
  color: var(--gold);
  -webkit-text-stroke: 1.5px var(--green-dark);
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-ghost {
  background: transparent;
  border-color: var(--green);
  color: var(--green-dark);
}

.btn-ghost:hover {
  background: var(--tint);
}

/* Lineup card — the hero's signature graphic */

.lineup-card {
  background: var(--green-dark);
  border-radius: var(--radius);
  padding: 22px 22px 16px;
  color: #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.lineup-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px,
    transparent 40px
  );
  pointer-events: none;
}

.lineup-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  position: relative;
}

.lineup-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.lineup-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
}

.lineup-list li:first-child {
  border-top: none;
}

.lineup-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal);
  width: 1.6em;
  flex-shrink: 0;
}

/* ---------------- Scoreboard ticker ---------------- */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  overflow: hidden;
  padding: 12px 0;
}

.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-track span {
  color: var(--tint);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.ticker-track span::after {
  content: "•";
  color: var(--gold);
  margin-left: 48px;
}

/* ---------------- Section basics ---------------- */

section {
  padding: 72px 0;
}

.section-head {
  max-width: 60ch;
  margin-bottom: 40px;
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--ink-soft);
  margin: 0;
}

/* ---------------- About ---------------- */

.about {
  background: var(--bg);
}

.about-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.about-copy p {
  color: var(--ink-soft);
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.values li {
  background: var(--tint);
  border: 1px solid var(--line);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 999px;
}

.roster-card {
  background: var(--tint-warm);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px;
}

.roster-card h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.roster-card ol {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink-soft);
}

.roster-card li {
  margin-bottom: 10px;
}

/* ---------------- What we do ---------------- */

.programs {
  background: var(--tint);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.program-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--line);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.program-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.program-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
}

.program-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.program-card p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.97rem;
}

/* ---------------- Contact ---------------- */

.contact {
  background: var(--bg);
}

.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  background: var(--green-dark);
  border-radius: var(--radius);
  padding: 44px;
  color: #fff;
}

.contact-info h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 14px;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  word-break: break-all;
}

.contact-email:hover {
  background: rgba(255, 255, 255, 0.18);
}

.contact-form {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 26px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--ink);
  background: #fcfdfc;
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  font-size: 0.83rem;
  color: var(--ink-soft);
  margin: 10px 0 0;
}

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--green-dark);
}

/* ---------------- Volunteering placeholder page ---------------- */

.page-hero {
  padding: 56px 0 36px;
  background: linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.1rem);
  margin-bottom: 14px;
}

.page-hero p {
  color: var(--ink-soft);
  max-width: 56ch;
  font-size: 1.08rem;
}

.placeholder-block {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  color: var(--ink-soft);
  background: var(--tint);
}

.placeholder-block h3 {
  color: var(--green-dark);
  margin-bottom: 8px;
}

.placeholder-block p {
  margin: 0 auto;
  max-width: 46ch;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.placeholder-card {
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 24px 18px;
  min-height: 120px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 860px) {
  .hero-inner,
  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .placeholder-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .contact-inner {
    padding: 28px 20px;
  }
}
