/* ============================================================
   The Palms Youth Pickleball Club
   Palette & type per Website Content & Brand Specification 2.3
   ============================================================ */

:root {
  --navy: #16263F;        /* Deep Navy — type, headers, footers */
  --atlantic: #24405E;    /* Secondary panels, subheads */
  --brass: #B4913F;       /* Metal accent, rules, competitive tier */
  --brass-light: #E6D2A0; /* Type on navy */
  --surf: #7FA0B8;        /* Recreational tier */
  --sand: #F3ECDD;        /* Page background */
  --shell: #FBF7EF;       /* Cards, tables, form fields */
  --muted: #5C6B7E;

  --serif: "Palatino Linotype", "Book Antiqua", Palatino, "TeX Gyre Pagella", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --condensed: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  background: var(--sand);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }
a { color: var(--atlantic); }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ---- Web type scale (spec 2.3) ---- */

h1, .h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.25;
}

h2, .h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 3vw, 26px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.3;
}

.eyebrow {
  font-family: var(--condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.micro {
  font-family: var(--condensed);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Signature: brass rule with centred diamond ---- */

.rule-diamond {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto;
  max-width: 420px;
  border: 0;
}
.rule-diamond::before,
.rule-diamond::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--brass);
}
.rule-diamond span {
  width: 7px;
  height: 7px;
  background: var(--brass);
  transform: rotate(45deg);
  flex: none;
}

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

.site-header {
  background: var(--sand);
  border-bottom: 1px solid rgba(180, 145, 63, 0.45);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
}
.site-header img { height: 58px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  font-family: var(--condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--brass); }
.site-nav a.active { border-bottom-color: var(--brass); color: var(--brass); }
.site-nav a:focus-visible,
a.btn-brass:focus-visible {
  outline: 2px solid var(--atlantic);
  outline-offset: 3px;
}

.btn-brass {
  display: inline-block;
  background: var(--brass);
  color: var(--shell);
  font-family: var(--condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 26px;
}
.btn-brass:hover { background: #a3822f; color: var(--shell); }

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

.hero {
  text-align: center;
  padding: 72px 0 56px;
}
.hero img.crest {
  width: min(360px, 70vw);
  margin-bottom: 8px;
}
.hero .micro { display: block; margin: 22px 0 26px; }
.hero .rule-diamond { margin-top: 34px; }

.hero-sub {
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
  color: var(--atlantic);
}

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

.section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .eyebrow { display: block; margin-bottom: 12px; }

.prose { max-width: 720px; margin: 0 auto; }
.prose p + p { margin-top: 1.2em; }
.lede { font-size: 18px; color: var(--atlantic); }

/* ---- Cards ---- */

.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--shell);
  border: 1px solid rgba(22, 38, 63, 0.08);
  padding: 28px 26px;
}
.card .eyebrow { display: block; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* Tier cards (rec = surf, travel = brass) */
.tier-card { border-top: 3px solid var(--brass); }
.tier-card.rec { border-top-color: var(--surf); }
.tier-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: 0.02em;
  margin: 10px 0 12px;
}
.tier-card ul { list-style: none; margin-top: 16px; }
.tier-card li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 9px;
  font-size: 15px;
}
.tier-card li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 6px; height: 6px;
  transform: rotate(45deg);
  background: var(--brass);
}
.tier-card.rec li::before { background: var(--surf); }

.pill {
  display: inline-block;
  font-family: var(--condensed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid var(--brass);
  color: var(--brass);
  background: var(--shell);
}
.pill.rec { border-color: var(--surf); color: var(--atlantic); }

/* ---- Navy band ---- */

.band-navy {
  background: var(--navy);
  color: var(--shell);
  padding: 56px 0;
  text-align: center;
}
.band-navy .eyebrow { color: var(--brass-light); display: block; margin-bottom: 16px; }
.band-navy p {
  font-family: var(--serif);
  font-size: clamp(19px, 2.6vw, 24px);
  line-height: 1.5;
  max-width: 820px;
  margin: 0 auto;
  color: var(--shell);
}

/* ---- Stats ---- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  text-align: center;
}
.stat {
  background: var(--shell);
  border: 1px solid rgba(22, 38, 63, 0.08);
  padding: 26px 12px 22px;
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  margin-bottom: 6px;
}
.stat span { font-family: var(--condensed); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* ---- Tables ---- */

.table-scroll { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--shell);
  border: 1px solid rgba(22, 38, 63, 0.08);
  font-size: 15px;
}
thead th {
  background: var(--navy);
  color: var(--brass-light);
  font-family: var(--condensed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 16px;
  white-space: nowrap;
}
tbody td { padding: 13px 16px; border-top: 1px solid rgba(22, 38, 63, 0.08); vertical-align: top; }
tbody tr:nth-child(even) { background: rgba(243, 236, 221, 0.55); }
td.serif { font-family: var(--serif); font-size: 17px; }
td .micro { color: var(--brass); }

/* ---- Numbered pathway steps ---- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { background: var(--shell); border: 1px solid rgba(22, 38, 63, 0.08); padding: 30px 26px; }
.step .num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  transform: rotate(45deg);
  background: var(--brass);
  margin: 4px 0 22px 4px;
}
.step .num b {
  transform: rotate(-45deg);
  color: var(--shell);
  font-family: var(--condensed);
  font-size: 13px;
  font-weight: 700;
}

/* ---- Chapters ---- */

.chapters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.chapters li {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.04em;
  background: var(--shell);
  border: 1px solid rgba(180, 145, 63, 0.4);
  padding: 8px 18px;
}

/* ---- Definition rows (leadership etc.) ---- */

.def-rows { max-width: 720px; margin: 0 auto; }
.def-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(22, 38, 63, 0.12);
}
.def-row:first-child { border-top: 1px solid rgba(22, 38, 63, 0.12); }
@media (max-width: 520px) { .def-row { grid-template-columns: 1fr; gap: 2px; } }

/* ---- CTA band ---- */

.cta-band {
  background: var(--brass);
  text-align: center;
  padding: 34px 24px;
}
.cta-band a {
  font-family: var(--condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
}
.cta-band a:hover { color: var(--shell); }

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

.contact-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--shell);
  border: 1px solid rgba(22, 38, 63, 0.08);
  border-top: 3px solid var(--brass);
  padding: 46px 36px;
  text-align: center;
}
.contact-card .big-link {
  display: block;
  font-family: var(--serif);
  font-size: clamp(20px, 3.4vw, 27px);
  letter-spacing: 0.03em;
  color: var(--navy);
  text-decoration: none;
  margin-top: 6px;
}
.contact-card .big-link:hover { color: var(--brass); }
.contact-card .eyebrow { display: block; margin-top: 30px; }
.contact-card .eyebrow:first-of-type { margin-top: 0; }

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

.site-footer {
  background: var(--navy);
  color: var(--shell);
  padding: 54px 0 40px;
  text-align: center;
}
.site-footer .wordmark {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass-light);
}
.site-footer .tag {
  font-family: var(--condensed);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--surf);
  margin: 10px 0 26px;
}
.site-footer .member {
  font-family: var(--condensed);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(251, 247, 239, 0.55);
}
.site-footer a { color: var(--brass-light); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .contact-line { margin-bottom: 26px; font-size: 15px; }
.site-footer .rule-diamond { max-width: 220px; margin-bottom: 26px; }
.site-footer .rule-diamond::before,
.site-footer .rule-diamond::after { background: rgba(180, 145, 63, 0.6); }
