/* BlockPartyPermit.pages.dev — Main Stylesheet */
/* Aesthetic: Civic-Warm. Navy anchor, amber gold accents, clean editorial type */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --navy: #1a2744;
  --navy-mid: #243259;
  --navy-light: #2e4080;
  --amber: #f0a500;
  --amber-light: #ffc740;
  --amber-pale: #fff8e7;
  --cream: #fdfaf5;
  --white: #ffffff;
  --gray-100: #f4f4f2;
  --gray-200: #e8e6e0;
  --gray-400: #9e9b92;
  --gray-600: #6b6860;
  --gray-800: #333129;
  --text: #22201a;
  --text-light: #5a5750;
  --green: #2d7a4f;
  --red-soft: #c0392b;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(26,39,68,0.12);
  --shadow-lg: 0 8px 32px rgba(26,39,68,0.16);
  --max-w: 1120px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: 0.5rem; }
h4 { font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }
p { margin-bottom: 1rem; color: var(--text); }
a { color: var(--navy-light); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--amber); text-decoration: none; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }
strong { font-weight: 600; }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 0; }
.section-sm { padding: 2rem 0; }
.section-lg { padding: 5rem 0; }

/* ── HEADER / NAV ── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--amber);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  line-height: 1.1;
}
.logo-text span { color: var(--amber); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--amber-light); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: white; margin: 5px 0; border-radius: 2px; transition: all 0.2s; }

/* ── HERO ── */
.hero {
  background: var(--navy);
  background-image: linear-gradient(135deg, #1a2744 0%, #2e4080 60%, #1a2744 100%);
  color: white;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -60px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(240,165,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(240,165,0,0.15);
  border: 1px solid rgba(240,165,0,0.35);
  color: var(--amber-light);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero h1 { color: white; margin-bottom: 1rem; max-width: 700px; }
.hero h1 em { font-style: italic; color: var(--amber-light); }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.75); max-width: 560px; margin-bottom: 2rem; }
.hero-search {
  display: flex;
  gap: 0.5rem;
  max-width: 520px;
}
.hero-search input {
  flex: 1;
  padding: 0.85rem 1.1rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: white;
  color: var(--text);
}
.hero-search input:focus { outline: 2px solid var(--amber); }
.hero-search button {
  background: var(--amber);
  color: var(--navy);
  border: none;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.15s;
}
.hero-search button:hover { background: var(--amber-light); }
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong { font-size: 1.6rem; color: var(--amber-light); font-family: var(--font-display); }
.hero-stat span { font-size: 0.8rem; color: rgba(255,255,255,0.6); }

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--navy);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.breadcrumb ol { display: flex; gap: 0.4rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.breadcrumb li { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.breadcrumb li a { color: rgba(255,255,255,0.65); text-decoration: none; }
.breadcrumb li a:hover { color: var(--amber-light); }
.breadcrumb li::after { content: '›'; margin-left: 0.4rem; }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb li:last-child { color: var(--amber-light); }

/* ── CARDS ── */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 1.4rem; }
.card-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); margin-bottom: 0.4rem; }
.card-meta { font-size: 0.8rem; color: var(--gray-400); margin-bottom: 0.6rem; }

/* ── CITY GRID ── */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.city-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.25rem;
  text-decoration: none;
  display: block;
  transition: all 0.2s;
  position: relative;
}
.city-card:hover {
  border-color: var(--amber);
  background: var(--amber-pale);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.city-card-name { font-weight: 600; color: var(--navy); font-size: 0.95rem; display: block; margin-bottom: 0.2rem; }
.city-card-state { font-size: 0.78rem; color: var(--gray-400); }
.city-card-fee {
  position: absolute;
  top: 0.75rem; right: 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--amber-pale);
  color: var(--amber);
  border: 1px solid var(--amber-light);
  padding: 0.15rem 0.45rem;
  border-radius: 100px;
}
.city-card-fee.free { background: #e8f7ee; color: var(--green); border-color: #a8d5b5; }

/* ── ALERT / INFO BOXES ── */
.alert {
  border-left: 4px solid var(--amber);
  background: var(--amber-pale);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1.5rem;
}
.alert-blue {
  border-left-color: var(--navy-light);
  background: #eef2fb;
}
.alert-green {
  border-left-color: var(--green);
  background: #e8f7ee;
}
.alert strong { color: var(--navy); }
.alert p:last-child { margin-bottom: 0; }

/* ── CHECKLIST BOX ── */
.checklist {
  background: white;
  border: 2px solid var(--navy-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.checklist h3 { color: var(--navy); margin-bottom: 1rem; }
.checklist ul { list-style: none; padding: 0; margin: 0; }
.checklist li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.92rem;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '☐';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-size: 1.1rem;
}

/* ── DATA TABLE ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-bottom: 1.5rem; }
.data-table th {
  background: var(--navy);
  color: white;
  padding: 0.7rem 0.9rem;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.8rem;
  text-transform: uppercase;
}
.data-table td { padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--gray-200); }
.data-table tr:hover td { background: var(--amber-pale); }
.data-table tr:last-child td { border-bottom: none; }
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); }

/* ── STEPS / PROCESS ── */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  padding: 1.1rem 1.1rem 1.1rem 3.5rem;
  position: relative;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 28px; height: 28px;
  background: var(--navy);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  font-family: var(--font-body);
}

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.97rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.faq-q::before { content: '▶'; font-size: 0.65rem; color: var(--amber); transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-q::before { transform: rotate(90deg); }
.faq-a { padding-top: 0.65rem; color: var(--text-light); font-size: 0.9rem; display: none; }
.faq-item.open .faq-a { display: block; }

/* ── TOOL WIDGET ── */
.tool-widget {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: white;
  margin: 2rem 0;
}
.tool-widget h2 { color: white; }
.tool-widget label { display: block; font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.7); margin-bottom: 0.4rem; margin-top: 1rem; }
.tool-widget input, .tool-widget select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: white;
  font-family: var(--font-body);
  font-size: 0.92rem;
}
.tool-widget select option { background: var(--navy); }
.tool-widget input::placeholder { color: rgba(255,255,255,0.4); }
.tool-widget button {
  margin-top: 1.25rem;
  background: var(--amber);
  color: var(--navy);
  border: none;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: background 0.15s;
  width: 100%;
}
.tool-widget button:hover { background: var(--amber-light); }
.tool-result {
  margin-top: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(240,165,0,0.4);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: none;
}
.tool-result.show { display: block; }
.tool-result h3 { color: var(--amber-light); font-size: 1rem; margin-bottom: 0.75rem; }
.tool-result ul { margin: 0; padding-left: 1.25rem; }
.tool-result li { color: rgba(255,255,255,0.85); font-size: 0.88rem; margin-bottom: 0.35rem; }

/* ── TAGS ── */
.tag {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.tag-amber { background: var(--amber-pale); color: var(--amber); border: 1px solid var(--amber-light); }
.tag-navy { background: #e8ecf7; color: var(--navy); }
.tag-green { background: #e8f7ee; color: var(--green); }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 3rem 0;
  text-align: center;
  color: white;
}
.cta-band h2 { color: white; margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.72); max-width: 520px; margin: 0 auto 1.5rem; }
.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: var(--amber-light); text-decoration: none; color: var(--navy); }
.btn-outline { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: white; text-decoration: none; }
.btn-navy { background: var(--navy); color: white; }
.btn-navy:hover { background: var(--navy-light); text-decoration: none; color: white; }

/* ── SIDEBAR LAYOUT ── */
.content-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.sidebar { position: sticky; top: 80px; }
.sidebar-box {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar-box h4 { color: var(--navy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.85rem; border-bottom: 2px solid var(--amber); padding-bottom: 0.5rem; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { border-bottom: 1px solid var(--gray-100); }
.sidebar-box li:last-child { border-bottom: none; }
.sidebar-box li a { display: block; padding: 0.5rem 0; font-size: 0.86rem; color: var(--navy-light); text-decoration: none; }
.sidebar-box li a:hover { color: var(--amber); }
.quick-facts dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-400); margin-top: 0.75rem; }
.quick-facts dd { font-size: 0.92rem; font-weight: 600; color: var(--navy); margin: 0; }

/* ── PAGE HEADER ── */
.page-hero {
  background: var(--navy);
  padding: 2.75rem 0 2.25rem;
  color: white;
}
.page-hero h1 { color: white; margin-bottom: 0.6rem; }
.page-hero p { color: rgba(255,255,255,0.7); max-width: 600px; margin-bottom: 0; font-size: 1rem; }
.page-hero .hero-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.page-hero .tag { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.75); font-size: 0.75rem; }

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 0 2rem;
  margin-top: 3rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand p { font-size: 0.83rem; line-height: 1.6; margin-top: 0.75rem; color: rgba(255,255,255,0.5); }
.footer-col h5 { color: white; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; font-family: var(--font-body); font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.83rem; }
.footer-col a:hover { color: var(--amber-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.45); font-size: 0.78rem; }
.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 1rem;
  padding-top: 1rem;
  line-height: 1.5;
}

/* ── STATES GRID ── */
.states-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; }
.state-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  text-decoration: none;
  display: block;
  text-align: center;
  transition: all 0.15s;
}
.state-card:hover { border-color: var(--amber); background: var(--amber-pale); text-decoration: none; }
.state-card .state-abbr { display: block; font-size: 1.4rem; font-weight: 700; color: var(--navy); font-family: var(--font-display); }
.state-card .state-name { font-size: 0.75rem; color: var(--gray-400); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-mid); padding: 1rem 1.25rem; gap: 0.75rem; box-shadow: var(--shadow-md); }
  .nav-toggle { display: block; }
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 1.25rem; }
  .city-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; }
  .hero-search button { width: 100%; }
}

/* ── UTILITY ── */
.text-center { text-align: center; }
.text-sm { font-size: 0.85rem; }
.text-muted { color: var(--text-light); }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.highlight-box {
  background: var(--amber-pale);
  border: 1px solid var(--amber-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 0.5rem;
  display: block;
}
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 2rem 0; }
.print-btn {
  background: none; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 0.45rem 0.9rem; font-size: 0.8rem; cursor: pointer; color: var(--text-light);
  font-family: var(--font-body);
}
.print-btn:hover { border-color: var(--navy); color: var(--navy); }
