:root {
  color-scheme: light;
  --ink: #11161c;
  --muted: #59616c;
  --line: #dce2ea;
  --paper: #f7f8f5;
  --white: #ffffff;
  --graphite: #171c22;
  --violet: #c557e8;
  --blue: #6f82ff;
  --cyan: #71d9e5;
  --lime: #eff8b6;
  --shadow: 0 24px 80px rgba(16, 22, 30, .18);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image:
    linear-gradient(rgba(17, 22, 28, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 22, 28, .05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, transparent 92%);
  z-index: -1;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

a {
  color: inherit;
  text-decoration: none;
}

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

section[id] {
  scroll-margin-top: 106px;
}

h1,
h2,
h3,
p,
a,
button,
summary,
dt,
dd,
label,
input,
select,
textarea {
  overflow-wrap: anywhere;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  background: rgba(12, 16, 21, .72);
  color: var(--white);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  border-radius: 8px;
}

.brand span {
  display: grid;
  line-height: 1.1;
}

.brand strong {
  font-size: .98rem;
  letter-spacing: 0;
}

.brand small {
  margin-top: 4px;
  color: rgba(255, 255, 255, .66);
  font-size: .72rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: .92rem;
  font-weight: 700;
}

.nav-links a {
  color: rgba(255, 255, 255, .82);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
}

.header-cta,
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius);
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid transparent;
}

.header-cta {
  padding: 0 18px;
  background: var(--white);
  color: var(--ink);
}

.header-cta span,
.button span {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--violet), var(--blue), var(--cyan));
  color: var(--white);
}

.button {
  padding: 0 20px;
  cursor: pointer;
  font-size: .95rem;
}

.button.primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(17, 22, 28, .22);
}

.button.primary.dark {
  background: var(--white);
  color: var(--ink);
}

.button.ghost {
  border-color: rgba(255, 255, 255, .45);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--graphite);
  color: var(--white);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("assets/architect-plans-hero.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 12, 16, .92) 0%, rgba(9, 12, 16, .78) 34%, rgba(9, 12, 16, .28) 72%, rgba(9, 12, 16, .14) 100%),
    linear-gradient(0deg, rgba(9, 12, 16, .72) 0%, transparent 36%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 112px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--violet);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 6.8vw, 6.25rem);
  line-height: .95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.trust-strip {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 56px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px);
}

.trust-strip div {
  padding: 20px;
  background: rgba(12, 16, 21, .42);
}

.trust-strip dt {
  font-weight: 900;
}

.trust-strip dd {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .68);
  line-height: 1.45;
}

.quote-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: -50px auto 0;
  position: relative;
  z-index: 3;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #171c22, #232a32);
  color: var(--white);
  box-shadow: var(--shadow);
}

.quote-band h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: 0;
}

.section,
.order-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 620px;
}

.section-heading h2,
.permit-copy h2,
.order-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.permit-copy p,
.order-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.steps article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 14px 38px rgba(18, 28, 38, .06);
}

.service-card {
  min-height: 264px;
  padding: 24px;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(197, 87, 232, .14), rgba(113, 217, 229, .18));
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
}

.service-card h3,
.steps h3 {
  margin: 24px 0 10px;
  font-size: 1.2rem;
}

.service-card p,
.steps p,
.faq-list p,
.seo-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.seo-section {
  padding-top: 36px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.seo-grid article {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .68));
  box-shadow: 0 14px 38px rgba(18, 28, 38, .06);
}

.seo-grid h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.split {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.blueprint-panel {
  min-height: 520px;
  border-radius: var(--radius);
  border: 1px solid rgba(113, 217, 229, .28);
  background:
    linear-gradient(rgba(113, 217, 229, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(113, 217, 229, .12) 1px, transparent 1px),
    radial-gradient(circle at 30% 20%, rgba(197, 87, 232, .22), transparent 32%),
    #111820;
  background-size: 28px 28px, 28px 28px, auto, auto;
  position: relative;
  overflow: hidden;
}

.plan-sheet {
  position: absolute;
  inset: 42px;
  border: 2px solid rgba(255, 255, 255, .7);
}

.plan-sheet::before,
.plan-sheet::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(255, 255, 255, .45);
}

.plan-sheet::before {
  left: 34px;
  top: 48px;
  width: 52%;
  height: 36%;
}

.plan-sheet::after {
  right: 38px;
  bottom: 42px;
  width: 34%;
  height: 26%;
}

.plan-sheet span {
  position: absolute;
  background: rgba(255, 255, 255, .6);
}

.plan-sheet span:nth-child(1) { left: 34px; right: 34px; top: 56%; height: 2px; }
.plan-sheet span:nth-child(2) { left: 58%; top: 48px; bottom: 42px; width: 2px; }
.plan-sheet span:nth-child(3) { left: 34px; width: 42%; bottom: 82px; height: 2px; }
.plan-sheet span:nth-child(4) { right: 70px; width: 25%; top: 118px; height: 2px; }

.check-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--ink);
  font-weight: 750;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -2px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  font-size: .82rem;
}

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

.steps article {
  padding: 26px;
}

.steps span {
  color: var(--violet);
  font-weight: 950;
}

.order-section {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(28px, 5vw, 74px);
  align-items: start;
  padding-top: 36px;
}

.response-note {
  margin-top: 28px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
}

.response-note span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, .7);
}

.order-form {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

label span {
  color: var(--ink);
  font-size: .86rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  border: 1px solid #cad2dd;
  border-radius: 8px;
  padding: 12px 13px;
  background: #fbfcfd;
  color: var(--ink);
  font: inherit;
  font-size: max(16px, 1rem);
}

textarea {
  resize: vertical;
  min-height: 148px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(111, 130, 255, .22);
  border-color: var(--blue);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 8px;
}

.form-footer p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.form-status {
  display: block;
  min-height: 22px;
  margin-top: 18px;
  color: #244f28;
  font-weight: 800;
}

.faq {
  padding-top: 48px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 20px 22px;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 850;
}

.faq-list p {
  padding-top: 12px;
}

.site-footer {
  background: var(--ink);
  color: var(--white);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(260px, .75fr) 1.25fr;
  gap: clamp(28px, 5vw, 70px);
  margin: 0 auto;
  padding: 58px 0 36px;
}

.footer-brand p {
  color: rgba(255, 255, 255, .7);
  line-height: 1.7;
}

.footer-button {
  width: fit-content;
  margin-top: 10px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.footer-links div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: .9rem;
}

.footer-links a,
.footer-links span {
  color: rgba(255, 255, 255, .68);
  line-height: 1.45;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--lime);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, .58);
  font-size: .88rem;
}

.simple-page {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 84px;
}

.simple-brand {
  margin-bottom: 70px;
}

.simple-brand small {
  color: var(--muted);
}

.simple-hero {
  max-width: 820px;
  margin-bottom: 42px;
}

.simple-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: .98;
}

.simple-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.7;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.sitemap-grid article,
.simple-content {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 14px 38px rgba(18, 28, 38, .06);
}

.sitemap-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
}

.sitemap-grid h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.sitemap-grid a,
.simple-content a {
  color: #2e45b8;
  font-weight: 800;
}

.simple-content {
  padding: clamp(24px, 5vw, 44px);
}

.simple-content h2 {
  margin: 30px 0 10px;
}

.simple-content h2:first-child {
  margin-top: 0;
}

.simple-content p {
  color: var(--muted);
  line-height: 1.75;
}

.admin-body {
  min-height: 100vh;
  background: #eef2f5;
}

.admin-shell[hidden],
.admin-login[hidden] {
  display: none;
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(9, 12, 16, .9), rgba(9, 12, 16, .58)),
    url("assets/architect-plans-hero.jpg") center / cover;
}

.login-card {
  width: min(520px, 100%);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.login-card .brand {
  margin-bottom: 34px;
}

.login-card .brand small {
  color: var(--muted);
}

.login-card h1 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
}

.login-card .button {
  width: 100%;
}

.login-status {
  color: #8a1f1f;
}

.admin-header {
  width: min(1280px, calc(100% - 32px));
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 18px auto 0;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 18px 46px rgba(17, 22, 28, .18);
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-ghost {
  border-color: rgba(255, 255, 255, .28);
  color: var(--white);
  background: transparent;
}

.admin-main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 80px;
}

.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.admin-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 1;
}

.admin-hero p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.admin-warning {
  max-width: 390px;
  padding: 18px;
  border: 1px solid #d8dfae;
  border-radius: var(--radius);
  background: #fbfed9;
}

.admin-warning span {
  display: block;
  margin-top: 8px;
  color: #606633;
  line-height: 1.5;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-stats article,
.admin-toolbar,
.analytics-card,
.traffic-row,
.lead-list,
.lead-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 16px 46px rgba(18, 28, 38, .08);
}

.admin-stats article {
  padding: 22px;
}

.admin-stats span {
  display: block;
  font-size: 2.2rem;
  font-weight: 950;
}

.admin-stats p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 760;
}

.analytics-panels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.analytics-card {
  padding: 20px;
}

.analytics-card h3 {
  margin: 0 0 16px;
  font-size: 1rem;
}

.analytics-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.analytics-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.analytics-card li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.analytics-card span {
  min-width: 0;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-card strong {
  color: var(--ink);
}

.admin-toolbar {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 18px;
  padding: 18px;
  margin-bottom: 18px;
}

.admin-toolbar label {
  margin: 0;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(300px, 430px) 1fr;
  gap: 18px;
  align-items: start;
}

.lead-list {
  display: grid;
  gap: 10px;
  padding: 12px;
  max-height: 680px;
  overflow: auto;
}

.lead-row {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: #f7f9fb;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.lead-row.is-active {
  border-color: rgba(111, 130, 255, .48);
  background: linear-gradient(135deg, rgba(197, 87, 232, .1), rgba(113, 217, 229, .12));
}

.lead-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lead-row em {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: .75rem;
  font-style: normal;
  font-weight: 850;
}

.lead-row span:not(.lead-row-top),
.lead-row small {
  color: var(--muted);
}

.lead-detail {
  min-height: 520px;
  padding: 26px;
}

.lead-detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.lead-detail-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.lead-detail-head p:not(.eyebrow) {
  color: var(--muted);
}

.lead-detail-head label {
  width: 190px;
  margin: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.detail-line {
  padding: 14px;
  border-radius: var(--radius);
  background: #f5f7f9;
}

.detail-line dt {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.detail-line dd {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  font-weight: 750;
}

.detail-notes {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
}

.detail-notes h3 {
  margin: 0 0 10px;
}

.detail-notes p {
  margin: 0;
  color: rgba(255, 255, 255, .76);
  line-height: 1.7;
  white-space: pre-wrap;
}

.detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.traffic-section {
  padding-top: 42px;
}

.traffic-list {
  display: grid;
  gap: 12px;
}

.traffic-row {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) 1.3fr;
  gap: 18px;
  padding: 18px;
}

.traffic-row strong {
  display: block;
  text-transform: capitalize;
}

.traffic-row span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.traffic-row dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.traffic-row dt {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.traffic-row dd {
  margin: 4px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 24px;
  text-align: center;
}

.empty-state.compact {
  min-height: 220px;
}

.empty-state h2 {
  margin: 0;
}

.empty-state p {
  max-width: 420px;
  margin: 10px auto 0;
  color: var(--muted);
  line-height: 1.6;
}

.not-found {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 44px;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.not-found .brand small {
  color: var(--muted);
}

.not-found h1 {
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  line-height: .95;
}

.not-found p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

@media (max-width: 960px) {
  .site-header {
    position: sticky;
    top: 10px;
    transform: none;
    left: auto;
    align-items: flex-start;
    margin: 10px auto -78px;
  }

  .nav-links {
    display: none;
  }

  .service-grid,
  .seo-grid,
  .steps,
  .split,
  .order-section,
  .analytics-panels,
  .admin-stats,
  .admin-layout,
  .traffic-row {
    grid-template-columns: 1fr;
  }

  .traffic-row dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .quote-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner,
  .footer-links,
  .sitemap-grid,
  .admin-hero,
  .lead-detail-head {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .lead-detail-head label {
    width: 100%;
  }
}

@media (max-width: 680px) {
  section[id] {
    scroll-margin-top: 84px;
  }

  .site-header {
    width: calc(100% - 20px);
    gap: 10px;
    min-height: 58px;
    padding: 9px;
  }

  .brand small,
  .header-cta {
    display: none;
  }

  .brand {
    gap: 9px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: .9rem;
  }

  .hero {
    min-height: 88svh;
    align-items: end;
  }

  .hero-bg {
    background-position: 62% center;
  }

  .hero-inner {
    width: min(100% - 28px, 1180px);
    padding: 104px 0 32px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 12.4vw, 4rem);
    line-height: .98;
  }

  .hero-copy {
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .button {
    width: 100%;
    min-height: 50px;
    white-space: normal;
    text-align: center;
  }

  .eyebrow {
    font-size: .72rem;
  }

  .trust-strip,
  .service-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    margin-top: 28px;
  }

  .trust-strip div {
    padding: 16px;
  }

  .section,
  .order-section {
    width: calc(100% - 28px);
    padding: 64px 0;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-heading h2,
  .permit-copy h2,
  .order-copy h2 {
    font-size: clamp(2rem, 10vw, 3.2rem);
    line-height: 1.04;
  }

  .quote-band {
    width: calc(100% - 28px);
    margin-top: -28px;
    padding: 22px;
  }

  .blueprint-panel {
    min-height: 380px;
  }

  .service-card,
  .seo-grid article,
  .steps article {
    min-height: auto;
    padding: 20px;
  }

  .order-form {
    padding: 20px;
  }

  .form-footer,
  .footer-bottom,
  .admin-header,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-inner,
  .footer-bottom,
  .simple-page {
    width: calc(100% - 28px);
  }

  .footer-inner {
    padding-top: 46px;
  }

  .footer-button {
    width: 100%;
  }

  .admin-main,
  .admin-header {
    width: calc(100% - 28px);
  }

  .admin-header {
    margin-bottom: 0;
  }

  .admin-toolbar,
  .detail-grid,
  .traffic-row dl {
    grid-template-columns: 1fr;
  }

  .lead-detail {
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: clamp(2.2rem, 11.6vw, 3.2rem);
  }

  .quote-band h2 {
    font-size: 1.42rem;
  }

  .admin-login {
    padding: 14px;
  }

  .login-card {
    padding: 20px;
  }
}

@media (max-width: 360px) {
  .hero-inner,
  .section,
  .order-section,
  .quote-band,
  .admin-main,
  .admin-header {
    width: calc(100% - 20px);
  }

  .hero h1 {
    font-size: 2.05rem;
  }

  .hero-copy,
  .section-heading p:not(.eyebrow),
  .permit-copy p,
  .order-copy p {
    font-size: .96rem;
  }

  .trust-strip dd,
  .service-card p,
  .steps p,
  .faq-list p,
  .seo-grid p {
    font-size: .94rem;
  }

  .site-header {
    width: calc(100% - 16px);
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 120px 0 32px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .hero-bg,
  .hero-overlay,
  .hero-actions,
  .quote-band,
  .site-footer,
  .admin-actions {
    display: none !important;
  }

  body {
    background: var(--white);
    color: #000;
  }

  .hero,
  .order-section,
  .section {
    min-height: auto;
    padding: 24px 0;
    color: #000;
  }
}
