:root {
  --navy: #0b2545;
  --navy-light: #14335c;
  --navy-lighter: #1c4275;
  --gold: #c9932f;
  --gold-light: #e0ac4a;
  --bg: #f6f8fa;
  --card-bg: #ffffff;
  --text: #1e2a3a;
  --text-muted: #55657a;
  --border: #e2e8f0;
  --danger-bg: #fbeee0;
  --ok-bg: #e9f3ec;
  --gold-text: #7a5308;
  --ok-dark: #357a4c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

a { color: var(--navy-lighter); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
}

.nav-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 6px;
  font-size: 1rem;
}

nav.main-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: #cfd9e8;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: #fff;
  border-bottom-color: var(--gold);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, transform .15s;
}

.header-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 400px at 15% -10%, rgba(201,147,47,0.18), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 55%, var(--navy-lighter) 100%);
  color: #fff;
  padding: 64px 0 56px;
}

.hero .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #e8edf5;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 18px;
  max-width: 820px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: #dbe3ef;
  max-width: 680px;
  margin: 0 0 30px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  padding: 15px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.02rem;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-light); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-outline:hover { border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* CTA block used mid-page */
.cta-block {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-lighter) 100%);
  color: #fff;
  border-radius: 14px;
  padding: 34px 36px;
  margin: 44px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-block h3 { margin: 0 0 6px; font-size: 1.3rem; }
.cta-block p { margin: 0; color: #d7e0ee; }
.cta-block .btn-primary { flex-shrink: 0; }

/* Sections */
.section { padding: 56px 0; }
.section.alt { background: #eef2f6; }

.section h2 {
  font-size: 1.9rem;
  margin: 0 0 10px;
  color: var(--navy);
}

.section .kicker {
  color: var(--gold-text);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}

.section > p.intro {
  max-width: 760px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 30px;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(15,37,69,0.04);
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f1e6d0;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.card h3 { margin: 0 0 8px; font-size: 1.08rem; color: var(--navy); }
.card p { margin: 0 0 10px; color: var(--text-muted); font-size: 0.96rem; }
.card a.link { font-size: 0.9rem; font-weight: 700; text-decoration: none; }

/* Problem cards (danger tone) */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.problem-card {
  background: var(--danger-bg);
  border: 1px solid #efd9b8;
  border-radius: 12px;
  padding: 22px;
}
.problem-card h3 { margin: 0 0 8px; font-size: 1.02rem; color: #7a4a10; }
.problem-card p { margin: 0; color: #5c4326; font-size: 0.94rem; }

/* Trust list */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.trust-item { display: flex; gap: 14px; }
.trust-item .num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.trust-item h3 { margin: 0 0 6px; font-size: 1.02rem; color: var(--navy); }
.trust-item p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* Chips */
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  background: #fff;
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}

/* Numbered steps (anatomy) */
.steps { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.step {
  display: flex;
  gap: 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}
.step .step-num {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--navy); }
.step p { margin: 0; color: var(--text-muted); font-size: 0.96rem; }

/* Callout boxes */
.callout {
  border-left: 4px solid var(--gold);
  background: #fff;
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 26px 0;
  color: var(--text);
}
.callout strong { color: var(--navy); }

.callout.ok { border-left-color: #3f8a5b; background: var(--ok-bg); }
.callout.warn { border-left-color: #c9932f; background: var(--danger-bg); }

/* Signs list */
.check-list { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 12px; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px;
  font-size: 0.96rem; color: var(--text);
}
.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--ok-bg);
  color: #3f8a5b;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800;
}

/* Cost drivers */
.cost-hero {
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  padding: 28px 32px;
  text-align: center;
  margin: 26px 0 32px;
}
.cost-hero .amount { font-size: 2.4rem; font-weight: 800; color: var(--gold); margin: 6px 0; }
.cost-hero p { margin: 0; color: #d7e0ee; }

.cost-drivers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}
.cost-drivers .driver {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; text-align: center;
}
.cost-drivers .driver .n {
  width: 30px; height: 30px; border-radius: 50%; background: var(--ok-bg); color: #3f8a5b;
  font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px;
}
.cost-drivers .driver h4 { margin: 0 0 6px; font-size: 0.92rem; color: var(--navy); }
.cost-drivers .driver p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

/* FAQ accordion */
.faq-list { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold-text);
  flex-shrink: 0;
  transition: transform .15s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 0 18px; color: var(--text-muted); font-size: 0.97rem; }
.faq-item .faq-answer ul { padding-left: 20px; }
.faq-item .faq-answer p { margin: 0 0 12px; }

/* Permit compare */
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.compare-card { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #fff; }
.compare-card .head {
  padding: 14px 18px; font-weight: 800; color: #fff; font-size: 0.95rem;
  display: flex; align-items: center; gap: 8px;
}
.compare-card.ok .head { background: var(--ok-dark); }
.compare-card.warn .head { background: var(--gold); color: var(--navy); }
.compare-card .body { padding: 18px; color: var(--text-muted); font-size: 0.94rem; }

/* Footer */
footer.site-footer {
  background: var(--navy);
  color: #b9c4d6;
  padding: 40px 0 28px;
  margin-top: 40px;
}
footer.site-footer .footer-top {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 22px;
}
footer.site-footer .footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site-footer .footer-links a { color: #cfd9e8; text-decoration: none; font-size: 0.92rem; font-weight: 600; }
footer.site-footer .footer-links a:hover { color: #fff; }
footer.site-footer .disclaimer {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #8fa0ba;
  max-width: 900px;
}

/* Photo/infographic frames */
.img-frame {
  margin: 32px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(11,37,69,0.08);
}
.img-frame img { width: 100%; display: block; }

.faq-q-row { display: flex; align-items: center; gap: 14px; }
.faq-q-row h3 { margin: 0; font: inherit; color: inherit; }
.faq-thumb {
  width: 52px; height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #eef2f6;
}

/* Accessibility: skip-to-content link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* Width/height attrs on <img> reserve layout space; this keeps them responsive */
.img-frame img { height: auto; }

@media (max-width: 640px) {
  .nav-wrap { flex-direction: column; align-items: flex-start; }
  nav.main-nav { order: 3; width: 100%; justify-content: space-between; }
  .cta-block { flex-direction: column; align-items: flex-start; }
}

/* Lead form */
.lead-form {
  max-width: 760px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}
.lead-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.lead-form .field.full { grid-column: 1 / -1; }
.lead-form label { display: block; font-weight: 600; font-size: 0.92rem; color: var(--navy); margin-bottom: 6px; }
.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form input[type="email"],
.lead-form textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid #c7d1de;
  border-radius: 8px;
  padding: 12px 14px;
}
.lead-form textarea { resize: vertical; min-height: 110px; }
.lead-form input:focus,
.lead-form textarea:focus { outline: 2px solid #c9932f; outline-offset: 1px; border-color: #c9932f; }
.lead-form .consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0;
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.lead-form .consent input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; accent-color: #c9932f; }
.lead-form .consent a { color: var(--navy); text-decoration: underline; }
.lead-form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .btn[disabled] { opacity: 0.6; cursor: wait; }
.lead-form .form-msg { margin: 14px 0 0; font-weight: 600; min-height: 1.4em; }
.lead-form .form-msg.ok { color: var(--ok-dark); }
.lead-form .form-msg.err { color: #a12d2d; }
.lead-form .field.invalid input,
.lead-form .field.invalid textarea { border-color: #a12d2d; }
@media (max-width: 640px) {
  .lead-form { padding: 20px; }
  .lead-form .form-grid { grid-template-columns: 1fr; }
}

/* Multi-page structure */
.breadcrumbs { background: #fff; border-bottom: 1px solid var(--border); font-size: 0.85rem; padding: 10px 0; color: var(--text-muted); }
.breadcrumbs a { color: var(--navy); }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.link-list a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.lead-form select {
  width: 100%; font: inherit; color: var(--text); background: #fff;
  border: 1px solid #c7d1de; border-radius: 8px; padding: 12px 14px;
}
.lead-form select:focus { outline: 2px solid #c9932f; outline-offset: 1px; border-color: #c9932f; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; flex: 1; }
.footer-cols h4 { margin: 0 0 8px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; }
.footer-cols a { display: block; color: #d7e0ee; text-decoration: none; padding: 3px 0; font-size: 0.92rem; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.sticky-call { display: none; }
@media (max-width: 720px) {
  .sticky-call {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: #c9932f; color: #0b2545; text-align: center; font-weight: 700;
    padding: 14px; text-decoration: none; box-shadow: 0 -2px 8px rgba(0,0,0,.2);
  }
  body { padding-bottom: 52px; }
}

/* Cost estimator */
.estimator { max-width: 760px; }
.est-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 28px; margin-bottom: 20px; }
.est-progress { display: flex; align-items: center; gap: 14px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 18px; }
.est-bar { flex: 1; height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.est-bar > span { display: block; height: 100%; background: #c9932f; }
.est-fieldset { border: 0; padding: 0; margin: 0; }
.est-legend { font-size: 1.35rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; padding: 0; }
.est-legend:focus, .est-result-head:focus { outline: none; }
.est-group { margin: 16px 0 6px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-text); }
.est-option { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #c7d1de; border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; background: #fff; }
.est-option:hover { border-color: #c9932f; }
.est-option:has(input:checked) { border-color: #c9932f; background: #fdf7ea; }
.est-option:has(input:focus-visible) { outline: 2px solid #c9932f; outline-offset: 2px; }
.est-option input { margin-top: 4px; width: 18px; height: 18px; accent-color: #c9932f; flex-shrink: 0; }
.est-option strong { display: block; color: var(--navy); }
.est-option small { display: block; color: var(--text-muted); margin-top: 2px; }
.est-nav { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.est-nav .btn-outline { color: var(--navy); border: 2px solid var(--navy); background: transparent; }
.est-result-head { margin: 0 0 6px; font-weight: 600; color: var(--text-muted); }
.est-range { margin: 0 0 6px; font-size: 2.2rem; font-weight: 800; color: var(--navy); }
.est-extra { margin: 0 0 12px; color: var(--text); }
.est-sub { color: var(--text-muted); }
.est-result h3, .est-contact h3 { margin: 18px 0 8px; color: var(--navy); }
.est-notes { color: var(--text-muted); font-size: 0.92rem; padding-left: 20px; }
.est-disclaimer { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.est-disclaimer a { color: var(--navy); text-decoration: underline; }
.est-contact .lead-form { border: 0; padding: 0; max-width: none; }
@media (max-width: 640px) { .est-card { padding: 20px; } .est-range { font-size: 1.8rem; } }
@media (max-width: 720px) { .header-cta { display: none; } }
.cost-range { font-size: 2.2rem; font-weight: 800; color: var(--navy); margin: 0 0 12px; }
