/* PermitRequirements.com — Global Stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a1a2e;
  --red: #e94560;
  --red-dark: #c73652;
  --white: #ffffff;
  --light: #f8f9fa;
  --border: #e2e8f0;
  --text: #2d3748;
  --muted: #718096;
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; }

/* NAV */
nav { background: var(--navy); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 1rem; display: flex; align-items: center; justify-content: space-between; height: 56px; }
.nav-logo { color: var(--white); font-weight: 700; font-size: 1.15rem; text-decoration: none; letter-spacing: -0.3px; }
.nav-logo span { color: var(--red); }
.nav-links { display: flex; gap: 0.2rem; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.85rem; padding: 0.35rem 0.6rem; border-radius: 4px; transition: color 0.15s; }
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-cta { background: var(--red); color: var(--white) !important; border-radius: 4px; padding: 0.4rem 0.9rem !important; font-weight: 600; }
.nav-cta:hover { background: var(--red-dark) !important; }
.nav-more { position: relative; }
.nav-more > a { cursor: pointer; }
.nav-dropdown { display: none; position: absolute; top: 100%; right: 0; background: var(--navy); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; min-width: 200px; padding: 0.5rem 0; }
.nav-more:hover .nav-dropdown { display: block; }
.nav-dropdown a { display: block; padding: 0.5rem 1rem !important; color: rgba(255,255,255,0.85) !important; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: white; margin: 5px 0; border-radius: 2px; }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-mobile-open .nav-links { display: flex; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: var(--navy); padding: 1rem; gap: 0.3rem; border-top: 1px solid rgba(255,255,255,0.1); }
  .nav-mobile-open .nav-links a { padding: 0.6rem 1rem; border-radius: 4px; }
}

/* LAYOUT */
.container { max-width: 800px; margin: 0 auto; padding: 0 1rem; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* HERO */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #16213e 100%); color: white; padding: 3rem 1rem; text-align: center; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 0.75rem; line-height: 1.2; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 1.5rem; }
.hero-badges { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.badge { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; padding: 0.35rem 0.9rem; border-radius: 20px; font-size: 0.82rem; font-weight: 500; }

/* ANSWER BOX */
.answer-box { background: #eef9ee; border: 2px solid #48bb78; border-radius: 8px; padding: 1.25rem 1.5rem; margin: 2rem 0; }
.answer-box.warning { background: #fff8e6; border-color: #f6ad55; }
.answer-box.red { background: #fff5f5; border-color: #fc8181; }
.answer-box-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #2f855a; margin-bottom: 0.4rem; }
.answer-box.warning .answer-box-label { color: #c05621; }
.answer-box.red .answer-box-label { color: #c53030; }
.answer-box p { font-size: 1rem; color: var(--text); }
.answer-box strong { color: #276749; }
.answer-box.warning strong { color: #c05621; }
.answer-box.red strong { color: #c53030; }

/* CTA BOX */
.cta-box { background: linear-gradient(135deg, var(--navy) 0%, #16213e 100%); color: white; padding: 2rem 1.5rem; border-radius: 10px; text-align: center; margin: 2.5rem 0; }
.cta-box h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.cta-box p { color: rgba(255,255,255,0.8); margin-bottom: 1.25rem; font-size: 0.95rem; }
.btn-cta { display: inline-block; background: var(--red); color: white; font-weight: 700; font-size: 1rem; padding: 0.8rem 2rem; border-radius: 6px; text-decoration: none; transition: background 0.15s, transform 0.1s; }
.btn-cta:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-cta-outline { display: inline-block; border: 2px solid var(--red); color: var(--red); font-weight: 700; font-size: 1rem; padding: 0.75rem 1.75rem; border-radius: 6px; text-decoration: none; transition: all 0.15s; }
.btn-cta-outline:hover { background: var(--red); color: white; }

/* CONTENT */
.content { padding: 2.5rem 0; }
.content h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--navy); }
.content h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 0.5rem; color: var(--navy); }
.content p { margin-bottom: 1rem; }
.content ul, .content ol { margin: 0.75rem 0 1rem 1.5rem; }
.content li { margin-bottom: 0.4rem; }
.content a { color: var(--red); text-decoration: none; }
.content a:hover { text-decoration: underline; }

/* TABLES */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { background: var(--navy); color: white; padding: 0.65rem 1rem; text-align: left; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px; }
td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); }
tr:nth-child(even) td { background: var(--light); }
tr:hover td { background: #eef2ff; }

/* FAQ */
.faq { margin: 2.5rem 0; }
.faq h2 { font-size: 1.5rem; color: var(--navy); margin-bottom: 1rem; }
.faq-item { border: 1px solid var(--border); border-radius: 6px; margin-bottom: 0.75rem; overflow: hidden; }
.faq-q { padding: 1rem 1.25rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: var(--white); transition: background 0.1s; }
.faq-q:hover { background: var(--light); }
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--muted); line-height: 1; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 1rem 1.25rem; background: var(--light); border-top: 1px solid var(--border); color: var(--text); }
.faq-item.open .faq-a { display: block; }

/* HUB GRID */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.hub-card { border: 1px solid var(--border); border-radius: 8px; padding: 1.1rem 1.25rem; text-decoration: none; color: var(--text); transition: all 0.15s; display: flex; align-items: center; gap: 0.75rem; }
.hub-card:hover { border-color: var(--red); box-shadow: 0 2px 8px rgba(233,69,96,0.15); transform: translateY(-1px); }
.hub-card-icon { font-size: 1.5rem; line-height: 1; }
.hub-card-text strong { display: block; font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.hub-card-text span { font-size: 0.78rem; color: var(--muted); }

/* BREADCRUMB */
.breadcrumb { font-size: 0.82rem; color: var(--muted); padding: 0.75rem 0 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { margin: 0 0.4rem; }

/* STATS ROW */
.stats-row { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0; }
.stat-card { flex: 1; min-width: 140px; background: var(--light); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; text-align: center; }
.stat-card .stat-val { font-size: 1.5rem; font-weight: 800; color: var(--navy); display: block; }
.stat-card .stat-label { font-size: 0.78rem; color: var(--muted); }

/* CALCULATOR */
.calc-wrap { background: var(--light); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; margin: 2rem 0; }
.calc-wrap h3 { margin-bottom: 1rem; color: var(--navy); }
.calc-row { margin-bottom: 1rem; }
.calc-row label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--navy); }
.calc-row select, .calc-row input { width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--border); border-radius: 5px; font-family: var(--font); font-size: 0.95rem; background: white; }
.calc-result { background: var(--navy); color: white; border-radius: 8px; padding: 1.25rem; margin-top: 1rem; text-align: center; }
.calc-result .result-range { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.25rem; }
.calc-result .result-label { font-size: 0.82rem; opacity: 0.75; }
.btn-calc { background: var(--red); color: white; border: none; padding: 0.7rem 1.5rem; border-radius: 5px; font-weight: 700; font-size: 1rem; cursor: pointer; width: 100%; margin-top: 0.5rem; font-family: var(--font); transition: background 0.15s; }
.btn-calc:hover { background: var(--red-dark); }

/* FOOTER */
footer { background: var(--navy); color: rgba(255,255,255,0.65); padding: 3rem 1rem 2rem; margin-top: 4rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { color: white; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.75rem; }
.footer-col a { display: block; color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.85rem; margin-bottom: 0.4rem; transition: color 0.1s; }
.footer-col a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; font-size: 0.8rem; }
.footer-bottom a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-bottom a:hover { color: white; }

/* UTILS */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.chip { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.78rem; font-weight: 600; }
.chip-green { background: #c6f6d5; color: #276749; }
.chip-yellow { background: #fefcbf; color: #975a16; }
.chip-red { background: #fed7d7; color: #c53030; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 600px) { .two-col { grid-template-columns: 1fr; } }

/* GA tag space */
