/* kitchenremodelingkansascity.net
   Palette mirrors tools/chrome.py PALETTE; every text-bearing pair is walked
   by build.py against the 4.5:1 floor (chrome.TEXT_PAIRS), so a colour edit
   that breaks one combination fails the build. Editorial, two-column-free
   layout: this site's product is authority, and the design job is making long
   factual pages feel effortless to scan on a phone. */

:root {
  --ink: #1d211f;
  --brand: #2b5443;
  --brand-dark: #1e3d31;
  --cta: #6d2f7f;
  --cta-dark: #54245f;
  --paper: #ffffff;
  --muted: #4d5551;
  --tint: #eef3f0;
  --tint-cta: #f5eef7;
  --rule: #dfe3e1;
  --wrap: 66rem;
  --radius: .55rem;
  --shadow: 0 1px 2px rgba(29, 33, 31, .06), 0 4px 14px rgba(29, 33, 31, .05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: 4.5rem; /* room for the sticky call bar */
  -webkit-text-size-adjust: 100%;
}

/* ---------- accessibility ---------- */

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 30;
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

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

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.25rem;
  padding: .7rem 1.25rem;
  background: var(--paper);
  border-top: 3px solid var(--brand);
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-weight: 750;
  font-size: 1.02rem;
  letter-spacing: -.01em;
  text-decoration: none;
  color: var(--brand-dark);
  white-space: nowrap;
}
.wordmark span { color: var(--muted); font-weight: 500; }

.site-header nav {
  display: flex;
  gap: 1.1rem;
  margin-left: auto;
  overflow-x: auto;            /* nav scrolls inside itself on small screens */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
}
.site-header nav::-webkit-scrollbar { display: none; }
.site-header nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-header nav a:hover { border-bottom-color: var(--brand); }

.site-header .call {
  font-weight: 650;
  font-size: .92rem;
  color: var(--paper);
  background: var(--brand);
  text-decoration: none;
  padding: .45rem .85rem;
  border-radius: 999px;
  white-space: nowrap;
}
.site-header .call:hover { background: var(--brand-dark); }

@media (max-width: 47.9rem) {
  .site-header .call { display: none; } /* the bottom bar owns the phone on mobile */
}

/* ---------- main column ---------- */

main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3.5rem;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .6rem;
  max-width: 24ch;
}

h2 {
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: -.01em;
  margin: 0 0 .8rem;
}

h3 {
  font-size: 1.08rem;
  margin: 1.5rem 0 .35rem;
  color: var(--brand-dark);
}

p { margin: 0 0 1rem; }
main { font-size: 1.02rem; }

a { color: var(--brand-dark); text-underline-offset: 2px; }
a:hover { color: var(--brand); }

.lede {
  font-size: 1.16rem;
  line-height: 1.65;
  color: var(--ink);
  max-width: 58ch;
}

/* Sections as generous bands rather than a wall of text. Every h2 section gets
   air above; alternating tinted panels are applied to specific blocks below. */
main > section { margin: 3rem 0 0; }
main > section > h2 { scroll-margin-top: 5rem; }

/* ---------- disclosure ---------- */

.disclosure-inline {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
  border-left: 3px solid var(--brand);
  background: var(--tint);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .6rem .9rem;
  margin: 0 0 1.75rem;
  max-width: 62ch;
}

/* ---------- buttons ---------- */

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.75rem 0;
}

.btn {
  display: inline-block;
  padding: .85rem 1.4rem;
  border-radius: var(--radius);
  background: var(--cta);
  color: var(--paper);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: .01em;
  box-shadow: var(--shadow);
  transition: background .15s ease, transform .1s ease;
}
.btn:hover, .btn:focus-visible { background: var(--cta-dark); color: var(--paper); }
.btn:active { transform: translateY(1px); }

.btn-call { background: var(--brand); }
.btn-call:hover, .btn-call:focus-visible { background: var(--brand-dark); }

/* ---------- link grids as cards ---------- */

.grid {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  display: grid;
  gap: .6rem;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
}
.grid a {
  display: block;
  padding: .8rem 1rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-weight: 550;
  font-size: .96rem;
  line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.grid a::after {
  content: " \2192";               /* arrow */
  color: var(--brand);
  font-weight: 400;
}
.grid a:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

/* ---------- diagrams ---------- */

.diagram {
  display: block;
  width: 100%;
  max-width: 32rem;
  height: auto;
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  color: var(--brand-dark);
  background: var(--tint);
  border-radius: var(--radius);
}

/* ---------- process steps ---------- */

.process {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: .9rem;
}
.process li {
  counter-increment: step;
  position: relative;
  padding: .9rem 1.1rem .9rem 3.4rem;
  background: var(--tint);
  border-radius: var(--radius);
  line-height: 1.55;
}
.process li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: .95rem;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--paper);
  font-weight: 700;
  font-size: .95rem;
  border-radius: 50%;
}

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

.faq { margin-top: 3rem; }
.faq details {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  margin: 0 0 .6rem;
  background: var(--paper);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: .95rem 2.6rem .95rem 1.1rem;
  font-weight: 600;
  position: relative;
  line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--brand);
}
.faq details[open] summary::after { content: "\2212"; } /* minus */
.faq details[open] summary { border-bottom: 1px solid var(--rule); }
.faq details > div { padding: .9rem 1.1rem; color: var(--ink); }
.faq details > div p:last-child { margin-bottom: 0; }
.faq details:hover { border-color: var(--brand); }

/* ---------- attribution / notices ---------- */

.attribution, .byline, .notice, .sources {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.55;
}
.notice {
  background: var(--tint-cta);
  border-radius: var(--radius);
  padding: .8rem 1rem;
  margin: 1.5rem 0;
}

/* ---------- forms ---------- */

form.quote {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
  margin: 1.5rem 0;
}
form.quote label {
  display: grid;
  gap: .3rem;
  font-weight: 600;
  font-size: .95rem;
}
form.quote input,
form.quote select,
form.quote textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  padding: .65rem .8rem;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  width: 100%;
}
form.quote input:focus,
form.quote select:focus,
form.quote textarea:focus {
  outline: none;
  border-color: var(--cta);
  box-shadow: 0 0 0 3px var(--tint-cta);
}
form.quote button {
  font: inherit;
  font-weight: 650;
  color: var(--paper);
  background: var(--cta);
  border: 0;
  padding: .9rem 1.4rem;
  border-radius: var(--radius);
  cursor: pointer;
  justify-self: start;
  box-shadow: var(--shadow);
}
form.quote button:hover { background: var(--cta-dark); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--tint);
  margin-top: 4rem;
}
.site-footer .cols {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.25rem;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
}
.site-footer h2 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--brand-dark);
  margin: 0 0 .6rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 .4rem; }
.site-footer a {
  color: var(--ink);
  text-decoration: none;
  font-size: .92rem;
}
.site-footer a:hover { text-decoration: underline; color: var(--brand-dark); }

.site-footer .disclosure,
.site-footer .copyright {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem 1.1rem;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.55;
}
.site-footer .copyright { padding-bottom: 2rem; }

/* ---------- sticky call bar (the money element, mobile only) ---------- */

.callbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 25;
  padding: .95rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .01em;
  background: var(--cta);
  color: var(--paper);
  text-decoration: none;
  box-shadow: 0 -2px 12px rgba(29, 33, 31, .18);
}
.callbar:active { background: var(--cta-dark); }

@media (min-width: 48rem) {
  .callbar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- print ---------- */

@media print {
  .site-header, .callbar, .cta, .skip { display: none; }
  body { padding: 0; }
  a { color: var(--ink); text-decoration: none; }
}

/* ---------- breadcrumbs ---------- */

.crumbs {
  font-size: .85rem;
  color: var(--muted);
  margin: 0 0 .9rem;
  line-height: 1.5;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-dark); text-decoration: underline; }
.crumbs .sep { margin: 0 .45rem; opacity: .6; }
.crumbs [aria-current] { color: var(--ink); font-weight: 550; }

/* ---------- active nav state ---------- */

.site-header nav a.current {
  border-bottom-color: var(--brand);
  font-weight: 650;
}

/* Right-edge fade hints that the nav scrolls on narrow screens. Slight fade on
   the last item when fully scrolled is the accepted cost of a CSS-only hint. */
@media (max-width: 47.9rem) {
  .site-header nav {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }
}

/* ---------- on-this-page ---------- */

.toc {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 2rem;
}
.toc h2 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--brand-dark);
  margin: 0 0 .5rem;
}
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2 14rem;
  column-gap: 2rem;
}
.toc li { margin: 0 0 .35rem; break-inside: avoid; }
.toc a { text-decoration: none; font-size: .95rem; }
.toc a:hover { text-decoration: underline; }

/* Anchor targets land below the sticky header. */
main :is(h2, h3)[id] { scroll-margin-top: 5rem; }

/* ---------- tables ---------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;   /* keeps columns readable; the wrapper scrolls instead */
  font-size: .95rem;
  line-height: 1.5;
}
caption {
  caption-side: top;
  text-align: left;
  color: var(--muted);
  font-size: .85rem;
  padding: .7rem 1rem .35rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: .65rem .9rem;
  border-top: 1px solid var(--rule);
}
thead th {
  background: var(--tint);
  color: var(--brand-dark);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-top: 0;
}
tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--tint) 45%, var(--paper)); }

/* ---------- disabled form state ---------- */

form.quote button[disabled] {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}
form.quote button[disabled]:hover { background: var(--cta); }

/* ---------- logo mark ---------- */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.wordmark .mark {
  width: 1.85rem;
  height: 1.85rem;
  flex: none;
  border-radius: .45rem;
  box-shadow: 0 1px 3px rgba(29, 33, 31, .18);
}

/* ---------- kicker ---------- */

.kicker {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--brand);
  margin: 0 0 .4rem;
}

/* ---------- homepage hero ---------- */

main.home h1 {
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  max-width: 20ch;
}

.hero {
  display: grid;
  gap: 1.5rem 2.5rem;
  align-items: center;
  background: linear-gradient(135deg, var(--tint) 0%, #fff 70%);
  border: 1px solid var(--rule);
  border-radius: calc(var(--radius) * 1.6);
  padding: 1.6rem 1.5rem;
  margin: 1.4rem 0 0;
}
@media (min-width: 48rem) {
  .hero {
    grid-template-columns: 1fr 15rem;
    padding: 2rem 2.25rem;
  }
}
.hero .lede { margin-bottom: 1.1rem; }
.hero .cta { margin: 1.25rem 0 0; }

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .5rem;
  font-weight: 550;
  font-size: .98rem;
}
.hero-points li {
  position: relative;
  padding-left: 1.7rem;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .16rem;
  width: 1.1rem;
  height: 1.1rem;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><circle cx="8" cy="8" r="8" fill="%232b5443"/><path fill="none" stroke="white" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" d="M4.4 8.4l2.6 2.6 4.8-5.4"/></svg>') center / 100% no-repeat;
}

.hero-art {
  width: 100%;
  height: auto;
  display: none;
}
@media (min-width: 48rem) {
  .hero-art { display: block; }
}

/* ---------- interior page furniture ---------- */

/* Closing call-to-action as a real section */
.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: calc(var(--radius) * 1.6);
  padding: 1.9rem 1.75rem;
  margin: 3.5rem 0 0;
  color: var(--paper);
}
.cta-band h2 {
  color: var(--paper);
  margin: 0 0 .3rem;
}
.cta-band p {
  color: var(--paper);
  opacity: .88;
  margin: 0 0 1rem;
  max-width: 46ch;
}
.cta-band .cta { margin: 1.1rem 0 0; }
.cta-band .btn { background: var(--cta); }
.cta-band .btn:hover, .cta-band .btn:focus-visible { background: var(--cta-dark); }
.cta-band .btn-call {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .65);
  box-shadow: none;
}
.cta-band .btn-call:hover, .cta-band .btn-call:focus-visible {
  background: rgba(255, 255, 255, .12);
}

/* Area-page data panels: the census block and the licensing block are the two
   generated, per-city differentiators — dress them as what they are. */
.panel-stat, .panel-authority {
  background: var(--tint);
  border-radius: calc(var(--radius) * 1.4);
  padding: 1.4rem 1.5rem;
}
.panel-stat { border-left: 4px solid var(--brand); }
.panel-stat .diagram { background: var(--paper); }

.panel-authority {
  background: var(--paper);
  border: 1.5px solid var(--brand);
}
.panel-authority h2 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: .15rem;
}
.authority-name {
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 .75rem;
}

/* Guide meta: byline strip and sources panel */
.byline {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: .55rem 0;
  margin: 0 0 1.4rem;
}
.sources {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 2.5rem 0 0;
}
.sources h2 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--brand-dark);
  margin: 0 0 .5rem;
}
.sources ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2 16rem;
  column-gap: 2rem;
  font-size: .9rem;
}
.sources li { margin: 0 0 .35rem; break-inside: avoid; }

/* Footer brand row */
.fbrand {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2rem 1.25rem 0;
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 750;
  color: var(--brand-dark);
}
.fbrand span { color: var(--muted); font-weight: 500; }
.fbrand .mark { width: 1.6rem; height: 1.6rem; border-radius: .4rem; }
