/* Find Permit Expeditor — visual identity v2
   Palette: deep navy (trust) + safety orange (speed/action) */
:root {
  --navy-900: #0d1b33;
  --navy-800: #14264a;
  --navy-700: #1e3560;
  --ink: #232f42;
  --muted: #5d6a80;
  --orange: #ff6b1a;
  --orange-dark: #d9540d;
  --orange-soft: #fff3e9;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --border: #dfe5ee;
  --radius: 14px;
  --max: 1120px;
  --shadow: 0 10px 30px rgba(13, 27, 51, 0.10);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
a { color: var(--navy-700); }
a:hover { color: var(--orange-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.25; color: var(--navy-900); }
h1 { font-size: 2.15rem; margin: 0 0 0.8rem; font-weight: 800; }
h2 { font-size: 1.55rem; margin: 0 0 0.9rem; font-weight: 750; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; font-weight: 700; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--orange); color: #fff; padding: 0.6rem 1rem; z-index: 100;
  font-weight: 700; text-decoration: none; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: #fff;
  padding: 0.7rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 2px 12px rgba(13, 27, 51, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.brand:hover { color: #fff; }
.brand-mark { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35)); }
.brand-text em { font-style: normal; color: var(--orange); }
.site-nav { display: flex; gap: 0.25rem 1.15rem; flex-wrap: wrap; align-items: center; }
.site-nav a {
  color: #d3dbe8;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: #fff; border-bottom-color: var(--orange); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
main { display: block; }
section.block { padding: 2.6rem 0; }
section.block.soft { background: var(--bg-soft); }
p.muted, .muted { color: var(--muted); }
.lede { font-size: 1.12rem; color: #3c4a61; max-width: 44rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 420px at 85% -10%, rgba(255, 107, 26, 0.22), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 34px),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #fff;
  padding: 3.4rem 0 3.2rem;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.kicker {
  display: inline-block;
  background: rgba(255, 107, 26, 0.16);
  border: 1px solid rgba(255, 107, 26, 0.65);
  color: #ffb37e;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin: 0 0 1rem;
}
.hero h1 { color: #fff; font-size: 2.5rem; margin: 0 0 0.8rem; }
.hero p.lede { color: #c9d3e4; margin: 0 0 1.6rem; }
.hero .cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-mascot {
  width: 100%;
  max-width: 330px;
  justify-self: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.72rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(255, 107, 26, 0.35); }
.btn-gold:hover { background: var(--orange-dark); color: #fff; }
.btn-outline { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-900); color: #fff; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 1.15rem;
  margin-top: 1.3rem;
}
.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.35rem 1.2rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 1.3rem; right: 1.3rem;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--orange), #ffa25e);
  opacity: 0;
  transition: opacity 0.14s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card h3 { margin: 0; font-size: 1.14rem; }
.card h3 a { text-decoration: none; color: var(--navy-900); }
.card h3 a:hover { color: var(--orange-dark); text-decoration: underline; }
.card .meta { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.card .services { font-size: 0.95rem; color: #3c4a61; margin: 0; }
.card .card-foot {
  margin-top: auto;
  padding-top: 0.7rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  font-size: 0.93rem;
  font-weight: 600;
}
.card .card-foot a { color: var(--orange-dark); text-decoration: none; }
.card .card-foot a:hover { text-decoration: underline; }
.badge-featured {
  display: inline-block;
  background: var(--orange-soft);
  color: var(--orange-dark);
  border: 1px solid var(--orange);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.16rem 0.6rem;
  border-radius: 999px;
}

/* ---------- Firm profile ---------- */
.firm-head { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; justify-content: space-between; }
.firm-facts {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}
.firm-facts dl { display: grid; grid-template-columns: 11rem 1fr; gap: 0.5rem 1rem; margin: 0; }
.firm-facts dt { font-weight: 700; color: var(--navy-800); }
.firm-facts dd { margin: 0; }
.claim-box {
  border: 2px dashed var(--orange);
  background: var(--orange-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 1.7rem 0;
}
.claim-box h3 { margin-top: 0; color: var(--navy-900); }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: 0.9rem; color: var(--muted); margin: 1.2rem 0 0; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { text-decoration: underline; color: var(--orange-dark); }

/* ---------- Guides ---------- */
.guide-mascot {
  float: right;
  width: 200px;
  margin: 0 0 1rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}
.guide-body ul { padding-left: 1.3rem; }
.guide-body li { margin-bottom: 0.55rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: #aeb8c9;
  padding: 2.6rem 0 2.8rem;
  font-size: 0.93rem;
  margin-top: 2rem;
  border-top: 3px solid var(--orange);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.8rem;
}
.footer-brand p { font-size: 0.9rem; color: #9aa5bb; margin: 0.7rem 0 0; max-width: 22rem; }
.footer-logo { display: inline-flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.05rem; }
.footer-logo img { width: 32px; height: 32px; }
.footer-logo em { font-style: normal; color: var(--orange); }
.site-footer h4 { color: #fff; margin: 0 0 0.65rem; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; }
.site-footer a { color: #cdd5e1; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.fineprint {
  max-width: var(--max);
  margin: 1.8rem auto 0;
  padding: 1.1rem 1.25rem 0;
  border-top: 1px solid #2c3c5c;
  font-size: 0.84rem;
  color: #8b96ab;
}

/* ---------- Forms note ---------- */
.form-note {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.35rem;
}

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  cursor: pointer;
  flex: none;
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-mascot { max-width: 230px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Collapse primary nav into the hamburger toggle (progressive enhancement:
     only applies when JS runs, signalled by .js on <html>) */
  .js .header-inner { flex-wrap: nowrap; position: relative; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 0.9rem;
    border-bottom: 3px solid var(--orange);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
    z-index: 60;
  }
  .js .site-header.nav-open .site-nav { display: flex; }
  .js .site-nav a {
    padding: 0.7rem 0.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 1rem;
  }
  .js .site-nav a:last-child { border-bottom: 0; }
  .js .site-nav a:hover { color: var(--orange); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 1.8rem; }
  .hero { padding: 2.4rem 0 2.2rem; }
  .hero h1 { font-size: 1.9rem; }
  .hero-mascot { max-width: 190px; }
  .firm-facts dl { grid-template-columns: 1fr; }
  .firm-facts dt { margin-top: 0.5rem; }
  .guide-mascot { float: none; display: block; width: 170px; margin: 0 auto 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 0.2rem 0.85rem; }
}

/* ---------- Claim form ---------- */
.claim-form {
  max-width: 620px;
  margin: 1.5rem 0 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.claim-form .field { margin-bottom: 1.1rem; }
.claim-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--navy-900);
}
.claim-form input,
.claim-form select,
.claim-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  box-sizing: border-box;
}
.claim-form input:focus,
.claim-form select:focus,
.claim-form textarea:focus {
  outline: 3px solid rgba(255, 122, 26, 0.35);
  border-color: var(--orange);
}
.claim-form textarea { resize: vertical; }
.claim-form .hint {
  font-size: 0.85rem;
  color: #8b96ab;
  margin: 0.3rem 0 0;
}
.form-status { margin: 0.9rem 0 0; font-weight: 600; }
.form-status.ok { color: #1a7f37; }
.form-status.err { color: #b42318; }
