/* PermitsGuide.com — Main Stylesheet */
/* Redesigned for NerdWallet/Wirecutter-level polish */

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1E293B;
    line-height: 1.7;
    background: #fff;
}

a {
    color: #2563EB;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* === Navigation === */
.site-nav {
    background: #fff;
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 0;
    z-index: 200;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    font-weight: 700;
    font-size: 16px;
    color: #1B2A4A;
    text-decoration: none;
    letter-spacing: -0.3px;
}

.nav-logo:hover {
    text-decoration: none;
    color: #2563EB;
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
    color: #1B2A4A;
    background: #F1F5F9;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1B2A4A;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === Article Layout === */
.article-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 24px 64px;
}

.article-body h1 {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.25;
    color: #1B2A4A;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1B2A4A;
    margin: 48px 0 14px;
    letter-spacing: -0.3px;
}

.article-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1B2A4A;
    margin: 32px 0 10px;
}

.article-body p {
    font-size: 16px;
    color: #475569;
    line-height: 1.75;
    margin: 0 0 18px;
}

.article-body ul,
.article-body ol {
    font-size: 16px;
    color: #475569;
    line-height: 1.75;
    margin: 0 0 18px;
    padding-left: 28px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body strong {
    color: #1E293B;
    font-weight: 600;
}

.article-body blockquote {
    background: #F0FDF4;
    border-left: 4px solid #22C55E;
    padding: 18px 20px;
    border-radius: 0 10px 10px 0;
    margin: 0 0 28px;
}

.article-body blockquote p {
    font-size: 15px;
    color: #15803D;
    margin: 0;
}

.article-body hr {
    border: none;
    border-top: 1px solid #E2E8F0;
    margin: 40px 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
    font-size: 14px;
}

.article-body th,
.article-body td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #E2E8F0;
}

.article-body th {
    font-weight: 600;
    color: #64748B;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: #F8F9FA;
}

/* === Homepage Hero === */
.hero {
    background: #1B2A4A;
    padding: 80px 24px;
    text-align: center;
}

.hero-inner {
    max-width: 680px;
    margin: 0 auto;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.2;
    letter-spacing: -0.75px;
}

.hero-subtitle {
    font-size: 17px;
    color: #94A3B8;
    margin: 0 0 40px;
    line-height: 1.6;
}

.hero-search {
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.hero-search-select {
    padding: 12px 14px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background: #F8F9FA;
    color: #1E293B;
    min-width: 190px;
    font-family: inherit;
    font-weight: 500;
    outline: none;
    cursor: pointer;
}

.hero-search-city-wrap {
    flex: 1;
    min-width: 180px;
    position: relative;
}

.hero-search-input {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #F8F9FA;
    color: #1E293B;
    outline: none;
}

.hero-search-input:focus {
    background: #EFF6FF;
    outline: 2px solid #2563EB;
}

.hero-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 50;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.hero-search-btn {
    padding: 12px 24px;
    background: #2563EB;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background 0.15s, transform 0.1s;
}

.hero-search-btn:hover {
    background: #1D4ED8;
    transform: translateY(-1px);
}

/* === Homepage Sections === */
.home-section {
    padding: 72px 24px;
}

.home-section:nth-child(even) {
    background: #F8F9FA;
}

.home-section-inner {
    max-width: 960px;
    margin: 0 auto;
}

.section-title {
    font-size: 30px;
    font-weight: 700;
    color: #1B2A4A;
    margin: 0 0 8px;
    text-align: center;
    letter-spacing: -0.4px;
}

.section-subtitle {
    font-size: 16px;
    color: #64748B;
    margin: 0 0 32px;
    text-align: center;
}

/* Project cards */
.project-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.project-card {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.project-card:hover {
    border-color: #2563EB;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    text-decoration: none;
}

.project-card-icon {
    width: 52px;
    height: 52px;
    background: #EFF6FF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.project-card-icon svg {
    stroke: #2563EB;
}

.project-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #1B2A4A;
    margin: 0 0 5px;
}

.project-card-desc {
    font-size: 12px;
    color: #94A3B8;
    margin: 0;
    line-height: 1.5;
}

/* How it works */
.how-it-works {
    background: #F8F9FA;
    padding: 72px 24px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step {
    text-align: center;
    padding: 32px 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    transition: box-shadow 0.2s;
}

.step:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 18px;
    font-weight: 700;
}

.step-blue {
    background: #EFF6FF;
    color: #2563EB;
    border: 2px solid #BFDBFE;
}

.step-green {
    background: #F0FDF4;
    color: #16A34A;
    border: 2px solid #BBF7D0;
}

.step-title {
    font-size: 15px;
    font-weight: 600;
    color: #1B2A4A;
    margin: 0 0 6px;
}

.step-desc {
    font-size: 14px;
    color: #64748B;
    margin: 0;
    line-height: 1.6;
}

/* Popular states */
.popular-states {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.state-card {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.state-card:hover {
    border-color: #2563EB;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
    text-decoration: none;
}

.state-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #1B2A4A;
    margin: 0 0 3px;
}

.state-card-count {
    font-size: 12px;
    color: #94A3B8;
    margin: 0;
}

/* Trust signals */
.trust-signals {
    background: #1B2A4A;
    padding: 48px 24px;
}

.trust-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
    text-align: center;
}

.trust-number {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.trust-label {
    font-size: 13px;
    color: #94A3B8;
    margin: 0;
}

/* Plan cards */
.plan-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.plan-card {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.plan-card:hover {
    border-color: #2563EB;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    text-decoration: none;
}

.plan-card-icon {
    width: 44px;
    height: 44px;
    background: #EFF6FF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.plan-card-icon svg {
    stroke: #2563EB;
}

.plan-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #1B2A4A;
    margin: 0 0 4px;
}

.plan-card-price {
    font-size: 13px;
    color: #94A3B8;
    margin: 0;
}

/* === Breadcrumbs === */
.breadcrumbs {
    font-size: 13px;
    color: #94A3B8;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.breadcrumbs a {
    color: #64748B;
    transition: color 0.15s;
}

.breadcrumbs a:hover {
    color: #2563EB;
    text-decoration: none;
}

.breadcrumb-current {
    color: #475569;
}

/* === Article Meta (date/reviewer) === */
.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #94A3B8;
}

.meta-sep {
    color: #CBD5E1;
}

/* === Quick Answer === */
.quick-answer {
    background: #F0FDF4;
    border-left: 4px solid #22C55E;
    padding: 20px 22px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 32px;
}

.quick-answer-label {
    font-size: 13px;
    font-weight: 700;
    color: #15803D;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.quick-answer-text {
    font-size: 15px;
    color: #166534;
    margin: 0;
    line-height: 1.65;
}

/* === Table of Contents === */
.toc-box {
    background: #F8F9FA;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 36px;
}

.toc-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.toc-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-link {
    font-size: 14px;
    color: #2563EB;
    font-weight: 500;
    transition: color 0.15s;
}

.toc-link:hover {
    color: #1D4ED8;
}

/* === FAQ === */
.faq-section h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1B2A4A;
    margin: 0 0 20px;
}

.faq-list {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 36px;
}

.faq-item {
    padding: 18px 20px;
    border-bottom: 1px solid #E2E8F0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 15px;
    font-weight: 600;
    color: #1B2A4A;
    margin: 0 0 8px;
}

.faq-answer,
.faq-answer p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.7;
    margin: 0;
}

/* === State Grid === */
.state-grid-section {
    margin-bottom: 36px;
}

.state-grid-section h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1B2A4A;
    margin: 0 0 10px;
}

.state-grid-intro {
    font-size: 15px;
    color: #64748B;
    margin: 0 0 20px;
}

.state-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.state-grid-item {
    background: #F8F9FA;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #2563EB;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.state-grid-item:hover {
    background: #EFF6FF;
    border-color: #2563EB;
    text-decoration: none;
}

/* === Info Card (L2/L3/State Hub) === */
.info-card {
    background: #F8F9FA;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.info-card-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.info-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.info-card-sublabel {
    font-size: 11px;
    color: #94A3B8;
    margin: 0 0 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card-value {
    font-size: 14px;
    font-weight: 500;
    color: #1E293B;
    margin: 0;
    line-height: 1.5;
}

.info-card-value a {
    font-size: 14px;
    color: #2563EB;
}

/* === City Comparison Table === */
.comparison-table-wrap {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 28px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.comparison-table thead tr {
    background: #F8F9FA;
}

.comparison-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 700;
    color: #64748B;
    border-bottom: 1px solid #E2E8F0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #E2E8F0;
    color: #475569;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td a {
    font-weight: 600;
    color: #2563EB;
}

.comparison-note {
    font-size: 12px;
    color: #94A3B8;
    margin: 10px 0 0;
    padding: 0 4px;
}

/* === Neighboring States === */
.neighboring-states {
    background: #F8F9FA;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.neighboring-label {
    font-size: 13px;
    font-weight: 500;
    color: #64748B;
    margin: 0;
}

.neighbor-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.neighbor-pill {
    font-size: 13px;
    font-weight: 500;
    color: #2563EB;
    background: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid #BFDBFE;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.neighbor-pill:hover {
    background: #EFF6FF;
    border-color: #2563EB;
    text-decoration: none;
}

/* === L3 Hero (Two-Column) === */
.l3-hero {
    background: #F8F9FA;
    padding: 40px 24px;
    border-bottom: 1px solid #E2E8F0;
}

.l3-hero-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.l3-hero-content h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1B2A4A;
    margin: 0 0 14px;
    line-height: 1.25;
    letter-spacing: -0.4px;
}

.l3-hero .quick-answer {
    margin-bottom: 20px;
}

.l3-bridging {
    font-size: 15px;
    color: #64748B;
    line-height: 1.75;
    margin: 0;
}

/* Lead Gen Form */
.lead-form {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.lead-form-heading {
    font-size: 16px;
    font-weight: 700;
    color: #1B2A4A;
    margin: 0 0 5px;
}

.lead-form-subtext {
    font-size: 13px;
    color: #94A3B8;
    margin: 0 0 18px;
}

.lead-form-field {
    margin-bottom: 12px;
}

.lead-form-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
    margin: 0 0 5px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.lead-form-field input,
.lead-form-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #1E293B;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}

.lead-form-field input:focus,
.lead-form-field textarea:focus {
    border-color: #2563EB;
    outline: 2px solid rgba(37,99,235,0.15);
}

.lead-form-field textarea {
    height: 56px;
    resize: none;
}

.lead-form-btn {
    width: 100%;
    padding: 12px;
    background: #2563EB;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    margin-bottom: 10px;
    transition: background 0.15s, transform 0.1s;
}

.lead-form-btn:hover {
    background: #1D4ED8;
    transform: translateY(-1px);
}

.lead-form-note {
    font-size: 11px;
    color: #94A3B8;
    text-align: center;
    margin: 0;
}

/* City Info Cards */
.city-info-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}

.city-info-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.city-info-label {
    font-size: 11px;
    font-weight: 700;
    color: #94A3B8;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.city-info-value {
    font-size: 17px;
    font-weight: 700;
    color: #1B2A4A;
    margin: 0;
}

/* Permit Steps Visual */
.permit-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}

.permit-step {
    text-align: center;
}

/* Building Department Section */
.dept-section {
    margin-bottom: 36px;
}

.dept-section h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1B2A4A;
    margin: 0 0 20px;
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.dept-card {
    background: #F8F9FA;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 18px;
}

.dept-card-label {
    font-size: 11px;
    font-weight: 700;
    color: #94A3B8;
    margin: 0 0 5px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.dept-card-value {
    font-size: 14px;
    font-weight: 500;
    color: #1E293B;
    margin: 0;
    word-break: break-word;
}

/* Plans Section */
.plans-section {
    margin-bottom: 36px;
}

.plans-section h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1B2A4A;
    margin: 0 0 6px;
}

.plans-section-text {
    font-size: 15px;
    color: #64748B;
    margin: 0 0 20px;
}

.trust-badges {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
}

.badge-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #F0FDF4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #22C55E;
    font-weight: 700;
}

.product-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.product-card {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.product-image {
    background: #F8F9FA;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-info {
    padding: 14px 16px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #1B2A4A;
    margin: 0 0 5px;
}

.product-desc {
    font-size: 12px;
    color: #94A3B8;
    margin: 0 0 10px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #1B2A4A;
    margin: 0;
}

.product-link {
    font-size: 13px;
    font-weight: 500;
    color: #2563EB;
}

.view-all-plans {
    font-size: 14px;
    font-weight: 500;
    color: #2563EB;
}

/* Cross-Project Links */
.cross-project-section {
    border-top: 1px solid #E2E8F0;
    padding-top: 24px;
    margin-bottom: 36px;
}

.cross-project-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1B2A4A;
    margin: 0 0 16px;
}

.cross-project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.cross-project-link {
    background: #F8F9FA;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #2563EB;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.cross-project-link:hover {
    background: #EFF6FF;
    border-color: #2563EB;
    text-decoration: none;
}

.cross-project-uplinks {
    font-size: 14px;
    color: #64748B;
    margin: 0;
}

/* === City Grid === */
.city-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

/* === Plans CTA === */
.plans-cta {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.plans-cta-text {
    flex: 1;
    min-width: 240px;
}

.plans-cta-heading {
    font-size: 18px;
    font-weight: 700;
    color: #1E40AF;
    margin: 0 0 7px;
}

.plans-cta-desc {
    font-size: 14px;
    color: #3B82F6;
    margin: 0;
    line-height: 1.6;
}

.plans-cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #2563EB;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, transform 0.1s;
}

.plans-cta-btn:hover {
    background: #1D4ED8;
    text-decoration: none;
    color: #fff;
    transform: translateY(-1px);
}

/* === Related Projects === */
.related-projects {
    border-top: 1px solid #E2E8F0;
    padding-top: 20px;
    margin-bottom: 36px;
}

.related-projects p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.75;
    margin: 0;
}

/* === City Search === */
.city-search {
    background: #F8F9FA;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 28px 32px;
    margin: 28px 0 36px;
    text-align: center;
}

.city-search-heading {
    font-size: 18px;
    font-weight: 700;
    color: #1B2A4A;
    margin: 0 0 7px;
}

.city-search-desc {
    font-size: 14px;
    color: #64748B;
    margin: 0 0 20px;
}

.city-search-form {
    display: flex;
    gap: 8px;
    max-width: 460px;
    margin: 0 auto;
}

.city-search-input-wrap {
    flex: 1;
    position: relative;
}

.city-search-input {
    width: 100%;
    padding: 11px 16px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #1E293B;
    outline: none;
    transition: border-color 0.15s;
}

.city-search-input:focus {
    border-color: #2563EB;
    outline: 2px solid rgba(37,99,235,0.15);
}

.city-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 50;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.city-search-result-item {
    padding: 10px 16px;
    font-size: 14px;
    color: #1E293B;
    cursor: pointer;
    transition: background 0.1s;
}

.city-search-result-item:hover {
    background: #EFF6FF;
}

.city-search-btn {
    padding: 11px 20px;
    background: #2563EB;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, transform 0.1s;
}

.city-search-btn:hover {
    background: #1D4ED8;
    transform: translateY(-1px);
}

/* === Disclaimer === */
.disclaimer {
    background: #F8F9FA;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 28px;
}

.disclaimer p {
    font-size: 13px;
    color: #94A3B8;
    margin: 0;
    line-height: 1.6;
    font-style: italic;
}

/* === Footer === */
.site-footer {
    background: #1B2A4A;
    padding: 64px 24px 0;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2.5fr 1fr;
    gap: 48px;
}

.footer-section h4 {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    font-size: 13px;
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-section a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-state-list {
    columns: 4;
    column-gap: 0;
}

.footer-bottom {
    max-width: 1100px;
    margin: 48px auto 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 12px;
    color: #64748B;
}

/* === State Hub: Project Sections === */
.project-section {
    margin-bottom: 36px;
    border-top: 1px solid #E2E8F0;
    padding-top: 28px;
}

.project-section-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
}

.project-section-header h2 {
    margin: 0;
}

.full-guide-link {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 16px;
    padding-top: 4px;
    color: #2563EB;
}

/* === Expandable City Grid === */
.city-expand-section {
    margin-bottom: 36px;
}

.city-expand-section h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1B2A4A;
    margin: 0 0 12px;
}

.city-expand-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.city-expand-item {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s;
}

.city-expand-item.expanded {
    border-color: #2563EB;
}

.city-expand-header {
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.15s;
}

.city-expand-header:hover {
    background: #F8F9FA;
}

.city-expand-item.expanded .city-expand-header {
    background: #EFF6FF;
}

.city-expand-name {
    font-size: 14px;
    font-weight: 600;
    color: #1B2A4A;
    margin: 0;
}

.city-expand-count {
    font-size: 12px;
    color: #94A3B8;
    font-weight: 500;
}

.city-expand-body {
    display: none;
    padding: 12px 18px;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid #E2E8F0;
}

.city-expand-item.expanded .city-expand-body {
    display: flex;
}

.city-expand-pill {
    font-size: 13px;
    font-weight: 500;
    color: #2563EB;
    background: #F8F9FA;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.city-expand-pill:hover {
    background: #EFF6FF;
    border-color: #2563EB;
    text-decoration: none;
}

/* === Responsive — Tablet === */
@media (max-width: 1024px) {
    .state-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .project-cards,
    .plan-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .popular-states {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-state-list {
        columns: 3;
    }

    .hero-title {
        font-size: 36px;
    }
}

/* === Responsive — Mobile === */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #E2E8F0;
        flex-direction: column;
        padding: 16px 24px;
        gap: 4px;
        z-index: 100;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }

    .nav-links.nav-open {
        display: flex;
    }

    .site-nav {
        position: relative;
    }

    .state-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-card-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table-wrap {
        overflow-x: auto;
    }

    .city-grid {
        grid-template-columns: 1fr;
    }

    .l3-hero-inner {
        grid-template-columns: 1fr;
    }

    .city-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .permit-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dept-grid {
        grid-template-columns: 1fr;
    }

    .product-cards {
        grid-template-columns: 1fr;
    }

    .cross-project-grid {
        grid-template-columns: 1fr;
    }

    .neighboring-states {
        flex-direction: column;
        align-items: flex-start;
    }

    .plans-cta {
        flex-direction: column;
        text-align: center;
    }

    .plans-cta-text {
        min-width: auto;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-state-list {
        columns: 2;
    }

    .article-container {
        padding: 24px 16px 48px;
    }

    .article-body h1 {
        font-size: 28px;
    }

    .article-body h2 {
        font-size: 22px;
    }

    .project-cards,
    .plan-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .popular-states {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero {
        padding: 56px 20px;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-search {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
    }

    .hero-search-select,
    .hero-search-city-wrap,
    .hero-search-btn {
        width: 100%;
        min-width: auto;
    }

    .trust-inner {
        gap: 32px;
    }

    .section-title {
        font-size: 24px;
    }

    .home-section {
        padding: 48px 16px;
    }

    .how-it-works {
        padding: 48px 16px;
    }
}

@media (max-width: 480px) {
    .state-grid {
        grid-template-columns: 1fr;
    }

    .footer-state-list {
        columns: 1;
    }

    .city-search-form {
        flex-direction: column;
    }

    .hero-title {
        font-size: 26px;
    }

    .article-body h1 {
        font-size: 24px;
    }
}
