/* ═══════════════════════════════════════════════
   PNW Pickleball Club — V2 Design System
   ═══════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --green-900: #0a1f10;
  --green-800: #0d2b16;
  --green-700: #12401f;
  --green-600: #1a5c2e;
  --green-500: #1e7a3a;
  --green-400: #25a04c;
  --green-300: #4dbe72;
  --green-100: #d4f0dd;
  --white:     #ffffff;
  --off-white: #f5f4ef;
  --gray-100:  #f0eeea;
  --gray-200:  #dddbd5;
  --gray-400:  #9e9b93;
  --gray-600:  #5a5851;
  --gray-900:  #1a1916;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Barlow', system-ui, sans-serif;
  background: var(--white);
  color: var(--gray-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; cursor: pointer; touch-action: manipulation; }
img { display: block; max-width: 100%; }

/* ─── ACCESSIBILITY ─── */
.skip-link {
  position: absolute; top: -200%; left: 16px;
  background: var(--green-500); color: var(--white);
  padding: 10px 20px; font-size: 14px; font-weight: 600;
  border-radius: 0 0 4px 4px; z-index: 10000;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }
*:focus-visible {
  outline: 2px solid var(--green-400);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  background: rgba(10,31,16,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: padding 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}
.nav.scrolled {
  padding: 14px 48px;
  background: rgba(10,31,16,0.92);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
}
.nav-logo-mark {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.nav-wordmark {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 18px;
  color: var(--white); letter-spacing: 0.06em; text-transform: uppercase;
  line-height: 1;
}
.nav-location {
  font-size: 11px; color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em; text-transform: uppercase; margin-top: 3px;
}

/* Nav links */
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 180ms var(--ease);
  white-space: nowrap;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 100%; height: 2px;
  background: var(--green-400);
  transform: scaleX(0); transform-origin: left;
  transition: transform 250ms var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-500); color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0 24px; height: 40px; border-radius: 4px;
  transition: background 180ms var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--green-400); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); margin: 5px 0;
  transition: transform 200ms var(--ease), opacity 200ms;
}

/* ─── HERO (homepage) ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  align-items: stretch;
  overflow: hidden;
  background: var(--green-900);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg,
      rgba(5,15,8,0.25) 0%,
      rgba(5,15,8,0.1) 35%,
      rgba(5,15,8,0.75) 75%,
      rgba(5,15,8,0.97) 100%
    ),
    url('hero-court.jpeg') center center / cover no-repeat;
}
.hero-glow {
  position: absolute; bottom: -10%; left: 50%;
  transform: translateX(-50%);
  width: 120%; height: 60%;
  background: radial-gradient(ellipse, rgba(30,122,58,0.25) 0%, transparent 65%);
  z-index: 2; pointer-events: none;
}
.hero-content {
  position: relative; z-index: 10;
  padding: 0 48px 80px;
  max-width: 620px;
  margin-left: auto;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green-300);
  margin-bottom: 24px;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-400); flex-shrink: 0;
}
.hero-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(64px, 9vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 32px;
}
.hero-headline .accent { color: var(--green-300); }

/* Hero stagger animation */
.hero-stagger {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.hero-stagger.in { opacity: 1; transform: none; }
.hero-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: rgba(255,255,255,0.7);
  line-height: 1.65; max-width: 520px;
  margin-bottom: 40px;
}
.hero-sub strong { color: var(--white); font-weight: 600; }
.hero-actions {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: var(--green-900);
  padding: 160px 48px 80px;
  position: relative; overflow: hidden;
}
.page-hero-glow {
  position: absolute; top: -30%; right: -10%;
  width: 60%; height: 100%;
  background: radial-gradient(ellipse, rgba(30,122,58,0.15) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: 1200px; margin: 0 auto;
  position: relative; z-index: 1;
}
.page-hero .section-label { color: var(--green-300); margin-bottom: 16px; }
.page-hero .section-label::before { background: var(--green-400); }
.page-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: clamp(52px, 7vw, 88px);
  line-height: 0.92; text-transform: uppercase;
  color: var(--white); letter-spacing: -0.01em;
  max-width: 700px;
}
.page-hero-title em { font-style: normal; color: var(--green-300); }
.page-hero-sub {
  font-size: 18px; color: rgba(255,255,255,0.6);
  line-height: 1.65; max-width: 520px; margin-top: 24px;
}

/* ─── BUTTONS ─── */
.btn-hero {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-500); color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase;
  min-height: 52px; padding: 0 40px;
  border-radius: 4px; border: none;
  box-shadow: 0 4px 20px rgba(30,122,58,0.4);
  transition: background 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
  cursor: pointer; touch-action: manipulation;
}
.btn-hero:hover {
  background: var(--green-400);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(30,122,58,0.5);
}
.btn-hero:active { transform: scale(0.97); }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-600); color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase;
  min-height: 52px; padding: 0 40px; border-radius: 4px; border: none;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
  cursor: pointer; touch-action: manipulation;
}
.btn-primary:hover { background: var(--green-500); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.97); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color 180ms var(--ease);
  cursor: pointer; touch-action: manipulation;
}
.btn-ghost:hover { color: rgba(255,255,255,0.9); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--green-500); color: var(--green-600);
  background: transparent;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase;
  min-height: 52px; padding: 0 40px; border-radius: 4px;
  transition: background 180ms var(--ease), color 180ms var(--ease);
  cursor: pointer;
}
.btn-outline:hover { background: var(--green-500); color: var(--white); }

/* ─── SECTION LABEL ─── */
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--green-600);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.section-label::before {
  content: ''; display: block;
  width: 32px; height: 2px; background: var(--green-500);
  flex-shrink: 0;
}
.section-label--light { color: var(--green-300); }
.section-label--light::before { background: var(--green-400); }

/* ─── STATS STRIP ─── */
.stats-strip {
  background: var(--green-700);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 28px 24px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-n {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: clamp(32px, 4vw, 48px);
  color: var(--white); line-height: 1;
  letter-spacing: -0.01em;
}
.stat-n .unit { font-size: 0.55em; color: var(--green-300); font-weight: 700; }
.stat-l {
  font-size: 11px; color: rgba(255,255,255,0.5);
  letter-spacing: 0.12em; text-transform: uppercase; margin-top: 6px;
  font-weight: 600;
}

/* ─── CONTENT SECTIONS ─── */
.section { padding: 96px 48px; }
.section--white { background: var(--white); }
.section--off-white { background: var(--off-white); }
.section--dark { background: var(--green-900); }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: clamp(44px, 5vw, 64px);
  line-height: 0.95; text-transform: uppercase;
  color: var(--gray-900); letter-spacing: -0.01em;
}
.section-title em { font-style: normal; color: var(--green-600); }
.section-title--light { color: var(--white); }
.section-title--light em { color: var(--green-300); }

/* ─── FEATURE GRID ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: var(--gray-200);
  border: 2px solid var(--gray-200);
  border-radius: 8px; overflow: hidden;
}
.feature-card {
  background: var(--white);
  padding: 40px 36px;
  position: relative; overflow: hidden;
  transition: background 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--green-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform 280ms var(--ease);
}
.feature-card:hover {
  background: var(--off-white);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green-500); margin-bottom: 12px;
}
.feature-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 22px;
  color: var(--gray-900); margin-bottom: 10px; line-height: 1.2;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.feature-card p { font-size: 14px; color: var(--gray-600); line-height: 1.7; }

/* ─── TWO-COLUMN LAYOUT ─── */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.two-col--center { align-items: center; }

/* ─── PRICING CARDS ─── */
.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; max-width: 800px; margin: 0 auto;
}
.pricing-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 48px 40px;
  position: relative; overflow: hidden;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.pricing-card:hover {
  border-color: var(--green-400);
  box-shadow: 0 8px 32px rgba(30,122,58,0.12);
}
.pricing-card.featured {
  border-color: var(--green-500);
  box-shadow: 0 4px 24px rgba(30,122,58,0.15);
}
.pricing-card.featured::before {
  content: 'Best Value';
  position: absolute; top: 0; left: 0; right: 0;
  background: var(--green-500); color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  text-align: center; padding: 8px;
}
.pricing-tier {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: 8px;
}
.pricing-amount {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 72px;
  color: var(--gray-900); line-height: 1; letter-spacing: -0.02em;
}
.pricing-amount .currency { font-size: 0.5em; color: var(--green-600); vertical-align: super; }
.pricing-amount .period { font-size: 0.25em; color: var(--gray-400); font-weight: 600; }
.pricing-note {
  font-size: 14px; color: var(--gray-400); margin-top: 8px; margin-bottom: 32px;
}
.pricing-features {
  list-style: none; display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 32px;
}
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; color: var(--gray-600); line-height: 1.5;
}
.pricing-features li::before {
  content: '';
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
  background: var(--green-100); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='9' cy='9' r='9' fill='%231a5c2e'/%3E%3Cpath d='M5 9l3 3 5-5' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ─── DETAILS TABLE ─── */
.details-table { width: 100%; border-collapse: collapse; }
.details-table tr { border-bottom: 1px solid var(--gray-200); }
.details-table tr:last-child { border-bottom: none; }
.details-table td { padding: 16px 0; font-size: 15px; vertical-align: middle; }
.details-table td:first-child {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-400); width: 40%;
}
.details-table td:last-child { color: var(--gray-900); font-weight: 600; text-align: right; }
.details-table a { color: var(--green-600); }
.details-table a:hover { color: var(--green-500); }

/* ─── FAQ ─── */
.faq-item { padding: 28px 0; border-bottom: 1px solid var(--gray-200); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 18px; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--gray-900); margin-bottom: 10px;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-q::after {
  content: '+'; font-size: 24px; color: var(--green-500);
  transition: transform 200ms var(--ease);
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  font-size: 15px; color: var(--gray-600); line-height: 1.7;
  max-height: 0; overflow: hidden;
  transition: max-height 300ms var(--ease);
}
.faq-item.open .faq-a { max-height: 200px; }

/* ─── CTA SECTION ─── */
.cta-section {
  background: var(--green-800);
  padding: 112px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-bg-pattern {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0.06;
  background-image:
    linear-gradient(0deg, transparent 49%, rgba(255,255,255,0.8) 49%, rgba(255,255,255,0.8) 51%, transparent 51%),
    linear-gradient(90deg, transparent 49%, rgba(255,255,255,0.8) 49%, rgba(255,255,255,0.8) 51%, transparent 51%);
  background-size: 80px 80px;
}
.cta-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: clamp(52px, 7vw, 88px);
  line-height: 0.92; text-transform: uppercase;
  color: var(--white); margin-bottom: 24px; letter-spacing: -0.01em;
}
.cta-headline em { font-style: normal; color: var(--green-300); }
.cta-body {
  font-size: 18px; color: rgba(255,255,255,0.65); line-height: 1.6;
  max-width: 520px; margin: 0 auto 40px;
}
.cta-note {
  font-size: 13px; color: rgba(255,255,255,0.3);
  margin-top: 16px; letter-spacing: 0.05em; font-weight: 500;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--green-900);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 64px 48px 36px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand-col .nav-wordmark { margin-bottom: 8px; }
.footer-brand-col .nav-location { margin-bottom: 16px; }
.footer-brand-col p {
  font-size: 14px; color: rgba(255,255,255,0.35); line-height: 1.6; max-width: 280px;
}
.footer-col-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px; color: rgba(255,255,255,0.35);
  padding: 4px 0; transition: color 180ms;
}
.footer-col a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.2); }
.footer-bottom a { font-size: 13px; color: rgba(255,255,255,0.25); transition: color 180ms; }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ─── SCROLL PROGRESS BAR ─── */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 300;
  width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--green-300));
  transition: none;
  pointer-events: none;
}

/* ─── PRICING CARD PULSE ─── */
@keyframes pricePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}
.pricing-card.featured.pulse-in {
  animation: pricePulse 0.6s var(--ease) 1;
}

/* ─── HERO PARALLAX ─── */
.hero-bg {
  will-change: transform;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-stagger { opacity: 1; transform: none; transition: none; }
  .scroll-progress { display: none; }
  .pricing-card.featured.pulse-in { animation: none; }
  .feature-card { transition: background 200ms var(--ease); }
  .feature-card:hover { transform: none; box-shadow: none; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav.scrolled { padding: 12px 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--green-900);
    padding: 20px; gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .hero-content { padding: 0 20px 64px; margin-left: 0; max-width: 100%; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .section { padding: 72px 20px; }
  .page-hero { padding: 140px 20px 64px; }
  .cta-section { padding: 80px 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer { padding: 48px 20px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
