/* Pickleball Court HQ — neutral clean directory design system.
   Hand-rolled CSS, system font faces only — no webfonts, no CDN, no
   external network dependency of any kind. */

:root {
  /* Court palette — deliberately distinct from any fleet-site palette */
  --court: #1f7a5c;
  --court-deep: #145c44;
  --band: #0f4c3a;
  --accent: #e8792c;
  --accent-deep: #c4621e;
  --ink: #16241f;
  --ink-soft: #24382f;
  --paper: #f7f6f1;
  --paper-line: #ddd8c9;
  --card: #ffffff;
  --text-body: #3c463f;
  --text-muted: #647065;
  --good: #146c3a;
  --bad: #a3312f;
  --footer-fg: #dfe9e2;
  --footer-fg-dim: #9ab3a5;

  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-heading: "Arial Black", Arial, sans-serif;

  --max-width: 1180px;
  --max-width-narrow: 1000px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 6vw; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: var(--ink);
  padding: 0.85rem 1.25rem;
  z-index: 300;
  font-weight: 700;
  border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; top: 0; }

/* ===== Header ===== */
.band-top {
  background: var(--band);
  padding: 18px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: 0.01em;
  color: #ffffff;
  white-space: nowrap;
  text-decoration: none;
}
.top-nav { display: flex; gap: clamp(12px, 1.8vw, 26px); flex-wrap: wrap; font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.top-nav a { color: #d9ecdf; text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 3px; }
.top-nav a:hover, .top-nav a:focus-visible { border-bottom-color: var(--accent); color: #fff; }
.top-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: #fff; }

/* ===== Breadcrumbs ===== */
.crumb { background: #eef4ef; padding: 10px 6vw; font-size: 12.5px; color: var(--court-deep); }
.crumb a { text-decoration: underline; text-underline-offset: 2px; }
.crumb span[aria-hidden] { margin: 0 4px; }

/* ===== Hero ===== */
.hero { background: linear-gradient(180deg, var(--court) 0%, var(--court-deep) 100%); padding: clamp(40px, 6vw, 76px) 6vw; color: #fff; }
.hero-inner { max-width: var(--max-width-narrow); margin: 0 auto; text-align: center; }
.hero h1 { font-family: var(--font-heading); font-weight: 900; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.1; }
.hero p.sub { margin-top: 14px; color: #dff2e6; font-size: 16px; max-width: 62ch; margin-left: auto; margin-right: auto; }
.hero-stats { display: flex; justify-content: center; gap: clamp(20px, 4vw, 48px); margin-top: 32px; flex-wrap: wrap; }
.hero-stat b { display: block; font-family: var(--font-heading); font-size: clamp(26px, 3vw, 36px); }
.hero-stat span { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: #cdeadb; }
.hero-ctas { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn-primary, .btn-secondary, .btn-out, .btn-ghost {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  transition: transform 0.1s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-out { background: var(--court); color: #fff; }
.btn-out:hover { background: var(--court-deep); }
.btn-ghost { background: transparent; color: var(--court-deep); border: 1px solid var(--paper-line); }
.btn-ghost:hover { border-color: var(--court); }
.btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-out:focus-visible, .btn-ghost:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* ===== Sections ===== */
.section { padding: clamp(36px, 5vw, 64px) 6vw; }
.section.alt { background: #eef4ef; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-head { max-width: 62ch; margin-bottom: 28px; }
.section-head h2 { font-family: var(--font-heading); font-size: clamp(22px, 2.6vw, 30px); }
.section-head p { margin-top: 8px; color: var(--text-muted); font-size: 15px; }

/* ===== Page headers (state/city hub) ===== */
.page-header { background: linear-gradient(180deg, var(--court) 0%, var(--court-deep) 100%); padding: clamp(28px, 4vw, 44px) 6vw; color: #fff; }
.page-header-inner { max-width: var(--max-width-narrow); margin: 0 auto; }
.page-header h1 { font-family: var(--font-heading); font-size: clamp(24px, 3.4vw, 36px); }
.page-header p.sub { margin-top: 10px; color: #dff2e6; font-size: 15.5px; max-width: 62ch; }

.content-shell { max-width: var(--max-width-narrow); margin: 36px auto 80px; padding: 0 6vw; }
.content-shell.wide { max-width: var(--max-width); }

/* ===== Tile grid (state/city lists) ===== */
.tile-list { list-style: none; display: grid; gap: 14px; margin-bottom: 32px; }
.tile-list.cols-3 { grid-template-columns: repeat(3, 1fr); }
.tile {
  background: var(--card);
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.tile a { font-weight: 700; color: var(--court-deep); text-decoration: none; font-size: 15px; }
.tile a:hover { text-decoration: underline; }
.tile .count { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }

.section-title { font-family: var(--font-heading); font-size: 20px; margin: 32px 0 16px; }

/* ===== Listing cards ===== */
.listings { display: flex; flex-direction: column; gap: 16px; }
.listing-card {
  background: var(--card);
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}
.listing-name { font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; }
.listing-name:hover { color: var(--court-deep); }
.listing-meta { margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-block; background: #eef4ef; color: var(--court-deep); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 3px 8px; border-radius: 4px; }
.listing-phone { margin-top: 6px; font-size: 13.5px; color: var(--text-muted); }
.listing-actions { display: flex; flex-direction: column; gap: 8px; }
.listing-actions .btn { min-width: 140px; }

.panel { background: var(--card); border: 1px solid var(--paper-line); border-radius: 10px; padding: 22px 24px; margin-bottom: 20px; }
.panel h2 { font-family: var(--font-heading); font-size: 18px; margin-bottom: 12px; }

/* ===== Profile / detail ===== */
.profile-header { background: linear-gradient(180deg, var(--court) 0%, var(--court-deep) 100%); padding: clamp(30px, 4vw, 46px) 6vw 32px; color: #fff; }
.profile-header-inner { max-width: var(--max-width-narrow); margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.profile-header h1 { font-family: var(--font-heading); font-size: clamp(24px, 3vw, 32px); }
.profile-header .loc { margin-top: 8px; color: #dff2e6; font-size: 15px; }
.profile-cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.cta-note { font-size: 12px; color: #cdeadb; }

.layout { max-width: var(--max-width-narrow); margin: 32px auto 80px; padding: 0 6vw; display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
.layout .main { min-width: 0; }
aside .side-panel { background: var(--band); color: var(--footer-fg); padding: 22px 24px; border-radius: 10px; margin-bottom: 20px; }
aside .side-panel.light { background: var(--card); color: var(--ink); border: 1px solid var(--paper-line); }
aside .side-panel h3, aside .side-panel h4 { font-family: var(--font-heading); font-size: 15px; margin-bottom: 10px; color: #fff; }
aside .side-panel.light h3, aside .side-panel.light h4 { color: var(--court-deep); }
aside .side-panel p { font-size: 13.5px; line-height: 1.5; color: var(--footer-fg); }
aside .side-panel.light p { color: var(--text-body); }
aside .side-panel dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; font-size: 13.5px; }
aside .side-panel dt { color: var(--footer-fg-dim); }
aside .side-panel dd { color: var(--footer-fg); text-align: right; }
aside .side-panel .btn-out { display: block; margin-top: 14px; }

/* ===== Footer ===== */
.site-footer { background: var(--band); color: var(--footer-fg); padding: 44px 6vw 24px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.site-footer .wordmark-font { font-family: var(--font-heading); font-weight: 900; font-size: 20px; color: #fff; }
.site-footer p { margin-top: 10px; font-size: 13.5px; color: var(--footer-fg-dim); max-width: 46ch; }
.footer-inner .cols { display: flex; gap: 40px; }
.footer-inner .col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--footer-fg-dim); margin-bottom: 10px; }
.footer-inner .col a { display: block; font-size: 13.5px; color: var(--footer-fg); text-decoration: none; margin-bottom: 8px; }
.footer-inner .col a:hover { text-decoration: underline; }
.footer-legal { max-width: var(--max-width); margin: 20px auto 0; font-size: 11.5px; color: var(--footer-fg-dim); }

/* ===== Utility ===== */
.empty-panel { background: var(--card); border: 1px dashed var(--paper-line); border-radius: 10px; padding: 28px; text-align: center; color: var(--text-muted); }

@media (max-width: 860px) {
  .tile-list.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .listing-card { grid-template-columns: 1fr; }
  .listing-actions { flex-direction: row; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tile-list.cols-3 { grid-template-columns: 1fr; }
  .profile-header-inner { align-items: flex-start; }
  .profile-cta { align-items: flex-start; }
}
