/* KNKMS shared tokens
   Loredo-clean structure, Chunk-light brightness.
   White pages, confident type, soft accent wash: not dark SaaS, not flyer gimmicks. */

:root {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-tint: #f3f6f8;
  --ink: #1a1f26;
  --ink-soft: #3d4654;
  --muted: #6b7785;
  --line: #e6eaef;
  --line-strong: #d5dbe3;

  --accent: #0d7a5f;
  --accent-ink: #ffffff;
  --accent-wash: #e8f5f0;
  --accent-hover: #0a6550;
  --accent-deep: #085544;

  --radius: 3px;
  --radius-sm: 2px;
  --max: 1040px;
  --phone-display: ""; /* set when Twilio number is live */
  --shadow-soft: none;
}

[data-brand="junk"] {
  --accent: #0d7a5f;
  --accent-hover: #0a6550;
  --accent-deep: #085544;
  --accent-wash: #e8f5f0;
  --bg-tint: #f0f7f4;
}

[data-brand="handyman"] {
  --accent: #1f4e79;
  --accent-hover: #183d5f;
  --accent-deep: #122f4a;
  --accent-wash: #e8eef5;
  --bg-tint: #f3f6fa;
}

[data-brand="hub"] {
  --accent: #2c3e50;
  --accent-hover: #1f2d3a;
  --accent-deep: #172430;
  --accent-wash: #eef1f4;
  --bg-tint: #f5f6f8;
}

[data-brand="transport"] {
  --accent: #3d5a80;
  --accent-hover: #2f4766;
  --accent-deep: #243852;
  --accent-wash: #eaf0f6;
  --bg-tint: #f2f5f8;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-hover); }

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 750;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 0.65rem;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.05rem, 6.2vw, 2.85rem);
  font-weight: 800;
}
h2 { font-size: clamp(1.4rem, 2.8vw, 1.8rem); }
h3 { font-size: 1.08rem; letter-spacing: -0.015em; }

/* Accent underline under primary titles */
h1.titled,
.hero h1,
.page-hero h1 {
  position: relative;
  padding-bottom: 0.7rem;
  margin-bottom: 1rem;
}
h1.titled::after,
.hero h1::after,
.page-hero h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.75rem;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

p { margin: 0 0 1rem; color: var(--ink-soft); }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
@media (min-width: 640px) {
  .wrap { width: min(100% - 2.5rem, var(--max)); }
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}

/* Buttons: local-trade CTAs (block primary + underline secondary) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  min-height: 3rem;
  padding: 0.85rem 1.4rem;
  border-radius: 2px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.btn-fill {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: none;
}
.btn-fill:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  border-bottom: 2px solid var(--ink);
  min-height: 2.6rem;
  padding: 0.55rem 0.15rem;
}
.btn-ghost:hover {
  background: transparent;
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.btn-text {
  background: transparent;
  color: var(--ink);
  border: none;
  border-radius: 0;
  min-height: 2.4rem;
  padding: 0.45rem 0.1rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.btn-text:hover {
  color: var(--accent);
}
.btn-lg {
  min-height: 3.25rem;
  padding: 0.95rem 1.55rem;
  font-size: 1.06rem;
}
.btn-lg.btn-ghost {
  min-height: 2.75rem;
  padding: 0.65rem 0.2rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.45rem 0 0;
}

.phone-inline {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}
.phone-inline:hover { color: var(--accent); }

/* Top bar / header */
.topbar {
  background: var(--accent);
  color: var(--accent-ink);
  text-align: center;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.topbar a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 750;
}

.site-header {
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 0.95rem 0;
  position: sticky;
  top: 0;
  z-index: 30;
}
.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  position: relative;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand-text { min-width: 0; }
.brand-name {
  display: block;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.brand-tag {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.15rem;
}
.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 2.75rem 0 2.75rem;
  background:
    radial-gradient(ellipse 90% 70% at 12% 0%, var(--accent-wash) 0%, transparent 58%),
    radial-gradient(ellipse 60% 50% at 100% 20%, color-mix(in srgb, var(--accent-wash) 70%, #fff) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 72%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 85%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.35fr 0.9fr;
    align-items: stretch;
    gap: 2.5rem;
  }
}
.hero-lead {
  font-size: clamp(1.05rem, 2.6vw, 1.18rem);
  max-width: 34rem;
  margin-bottom: 0;
  line-height: 1.55;
}
.hero-aside {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.35rem 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-aside h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.hero-aside p {
  font-size: 0.96rem;
  margin-bottom: 1.1rem;
}
.hero-aside .btn { width: 100%; }

.hero-marks {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.35rem;
  flex-wrap: wrap;
}
.hero-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}
.hero-mark svg {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--accent);
  flex: 0 0 auto;
}

/* Trust strip */
.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding: 1.35rem 0;
}
@media (min-width: 720px) {
  .trust {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
  }
}
.trust-item {
  text-align: left;
  padding: 0.55rem 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.trust-item strong {
  display: block;
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 0.15rem;
}
.trust-item span {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Sections */
.section {
  padding: 3.15rem 0;
}
.section.soft {
  background:
    linear-gradient(180deg, var(--bg-tint) 0%, var(--bg-soft) 100%);
  border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.section-head {
  max-width: 38rem;
  margin-bottom: 1.85rem;
}
.section-head h2 {
  position: relative;
  padding-bottom: 0.55rem;
  margin-bottom: 0.7rem;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2rem;
  height: 2.5px;
  border-radius: 2px;
  background: var(--accent);
}
.section-head p {
  margin-bottom: 0;
}

/* Service listings: stacked rows, not boxed cards */
.card-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) {
  .card-grid.cols-3 {
    grid-template-columns: 1fr 1fr;
  }
}
.card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 1.15rem 0;
  transition: background 0.12s ease;
  height: auto;
  display: flex;
  flex-direction: column;
  box-shadow: none;
}
@media (hover: hover) {
  .card:hover {
    box-shadow: none;
    transform: none;
  }
}
.section.soft .card {
  border-color: transparent;
  border-bottom-color: var(--line);
  box-shadow: none;
}
.card-icon {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0;
  background: transparent;
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  margin-bottom: 0.45rem;
  border: none;
}
.card-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}
.card h3 { margin-bottom: 0.3rem; }
.card h3 a { text-decoration: none; color: inherit; }
.card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card p {
  margin: 0;
  font-size: 0.95rem;
  flex: 1;
}
.card-link {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ink);
}
.card-link:hover { color: var(--accent); }

/* Steps */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
  }
}
.step {
  counter-increment: step;
  padding: 0.35rem 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0.45rem;
}
.step h3 { margin-bottom: 0.35rem; }
.step p { margin: 0; font-size: 0.95rem; }

/* Load sizing */
.load-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 720px) {
  .load-grid { grid-template-columns: repeat(4, 1fr); }
}
.load-card {
  padding: 0.25rem 0;
  text-align: left;
  border-top: 2px solid var(--accent);
  padding-top: 0.85rem;
}
.load-card .size {
  display: block;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.load-card p {
  margin: 0;
  font-size: 0.9rem;
}
.load-note {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Towns */
.towns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.towns li {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.15rem 0.85rem 0.15rem 0;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink);
}
.towns li a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.towns li a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent-deep);
}
.section.soft .towns li {
  background: transparent;
  border: none;
}
@media (hover: hover) {
  .towns li:hover {
    color: var(--accent-deep);
  }
}

/* Job gallery frames */
.job-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .job-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .job-grid { grid-template-columns: repeat(3, 1fr); }
}
.job-card {
  background: transparent;
  border: none;
  border-top: 3px solid var(--accent);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}
.job-photo {
  aspect-ratio: 4 / 3;
  position: relative;
  background:
    linear-gradient(145deg, #f2f4f7 0%, #e8ecf1 55%, #dde3ea 100%);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
  padding: 1.1rem;
  overflow: hidden;
}
.job-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.35) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.55;
  pointer-events: none;
}
.job-photo-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  max-width: 11rem;
}
.job-photo-inner svg {
  width: 1.65rem;
  height: 1.65rem;
  color: color-mix(in srgb, var(--accent) 70%, var(--muted));
  opacity: 0.85;
}
.job-photo-label {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--muted);
  line-height: 1.35;
}
.job-meta {
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fcfcfd, #fff);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.job-meta .type {
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  font-size: 0.94rem;
}
.job-meta .price {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  white-space: nowrap;
}
.feed-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Services list */
.svc-list {
  columns: 1;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .svc-list { columns: 2; }
}
.svc-list li {
  break-inside: avoid;
  padding: 0.55rem 0 0.55rem 1rem;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.svc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
}

/* CTA band */
.cta-band {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 3rem 0;
  text-align: center;
}
.cta-band h2 { color: inherit; padding-bottom: 0; margin-bottom: 0.55rem; }
.cta-band h2::after { display: none; }
.cta-band p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 30rem;
  margin: 0 auto 1.35rem;
}
.cta-band .btn-fill {
  background: #fff;
  color: var(--accent-deep);
  box-shadow: none;
}
.cta-band .btn-fill:hover {
  background: #fff;
  color: var(--accent);
}
.cta-band .btn-ghost {
  background: transparent;
  color: #fff;
  border-bottom-color: #fff;
}
.cta-band .btn-ghost:hover {
  background: transparent;
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.7);
  opacity: 0.9;
}
.cta-band .btn-text {
  color: #fff;
}
.cta-band .btn-text:hover {
  color: #fff;
  opacity: 0.85;
}
.cta-band .cta-row {
  justify-content: center;
  align-items: center;
}

/* Footer */
.site-foot {
  background: #1a1f26;
  color: #c5ced8;
  padding: 2.25rem 0 calc(5.75rem + env(safe-area-inset-bottom, 0px));
  font-size: 0.92rem;
}
.site-foot a { color: #fff; }
.site-foot p { color: #a8b3bf; margin: 0.3rem 0; }
.site-foot .legal {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: #7d8a98;
}
.site-foot .legal a { color: #a8b3bf; }
.foot-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .foot-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}
.foot-brand {
  font-weight: 800;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

/* Sticky mobile CTAs */
.sticky-call {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  gap: 0.55rem;
  padding: 0.7rem 0.75rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(1.2) blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: none;
}
.sticky-call a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-weight: 750;
  padding: 0.95rem 0.5rem;
  min-height: 3.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow: none;
}
.sticky-call .call {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 2px;
}
.sticky-call .text {
  background: transparent;
  color: var(--ink);
  border: none;
  border-radius: 0;
  border-bottom: 2px solid var(--ink);
}
@media (min-width: 780px) {
  .sticky-call { display: none; }
  .site-foot { padding-bottom: 2.25rem; }
}

/* Hub */
.hub-page {
  background: var(--bg);
  min-height: 100vh;
  padding: 3rem 0 4rem;
}
.hub-sheet {
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
}
.hub-letterhead {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.15rem;
  margin-bottom: 1.35rem;
}
.hub-letterhead .co {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}
.hub-letterhead .meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}
.hub-intro { margin-bottom: 0.5rem; }
.hub-brands {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.hub-brands li {
  border-top: 1px solid var(--line);
  padding: 1.15rem 0;
  display: grid;
  gap: 0.15rem;
}
.hub-brands a {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.hub-brands a:hover { color: var(--accent); }
.hub-brands .role {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}
.hub-brands .dom {
  font-size: 0.8rem;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  color: var(--accent);
}
.hub-foot {
  margin-top: 0.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

/* Transport launch page */
.tr-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.tr-card {
  width: min(100% - 2.5rem, 480px);
  margin: auto;
  padding: 2rem 0;
  text-align: left;
}
.tr-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.tr-card h1 {
  font-size: 1.65rem;
  margin-bottom: 0.75rem;
}
.tr-card p { margin-bottom: 0.85rem; }
.tr-links {
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.tr-links a {
  font-weight: 700;
  text-decoration: none;
}
.tr-links a:hover { text-decoration: underline; }
.tr-foot {
  text-align: center;
  padding: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.tr-foot a { color: var(--muted); }

/* Multi-page layout + mobile nav */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.75rem;
  margin: 0;
  border: none;
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 750;
  cursor: pointer;
}
.nav-toggle-bars {
  position: relative;
  width: 1.15rem;
  height: 0.9rem;
  display: block;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after,
.nav-toggle-bars span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.nav-toggle-bars span { display: none; }
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }
.nav-toggle-bars {
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}
.site-header.is-nav-open .nav-toggle-bars {
  background: none;
}
.site-header.is-nav-open .nav-toggle-bars::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.site-header.is-nav-open .nav-toggle-bars::after {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%) rotate(-45deg);
}
.nav-toggle-label { line-height: 1; }

body.nav-lock {
  overflow: hidden;
}

.site-header-inner > nav {
  width: 100%;
  order: 3;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.nav-links > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 650;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.nav-sub-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.nav-sub-toggle::before {
  content: "+";
}
.has-sub.is-open > .nav-sub-toggle::before {
  content: "\2212";
}

.nav-links .has-sub {
  position: relative;
}
.nav-links .sub-nav {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 12.5rem;
  margin: 0;
  padding: 0.45rem 0;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  z-index: 40;
}
.nav-links .has-sub:hover > .sub-nav,
.nav-links .has-sub:focus-within > .sub-nav {
  display: block;
}
.nav-links .sub-nav a {
  display: block;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links .sub-nav a:hover {
  color: var(--accent);
  background: var(--bg-soft);
}

@media (max-width: 879px) {
  .nav-toggle { display: inline-flex; }
  .header-actions .phone-inline { display: none; }
  .site-header-inner {
    flex-wrap: nowrap;
    gap: 0.65rem;
  }
  .site-header-inner > nav {
    display: none;
    width: 100%;
    order: 3;
    padding: 0.35rem 0 0.75rem;
    border-top: 1px solid var(--line);
    margin-top: 0.35rem;
  }
  .site-header.is-nav-open .site-header-inner > nav {
    display: block;
  }
  .site-header.is-nav-open .site-header-inner {
    flex-wrap: wrap;
  }
  .nav-links {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    align-items: stretch;
  }
  .nav-links > li {
    display: block;
    border-bottom: 1px solid var(--line);
  }
  .nav-links > li > a,
  .nav-links .has-sub > a {
    display: block;
    padding: 0.95rem 0.15rem;
    font-size: 1.05rem;
  }
  .nav-links .has-sub {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .nav-links .has-sub > a {
    grid-column: 1;
  }
  .nav-sub-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
  }
  .nav-links .sub-nav {
    display: none;
    position: static;
    grid-column: 1 / -1;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0 0 0.65rem 0.15rem;
  }
  .nav-links .has-sub.is-open > .sub-nav {
    display: block;
  }
  .nav-links .has-sub:hover > .sub-nav,
  .nav-links .has-sub:focus-within > .sub-nav {
    display: none;
  }
  .nav-links .has-sub.is-open:hover > .sub-nav,
  .nav-links .has-sub.is-open:focus-within > .sub-nav,
  .nav-links .has-sub.is-open > .sub-nav {
    display: block;
  }
  .nav-links .sub-nav a {
    padding: 0.7rem 0.15rem;
    font-size: 0.98rem;
    white-space: normal;
  }
  .nav-links .sub-nav a:hover {
    background: transparent;
  }
}

@media (min-width: 880px) {
  .nav-toggle { display: none !important; }
  .site-header-inner > nav {
    display: block;
    width: auto;
    order: 0;
    flex: 1;
  }
  .nav-links {
    width: auto;
    justify-content: center;
    gap: 1.25rem;
  }
  .nav-links a { font-size: 0.95rem; }
  .nav-sub-toggle { display: none !important; }
}


.page-hero {
  position: relative;
  padding: 2.35rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 90% at 0% 0%, var(--accent-wash) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.28;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.45), transparent 90%);
  pointer-events: none;
}
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero p {
  max-width: 38rem;
  margin-bottom: 0;
  font-size: 1.05rem;
}

.svc-detail {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.svc-detail li {
  /* row link handles layout */
}
.svc-detail .svc-ico {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0;
  background: transparent;
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  border: none;
}
.svc-detail .svc-ico svg {
  width: 1.15rem;
  height: 1.15rem;
}
.svc-detail .link-more {
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ink);
}

.area-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) {
  .area-grid { grid-template-columns: 1fr 1fr; }
}
.area-card {
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 1rem 0;
  background: transparent;
  transition: background 0.12s ease;
  box-shadow: none;
}
@media (hover: hover) {
  .area-card:hover {
    box-shadow: none;
  }
}
.area-card h3 a {
  text-decoration: none;
  color: inherit;
}
.area-card h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.area-card h3 { margin-bottom: 0.3rem; font-size: 1rem; }
.area-card p { margin: 0; font-size: 0.92rem; }

.contact-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}
.contact-panel {
  border: none;
  border-radius: 0;
  padding: 0.25rem 0;
  background: transparent;
  box-shadow: none;
}
.contact-panel h2 {
  font-size: 1.12rem;
  margin-bottom: 0.5rem;
}
.contact-panel p { font-size: 0.95rem; }
.contact-panel .btn { width: 100%; margin-top: 0.35rem; }
.contact-panel + .contact-panel,
.contact-stack { display: grid; gap: 1rem; }
.contact-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 1rem 0 0;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 0 0 0.75rem;
}
.foot-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.9rem;
}
.foot-nav a:hover { text-decoration: underline; }

.link-more {
  display: inline-block;
  margin-top: 1.35rem;
  font-weight: 750;
  text-decoration: none;
}
.link-more:hover { text-decoration: underline; }

.hub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 650;
}
.hub-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}
.hub-nav a:hover,
.hub-nav a[aria-current="page"] { color: var(--accent); }

.hub-body h2 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.5rem;
}
.hub-body p { margin-bottom: 0.85rem; }

.tr-page .site-header { position: static; }

/* Handyman SEO: FAQ, prose */

.prose-seo h2 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.5rem;
}
.prose-seo p { margin-bottom: 0.85rem; }
.prose-seo ul { margin: 0.5rem 0 1rem; padding-left: 1.2rem; }
.prose-seo li { margin: 0.35rem 0; color: var(--ink-soft); }
.prose-seo .towns { margin: 0.75rem 0 1rem; }

.faq-list { max-width: 44rem; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0.95rem 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h2 {
  display: inline;
  font-size: 1.05rem;
  margin: 0;
}
.faq-item p {
  margin: 0.55rem 0 0.15rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.foot-seo-links {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  margin: 0 0 0.45rem;
  line-height: 1.45;
}
.foot-seo-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}
.foot-seo-links a:hover { text-decoration: underline; }
.foot-seo-links strong { color: #fff; font-weight: 700; }

.svc-detail h2 {
  margin: 0;
  font-size: 1.08rem;
}
.svc-detail h2 a {
  color: inherit;
  text-decoration: none;
}
.svc-detail h2 a:hover { color: var(--accent); text-decoration: underline; }
.area-card h2 {
  margin-bottom: 0.3rem;
  font-size: 1rem;
}
.area-card h2 a {
  color: inherit;
  text-decoration: none;
}
.area-card h2 a:hover { color: var(--accent); text-decoration: underline; }
.card h3 a {
  color: inherit;
  text-decoration: none;
}
.card h3 a:hover { color: var(--accent); text-decoration: underline; }
.towns a {
  color: inherit;
  text-decoration: none;
  font-weight: 650;
}
.towns a:hover { color: var(--accent); text-decoration: underline; }

/* Utility icon sizing */
.icon {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  flex: 0 0 auto;
}


/* Full-row clickable listings */
a.card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.card:hover {
  background: color-mix(in srgb, var(--accent-wash) 55%, transparent);
}
a.card:hover h3 {
  text-decoration: underline;
  text-underline-offset: 3px;
}
a.card .card-link {
  pointer-events: none;
}

a.area-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.area-card:hover {
  background: color-mix(in srgb, var(--accent-wash) 55%, transparent);
}
a.area-card:hover h2,
a.area-card:hover h3 {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.svc-detail > li > a.svc-row {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.95rem;
  row-gap: 0.35rem;
  padding: 1.35rem 0;
  margin: 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
}
.svc-detail > li {
  padding: 0;
  border-bottom: 1px solid var(--line);
  display: block;
}
.svc-detail > li:first-child > a.svc-row { padding-top: 0.15rem; }
.svc-detail > li > a.svc-row .svc-ico {
  grid-row: 1 / span 3;
  margin-top: 0.25rem;
}
.svc-detail > li > a.svc-row h2,
.svc-detail > li > a.svc-row h3 {
  margin: 0;
  font-size: 1.08rem;
  grid-column: 2;
}
.svc-detail > li > a.svc-row p {
  margin: 0;
  font-size: 0.95rem;
  grid-column: 2;
}
.svc-detail > li > a.svc-row .link-more {
  grid-column: 2;
  margin-top: 0.15rem;
  pointer-events: none;
}
.svc-detail > li > a.svc-row:hover {
  background: color-mix(in srgb, var(--accent-wash) 55%, transparent);
}
.svc-detail > li > a.svc-row:hover h2,
.svc-detail > li > a.svc-row:hover h3 {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Long services dropdown: scroll instead of running off screen on desktop */
@media (min-width: 880px) {
  .nav-links .sub-nav {
    max-height: 70vh;
    overflow-y: auto;
  }
}
