/* ============================================
   PickleballCourtPermit.pages.dev
   Design: Sport-editorial — clean court lines,
   athletic precision, functional authority
   Palette: Deep navy + neon lime + white
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;900&family=Barlow:wght@400;500;600&display=swap');

/* === CSS VARIABLES === */
:root {
  --navy:       #0B1E3D;
  --navy-mid:   #132850;
  --navy-light: #1A3460;
  --lime:       #C8F000;
  --lime-dark:  #A8CC00;
  --white:      #FFFFFF;
  --off-white:  #F4F7F0;
  --gray-light: #E8EDF0;
  --gray-mid:   #A0AABB;
  --gray-dark:  #5A6880;
  --text:       #1A2B40;
  --text-light: #4A5F78;
  --border:     #D4DCE8;
  --warn:       #FF6B35;
  --success:    #2ECC71;

  --font-head:  'Barlow Condensed', sans-serif;
  --font-body:  'Barlow', sans-serif;
  --max-width:  1140px;
  --radius:     6px;
  --shadow:     0 2px 12px rgba(11,30,61,0.10);
  --shadow-lg:  0 8px 32px rgba(11,30,61,0.16);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: underline; }
a:hover { color: var(--lime-dark); }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  line-height: 1.1;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.4em; margin-bottom: 1.1em; }
li { margin-bottom: 0.4em; }
strong { font-weight: 600; color: var(--navy); }

/* === SITE HEADER === */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 0 var(--lime);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.site-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.site-logo span { color: var(--lime); }
.site-nav { display: flex; gap: 6px; align-items: center; }
.site-nav a {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-light);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.site-nav a:hover { background: var(--navy-light); color: var(--lime); }
.nav-cta {
  background: var(--lime) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--lime-dark) !important; color: var(--navy) !important; }

/* Hamburger — mobile */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); margin: 5px 0;
  transition: transform 0.2s;
}

/* === BREADCRUMBS === */
.breadcrumbs {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 8px 20px;
}
.breadcrumbs-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.82rem;
  color: var(--gray-dark);
}
.breadcrumbs-inner a { color: var(--gray-dark); text-decoration: none; }
.breadcrumbs-inner a:hover { color: var(--navy); }
.breadcrumbs-inner span { color: var(--gray-mid); margin: 0 6px; }

/* === PAGE HERO === */
.page-hero {
  background: var(--navy);
  padding: 64px 20px 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(200,240,0,0.06) 39px,
      rgba(200,240,0,0.06) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgba(200,240,0,0.04) 59px,
      rgba(200,240,0,0.04) 60px
    );
  pointer-events: none;
}
.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}
.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.page-hero h1 { color: var(--white); margin-bottom: 18px; }
.page-hero .hero-sub {
  font-size: 1.15rem;
  color: var(--gray-light);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--gray-light);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  font-family: var(--font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* === MAIN LAYOUT === */
.main-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 52px 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.main-wrap.no-sidebar {
  grid-template-columns: 1fr;
  max-width: 820px;
}
.main-content {}
.sidebar {}

/* === ARTICLE BODY === */
.article-body h2 {
  margin-top: 2.4em;
  margin-bottom: 0.6em;
  padding-bottom: 0.3em;
  border-bottom: 3px solid var(--lime);
  display: inline-block;
}
.article-body h3 { margin-top: 1.8em; margin-bottom: 0.5em; color: var(--navy-mid); }
.article-body h4 { margin-top: 1.4em; margin-bottom: 0.4em; }
.article-body > *:first-child { margin-top: 0; }

/* === ALERT / TIP BOXES === */
.alert-box {
  border-left: 4px solid var(--lime);
  background: rgba(200,240,0,0.07);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5em 0;
}
.alert-box.warn {
  border-left-color: var(--warn);
  background: rgba(255,107,53,0.07);
}
.alert-box.info {
  border-left-color: #3498DB;
  background: rgba(52,152,219,0.07);
}
.alert-box strong { display: block; margin-bottom: 4px; font-family: var(--font-head); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* === DATA TABLE === */
.data-table-wrap { overflow-x: auto; margin: 1.5em 0; border-radius: var(--radius); border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table thead tr { background: var(--navy); color: var(--white); }
.data-table thead th { padding: 12px 16px; text-align: left; font-family: var(--font-head); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.82rem; }
.data-table tbody tr:nth-child(even) { background: var(--off-white); }
.data-table tbody td { padding: 10px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tbody tr:last-child td { border-bottom: none; }
.tag-yes { color: #1a8a4a; font-weight: 600; }
.tag-no { color: var(--warn); font-weight: 600; }
.tag-varies { color: #7B5EA7; font-weight: 600; }

/* === STEP LIST === */
.step-list { list-style: none; padding: 0; counter-reset: steps; margin: 1.5em 0; }
.step-list li {
  counter-increment: steps;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
  content: counter(steps);
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  background: var(--navy);
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-list li strong { display: block; font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 4px; }

/* === CARDS GRID === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 1.5em 0;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: box-shadow 0.15s, transform 0.15s;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); color: var(--text); }
.card-icon { font-size: 2rem; margin-bottom: 12px; }
.card h4 { color: var(--navy); margin-bottom: 6px; }
.card p { font-size: 0.9rem; color: var(--text-light); margin: 0; line-height: 1.5; }
.card-arrow { font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-top: 12px; display: flex; align-items: center; gap: 4px; }

/* === FAQ === */
.faq-section { margin: 2.5em 0; }
.faq-section h2 { border-bottom-color: var(--lime); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 16px 0;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--lime-dark);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-q.open::after { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 0 16px;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.65;
}
.faq-a.open { display: block; }

/* === SIDEBAR WIDGETS === */
.sidebar-widget {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
}
.sidebar-widget h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--lime);
}
.sidebar-widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar-widget li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.sidebar-widget li:last-child { border-bottom: none; }
.sidebar-widget a { text-decoration: none; color: var(--navy-mid); font-weight: 500; }
.sidebar-widget a:hover { color: var(--lime-dark); }

.cta-widget {
  background: var(--navy);
  border: none;
  color: var(--white);
}
.cta-widget h4 { color: var(--white); border-bottom-color: rgba(200,240,0,0.4); }
.cta-widget p { color: var(--gray-light); font-size: 0.9rem; margin-bottom: 14px; }
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s;
}
.btn-lime { background: var(--lime); color: var(--navy); }
.btn-lime:hover { background: var(--lime-dark); color: var(--navy); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-full { display: block; width: 100%; text-align: center; }

/* === TOOL WIDGET === */
.tool-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 10px;
  padding: 32px;
  color: var(--white);
  margin: 2em 0;
}
.tool-box h3 { color: var(--lime); margin-bottom: 8px; }
.tool-box p { color: var(--gray-light); margin-bottom: 20px; font-size: 0.95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-row.single { grid-template-columns: 1fr; }
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 6px;
}
.form-group input, .form-group select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--lime); }
.form-group select option { background: var(--navy); color: var(--white); }
.tool-result {
  margin-top: 20px;
  background: rgba(200,240,0,0.10);
  border: 1px solid rgba(200,240,0,0.30);
  border-radius: var(--radius);
  padding: 20px;
  display: none;
}
.tool-result.visible { display: block; }
.result-label { font-family: var(--font-head); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lime); margin-bottom: 6px; }
.result-title { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.result-body { font-size: 0.9rem; color: var(--gray-light); line-height: 1.6; }
.result-warn { border-color: rgba(255,107,53,0.4); background: rgba(255,107,53,0.08); }
.result-warn .result-label { color: var(--warn); }

/* === HOMEPAGE SECTIONS === */
.section {
  padding: 64px 20px;
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-alt { background: var(--off-white); }
.section-dark { background: var(--navy); }
.section-dark h2, .section-dark h3, .section-dark p { color: var(--white); }
.section-dark .section-eyebrow { color: var(--lime); }

.section-eyebrow {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime-dark);
  margin-bottom: 10px;
  display: block;
}
.section-header { margin-bottom: 36px; }
.section-header p { font-size: 1.05rem; color: var(--text-light); margin-top: 10px; max-width: 640px; }

/* State grid */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.state-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.15s;
}
.state-link:hover { border-color: var(--lime); background: var(--off-white); box-shadow: var(--shadow); color: var(--navy); }
.state-link .flag { font-size: 1rem; }

/* Process strip */
.process-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--navy);
  border-radius: 10px;
  overflow: hidden;
}
.process-step {
  padding: 28px 24px;
  border-right: 1px solid rgba(255,255,255,0.10);
  position: relative;
}
.process-step:last-child { border-right: none; }
.process-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(200,240,0,0.25);
  line-height: 1;
  margin-bottom: 8px;
}
.process-step h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 6px; }
.process-step p { color: var(--gray-mid); font-size: 0.85rem; margin: 0; line-height: 1.5; }

/* === DISCLAIMER === */
.disclaimer {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.55;
  margin: 2em 0 0;
}
.disclaimer strong { font-family: var(--font-head); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 4px; }

/* === SITE FOOTER === */
.site-footer {
  background: var(--navy);
  color: var(--gray-mid);
  padding: 52px 20px 32px;
  border-top: 3px solid var(--lime);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .site-logo { font-size: 1.3rem; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; max-width: 280px; color: var(--gray-mid); }
.footer-col h5 {
  font-family: var(--font-head);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--lime);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--gray-mid); text-decoration: none; font-size: 0.88rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: var(--gray-mid); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* Google Analytics placeholder */
/* ANALYTICS_PLACEHOLDER - uncomment when live:
   <script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
*/

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .main-wrap { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .process-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; position: fixed; top: 60px; left: 0; right: 0; background: var(--navy); padding: 20px; gap: 4px; box-shadow: var(--shadow-lg); }
  .nav-toggle { display: block; }
  .page-hero { padding: 40px 20px 36px; }
  .process-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .state-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2.2rem; }
}

/* === PRINT === */
@media print {
  .site-header, .site-footer, .sidebar, .faq-q::after { display: none; }
  .main-wrap { grid-template-columns: 1fr; }
  body { font-size: 12pt; }
}
