/*
Theme Name:   HousePermits
Theme URI:    https://housepermits.com
Description:  Custom standalone theme for HousePermits.com — AI-native permit knowledge base
Author:       HousePermits.com
Author URI:   https://housepermits.com
Version:      1.1.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  housepermits
Tags:         custom, full-width
*/

/* ============================================
   HOUSEPERMITS.COM — BRAND DESIGN SYSTEM
   ============================================ */

:root {
  /* Navy/Red design system (April 2026) */
  --hp-green-darkest:  #0a1929;
  --hp-green-dark:     #0d2137;
  --hp-green-mid:      #1a3a5c;
  --hp-green-base:     #c0392b;
  --hp-green-light:    #2c5f8a;
  --hp-green-lighter:  #d4dce6;
  --hp-green-lightest: #f5f4f0;

  --hp-text-primary:   #1a1a1a;
  --hp-text-secondary: #5c5c5c;
  --hp-text-muted:     #888;

  --hp-border:         rgba(0,0,0,0.10);
  --hp-border-strong:  rgba(0,0,0,0.18);

  --hp-radius-sm:  6px;
  --hp-radius-md:  10px;
  --hp-radius-lg:  14px;
  --hp-radius-xl:  20px;

  --hp-shadow-sm:  0 1px 3px rgba(0,0,0,0.07);
  --hp-shadow-md:  0 2px 8px rgba(0,0,0,0.09);
}

/* ============================================
   RESET & BASE
   ============================================ */

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

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

body {
  margin: 0;
  padding: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--hp-text-primary);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--hp-green-mid); text-decoration: none; }
a:hover { color: var(--hp-green-dark); }

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  line-height: 1.25;
  color: var(--hp-text-primary);
  margin: 0 0 1rem;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.875rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--hp-text-secondary);
  margin: 0 0 1rem;
}

ul, ol { padding-left: 1.5rem; color: var(--hp-text-secondary); line-height: 1.7; }

/* ============================================
   SITE WRAPPER
   ============================================ */

#hp-site { display: flex; flex-direction: column; min-height: 100vh; }
#hp-content { flex: 1; }

/* ============================================
   HEADER & NAV
   ============================================ */

#hp-header {
  background: #0d2137;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.hp-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.hp-logo {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.hp-logo em { font-style: normal; color: #e8e8e8; }
.hp-logo span { font-weight: 400; color: #c0392b; font-size: 0.9em; }

/* Nav links */
.hp-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hp-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.80);
  padding: 6px 12px;
  border-radius: var(--hp-radius-sm);
  transition: all 0.14s ease;
  white-space: nowrap;
}

.hp-nav a:hover,
.hp-nav .current-menu-item > a {
  color: #ffffff;
  background: rgba(255,255,255,0.10);
}

/* Nav CTA */
.hp-nav .hp-nav-cta > a,
.hp-nav li.hp-nav-cta > a {
  background: #c0392b;
  color: #ffffff !important;
  border-radius: var(--hp-radius-md);
  padding: 7px 16px;
}

.hp-nav .hp-nav-cta > a:hover,
.hp-nav li.hp-nav-cta > a:hover {
  background: #a93226;
  color: #ffffff !important;
}

/* Mobile hamburger */
.hp-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
}

.hp-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: all 0.2s;
}

/* Mobile nav */
.hp-mobile-nav {
  display: none;
  background: #0d2137;
  border-top: 0.5px solid rgba(255,255,255,0.10);
  padding: 12px 24px 20px;
}

.hp-mobile-nav.open { display: block; }

.hp-mobile-nav a {
  display: block;
  padding: 10px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.80);
  border-bottom: 0.5px solid rgba(255,255,255,0.10);
}

.hp-mobile-nav a:last-child { border-bottom: none; }

/* ============================================
   PAGE LAYOUTS
   ============================================ */

/* Full-width — used for homepage, state guides, custom pages */
.hp-layout-full { width: 100%; }

/* Contained — used for blog posts, standard pages */
.hp-layout-contained {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 32px 64px;
}

/* Content + sidebar */
.hp-layout-sidebar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 64px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* ============================================
   BUTTONS
   ============================================ */

.hp-btn {
  display: inline-block;
  background: var(--hp-green-mid);
  color: var(--hp-green-lightest);
  border: none;
  border-radius: var(--hp-radius-md);
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.14s ease, transform 0.1s ease;
  text-decoration: none;
  font-family: inherit;
}

.hp-btn:hover {
  background: var(--hp-green-dark);
  color: var(--hp-green-lightest);
  transform: translateY(-1px);
}

.hp-btn-outline {
  background: transparent;
  color: var(--hp-green-mid);
  border: 1px solid var(--hp-green-base);
}

.hp-btn-outline:hover {
  background: var(--hp-green-lightest);
  color: var(--hp-green-dark);
  transform: translateY(-1px);
}

/* ============================================
   CARDS
   ============================================ */

.hp-card {
  background: #fff;
  border: 0.5px solid var(--hp-border);
  border-radius: var(--hp-radius-lg);
  padding: 1.25rem;
  transition: border-color 0.14s, box-shadow 0.14s;
}

.hp-card:hover {
  border-color: var(--hp-green-base);
  box-shadow: var(--hp-shadow-sm);
}

/* ============================================
   PERMIT TABLES
   ============================================ */

.hp-permit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.hp-permit-table th {
  text-align: left;
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hp-text-muted);
  border-bottom: 0.5px solid var(--hp-border-strong);
  padding: 0.6rem 0.75rem;
}

.hp-permit-table td {
  padding: 0.75rem;
  border-bottom: 0.5px solid var(--hp-border);
  color: var(--hp-text-secondary);
  vertical-align: top;
}

.hp-permit-table td:first-child { font-weight: 500; color: var(--hp-text-primary); }
.hp-permit-table tr:last-child td { border-bottom: none; }
.hp-permit-table tr:hover td { background: var(--hp-green-lightest); }

/* ============================================
   HOW-TO STEPS
   ============================================ */

.hp-steps { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.75rem; }

.hp-step { display: flex; gap: 1rem; align-items: flex-start; }

.hp-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--hp-green-lightest);
  border: 1.5px solid var(--hp-green-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--hp-green-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.hp-step-body h4 { font-size: 0.95rem; font-weight: 500; margin-bottom: 0.25rem; }
.hp-step-body p  { font-size: 0.85rem; margin: 0; }

/* ============================================
   FAQ ACCORDION
   ============================================ */

.hp-faq {
  border: 0.5px solid var(--hp-border);
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.hp-faq-item { border-bottom: 0.5px solid var(--hp-border); }
.hp-faq-item:last-child { border-bottom: none; }

.hp-faq-q {
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  transition: background 0.14s;
}

.hp-faq-q:hover { background: var(--hp-green-lightest); }
.hp-faq-a { padding: 0 1.1rem 1rem; font-size: 0.875rem; color: var(--hp-text-secondary); line-height: 1.65; }

/* ============================================
   AI CITATION BANNER
   ============================================ */

.hp-ai-cite {
  background: var(--hp-green-lightest);
  border-left: 3px solid var(--hp-green-base);
  border-radius: 0 var(--hp-radius-md) var(--hp-radius-md) 0;
  padding: 0.75rem 1.1rem;
  margin-bottom: 1.75rem;
  font-size: 0.8rem;
  color: var(--hp-green-dark);
  line-height: 1.55;
}

/* ============================================
   STAT CHIPS
   ============================================ */

.hp-stat {
  background: #f6f5f1;
  border-radius: var(--hp-radius-md);
  padding: 1rem 1.1rem;
}

.hp-stat-label { font-size: 0.72rem; color: var(--hp-text-muted); margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.04em; }
.hp-stat-val   { font-size: 1.5rem; font-weight: 500; color: var(--hp-text-primary); margin-bottom: 0.2rem; }
.hp-stat-sub   { font-size: 0.75rem; color: var(--hp-text-muted); }

/* ============================================
   SIDEBAR CARDS
   ============================================ */

.hp-sidebar-card {
  background: #f6f5f1;
  border-radius: var(--hp-radius-lg);
  padding: 1.1rem;
  margin-bottom: 1rem;
}

.hp-sidebar-card h4 { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.hp-sidebar-card p  { font-size: 0.8rem; margin-bottom: 0.75rem; }

.hp-sidebar-card.accent {
  background: var(--hp-green-lightest);
  border: 0.5px solid var(--hp-green-lighter);
}

.hp-sidebar-card.accent h4 { color: var(--hp-green-dark); }
.hp-sidebar-card.accent p  { color: var(--hp-green-mid); }

/* ============================================
   BREADCRUMBS
   ============================================ */

.hp-breadcrumb {
  font-size: 0.78rem;
  color: var(--hp-text-muted);
  padding: 0.75rem 0;
  margin-bottom: 1rem;
}

.hp-breadcrumb a { color: var(--hp-text-secondary); }
.hp-breadcrumb a:hover { color: var(--hp-green-mid); }
.hp-breadcrumb .sep { margin: 0 0.35rem; color: var(--hp-border-strong); }

/* ============================================
   UTILITY
   ============================================ */

.hp-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hp-green-mid);
  margin-bottom: 0.5rem;
  display: block;
}

.hp-meta-chip {
  font-size: 0.75rem;
  color: var(--hp-text-secondary);
  background: #f6f5f1;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  border: 0.5px solid var(--hp-border);
  display: inline-block;
}

/* WordPress core alignment */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.wp-caption { max-width: 100%; }

/* ============================================
   FOOTER
   ============================================ */

#hp-footer {
  background: #0d2137;
  border-top: none;
  padding: 40px 32px 28px;
}

.hp-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.hp-footer-logo {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  display: block;
  margin-bottom: 10px;
}

.hp-footer-logo em { font-style: normal; color: #e8e8e8; }
.hp-footer-logo span { font-weight: 400; color: #c0392b; font-size: 0.9em; }

.hp-footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin: 0 0 14px;
}

.hp-footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.45);
  margin: 0 0 12px;
}

.hp-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hp-footer-col ul li { margin-bottom: 7px; }

.hp-footer-col ul a {
  font-size: 13px;
  color: rgba(255,255,255,0.70);
  transition: color 0.14s;
}

.hp-footer-col ul a:hover { color: #ffffff; }

.hp-footer-bottom {
  max-width: 1200px;
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 0.5px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hp-footer-copy { font-size: 12px; color: rgba(255,255,255,0.40); }

.hp-footer-ai-note {
  font-size: 11px;
  color: rgba(255,255,255,0.30);
  font-family: 'DM Mono', monospace;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .hp-footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hp-layout-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hp-header-inner { padding: 0 20px; }
  .hp-nav { display: none; }
  .hp-hamburger { display: flex; }
  #hp-footer { padding: 32px 20px 24px; }
  .hp-footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hp-layout-contained { padding: 32px 20px 48px; }
}

@media (max-width: 480px) {
  .hp-footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .hp-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   FRONT PAGE — TOOL ROW (Wizard + Finder)
   Hardcoded in front-page.php (JS-dependent).
   ============================================ */

.hp-fp-tool-row-wrap {
  background: #f5f4f0;
  padding: 28px 24px 20px;
}

.hp-fp-tool-row {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.hp-fp-card {
  background: #fff;
  border: 0.5px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  padding: 20px 22px;
}

.hp-fp-card-eye {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin: 0 0 6px;
  display: block;
}

.hp-fp-card-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: #0d2137;
  margin: 0 0 4px;
  line-height: 1.3;
}

.hp-fp-card-title--center { text-align: center; }

.hp-fp-card-sub {
  font-size: 0.8rem;
  color: #666;
  margin: 0 0 14px;
  line-height: 1.5;
}

.hp-fp-card-sub--center { text-align: center; }

/* Wizard step progress bar */
.hp-wiz-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.hp-wiz-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.hp-wiz-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ddd;
  color: #aaa;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hp-wiz-dot.active { background: #0d2137; color: #fff; }
.hp-wiz-dot.done   { background: #1a3a5c; color: #fff; }

.hp-wiz-step-label {
  font-size: 10px;
  color: #bbb;
  white-space: nowrap;
}

.hp-wiz-step-label.active { color: #0d2137; font-weight: 600; }
.hp-wiz-step-label.done   { color: #1a3a5c; }

.hp-wiz-line {
  flex: 1;
  height: 1px;
  background: #ddd;
  margin-bottom: 14px;
}

.hp-wiz-line.done { background: #1a3a5c; }

/* Project grid — 3 cols, all 17 tiles visible */
.hp-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.hp-project-card {
  background: #f5f4f0;
  border: 0.5px solid #ddd;
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.hp-project-card:hover,
.hp-project-card.sel {
  border-color: #c0392b;
  background: #fef3f0;
}

.hp-pc-icon { font-size: 20px; line-height: 1; }
.hp-pc-label { font-size: 11px; color: #333; line-height: 1.2; }

.hp-fp-tile-note {
  font-size: 11px;
  color: #999;
  text-align: center;
  margin: 4px 0 0;
}

/* Question card (step 2) */
.hp-wiz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.hp-wiz-chip {
  font-size: 11px;
  background: #f5f4f0;
  border: 0.5px solid #ddd;
  border-radius: 20px;
  padding: 4px 10px;
  color: #555;
}

.hp-q-card {
  background: #f8fafc;
  border: 1px solid #d0dce8;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}

.hp-q-progress { font-size: 11px; color: #888; margin: 0 0 6px; }
.hp-q-text     { font-size: 0.9rem; font-weight: 500; color: #0d2137; margin: 0 0 14px; }

.hp-q-btns { display: flex; gap: 10px; }

.hp-q-btn {
  flex: 1;
  padding: 9px;
  border-radius: 7px;
  border: 1.5px solid #d0dce8;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.14s;
  color: #333;
}

.hp-q-yes:hover, .hp-q-yes.active { background: #0d2137; color: #fff; border-color: #0d2137; }
.hp-q-no:hover,  .hp-q-no.active  { background: #e8ecf0; border-color: #b0bcc8; }

.hp-wiz-state-row { margin-top: 12px; }
.hp-wiz-state-label { font-size: 12px; color: #555; display: block; margin-bottom: 5px; }

.hp-wiz-state-select {
  width: 100%;
  border: 1px solid #d0cdc8;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  color: #333;
  background: #fff;
}

/* Result (step 3) */
.hp-result-box {
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}

.hp-result-yes   { background: #fef3f0; border: 1.5px solid #f5c9be; }
.hp-result-no    { background: #eaf7f0; border: 1.5px solid #a5d6bc; }
.hp-result-likely{ background: #fffbea; border: 1.5px solid #f5e0a0; }
.hp-result-check { background: #f0f4ff; border: 1.5px solid #b8c8f0; }

.hp-result-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hp-pill-yes    { background: #c0392b; color: #fff; }
.hp-pill-no     { background: #27ae60; color: #fff; }
.hp-pill-likely { background: #e67e22; color: #fff; }
.hp-pill-check  { background: #2980b9; color: #fff; }

.hp-result-title  { font-size: 1rem; font-weight: 600; color: #0d2137; margin: 0 0 6px; }
.hp-result-reason { font-size: 0.85rem; color: #444; margin: 0 0 10px; line-height: 1.6; }
.hp-result-state  { font-size: 0.8rem; color: #666; margin: 0 0 10px; }

.hp-result-actions { margin-top: 12px; }

.hp-result-cta {
  display: inline-block;
  background: #0d2137;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 7px;
  padding: 8px 16px;
  text-decoration: none;
  transition: background 0.14s;
}

.hp-result-cta:hover { background: #1a3a5c; color: #fff; }

.hp-wiz-restart {
  display: block;
  background: none;
  border: 1px solid #ddd;
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  font-family: inherit;
  margin-top: 8px;
  transition: border-color 0.14s;
}

.hp-wiz-restart:hover { border-color: #0d2137; color: #0d2137; }

/* Permit Office Finder card */
.hp-finder-pin {
  width: 20px;
  height: 20px;
  background: #c0392b;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  margin: 0 auto 10px;
  position: relative;
}

.hp-finder-pin::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  top: 6px;
  left: 6px;
}

.hp-finder-input {
  width: 100%;
  border: 1.5px solid #d0cdc8;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
  margin-bottom: 10px;
  display: block;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.14s;
}

.hp-finder-input:focus { border-color: #1a3a5c; }
.hp-finder-input::placeholder { color: #aaa; }

.hp-finder-btn {
  display: block;
  width: 100%;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 14px;
  transition: background 0.14s;
}

.hp-finder-btn:hover { background: #a93226; }

.hp-finder-how { border-top: 1px solid #eee; padding-top: 10px; }

.hp-finder-how-title {
  font-size: 11px;
  font-weight: 600;
  color: #0d2137;
  margin: 0 0 8px;
}

.hp-finder-step {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 7px;
}

.hp-finder-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0d2137;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.hp-finder-text { font-size: 11px; color: #555; line-height: 1.55; }

/* ============================================
   FRONT PAGE — WP-EDITABLE SECTIONS
   Styled via Custom HTML blocks in WP Admin.
   ============================================ */

/* Hero */
.hp-home-hero {
  background: #1a3a5c;
  padding: 40px 24px 36px;
  text-align: center;
}

.hp-home-hero-eye {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 10px;
  display: block;
}

.hp-home-hero h1 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  margin: 0 auto 10px;
  max-width: 640px;
}

.hp-home-hero-sub {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin: 0 auto 24px;
  max-width: 560px;
  line-height: 1.6;
}

.hp-home-search-wrap {
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.15);
}

.hp-home-search-wrap input {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  outline: none;
  min-width: 0;
}

.hp-home-search-wrap input::placeholder { color: #aaa; }

.hp-home-search-wrap button {
  background: #c0392b;
  color: #fff;
  border: none;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s;
}

.hp-home-search-wrap button:hover { background: #a93226; }

.hp-home-search-note {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin: 10px 0 0;
}

/* Contractor block */
.hp-home-contractor {
  background: #fff;
  border: 2px solid #1a3a5c;
  border-radius: 14px;
  max-width: 1100px;
  margin: 24px auto;
  padding: 24px 28px;
}

.hp-home-ctc-eye {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.hp-home-ctc-head {
  font-size: 1.2rem;
  font-weight: 500;
  color: #0d2137;
  margin: 0 0 6px;
}

.hp-home-ctc-sub {
  font-size: 0.85rem;
  color: #555;
  margin: 0 0 18px;
  line-height: 1.6;
}

.hp-home-ctc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.hp-home-ctc-card {
  background: #f8fafc;
  border: 1px solid #d0dce8;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.hp-home-ctc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,58,92,0.12);
  border-color: #1a3a5c;
  color: inherit;
  text-decoration: none;
}

.hp-home-ctc-card--featured { border: 2px solid #c0392b; background: #fff; }
.hp-home-ctc-card--featured:hover { border-color: #a93226; }

.hp-home-ctc-icon { font-size: 26px; line-height: 1; }
.hp-home-ctc-name { font-size: 0.875rem; font-weight: 600; color: #1a1a1a; margin: 0; }
.hp-home-ctc-desc { font-size: 0.78rem; color: #666; line-height: 1.55; flex: 1; }

.hp-home-ctc-btn {
  display: inline-block;
  background: #0d2137;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  padding: 6px 12px;
  margin-top: 4px;
  width: fit-content;
  transition: background 0.14s;
}

.hp-home-ctc-btn--red { background: #c0392b; }
.hp-home-ctc-card:hover .hp-home-ctc-btn { background: #1a3a5c; }
.hp-home-ctc-card:hover .hp-home-ctc-btn--red { background: #a93226; }

.hp-home-ctc-footer {
  border-top: 1px solid #ddd;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hp-home-ctc-footer p { font-size: 0.78rem; color: #555; margin: 0; line-height: 1.5; }

.hp-home-ctc-footer a {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 20px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.14s;
}

.hp-home-ctc-footer a:hover { background: #a93226; color: #fff; }

/* State grid */
.hp-home-states-wrap { background: #f5f4f0; padding: 24px; }
.hp-home-states { max-width: 1100px; margin: 0 auto; }

.hp-home-sec-hdr {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0d2137;
  margin: 0 0 14px;
  border-left: 3px solid #c0392b;
  padding-left: 10px;
}

.hp-home-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 6px;
}

.hp-home-state-pill {
  background: #fff;
  border: 0.5px solid rgba(0,0,0,0.10);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
  color: #0d2137;
  text-align: center;
  text-decoration: none;
  transition: background 0.14s, border-color 0.14s;
  display: block;
}

.hp-home-state-pill:hover { background: #fef3f0; border-color: #c0392b; color: #c0392b; }

.hp-home-state-pill--more {
  background: #fef3f0;
  border-color: #f5c9be;
  color: #a0352a;
  font-weight: 600;
}

/* Permit type grid */
.hp-home-permits-wrap { background: #fff; border-top: 1px solid rgba(0,0,0,0.07); padding: 24px; }
.hp-home-permits { max-width: 1100px; margin: 0 auto; }

.hp-home-pt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.hp-home-pt-card {
  background: #f5f4f0;
  border-radius: 10px;
  padding: 14px 8px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: background 0.14s, transform 0.14s;
}

.hp-home-pt-card:hover { background: #fef3f0; transform: translateY(-2px); }

.hp-home-pt-icon { font-size: 22px; line-height: 1; }

.hp-home-pt-label {
  font-size: 12px;
  font-weight: 500;
  color: #0d2137;
  line-height: 1.3;
}

/* ============================================
   FRONT PAGE — RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .hp-fp-tool-row-wrap { padding: 20px 16px 16px; }
  .hp-fp-tool-row { grid-template-columns: 1fr; gap: 14px; }
  .hp-project-grid { grid-template-columns: repeat(3, 1fr); }
  .hp-home-hero { padding: 28px 16px 24px; }
  .hp-home-contractor { margin: 16px; padding: 18px; }
  .hp-home-ctc-grid { grid-template-columns: 1fr; }
  .hp-home-ctc-footer { flex-direction: column; align-items: flex-start; }
  .hp-home-states-wrap, .hp-home-permits-wrap { padding: 20px 16px; }
  .hp-home-pt-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}

@media (max-width: 480px) {
  .hp-project-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-home-state-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}
