/* Mid-Atlantic Futsal Circuit — site styles */

:root {
  --navy: #0a1a2f;
  --navy-600: #19589c;
  --accent: #19589c;
  --accent-dark: #12406f;
  --gold: #c8a44c;
  --gold-dark: #a9862f;
  --court: #dbe7f5;
  --line: #c6d5e6;
  --mist: #f4f8fc;
  --paper: #ffffff;
  --ink: #132132;
  --muted: #5c6f85;

  --wrap: 1140px;
  --gutter: 24px;
  --radius: 4px;
  --shadow: 0 18px 40px -24px rgba(10, 34, 64, 0.45);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 86px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Archivo", "Public Sans", sans-serif;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 800;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; max-width: 68ch; }
a { color: var(--navy); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 18px;
}
.skip:focus { left: 12px; top: 12px; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.02rem;
  color: var(--navy); letter-spacing: -0.01em;
}
.brand-sub { font-size: .76rem; color: var(--muted); letter-spacing: .04em; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 9px 12px; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { display: block; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-weight: 600; font-size: .96rem; text-decoration: none; color: var(--navy);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a:focus-visible { border-bottom-color: var(--gold); }
.nav .btn { border-bottom: none; }

.btn {
  display: inline-block; font-family: "Archivo", sans-serif; font-weight: 700;
  font-size: .95rem; padding: 12px 22px; border-radius: var(--radius);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }

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

.hero {
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--mist) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px;
  align-items: center; padding-block: clamp(48px, 7vw, 92px);
}
.hero h1 { margin-bottom: .34em; }
.hero-lead { font-size: 1.16rem; color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-figure { position: relative; }
.hero-figure img { width: 100%; border-radius: 8px; box-shadow: var(--shadow); }
.hero-crest {
  position: absolute; width: 132px; height: 132px; right: -14px; bottom: -26px;
  background: #fff; border-radius: 50%; padding: 10px;
  box-shadow: 0 10px 28px -12px rgba(10, 34, 64, .5);
}
.hero-crest img { box-shadow: none; }

.states {
  display: flex; flex-wrap: wrap; gap: 10px 8px; margin-top: 30px;
  padding: 0; list-style: none;
}
.states li {
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: .82rem;
  color: var(--navy-600); border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 5px 13px;
}

/* ---------- Alliance band ---------- */

.alliance {
  background: var(--navy);
  color: #d7e2ee;
  border-bottom: 3px solid var(--gold);
}
.alliance-inner {
  display: grid; grid-template-columns: auto 1fr; gap: 14px 36px;
  align-items: center; padding-block: 26px;
}
.alliance-mark {
  margin: 0; font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: 1.04rem; color: #fff; line-height: 1.3;
  border-left: 4px solid var(--gold); padding-left: 16px;
}
.alliance-copy { margin: 0; font-size: .97rem; max-width: 70ch; }
.alliance-copy a { color: #fff; font-weight: 600; text-decoration-color: var(--gold); }
.alliance-copy a:hover { text-decoration-color: #fff; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(56px, 7vw, 96px); }
.section-mist { background: var(--mist); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

.mission {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start;
}
.mission-statement {
  border-left: 5px solid var(--gold); padding: 4px 0 4px 26px; margin: 0 0 32px;
}
.mission-statement p {
  font-family: "Archivo", sans-serif; font-weight: 600; font-size: clamp(1.25rem, 2.3vw, 1.6rem);
  line-height: 1.38; color: var(--navy); letter-spacing: -0.015em; margin: 0;
}
.mission-figure img { border-radius: 8px; box-shadow: var(--shadow); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 8px; background: var(--line); }
.pillars > div { background: var(--paper); padding: 28px 26px; }
.pillars h3 { margin-bottom: .45em; }
.pillars p { color: var(--muted); font-size: .98rem; margin: 0; }
.section-mist .pillars > div { background: var(--mist); }

/* ---------- Clubs ---------- */

.clubs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.club {
  display: flex; gap: 22px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 26px;
}
.club-crest {
  flex: 0 0 104px; width: 104px; height: 104px;
  display: grid; place-items: center;
}
.club-crest img { max-height: 104px; width: auto; }
.club h3 { margin-bottom: .2em; }
.club p { margin: 0; color: var(--muted); font-size: .96rem; }
.club .division {
  display: inline-block; margin-top: 10px; font-family: "Archivo", sans-serif;
  font-weight: 700; font-size: .78rem; color: var(--navy);
  background: var(--court); border-radius: 999px; padding: 4px 12px;
}
.clubs-note { margin-top: 28px; color: var(--muted); }
.events-note { margin-top: 32px; color: var(--muted); }

/* ---------- Events ---------- */

.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 44px; }
.event-card { border: 1px solid var(--line); border-radius: 8px; padding: 26px; background: var(--paper); }
.event-card .when {
  font-family: "Archivo", sans-serif; font-weight: 700; color: var(--accent);
  font-size: .9rem; margin-bottom: 8px;
}
.event-card p { margin: 0; color: var(--muted); font-size: .97rem; }

.table-scroll { overflow-x: auto; }
table.schedule { width: 100%; border-collapse: collapse; min-width: 620px; background: var(--paper); }
table.schedule caption { text-align: left; color: var(--muted); font-size: .95rem; padding-bottom: 14px; }
table.schedule th, table.schedule td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
table.schedule thead th {
  font-family: "Archivo", sans-serif; font-size: .82rem; color: #fff;
  background: var(--navy); border-bottom: none; font-weight: 700;
}
table.schedule tbody tr:nth-child(even) { background: var(--mist); }
table.schedule td:first-child { font-family: "Archivo", sans-serif; font-weight: 700; color: var(--navy); white-space: nowrap; }

/* ---------- Form ---------- */

.join { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.join-aside p { color: var(--muted); }
.join-aside ul { padding-left: 20px; color: var(--muted); margin: 0 0 1em; }
.join-aside li { margin-bottom: .45em; }

form.inquiry { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 32px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: .94rem; margin-bottom: 7px; color: var(--navy); }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }
.field textarea { min-height: 128px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .88rem; color: var(--muted); margin: 16px 0 0; }

.alert { border-radius: var(--radius); padding: 16px 18px; margin-bottom: 26px; font-size: .97rem; }
.alert-ok { background: #e8f3ec; border: 1px solid #b7d8c4; color: #16502f; }
.alert-err { background: #fdecec; border: 1px solid #f0bcbc; color: #7d1316; }
.alert ul { margin: 8px 0 0; padding-left: 20px; }

/* ---------- Contact + footer ---------- */

.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.contact h3 { margin-bottom: .3em; }
.contact p { color: var(--muted); margin: 0; }

.site-footer { background: var(--navy); color: #cdd9e6; padding-block: 44px; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 54px; height: 54px; object-fit: contain; }
.footer-brand strong { color: #fff; font-family: "Archivo", sans-serif; display: block; }
.site-footer small { font-size: .86rem; }

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

@media (max-width: 960px) {
  .hero-inner, .mission, .join { grid-template-columns: 1fr; gap: 40px; }
  .alliance-inner { grid-template-columns: 1fr; gap: 12px; }
  .pillars, .event-grid, .contact { grid-template-columns: 1fr; }
  .pillars { gap: 1px; }
  .clubs { grid-template-columns: 1fr; }
  .hero-crest { width: 100px; height: 100px; right: 8px; bottom: -18px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; text-align: center; }
  .site-header { position: relative; }
  .header-inner { position: relative; }
  .field-row { grid-template-columns: 1fr; }
  form.inquiry { padding: 24px 20px; }
  body { font-size: 16px; }
}
