:root {
  --ink: #17212b;
  --muted: #607080;
  --line: #dbe3ea;
  --paper: #ffffff;
  --soft: #eef3f6;
  --wash: #f8faf4;
  --accent: #62c7b4;
  --accent-dark: #227c71;
  --deep: #243044;
  --deep-2: #151f2e;
  --green: #506f91;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f7f9fa 0, #ffffff 440px),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.site-header,
.section,
.hero-inner,
.page-hero,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #111820;
  background: var(--accent);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  color: var(--muted);
  font-weight: 650;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 7px;
  white-space: nowrap;
}

.main-nav .nav-cta {
  color: #111820;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(34, 124, 113, 0.18);
}

.main-nav .nav-quote {
  color: #fff;
  background: #d71920;
  box-shadow: 0 10px 24px rgba(215, 25, 32, 0.24);
}

.main-nav a:hover,
.text-link:hover,
.site-footer a:hover {
  color: var(--ink);
}

.main-nav a:hover {
  background: var(--soft);
}

.main-nav .nav-quote:hover {
  color: #fff;
  background: #b9131a;
}

.hero {
  background:
    linear-gradient(115deg, rgba(22, 37, 50, 0.97), rgba(34, 49, 63, 0.83)),
    url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  color: #fff;
}

.hero-inner {
  padding: 82px 0 70px;
}

.hero-layout,
.page-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 34px;
  align-items: center;
}

.hero-content {
  min-width: 0;
}

.page-hero {
  width: 100%;
  max-width: none;
  padding: 64px max(20px, calc((100% - var(--max)) / 2)) 48px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(21, 31, 46, 0.94), rgba(34, 124, 113, 0.84)),
    url("https://images.unsplash.com/photo-1554224154-26032ffc0d07?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  color: #fff;
}

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

.page-hero .eyebrow {
  color: var(--accent);
}

.quote-widget-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.quote-widget-head {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  color: #fff;
}

.quote-widget-head span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quote-widget-head strong {
  font-size: 1rem;
}

.quote-placeholder {
  display: grid;
  min-height: 350px;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--deep-2);
  text-align: center;
}

.quote-placeholder span {
  font-weight: 800;
}

.quote-placeholder p {
  max-width: 280px;
  margin: 8px 0 0;
  color: var(--muted);
}

.quote-cta-panel {
  align-content: center;
  gap: 14px;
}

.quote-cta-panel p {
  margin: 0;
}

.quote-action-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 280px);
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 7px;
  color: #fff;
  background: #d71920;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(215, 25, 32, 0.24);
}

.quote-action-large:hover {
  color: #fff;
  background: #b9131a;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--accent);
}

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

h1 {
  max-width: 800px;
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 3.7vw, 3.25rem);
  line-height: 1.06;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.28rem, 1.9vw, 1.72rem);
  line-height: 1.18;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.04rem;
}

.hero-copy {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.search-box {
  max-width: 740px;
  margin-top: 32px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.search-box label {
  display: block;
  margin-bottom: 10px;
  font-weight: 750;
}

.search-row {
  display: flex;
  gap: 10px;
}

input,
select,
button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 0 14px;
}

select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 18px) 21px / 6px 6px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 12px) 21px / 6px 6px no-repeat,
    #fff;
}

button {
  padding: 0 20px;
  color: #111820;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
}

.stats div {
  min-width: 150px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.stats dt {
  font-size: 1.7rem;
  font-weight: 850;
}

.stats dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.section {
  padding: 58px 0;
}

.section.no-top {
  padding-top: 48px;
}

.section.muted {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100% - var(--max)) / 2));
  background:
    linear-gradient(180deg, rgba(238, 243, 246, 0.95), rgba(248, 250, 244, 0.96));
  border-block: 1px solid var(--line);
}

.calculator-section {
  width: 100%;
  max-width: none;
  padding: 64px max(20px, calc((100% - var(--max)) / 2));
  background:
    linear-gradient(135deg, #17212b, #26384d 55%, #227c71);
  color: #fff;
}

.calculator-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.calculator-section .eyebrow {
  color: var(--accent);
}

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 20px;
  align-items: stretch;
}

.cost-calculator,
.payroll-calculator,
.calculator-result {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.cost-calculator,
.payroll-calculator {
  display: grid;
  gap: 18px;
  padding: 24px;
}

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

.cost-calculator label,
.cost-calculator legend,
.payroll-calculator label,
.payroll-calculator legend {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 750;
}

.calculator-grid label {
  display: grid;
  gap: 8px;
}

.cost-calculator input,
.cost-calculator select,
.payroll-calculator input,
.payroll-calculator select {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ink);
  background-color: #fff;
  box-shadow: inset 0 0 0 1px rgba(23, 33, 43, 0.04);
}

.cost-calculator fieldset,
.payroll-calculator fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  min-width: 0;
}

.cost-calculator legend,
.payroll-calculator legend {
  padding: 0 8px;
}

.cost-calculator fieldset label,
.payroll-calculator fieldset label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-weight: 650;
}

.cost-calculator input[type="checkbox"],
.payroll-calculator input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.calculator-result {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--deep-2);
}

.calculator-result span {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.calculator-result strong {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.calculator-result p {
  color: var(--muted);
}

.calculator-actions {
  display: grid;
  gap: 10px;
  width: min(100%, 260px);
}

.calculator-result a {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: 7px;
  color: #111820;
  background: var(--accent);
  font-weight: 800;
}

.calculator-result .quote-action {
  color: #fff;
  background: #d71920;
  box-shadow: 0 10px 24px rgba(215, 25, 32, 0.22);
}

.calculator-result .quote-action:hover {
  background: #b9131a;
}

.dark-section {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100% - var(--max)) / 2));
  background:
    linear-gradient(135deg, rgba(22, 37, 50, 0.97), rgba(34, 49, 63, 0.94)),
    url("https://images.unsplash.com/photo-1554224155-8d04cb21cd6c?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
  color: #fff;
}

.dark-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.dark-section .eyebrow {
  color: var(--accent);
}

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

.content-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.content-card span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.content-card p {
  color: rgba(255, 255, 255, 0.72);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow),
.two-column > div > p {
  color: var(--muted);
}

.intro-grid,
.guide-grid,
.city-grid,
.article-list.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-link,
.guide-card,
.city-grid a,
.article-list a {
  border: 1px solid rgba(142, 158, 171, 0.38);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 33, 43, 0.06);
}

.feature-link {
  display: block;
  min-height: 240px;
  padding: 24px;
  background:
    linear-gradient(180deg, #ffffff, #f8faf4);
  border-top: 4px solid var(--accent);
}

.feature-link span,
.guide-card span,
.article-list span {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.feature-link p,
.guide-card p {
  color: var(--muted);
}

.guide-card {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.guide-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--green));
}

.guide-card strong {
  margin-top: auto;
}

.feature-link:hover,
.guide-card:hover,
.city-grid a:hover,
.article-list a:hover,
.pill-list a:hover,
.city-directory a:hover {
  border-color: #aebdca;
  box-shadow: 0 18px 40px rgba(23, 33, 43, 0.08);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-list a {
  padding: 10px 14px;
  border: 1px solid rgba(142, 158, 171, 0.38);
  border-radius: 999px;
  background: #fff;
  font-weight: 750;
  box-shadow: 0 8px 20px rgba(23, 33, 43, 0.04);
}

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

.city-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.city-grid a {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f5f8f1 100%);
}

.city-grid span {
  color: var(--muted);
}

.city-directory {
  display: grid;
  gap: 18px;
}

.city-directory section {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  padding: 22px;
  border: 1px solid rgba(142, 158, 171, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f7faf2 100%);
  box-shadow: 0 14px 34px rgba(23, 33, 43, 0.06);
}

.city-directory h2 {
  margin: 0;
  font-size: 2rem;
  color: var(--accent-dark);
}

.city-directory div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.city-directory a {
  padding: 10px 12px;
  border: 1px solid rgba(142, 158, 171, 0.38);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.two-column {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: start;
}

.article-list {
  display: grid;
  gap: 14px;
}

.article-list a {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.industry-sections {
  display: grid;
  gap: 28px;
}

.industry-sections article {
  padding: 24px;
  border: 1px solid rgba(142, 158, 171, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f7faf2 100%);
  box-shadow: 0 14px 34px rgba(23, 33, 43, 0.06);
}

.industry-sections h2 {
  font-size: 1.45rem;
}

.industry-directory div {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.type-directory div {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.type-directory section {
  grid-template-columns: 1fr;
}

.type-directory h2 {
  font-size: 1.35rem;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.breadcrumbs {
  width: 100%;
  max-width: none;
  padding: 12px max(20px, calc((100% - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

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

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: #9aacba;
}

.breadcrumbs a {
  color: var(--accent-dark);
}

.content-main {
  padding: 30px;
  border: 1px solid rgba(142, 158, 171, 0.38);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 33, 43, 0.06);
}

.content-main::before {
  content: "";
  display: block;
  height: 5px;
  margin: -30px -30px 26px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--accent), var(--green));
}

.content-main > *:last-child {
  margin-bottom: 0;
}

.content-main h2 {
  margin-top: 30px;
}

.content-main h2:first-of-type {
  margin-top: 0;
}

.content-main p,
.article-content li {
  color: var(--muted);
}

.lead-panel {
  margin: 24px 0 28px;
  padding: 20px;
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: var(--wash);
}

.lead-panel p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.price-table {
  display: grid;
  overflow: hidden;
  margin: 24px 0 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.price-table div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 15px 18px;
  background: #fff;
}

.price-table div:nth-child(odd) {
  background: var(--wash);
}

.price-table div + div {
  border-top: 1px solid var(--line);
}

.price-table span {
  color: var(--accent-dark);
  font-weight: 850;
}

.price-table-notes div {
  grid-template-columns: minmax(0, 1fr) auto;
}

.price-table-notes small {
  grid-column: 1 / -1;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.55;
}

.cost-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 28px;
}

.cost-summary div {
  padding: 18px;
  border: 1px solid rgba(142, 158, 171, 0.38);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f7faf2 100%);
}

.cost-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cost-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--accent-dark);
  font-size: 1.25rem;
}

.detail-table {
  display: grid;
  overflow: hidden;
  margin: 20px 0 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-table div {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 18px;
  padding: 15px 18px;
  background: #fff;
}

.detail-table div:nth-child(odd) {
  background: var(--wash);
}

.detail-table div + div {
  border-top: 1px solid var(--line);
}

.detail-table strong {
  color: var(--ink);
}

.quote-panel {
  margin: 30px 0;
  padding: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--deep-2), var(--deep));
  color: #fff;
}

.quote-panel p {
  color: rgba(255, 255, 255, 0.75);
}

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

.faq-list details {
  padding: 0;
  border: 1px solid rgba(142, 158, 171, 0.38);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f8faf4 100%);
  box-shadow: 0 10px 24px rgba(23, 33, 43, 0.04);
}

.faq-list summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 850;
}

.faq-list p {
  margin: 0;
  padding: 0 18px 16px;
}

.faq-list p + p {
  padding-top: 0;
}

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

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(243, 180, 63, 0.2);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.related-grid a,
.side-card a {
  padding: 12px 14px;
  border: 1px solid rgba(142, 158, 171, 0.38);
  border-radius: 7px;
  background: var(--wash);
  font-weight: 750;
}

.content-side {
  display: grid;
  gap: 16px;
}

.side-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(142, 158, 171, 0.38);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f7faf2 100%);
  box-shadow: 0 14px 34px rgba(23, 33, 43, 0.06);
}

.side-card h3 {
  margin-bottom: 2px;
}

.side-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.side-card dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.side-card dd {
  margin: 0;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent-dark);
  font-weight: 800;
}

.url-table {
  overflow: hidden;
  border: 1px solid rgba(142, 158, 171, 0.38);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 33, 43, 0.06);
}

.url-table > div {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  padding: 16px 18px;
}

.url-table > div + div {
  border-top: 1px solid var(--line);
}

code {
  color: #1d4f73;
  white-space: nowrap;
}

.site-footer {
  width: 100%;
  max-width: none;
  padding: 48px max(20px, calc((100% - var(--max)) / 2)) 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--deep-2);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(145px, 1fr));
  gap: 26px;
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 460px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.site-footer nav h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.site-footer a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 650;
}

.site-footer .brand small {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.compact-footer .footer-bottom {
  margin-top: 0;
}

@media (max-width: 900px) {
  .site-header,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .intro-grid,
  .guide-grid,
  .city-grid,
  .article-list.columns,
  .content-grid,
  .cost-summary,
  .calculator-shell,
  .hero-layout,
  .page-hero-layout,
  .two-column,
  .page-shell,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .calculator-shell {
    grid-template-columns: 1fr;
  }

  .city-directory div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  .section,
  .hero-inner,
  .page-hero {
    width: min(100% - 28px, var(--max));
  }

  .calculator-section,
  .section.muted,
  .dark-section {
    width: 100%;
    max-width: none;
    padding-inline: 20px;
  }

  .hero-inner {
    padding: 54px 0 46px;
  }

  .search-row,
  .stats {
    flex-direction: column;
  }

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

  .main-nav a {
    width: 100%;
    min-height: 44px;
    padding-inline: 10px;
    white-space: normal;
    text-align: center;
  }

  .main-nav .nav-cta,
  .main-nav .nav-quote {
    grid-column: 1 / -1;
  }

  button {
    width: 100%;
  }

  .intro-grid,
  .guide-grid,
  .city-grid,
  .city-grid.compact,
  .article-list.columns,
  .content-grid,
  .cost-summary,
  .calculator-shell,
  .calculator-grid,
  .cost-calculator fieldset,
  .payroll-calculator fieldset,
  .hero-layout,
  .page-hero-layout,
  .two-column,
  .page-shell,
  .related-grid,
  .price-table div,
  .detail-table div,
  .url-table > div,
  .footer-grid,
  .city-directory section,
  .city-directory div {
    grid-template-columns: 1fr;
  }

  .calculator-actions,
  .calculator-result a {
    width: 100%;
  }
}
