:root {
  --ink: #102b46;
  --muted: #536477;
  --navy-950: #0a2540;
  --navy-900: #102b46;
  --navy-800: #123858;
  --navy-700: #123858;
  --navy-100: #e8eef5;
  --gold: #bf913e;
  --gold-ink: #816023;
  --gold-soft: #f8f2e6;
  --cream: #f7f9fc;
  --paper: #ffffff;
  --line: #dce3eb;
  --shadow: 0 22px 70px rgba(10, 37, 64, 0.14);
  --heading-xl: 2rem;
  --heading-lg: 1.5rem;
  --heading-md: 1.25rem;
  --heading-line: 1.3;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 82px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  width: 340px;
  max-width: 100%;
}

.brand-emblem,
.brand-wordmark {
  display: block;
  overflow: hidden;
  position: relative;
}

.brand-emblem {
  aspect-ratio: 1;
  flex: 0 0 68px;
}

.brand-wordmark {
  aspect-ratio: 1095 / 230;
  flex: 1;
  min-width: 0;
}

/* Show the supplied emblem and lettering without the artwork's outer margins. */
.brand img {
  display: block;
  height: auto;
  max-width: none;
  mix-blend-mode: multiply;
  position: absolute;
}

.brand-emblem img {
  left: -83.83%;
  top: -59.574%;
  width: 266.809%;
}

.brand-wordmark img {
  left: -7.306%;
  top: -324.348%;
  width: 114.521%;
}

:focus-visible {
  outline: 2px solid var(--navy-700);
  outline-offset: 4px;
}

.primary-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 800;
  color: var(--muted);
}

.primary-nav a,
.header-cta {
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--navy-700);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  font: inherit;
}

.header-cta,
.button.primary {
  color: #fff;
  background: var(--navy-700);
}

.button.primary:hover,
.header-cta:hover {
  background: var(--navy-950);
}

.hero-actions .button.primary {
  color: var(--navy-950);
  background: var(--gold);
}

.hero-actions .button.primary:hover {
  background: #d2a955;
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.intake-card .button.secondary {
  color: var(--navy-800);
  background: #fff;
  border-color: var(--line);
}

.hero {
  position: relative;
  min-height: 670px;
  overflow: hidden;
  background: var(--navy-950);
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  color: #fff;
  background: var(--navy-950);
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.page-hero::before {
  background: url("assets/planning-hero-wide.png") center / cover no-repeat;
}

.page-hero::after {
  background:
    linear-gradient(90deg, rgba(10, 37, 64, 0.98) 0%, rgba(10, 37, 64, 0.88) 48%, rgba(10, 37, 64, 0.28) 100%),
    linear-gradient(0deg, rgba(10, 37, 64, 0.24), rgba(10, 37, 64, 0.1));
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  padding: 86px clamp(22px, 4vw, 72px) 82px;
}

.page-hero h1 {
  font-size: var(--heading-xl);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.18rem;
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 37, 64, 0.98) 0%, rgba(10, 37, 64, 0.96) 30%, rgba(10, 37, 64, 0.67) 53%, rgba(10, 37, 64, 0.08) 100%),
    linear-gradient(0deg, rgba(10, 37, 64, 0.28), rgba(10, 37, 64, 0.12));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 112px clamp(22px, 4vw, 72px) 92px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-ink);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.hero .eyebrow,
.page-hero .eyebrow,
.intake-section > .section-heading .eyebrow {
  color: #f5dab0;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 690px;
  margin-bottom: 18px;
  font-size: var(--heading-xl);
  line-height: var(--heading-line);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: var(--heading-lg);
  line-height: var(--heading-line);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: var(--heading-md);
  line-height: var(--heading-line);
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: var(--heading-line);
}

.hero-lede {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}

.hero-points li {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 750;
}

.notice {
  padding: 14px clamp(22px, 4vw, 72px);
  background: var(--gold-soft);
  border-top: 1px solid #e0cda9;
  border-bottom: 1px solid #e0cda9;
  color: #523a16;
}

.section {
  padding: clamp(66px, 8vw, 112px) clamp(22px, 4vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(280px, 1fr);
  align-items: end;
  gap: 34px;
  margin-bottom: 34px;
}

.section-heading p:last-child,
.section-heading.narrow {
  max-width: 900px;
}

.section-heading.narrow {
  display: block;
}

.section-heading > p,
.split > div > p,
.section-heading p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.path-cards,
.tool-grid,
.issue-grid,
.county-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.path-card,
.tool-grid article,
.issue-grid article,
.county-card,
.info-panel,
.intake-card,
.result-card,
.faq-list details,
.sources {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(10, 37, 64, 0.06);
}

.path-card,
.tool-grid article,
.issue-grid article,
.county-card {
  padding: 24px;
}

.path-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold-ink);
  font-weight: 950;
}

.path-card p,
.tool-grid p,
.issue-grid p,
.county-card p {
  color: var(--muted);
}

.path-card a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--navy-700);
  font-weight: 900;
  text-decoration: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
}

.split.reverse {
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.82fr);
}

.info-panel {
  padding: clamp(24px, 4vw, 38px);
}

.check-list,
.mini-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li,
.mini-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 14px;
}

.check-list li::before,
.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gold);
}

.feature-band,
.court-section {
  background: #f1f5fa;
}

.numbered {
  padding-left: 1.2rem;
  color: var(--muted);
}

.numbered li {
  margin-bottom: 10px;
}

.intake-section {
  background: var(--navy-950);
  color: #fff;
}

.intake-section .section-heading p:last-child {
  color: rgba(255, 255, 255, 0.78);
}

.intake-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  align-items: start;
  min-width: 0;
}

.intake-card,
.result-card {
  color: var(--ink);
  box-shadow: var(--shadow);
  min-width: 0;
}

.intake-card {
  padding: 22px;
}

.form-status {
  padding: 12px 14px;
  color: var(--muted);
  background: var(--cream);
  border-left: 3px solid var(--gold);
  font-size: 0.9rem;
}

.step-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  margin-bottom: 24px;
}

.step-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--muted);
  background: #fff;
  font-weight: 850;
  cursor: pointer;
}

.step-tabs button.active {
  color: #fff;
  background: var(--navy-700);
  border-color: var(--navy-700);
}

fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}

.review-step {
  display: none;
  min-width: 0;
}

.review-step.active {
  display: block;
}

legend {
  margin-bottom: 18px;
  font-size: 1.55rem;
  font-weight: 950;
  line-height: 1.1;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cdd7e2;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

.two-column,
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.choice-grid {
  margin-bottom: 16px;
}

.choice-grid label,
.consent-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fc;
  color: var(--ink);
  font-weight: 750;
}

.choice-grid input,
.consent-line input {
  width: auto;
  margin-top: 4px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.result-card {
  position: sticky;
  top: 104px;
  padding: 26px;
}

.result-card .eyebrow {
  margin-bottom: 8px;
}

.meter {
  margin: 22px 0;
}

.meter > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 850;
}

.meter > div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce3eb;
}

.meter > div > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--navy-700);
  transition: width 180ms ease;
}

.route-note {
  margin-top: 20px;
  padding: 14px;
  border-radius: 8px;
  color: #4b371a;
  background: var(--gold-soft);
}

.county-card {
  display: grid;
  gap: 10px;
}

.county-card h3 {
  margin-bottom: 0;
}

.county-card .tag {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--navy-800);
  background: var(--navy-100);
  font-size: 0.84rem;
  font-weight: 900;
}

.faq-section {
  background: var(--cream);
}

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

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

.faq-list summary {
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.sources {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 24px;
  margin: clamp(44px, 6vw, 72px) clamp(22px, 4vw, 72px);
  padding: clamp(24px, 4vw, 38px);
}

.sources ul {
  margin: 0;
  color: var(--muted);
}

.source-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--navy-800);
  background: var(--navy-100);
  font-weight: 900;
  text-decoration: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 36px clamp(22px, 4vw, 72px);
  color: #fff;
  background: var(--navy-950);
}

.site-footer p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.site-footer a {
  color: #fff;
  font-weight: 900;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.article-stack {
  display: grid;
  gap: 18px;
}

.article-card,
.side-card,
.callout {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(10, 37, 64, 0.06);
}

.article-card p,
.article-card li,
.side-card p,
.side-card li,
.callout p {
  color: var(--muted);
}

.side-card {
  position: sticky;
  top: 104px;
}

.plain-list {
  margin: 0;
  padding-left: 1.1rem;
}

.plain-list li {
  margin-bottom: 10px;
}

.mini-table {
  display: grid;
  gap: 10px;
}

.mini-table div {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fc;
}

.mini-table strong {
  color: var(--navy-800);
}

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

.link-grid a,
.side-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy-700);
  font-weight: 900;
  text-decoration: none;
}

.side-card a.secondary-link,
.link-grid a.secondary-link {
  color: var(--navy-800);
  background: var(--navy-100);
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .header-cta {
    grid-column: 2;
    grid-row: 1;
  }

  .path-cards,
  .tool-grid,
  .issue-grid,
  .county-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intake-layout {
    grid-template-columns: 1fr;
  }

  .result-card {
    position: static;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: relative;
    display: block;
    padding: 14px 18px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand-emblem {
    flex-basis: 58px;
  }

  .primary-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0;
    margin: 16px -18px 0;
    border-top: 1px solid var(--line);
  }

  .primary-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
  }

  .header-cta {
    width: 100%;
    margin: 14px 0;
  }

  .hero {
    min-height: 620px;
  }

  .page-hero {
    min-height: 420px;
  }

  .page-hero::before {
    background-image: url("assets/planning-hero-mobile.png");
    background-position: 60% center;
  }

  .hero-media img {
    object-position: 65% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(10, 37, 64, 0.95) 0%, rgba(10, 37, 64, 0.78) 58%, rgba(10, 37, 64, 0.48) 100%),
      linear-gradient(90deg, rgba(10, 37, 64, 0.72), rgba(10, 37, 64, 0.18));
  }

  .hero-content {
    padding: 54px 20px 54px;
  }

  .hero-lede {
    font-size: 1.05rem;
  }

  .section,
  .notice {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-heading,
  .split,
  .split.reverse,
  .sources,
  .mini-table div,
  .link-grid {
    display: block;
  }

  .link-grid a {
    margin-top: 10px;
  }

  .path-cards,
  .tool-grid,
  .issue-grid,
  .county-grid,
  .two-column,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .sources {
    margin-left: 20px;
    margin-right: 20px;
  }

  .intake-card {
    padding: 16px;
  }

  .step-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }

  .step-tabs button {
    white-space: nowrap;
  }

  .form-actions .button {
    width: 100%;
  }

  .site-footer {
    display: block;
  }
}

@media (max-width: 640px) {
  :root {
    --heading-xl: 1.75rem;
    --heading-lg: 1.375rem;
  }
}
