/* ==========================================================================
   KC Outdoor Pros
   Design read: local service-business site for Lee's Summit homeowners.
   Grounded, hardworking language. Forest / bone / amber palette, chosen
   specifically to avoid the kelly-green-on-white every competitor uses.

   Dials: DESIGN_VARIANCE 6 | MOTION_INTENSITY 3 | VISUAL_DENSITY 4
   Motion is hover/active only. No scroll-driven reveals anywhere: this
   site has tall text blocks and reveal-on-scroll is how you ship an
   invisible page.

   Radius system (ONE rule, no exceptions): 8px on everything that has a
   box. Buttons, cards, inputs, images, media. No pills, no sharp corners.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  --bone:       #f4f1e9;
  --surface:    #ffffff;
  --surface-2:  #eae6da;
  --ink:        #16211b;
  --muted:      #55645c;
  --line:       #d8d3c4;
  --pine:       #1c3b2a;
  --pine-deep:  #142a1e;
  --amber:      #e39a2b;
  --amber-deep: #c57f16;

  /* Semantic aliases. Components reference ONLY these, so a zone class
     can flip the whole palette by redefining them (see .band-dark). */
  --bg:        var(--bone);
  --fg:        var(--ink);
  --fg-muted:  var(--muted);
  --card:      var(--surface);
  --card-2:    var(--surface-2);
  --rule:      var(--line);
  --accent:    var(--pine);

  --radius: 8px;
  --maxw: 1180px;
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark bands. Redefining the semantic tokens flips every descendant that
   uses var() with no per-component overrides. Note the explicit
   background: a zone class that does not paint its own background shows
   the page background through and the flip silently fails. */
.band-dark {
  --bg:       var(--pine);
  --fg:       #f4f1e9;
  --fg-muted: #a9bfb1;
  --card:     rgba(255, 255, 255, 0.06);
  --card-2:   rgba(255, 255, 255, 0.10);
  --rule:     rgba(244, 241, 233, 0.18);
  --accent:   var(--amber);
  background: var(--bg);
  color: var(--fg);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #101a14;
    --fg:       #eef2ec;
    --fg-muted: #9aaba1;
    --card:     #182620;
    --card-2:   #1f3029;
    --rule:     #2c3f36;
    --accent:   #7fc79b;
  }
  .band-dark {
    --bg:       #0b130e;
    --card:     rgba(255, 255, 255, 0.05);
    --card-2:   rgba(255, 255, 255, 0.09);
    --rule:     rgba(238, 242, 236, 0.16);
    --accent:   var(--amber);
  }
}

/* --------------------------------------------------------------------------
   2. Fonts (self-hosted variable Archivo, latin + latin-ext)
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/archivo-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
                 U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext-var.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                 U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                 U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); letter-spacing: -0.012em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--fg-muted);
  max-width: 58ch;
}

.u-measure { max-width: 62ch; }

/* Visible focus everywhere. Never remove this. */
:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  z-index: 200;
  background: var(--amber); color: var(--ink);
  padding: 0.75rem 1.25rem; font-weight: 700;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }

.section__head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section__head h2 { margin-bottom: 0.4em; }

/* --------------------------------------------------------------------------
   5. Buttons
   Baked-in flex centering: inline-block buttons get stretched by flex
   parents and the label sits high off the optical center.
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  line-height: 1.2;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;          /* CTA labels never wrap */
  padding: 0.95rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s var(--ease),
              border-color 0.2s var(--ease),
              color 0.2s var(--ease),
              transform 0.1s var(--ease);
}
.btn:active { transform: translateY(1px); }

/* Amber fill + ink label. 7.0:1 contrast. */
.btn--primary { background: var(--amber); color: var(--ink); }
.btn--primary:hover { background: var(--amber-deep); }

/* Outlined. Inherits the zone's fg, so it is readable on bone AND pine. */
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--rule);
}
.btn--ghost:hover { border-color: var(--fg); background: var(--card-2); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* --------------------------------------------------------------------------
   6. Header / nav  (single line at desktop, 72px tall)
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--pine-deep);
  color: #f4f1e9;
  border-bottom: 1px solid rgba(244, 241, 233, 0.12);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.075rem;
  letter-spacing: -0.02em;
  color: #f4f1e9;
  flex-shrink: 0;
}
.brand__mark { flex-shrink: 0; }
.brand__name { line-height: 1.15; }
.brand__name span { color: var(--amber); }

.nav { display: flex; align-items: center; gap: 1.75rem; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Every top-level item is a flex row and every link is a blockified flex
   item, so all links share one box height regardless of whether the item
   also carries a caret button. Without this the Areas item (a flex row)
   sat a few px above Services/Work (inline links). */
.nav__list > li { display: flex; align-items: center; }
.nav__list a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.3;
  color: rgba(244, 241, 233, 0.82);
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.nav__list a:hover,
.nav__list .current-menu-item > a { color: #fff; border-bottom-color: var(--amber); }

.nav__cta { padding: 0.7rem 1.15rem; font-size: 0.95rem; }

/* Facebook icon button in the header. Label is visually hidden on desktop,
   shown inside the mobile panel. */
.nav__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 8px;
  border: 1px solid rgba(244, 241, 233, 0.18);
  color: rgba(244, 241, 233, 0.82);
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__social:hover { color: #fff; border-color: var(--amber); background: rgba(227, 154, 43, 0.12); }
.nav__social-label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Footer: icon + visible label under the tagline. */
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.footer-social:hover { text-decoration: underline; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 2px solid rgba(244, 241, 233, 0.28);
  border-radius: var(--radius);
  color: #f4f1e9;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}
.nav-toggle__bars { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--pine-deep);
    border-bottom: 1px solid rgba(244, 241, 233, 0.12);
    padding: 0.5rem var(--gut) 1.25rem;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li > a { flex: 1; }
  .nav__list a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(244, 241, 233, 0.10);
  }
  .nav__social {
    width: auto;
    height: auto;
    justify-content: flex-start;
    margin-top: 1rem;
    padding: 0.65rem 0.9rem;
    align-self: flex-start;
  }
  .nav__social-label { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
  .nav__list a:hover { border-bottom-color: rgba(244, 241, 233, 0.10); }
  .nav__cta { margin-top: 1rem; }
  .site-header__inner { position: relative; }
}

/* --------------------------------------------------------------------------
   7. Hero  (asymmetric split, dark band)
   -------------------------------------------------------------------------- */

.hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(3.5rem, 7vw, 5.5rem); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 { margin-bottom: 0.5rem; }
.hero .lede { color: var(--fg-muted); }

.hero__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-2);
  aspect-ratio: 3 / 2;   /* matches hero-lawn.jpg so cover crops nothing */
}
.hero__media img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* Placeholder shown until a real photo is dropped in. Deliberately looks
   unfinished so it can never be mistaken for a design decision. */
.ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 100%;
  padding: 1.5rem;
  text-align: center;
  background:
    repeating-linear-gradient(45deg,
      rgba(227, 154, 43, 0.10) 0 12px,
      rgba(227, 154, 43, 0.02) 12px 24px);
  border: 2px dashed rgba(227, 154, 43, 0.55);
  border-radius: var(--radius);
  color: var(--fg);
}
.ph__label { font-weight: 800; font-size: 0.95rem; letter-spacing: -0.01em; }
.ph__hint  { font-size: 0.82rem; color: var(--fg-muted); max-width: 32ch; line-height: 1.45; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__media { aspect-ratio: 16 / 10; }
  .hero__media img { aspect-ratio: 16 / 10; }
}

/* --------------------------------------------------------------------------
   8. Services

   One lead feature (mowing, the core offer) plus a ruled two-column list
   for the other six. Deliberately NOT a grid of equal cards: seven items
   do not divide into a three-column grid without leaving an empty cell,
   and the equal-card row is the most generic pattern available.
   -------------------------------------------------------------------------- */

.services__lead {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--pine);
  color: #f4f1e9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.services__lead-media { aspect-ratio: 16 / 10; background: var(--pine-deep); overflow: hidden; }
.services__lead-media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.services__lead-body { padding: clamp(1.5rem, 3vw, 2.25rem); align-self: center; }
.services__lead-body h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-bottom: 0.4rem; }
.services__lead-body p { color: #b9cdc0; margin: 0; }

.svc__tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--amber);
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.7rem;
}

.svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 5vw, 4rem);
}
.svc-item {
  padding: 1.15rem 0;
  border-top: 1px solid var(--rule);
}
.svc-item h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.svc-item p { color: var(--fg-muted); font-size: 0.95rem; margin: 0; line-height: 1.55; }

@media (max-width: 760px) {
  .services__lead { grid-template-columns: 1fr; }
  .services__lead-media { aspect-ratio: 16 / 9; }
  .services__lead-media img { aspect-ratio: 16 / 9; }
  .svc-list { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   9. Split section  (text + image, used ONCE on the page)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-2);
  aspect-ratio: 5 / 4;
}
.split__media img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }

.checks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.85rem; }
.checks li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.75rem;
  align-items: start;
  line-height: 1.5;
}
.checks svg { width: 1.4rem; height: 1.4rem; color: var(--accent); margin-top: 0.15rem; }
.checks strong { display: block; font-weight: 700; }
.checks span { color: var(--fg-muted); font-size: 0.95rem; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; aspect-ratio: 16 / 10; }
  .split__media img { aspect-ratio: 16 / 10; }
}

/* --------------------------------------------------------------------------
   10. Work gallery  (asymmetric image grid)
   -------------------------------------------------------------------------- */

.work__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.work__item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-2);
  min-height: 180px;
}
/* Only the lead tile sets a ratio. The others stretch to the row height,
   which is what keeps the right-hand column from leaving dead gaps. */
.work__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: 1 / 1; }
.work__item img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .work__item { min-height: 150px; }
  .work__item:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
}

/* --------------------------------------------------------------------------
   11. How it works  (horizontal band, connected)
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  counter-reset: step;
}
.step { position: relative; padding-top: 2.75rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  background: var(--amber);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius);
}
/* Connector line between steps. Decorative, hidden from AT. */
.step::after {
  content: "";
  position: absolute;
  top: 1rem; left: 2.75rem; right: -1.5rem;
  height: 2px;
  background: var(--rule);
}
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 0.35rem; }
.step p { color: var(--fg-muted); font-size: 0.95rem; }

@media (max-width: 780px) {
  .steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .step::after { display: none; }
}

/* --------------------------------------------------------------------------
   12. Service area
   -------------------------------------------------------------------------- */

.area {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.area__list { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.area__list li {
  padding: 0.55rem 1rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
}
.area__note { margin-top: 1.25rem; font-size: 0.92rem; color: var(--fg-muted); }

@media (max-width: 780px) { .area { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   13. Quote form  (dark band)
   -------------------------------------------------------------------------- */

.quote__grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 700; font-size: 0.92rem; }
.field .hint { font-size: 0.82rem; color: var(--fg-muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  width: 100%;
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #6b7a72; }   /* 4.6:1 on white */
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--amber); outline: none; }

.field--error input,
.field--error select,
.field--error textarea { border-color: #ff8f7a; }
.field__error { font-size: 0.85rem; font-weight: 600; color: #ffb3a3; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }

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

.notice {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--card);
  font-size: 0.95rem;
}
.notice--ok    { border-color: var(--amber); }
.notice--error { border-color: #ff8f7a; }

.contact-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.contact-card h3 { margin-bottom: 0.75rem; }
.contact-card p { color: var(--fg-muted); font-size: 0.95rem; }
.contact-card__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
  margin-block: 0.5rem 0.75rem;
}
.contact-card__phone:hover { color: var(--amber); }

@media (max-width: 860px) { .quote__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--pine-deep);
  color: #d9e3dc;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  font-size: 0.95rem;
}
.site-footer a { color: #d9e3dc; }
.site-footer a:hover { color: var(--amber); }

/* Scoped grid. A blanket `.site-footer div { display:flex }` is exactly
   how a footer's children end up overlapping, so nothing here is blanket. */
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.site-footer__grid h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9fb3a6;
  margin-bottom: 0.75rem;
}
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }

.site-footer__bottom {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(244, 241, 233, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #9fb3a6;
}

@media (max-width: 780px) { .site-footer__grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* --------------------------------------------------------------------------
   15. Standard page + post content (page.php / index.php)
   Scoped to .prose so nothing here leaks into the front page sections.
   -------------------------------------------------------------------------- */

.page-hero { background: var(--pine); color: #f4f1e9; padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-hero h1 { margin-bottom: 0; }

.prose { max-width: 68ch; }   /* left-aligned so it lines up under the page-hero h1 */
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-top: 2em; }
.prose h3 { margin-top: 1.75em; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose img,
.prose .wp-block-image img { border-radius: var(--radius); }
.prose figure { margin: 2rem 0; }
.prose figcaption { font-size: 0.88rem; color: var(--fg-muted); margin-top: 0.5rem; }
.prose blockquote {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--amber);
  color: var(--fg-muted);
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--rule); }
.prose th { font-weight: 700; }
.prose pre {
  background: var(--card-2);
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.9rem;
}
.prose code { font-size: 0.92em; }
.prose .alignleft  { float: left;  margin: 0.35rem 1.5rem 1rem 0; }
.prose .alignright { float: right; margin: 0.35rem 0 1rem 1.5rem; }
.prose .aligncenter { margin-inline: auto; }
.prose iframe { max-width: 100%; border-radius: var(--radius); }

@media (max-width: 620px) {
  .prose .alignleft, .prose .alignright { float: none; margin: 1.5rem 0; }
}

/* Post list (index.php) */
.postlist { display: grid; gap: 1rem; max-width: 68ch; }
.postcard {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.postcard h2 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.postcard h2 a { text-decoration: none; }
.postcard h2 a:hover { color: var(--accent); }
.postcard time { font-size: 0.85rem; color: var(--fg-muted); }


/* --------------------------------------------------------------------------
   16. Service + area page components (v0.4.0)
   -------------------------------------------------------------------------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #a9bfb1;
  margin-bottom: 0.9rem;
}
.crumbs a { color: #d9e3dc; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--amber); font-weight: 600; }

/* What's-included checklist in two columns on wide screens */
.checks--grid {
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 2.75rem;
  max-width: 62rem;
}
@media (max-width: 780px) { .checks--grid { grid-template-columns: 1fr; } }

/* FAQ accordions: native details/summary, no JS */
.faqs { max-width: 72ch; display: grid; gap: 0.6rem; }
.faq {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 2.75rem 1rem 1.15rem;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.2s var(--ease);
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq > p { padding: 0 1.15rem 1.1rem; margin: 0; color: var(--fg-muted); }

/* CTA band at the bottom of service/area pages */
.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 0.3rem; }
.cta-band .btn-row { margin-top: 0; }

/* Services hub cards */
.svc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.svc-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.svc-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.svc-card__media { aspect-ratio: 16 / 10; background: var(--card-2); overflow: hidden; }
/* Ratio lives on the img itself: aspect-ratio on a div is only a preferred
   size and a taller image grows the box, which is how the cards fell out of
   alignment. On a replaced element it is absolute. */
.svc-card__media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.svc-card__body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.svc-card__body h2 { font-size: 1.2rem; margin: 0; letter-spacing: -0.015em; }
.svc-card__body p { color: var(--fg-muted); font-size: 0.92rem; margin: 0; line-height: 1.5; }
.svc-card__go { margin-top: auto; padding-top: 0.6rem; font-weight: 700; font-size: 0.95rem; color: var(--accent); }
@media (max-width: 900px) { .svc-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-cards { grid-template-columns: 1fr; } }

/* Linked pills and service titles */
.area__list li a { text-decoration: none; color: var(--accent); }
.area__list li a:hover { text-decoration: underline; }
.svc-item h3 a { text-decoration: none; color: inherit; }
.svc-item h3 a:hover { color: var(--accent); }
.svc-more { color: var(--amber); font-weight: 700; text-decoration: none; }
.svc-more:hover { text-decoration: underline; }


/* Stacked content rows inside one section: kills the padding pile-up that
   happens when every block is its own .section. */
.flow { display: grid; gap: clamp(2.75rem, 6vw, 4.5rem); }
/* No max-width here: this class is combined with .wrap on service pages and
   `max-width: 100%` was overriding the wrap, pushing the body copy to the
   viewport edge while the sections above stayed centered. */
.flow--tight { gap: clamp(2rem, 4vw, 2.75rem); }
.flow .prose { max-width: 68ch; }
.flow .split h2 { margin-bottom: 0.6rem; }

/* Alternate image side on even/odd media rows (desktop only). */
@media (min-width: 861px) {
  .split--flip > div:first-child { order: 2; }
  .split--flip > .split__media { order: 1; }
}

/* svc-card h3 used on area pages (hub uses h2) */
.svc-card__body h3 { font-size: 1.15rem; margin: 0; letter-spacing: -0.015em; }


/* --------------------------------------------------------------------------
   17. Areas dropdown (v0.8.0)
   Desktop: opens on hover / keyboard focus / caret click. Mobile: the caret
   toggles an indented sublist inside the panel. All items come from
   kcop_area_pages(), same loop as everywhere else.
   -------------------------------------------------------------------------- */

.nav__item--has-sub {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-sub-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: rgba(244, 241, 233, 0.82);
  cursor: pointer;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-sub-toggle:hover { color: #fff; }
.nav-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-sub-toggle svg { transition: transform 0.2s var(--ease); }

/* The outer .nav__sub carries a transparent hover bridge; the inner list
   carries the visible panel. Splitting them closes the hover gap between
   the header bottom and the dropdown. */
.nav__sub {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 0.85rem;
  display: none;
  z-index: 60;
}
.nav__sub-inner {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  min-width: 12.5rem;
  background: var(--pine-deep);
  border: 1px solid rgba(244, 241, 233, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.nav__sub-inner a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  border-bottom: none;          /* cancel the top-level underline hover */
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(244, 241, 233, 0.85);
  text-decoration: none;
  white-space: nowrap;
}
.nav__sub-inner a:hover { background: rgba(244, 241, 233, 0.08); color: #fff; border-bottom: none; }

@media (min-width: 901px) {
  .nav__item--has-sub:hover .nav__sub,
  .nav__item--has-sub:focus-within .nav__sub,
  .nav__sub.is-open { display: block; }
}

@media (max-width: 900px) {
  .nav__item--has-sub { flex-wrap: wrap; align-items: stretch; }
  .nav__item--has-sub > a { flex: 1; }
  .nav-sub-toggle {
    width: 2.75rem;
    height: auto;
    color: rgba(244, 241, 233, 0.82);
  }
  .nav__sub {
    position: static;
    transform: none;
    padding-top: 0;
    width: 100%;
  }
  .nav__sub.is-open { display: block; }
  .nav__sub-inner {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0.5rem 1rem;
    min-width: 0;
  }
  .nav__sub-inner a {
    padding: 0.6rem 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(244, 241, 233, 0.08);
  }
  .nav__sub-inner a:hover { background: transparent; }
}
