/* ==========================================================================
   pickleball-static.css
   Single stylesheet. Mobile-first. System fonts. No external requests.
   Reuses the proven structure of gig-padel/padel-static.css.

   Sections:
   1.  Tokens
   2.  Reset & base
   3.  Layout
   4.  Header / nav
   5.  Buttons & links
   6.  Hero
   7.  Section blocks
   8.  Card grid (section landing / home)
   9.  Article (content page)
   10. FAQ accordion
   11. Footer
   12. Utilities
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, "Courier New", monospace;

  --brand:      #0e7c3a;   /* pickleball green */
  --brand-700:  #0a5e2c;
  --brand-900:  #073d1c;
  --pop:        #f4c542;   /* court yellow — micro accent only */

  --ink:        #0d1722;
  --ink-soft:   #2b3a47;
  --muted:      #5a6776;
  --line:       #e4e9ee;
  --subtle:     #f3f6f9;
  --subtle-2:   #eef3f7;
  --bg:         #ffffff;

  --max:        1180px;
  --article:    820px;
  --r:          14px;
  --r-sm:       10px;
  --shadow:     0 1px 2px rgba(13,23,34,.04), 0 8px 28px rgba(13,23,34,.07);
  --shadow-sm:  0 1px 2px rgba(13,23,34,.05), 0 3px 10px rgba(13,23,34,.05);

  --pad:        clamp(20px, 5vw, 40px);
  --ease:       cubic-bezier(.22,.61,.36,1);
}

/* 2. Reset & base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }

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

h1, h2, h3, h4 {
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
  font-weight: 800;
}

p { text-wrap: pretty; }

a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.25em; }

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

::selection { background: var(--pop); color: var(--ink); }

/* 3. Layout ---------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(48px, 8vw, 88px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-700);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 3px;
  background: var(--pop);
  border-radius: 2px;
}

/* 4. Header / nav ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.12rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--brand);
  color: #fff;
  border-radius: 9px;
  font-weight: 800;
}
.brand__mark span { font-size: 15px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  color: var(--ink-soft);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav a:hover { background: var(--subtle); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--brand); color: #fff; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border: 0;
  padding: 9px 14px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 64px;
    right: var(--pad);
    left: var(--pad);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: var(--r);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  }
  .nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav a { justify-content: center; }
}

/* 5. Buttons & links ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), background .18s var(--ease), border-color .18s, color .18s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-700); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--brand-700);
}
.arrow-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.arrow-link:hover { text-decoration: none; }
.arrow-link:hover svg { transform: translateX(4px); }

/* 6. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-700) 55%, var(--brand-900) 100%);
  color: #fff;
}
.hero__court {
  position: absolute;
  inset: 0;
  opacity: .14;
  pointer-events: none;
}
.hero__court svg { width: 100%; height: 100%; }
.hero__inner {
  position: relative;
  padding-block: clamp(56px, 11vw, 120px);
}
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--pop); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6.8vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-top: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--pop);
}
.hero__sub {
  margin-top: 20px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.5;
  color: rgba(255,255,255,.88);
  max-width: 50ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.hero .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.hero .btn--light { background: #fff; color: var(--brand-900); }
.hero .btn--light:hover { background: var(--pop); }

/* 7. Section blocks -------------------------------------------------------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 4vw, 40px);
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-top: 8px;
}
.section-head p {
  color: var(--muted);
  max-width: 56ch;
  margin-top: 6px;
}

/* 8. Card grid ------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.card-grid--brands {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
  height: 100%;
}
.card:hover {
  text-decoration: none;
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card__brand {
  display: inline-flex;
  align-items: center;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-700);
}
.card__title {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
}
.card__desc {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: auto;
}
.card--brand {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 14px;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.005em;
  color: var(--ink);
  min-height: 64px;
}

/* 9. Article (content page) ----------------------------------------------- */
.article {
  max-width: var(--article);
  margin-inline: auto;
  padding-block: clamp(40px, 6vw, 64px);
}
.article h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.article h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  margin-top: 2.2em;
  margin-bottom: .55em;
}
.article h3 {
  font-size: 1.2rem;
  margin-top: 1.6em;
  margin-bottom: .4em;
}
.article p, .article ul, .article ol { margin-block: 1em; }
.article ul li, .article ol li { margin-block: .35em; }
.article table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.4em;
  font-size: .96rem;
}
.article th, .article td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.article th { background: var(--subtle); font-weight: 700; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb span[aria-hidden] { color: var(--line); padding: 0 4px; }

/* 10. FAQ accordion -------------------------------------------------------- */
.faq { display: grid; gap: 10px; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  overflow: hidden;
}
.faq__q {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.faq__q::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--brand-700);
  transition: transform .18s var(--ease);
}
.faq__item[data-open] .faq__q::after { content: "−"; }
.faq__a {
  padding: 0 18px 16px;
  color: var(--ink-soft);
  display: none;
}
.faq__item[data-open] .faq__a { display: block; }

/* 11. Footer --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--subtle);
  padding-block: 36px;
  font-size: .92rem;
  color: var(--muted);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.site-footer ul {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}
.site-footer a { color: var(--ink-soft); }

/* 12. Utilities ------------------------------------------------------------ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 100;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
