/* Crawford Property Tax
   Design system extracted from the original inline styles.
   Colors and type are unchanged. Everything else is new. */

:root {
  --navy: #17324f;
  --navy-deep: #122a44;
  --navy-hover: #1e4267;
  --gold: #c6a34f;
  --gold-hover: #d4b463;
  --button-color: #e2bb5d; /* button background (navy text); reusable */
  --cream: #f5f2ea;
  --cream-deep: #eeeae0;
  --green: #2f8a58;
  --blue-muted: #b8c6d6;
  --blue-soft: #dfe6ee;
  --footer-text: #a8bacd; /* lightened from #6d8198, which failed WCAG AA on --navy-deep */
  --ink: #20242a;
  --ink-soft: #4c5560;
  --ink-softer: #5c6069;
  --rule: #e6e2d8;

  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --pad: 48px;
  --radius: 12px;
}

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

body {
  margin: 0;
  background: #fff;
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

/* Deliberately no opacity/transform/filter on link hover. Those promote the
   link to its own GPU compositing layer the moment you hover, which makes the
   cursor flicker hand->arrow on real hardware. The hand cursor is the hover
   affordance; per-component hover styling can be added with non-layering
   properties (color, background) if wanted. */

p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

img,
svg {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: var(--navy);
  padding: 12px 20px;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Layout primitives ---------- */

.section {
  padding: 78px var(--pad);
}

.section--tight {
  padding: 58px var(--pad);
}

.section--navy {
  background: var(--navy);
}

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

.section--white {
  background: #fff;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
}

/* Single-column content sits in the standard wrap and aligns to the same left
   edge as every other section, with a readable measure, rather than floating
   as a centered narrow column. The .center variant re-centers for CTAs. */
.wrap--narrow {
  max-width: var(--wrap);
  margin: 0 auto;
}

.wrap--narrow > * {
  max-width: 780px;
}

.wrap--narrow.center > * {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Type ---------- */

.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  color: var(--navy);
  margin: 0 0 22px;
  font-weight: 700;
}

.h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.15;
  color: var(--navy);
  margin: 0;
  font-weight: 700;
}

.h3 {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--navy);
  margin: 0 0 12px;
  font-weight: 700;
}

.lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 34px;
  max-width: 560px;
}

.body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-softer);
  margin: 0 0 20px;
}

.on-navy .h2,
.on-navy .h3 {
  color: var(--cream);
}

.on-navy .body,
.on-navy .lede {
  color: var(--blue-muted);
}

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 7px;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
  text-align: center;
}

.btn--gold {
  color: var(--navy);
  background: var(--button-color);
}

.btn--outline {
  color: var(--navy);
  border-color: var(--navy);
  background: transparent;
}

.on-navy .btn--outline {
  color: var(--cream);
  border-color: var(--blue-muted);
}

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

.link-arrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  min-height: 78px;
  gap: 30px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  margin-right: auto; /* pushes nav + CTA to the right on desktop */
}

.logo__mark {
  height: 42px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* Official lockup (mark + wordmark), inlined so it uses the page webfonts */
.logo__full {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.footer .logo__full {
  height: 38px;
}

@media (max-width: 760px) {
  .logo__full {
    height: 34px;
  }
}

.logo__word {
  display: block;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.05;
}

.logo__sub {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--blue-muted);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  font-size: 15px;
  color: var(--blue-muted);
  font-weight: 400;
  white-space: nowrap;
}

.nav__link[aria-current="page"] {
  color: var(--cream);
  font-weight: 600;
}

.nav__cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--button-color);
  padding: 11px 20px;
  border-radius: 7px;
  white-space: nowrap;
}

/* ---------- Hero ---------- */

.hero {
  background: #fff;
  padding: 80px var(--pad);
}

.hero__grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Hero address capture. A plain GET to /contact, so it works with no
   JavaScript. Phase 2 upgrades this in place into the multi step funnel. */

.hero-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  max-width: 540px;
  margin-bottom: 20px;
}

.hero-form .field {
  flex: 1;
}

.hero-form .btn {
  flex-shrink: 0;
  padding-top: 13px;
  padding-bottom: 13px;
}

.riskbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.riskbar li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

@media (max-width: 620px) {
  .hero-form {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Trust bar under the hero */

.trustbar {
  background: var(--navy);
  padding: 22px var(--pad);
}

.trustbar__inner {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 14px 40px;
}

@media (max-width: 1000px) {
  .trustbar__inner {
    grid-template-columns: 1fr;
    justify-content: start;
  }
}

.trustbar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-soft);
  font-size: 14px;
}

.dot {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  gap: 26px;
}

.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 34px 30px;
}

.card--tight {
  padding: 26px 22px;
}

.card__icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

/* Fallback dot, still used on pages with no bespoke icon yet */
.card__icon span {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.6px solid var(--gold);
}

.card__icon img {
  width: 23px;
  height: 23px;
  display: block;
}

.card--tight .card__icon img {
  width: 19px;
  height: 19px;
}

.card--tight .card__icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.card--tight .card__icon span {
  width: 12px;
  height: 12px;
  border-width: 1.5px;
}

/* Scoped to --tight so the .h3 utility still wins on the larger cards */
.card--tight h3 {
  font-size: 16px;
  color: var(--navy);
  margin: 0 0 8px;
  font-weight: 700;
}

.card--tight p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-softer);
  margin: 0;
}

.card .body {
  font-size: 14.5px;
  margin-bottom: 20px;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.step {
  border-top: 2px solid var(--gold);
  padding-top: 18px;
}

.step__num {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 14px;
}

.step h4 {
  font-size: 17px;
  color: var(--navy);
  margin: 0 0 10px;
  font-weight: 700;
}

.step p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-softer);
  margin: 0;
}

/* Numbered vertical process list */

.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}

.process-item:last-child {
  border-bottom: 1px solid var(--rule);
}

.process-item__num {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--gold);
  line-height: 1;
}

.process-item h3 {
  font-size: 19px;
  margin: 0 0 8px;
}

.process-item p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-softer);
  margin: 0;
  max-width: 640px;
}

/* ---------- Bullet lists ---------- */

.ticks {
  display: flex;
  flex-direction: column;
  gap: 11px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: #3f4650;
  line-height: 1.55;
}

.ticks li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  background: var(--gold);
  border-radius: 50%;
}

.on-navy .ticks li {
  color: var(--blue-muted);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature {
  display: flex;
  gap: 14px;
}

.feature::before {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin-top: 7px;
  background: var(--gold);
  border-radius: 50%;
}

.feature__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 4px;
}

.feature__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--blue-muted);
}

/* ---------- Split (image/text) sections ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split--wide-left {
  grid-template-columns: 1.1fr 1fr;
}

.split--wide-right {
  grid-template-columns: 1fr 1.1fr;
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 48px;
}

.faq h3 {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--navy);
  margin: 0 0 9px;
  font-weight: 700;
}

.faq p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-softer);
  margin: 0;
}

.faq--lead h3 {
  font-size: 20px;
}

/* ---------- Accordion FAQ (native details/summary) ---------- */

.accordion {
  border-top: 1px solid var(--rule);
}

/* Two-column accordion. Each column is its own stack so expanding a question
   on one side never changes the height of the other side. */
.accordion.acc-grid {
  border-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  align-items: start;
}

.acc-col > .acc {
  border-top: 0;
  border-bottom: 1px solid var(--rule);
}

.acc-col > .acc:first-child {
  border-top: 1px solid var(--rule);
}

@media (max-width: 760px) {
  .accordion.acc-grid {
    grid-template-columns: 1fr;
  }
  .acc-col:last-child > .acc:first-child {
    border-top: 0;
  }
}

/* ---------- Media fill (make a split image match the text column height) ---------- */

.split--fill {
  align-items: stretch;
}

.media-fill {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.media-fill .portrait {
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: 50% 30%;
}

@media (max-width: 860px) {
  .media-fill .portrait {
    min-height: 300px;
  }
}

/* ---------- Compounding-value graphic card ---------- */

.chart-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 30px 30px 26px;
}

.chart-card--navy {
  background: var(--navy-deep);
  border-color: rgba(255, 255, 255, 0.1);
}

.chart-card__tag {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.chart-card svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-card__foot {
  font-size: 13.5px;
  line-height: 1.5;
  color: #8b8578;
  margin: 16px 0 0;
}

.chart-card--navy .chart-card__foot {
  color: var(--footer-text);
}

.acc {
  border-bottom: 1px solid var(--rule);
}

.acc > summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 44px 20px 4px;
  position: relative;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--navy);
  font-weight: 700;
}

.acc > summary::-webkit-details-marker {
  display: none;
}

/* Plus / minus indicator */
.acc > summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 13px;
  height: 13px;
  margin-top: -7px;
  background:
    linear-gradient(var(--gold), var(--gold)) center/13px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center/2px 13px no-repeat;
  transition: transform 0.2s ease;
}

.acc[open] > summary::after {
  transform: rotate(45deg);
}

.acc > summary:hover {
  opacity: 0.85;
}

.acc__a {
  padding: 0 44px 22px 4px;
}

.acc__a p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-softer);
  margin: 0;
}

.acc__a a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- Fee panel ---------- */

.fee-panel {
  background: var(--navy);
  border-radius: 14px;
  padding: 46px 44px;
  color: var(--cream);
}

.fee-panel__headline {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  margin: 0 0 18px;
  color: var(--cream);
  font-weight: 700;
}

.fee-math {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  margin: 28px 0 22px;
}

.fee-math__cell {
  flex: 1;
  min-width: 150px;
  padding: 20px 22px;
  border-right: 2px solid rgba(255, 255, 255, 0.2);
}

.fee-math__cell:last-child {
  border-right: 0;
  background: rgba(198, 163, 79, 0.12);
}

.fee-math__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
}

.fee-math__value {
  font-family: var(--serif);
  font-size: 25px;
  color: var(--cream);
  line-height: 1.1;
}

.fee-math__note {
  font-size: 12.5px;
  color: var(--blue-muted);
  margin-top: 5px;
}

/* ---------- Illustrative panel (replaces stock photography) ---------- */

.panel {
  background: var(--cream);
  border: 2px solid var(--rule);
  border-radius: var(--radius);
  padding: 34px 32px;
}

.panel--navy {
  background: var(--navy-deep);
  border-color: rgba(255, 255, 255, 0.2);
}

.panel__tag {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.panel__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 2px solid var(--rule);
  gap: 16px;
}

.panel--navy .panel__row {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.panel__row:last-of-type {
  border-bottom: 0;
}

.panel__key {
  font-size: 15px;
  color: var(--ink-softer);
}

.panel--navy .panel__key {
  color: var(--blue-muted);
}

.panel__val {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--navy);
  white-space: nowrap;
}

.panel--navy .panel__val {
  color: var(--cream);
}

/* Struck "before" price: a drawn line (not text-decoration) so we control its
   thickness and vertical position. The number is muted; the line is gold. */
.panel__val--strike {
  position: relative;
  color: #a49d8c;
}

.panel--navy .panel__val--strike {
  color: #7f8ca0;
}

.panel__val--strike::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
  transform: translateY(-50%);
}

.panel__val--win {
  color: var(--gold);
}

/* Money saved reads as cash, in green */
.panel__val--save {
  color: var(--green);
}

.panel__foot {
  font-size: 13px;
  line-height: 1.5;
  color: #8b8578;
  margin: 22px 0 0;
}

.panel--navy .panel__foot {
  color: var(--footer-text);
}

/* Statement panel: one line that carries the point, no filler rows */

.panel__statement {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 31px);
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 18px;
  font-weight: 700;
}

.panel--navy .panel__statement {
  color: var(--cream);
}

.panel__sub {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-softer);
  margin: 0;
}

.panel--navy .panel__sub {
  color: var(--blue-muted);
}

/* ---------- County search (hub page) ---------- */

/* Hidden until JS enables filtering, so a no-JS visitor never sees a dead box */
.county-search-wrap {
  display: none;
  max-width: 460px;
  margin: 0 auto 40px;
}

.has-js .county-search-wrap {
  display: block;
}

.county-search__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-softer);
  margin-bottom: 7px;
}

.county-search {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d8d2c6;
  border-radius: 8px;
  padding: 13px 16px;
  cursor: text;
}

/* Dropdowns don't get a pointer cursor by default; make them feel clickable */
.field select {
  cursor: pointer;
}

.county-search:focus {
  border-color: var(--navy);
  outline: 2px solid rgba(23, 50, 79, 0.15);
}

.county-search__count {
  font-size: 12.5px;
  color: #7d8590;
  margin: 8px 2px 0;
  min-height: 1em;
}

.county-empty {
  text-align: center;
  font-size: 15px;
  color: var(--ink-softer);
  margin: 8px 0 0;
}

.county-empty a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- Portrait ---------- */

.portrait {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.portrait-cap {
  font-size: 13px;
  color: var(--ink-softer);
  margin: 12px 0 0;
}

/* ---------- Breadcrumb ---------- */

.crumbs {
  font-size: 13px;
  color: var(--ink-softer);
  margin: 0 0 18px;
}

.crumbs a {
  color: var(--ink-softer);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--navy);
}

.crumbs span[aria-current] {
  color: var(--navy);
  font-weight: 600;
}

/* ---------- County page: appraisal district info block ---------- */

.info-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.info-list__row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.info-list--navy .info-list__row {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.info-list__row:last-child {
  border-bottom: 0;
}

.info-list__label {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.info-list__value {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

.info-list--navy .info-list__value {
  color: var(--blue-soft);
}

.info-list__value a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(198, 163, 79, 0.6);
  text-underline-offset: 2px;
}

@media (max-width: 560px) {
  .info-list__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ---------- Calendar table ---------- */

.caltable {
  width: 100%;
  border-collapse: collapse;
}

.caltable th,
.caltable td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--rule);
  font-size: 14.5px;
}

.caltable th {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.caltable td:first-child {
  font-family: var(--serif);
  color: var(--navy);
  white-space: nowrap;
  width: 34%;
}

.caltable tr:last-child td {
  border-bottom: 0;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- City link grid ---------- */

.citygrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.citygrid li {
  font-size: 14px;
  color: var(--ink-softer);
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
}

/* County cross-link grid on the navy section needs light, clearly-clickable links */
.on-navy .citygrid li {
  color: var(--blue-soft);
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.on-navy .citygrid a {
  color: var(--cream);
  font-weight: 500;
}

.on-navy .citygrid a:hover {
  color: var(--gold);
  opacity: 1;
}

@media (max-width: 760px) {
  .citygrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* County chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.chips li {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--navy);
}

.on-navy .chips li {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--blue-soft);
}

/* ---------- Forms ---------- */

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-softer);
}

.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d8d2c6;
  border-radius: 8px;
  padding: 12px 14px;
  width: 100%;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--navy);
  outline: 2px solid rgba(23, 50, 79, 0.15);
  outline-offset: 0;
}

.field__hint {
  font-size: 12.5px;
  color: #7d8590;
  line-height: 1.5;
}

.field-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.field-row > * {
  flex: 1;
  min-width: 200px;
}

.hp {
  position: absolute;
  left: -9999px;
}

/* ---------- Multi-step form wizard ----------
   Default (no JS): every step is visible, the fallback submit shows, and the
   per-step nav and progress bar are hidden. JS adds .is-enhanced to flip it
   into a stepped flow. */

.wiz-progress,
.form-wizard .wiz-nav {
  display: none;
}

/* Base step layout, used as-is in the no-JS fallback */
.step {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wiz-fallback {
  margin-top: 4px;
}

.form-wizard.is-enhanced .wiz-fallback {
  display: none;
}

.form-wizard.is-enhanced .step {
  display: none;
}

.form-wizard.is-enhanced .step.is-active {
  display: flex;
}

.form-wizard.is-enhanced .wiz-nav {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.form-wizard.is-enhanced .wiz-nav .btn {
  flex: 0 0 auto;
}

.form-wizard.is-enhanced .wiz-nav [data-next],
.form-wizard.is-enhanced .wiz-nav [type="submit"] {
  margin-left: auto;
}

/* Progress indicator */

.form-wizard.is-enhanced .wiz-progress {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  counter-reset: wiz;
}

.wiz-progress li {
  flex: 1;
  counter-increment: wiz;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #9a958a;
  padding-top: 12px;
  border-top: 3px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wiz-progress li::before {
  content: counter(wiz);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rule);
  color: #7d7869;
  font-size: 11px;
  flex-shrink: 0;
}

.wiz-progress li.is-active {
  color: var(--navy);
  border-top-color: var(--gold);
}

.wiz-progress li.is-active::before {
  background: var(--gold);
  color: var(--navy);
}

.wiz-progress li.is-done {
  color: var(--navy);
  border-top-color: var(--navy);
}

.wiz-progress li.is-done::before {
  content: "\2713";
  background: var(--navy);
  color: #fff;
}

@media (max-width: 520px) {
  .wiz-progress li {
    font-size: 0; /* hide labels, keep the numbered track */
    gap: 0;
  }
  .wiz-progress li::before {
    font-size: 11px;
  }
}

/* ---------- Aside ---------- */

.aside-card {
  background: var(--navy);
  border-radius: 14px;
  padding: 36px 34px;
}

.aside-card h2 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--cream);
  margin: 0 0 22px;
  font-weight: 700;
}

.aside-block {
  margin-bottom: 20px;
}

.aside-block__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}

.aside-block__value {
  font-size: 16px;
  color: var(--blue-soft);
  line-height: 1.5;
}

/* ---------- CTA band ---------- */

.cta {
  background: var(--navy);
  padding: 70px var(--pad);
  text-align: center;
}

.cta h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 34px);
  color: var(--cream);
  margin: 0 0 14px;
  font-weight: 700;
}

.cta p {
  font-size: 16px;
  color: var(--blue-muted);
  margin: 0 auto 30px;
  max-width: 560px;
  line-height: 1.6;
}

/* The CTA band is navy, so outline buttons need the light treatment or they
   render navy-on-navy and vanish. */
.cta .btn--outline {
  color: var(--cream);
  border-color: var(--blue-muted);
}

.cta .btn-row {
  justify-content: center;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--navy-deep);
  padding: 58px var(--pad) 34px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.footer__blurb {
  max-width: 320px;
}

.footer__blurb p {
  color: var(--footer-text);
  font-size: 13px;
  line-height: 1.7;
  margin: 20px 0 0;
}

.footer__heading {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__list li {
  font-size: 13px;
  color: var(--blue-muted);
}

.footer__more {
  margin-top: 4px;
}

.footer__more a {
  color: var(--gold);
  font-weight: 600;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 38px auto 0;
  padding-top: 20px;
  max-width: var(--wrap);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--footer-text);
  font-size: 12px;
}

.footer .logo__word {
  font-size: 22px;
}

/* ---------- Utilities ---------- */

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.center {
  text-align: center;
}

.stack-24 > * + * {
  margin-top: 24px;
}

/* ---------- Responsive ----------
   The original export styled everything with inline `style` attributes,
   which cannot hold media queries. These are the breakpoints it never had. */

@media (max-width: 1000px) {
  .cards--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 28px;
  }
}

@media (max-width: 860px) {
  :root {
    --pad: 24px;
  }

  .section,
  .hero {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero__grid,
  .split,
  .split--wide-left,
  .split--wide-right {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cards--3 {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .fee-panel {
    padding: 32px 24px;
  }

  /* Image-first splits read better with the text on top on mobile */
  .split--flip-mobile > *:first-child {
    order: 2;
  }

  .split--flip-mobile > *:last-child {
    order: 1;
  }
}

@media (max-width: 760px) {
  /* Header becomes two rows. No hamburger: hiding four links behind a
     tap costs more engagement than it saves, and the gold CTA stays visible. */
  .header {
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
    row-gap: 14px;
  }

  .nav {
    order: 3;
    width: 100%;
    gap: 0;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 13px;
  }

  .nav__cta {
    order: 2;
  }

  .nav__link {
    font-size: 13.5px;
  }

  .process-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .process-item__num {
    font-size: 26px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 560px) {
  .cards--4 {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .fee-math__cell {
    min-width: 100%;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .fee-math__cell:last-child {
    border-bottom: 0;
  }

  .btn {
    width: 100%;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- Dropdown navigation ---------- */
.nav__item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav__link--parent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav__caret {
  width: 10px;
  height: 6px;
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform 0.16s ease;
}

.nav__item:hover .nav__caret,
.nav__item:focus-within .nav__caret {
  transform: rotate(180deg);
}

.nav__menu {
  position: absolute;
  top: 100%;
  right: 0;
  transform: translateY(9px);
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(18, 42, 68, 0.08);
  box-shadow: 0 20px 46px rgba(10, 25, 45, 0.20);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* One consistent cursor across the whole panel so traversing the menu
     never flickers between hand (links) and arrow (headings, gaps, bridge). */
  cursor: pointer;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 60;
}

/* Transparent bridge so the pointer can cross the gap without closing */
.nav__menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.nav__item:hover .nav__menu,
.nav__item:focus-within .nav__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav__menu--single {
  min-width: 316px;
}

.nav__menu--mega {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
  width: 560px;
}

.nav__menu-group {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 8px 12px 5px;
}

.nav__menu-link {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  transition: background 0.12s ease;
}

.nav__menu-link:hover {
  background: var(--cream);
}

.nav__menu-t {
  display: block;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
}

.nav__menu-d {
  display: block;
  font-size: 12.5px;
  color: #64707e;
  margin-top: 2px;
  line-height: 1.3;
}

.nav__menu-all {
  display: block;
  padding: 10px 12px;
  margin-top: 6px;
  border-top: 1px solid rgba(18, 42, 68, 0.09);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.nav__menu-all:hover {
  color: var(--gold-hover);
}

.nav__menu--mega .nav__menu-all {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  /* Dropdowns are a desktop affordance. On mobile the parent links go
     straight to the /services and /who-we-serve hub pages, which carry
     the same links as cards, so nothing is hidden behind a hover. */
  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    column-gap: 20px;
    row-gap: 11px;
  }

  .nav__item {
    position: static;
    height: auto;
  }

  .nav__menu,
  .nav__caret {
    display: none;
  }
}
