/* Professional Gutter Cleaning in Nashville — homeowner guide.
   Composition: a worksite field guide. A slim fixed rail, a deep-green
   opening field carrying the answer, then
   alternating full-bleed fields — sheet, tint, field, sheet, field —
   so every H2 owns a visible region without repeating a box.
   Mobile-first. System fonts. One small same-origin script. */

:root {
  --field:      #0F1F1A;
  --field-2:    #132A22;
  --field-3:    #0A1713;
  --sheet:      #FCFDFB;
  --tint:       #E7EEE7;
  --card:       #FFFFFF;

  --ink:        #12201B;
  --ink-soft:   #3A4741;
  --muted:      #5D6B64;

  --on-field:      #E9F0EA;
  --on-field-soft: #BCCCC0;

  --hi:         #FFC42E;
  --hi-deep:    #7A5000;

  --link:       #14573E;
  --link-dark:  #FFD86B;

  --line:       #D9E0D8;
  --line-soft:  #E6EBE4;
  --line-field: rgba(233, 240, 234, 0.16);

  --focus:      #0B5B3F;

  --axis: 68rem;
  --pad:  clamp(1.15rem, 5vw, 2.75rem);
  --rail: 3.5rem;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--sheet);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 1.0625rem;              /* 17px */
  line-height: 1.62;
  overflow-wrap: break-word;
}

@media (min-width: 860px) {
  body { font-size: 1.125rem; }      /* 18px */
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; color: var(--ink); }

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

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

[id] { scroll-margin-top: calc(var(--rail) + 0.75rem); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  background: var(--hi);
  color: var(--field);
  font-weight: 700;
  padding: 0.85rem 1.15rem;
  text-decoration: none;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- rail ---------- */

.rail {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--field-3);
  border-bottom: 1px solid var(--line-field);
}

.rail-in {
  max-width: var(--axis);
  margin-inline: auto;
  padding-inline: var(--pad);
  min-height: var(--rail);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.rail-mark {
  color: var(--on-field);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.25;
  padding: 0.9rem 0;
  min-width: 0;
}
.rail-mark:hover { color: var(--hi); }
.rail :focus-visible { outline-color: var(--hi); }

@media (min-width: 420px) { .rail-mark { font-size: 0.8rem; } }

.burger {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
}
.burger::-webkit-details-marker { display: none; }

.bars, .bars::before, .bars::after {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: var(--on-field);
  content: "";
}
.bars { position: relative; }
.bars::before { position: absolute; top: -0.42rem; }
.bars::after  { position: absolute; top:  0.42rem; }
.menu[open] .bars { background: var(--hi); }
.menu[open] .bars::before, .menu[open] .bars::after { background: var(--hi); }

.menu-list {
  position: absolute;
  right: 0;
  left: 0;
  top: 100%;
  margin: 0;
  padding: 0.4rem var(--pad) 0.9rem;
  list-style: none;
  background: var(--field-3);
  border-bottom: 2px solid var(--hi);
  display: grid;
}

.menu-list a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--on-field);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line-field);
}
.menu-list li:last-child a { border-bottom: 0; }
.menu-list a:hover { color: var(--hi); }

@media (min-width: 860px) {
  .burger { display: none; }
  .menu-list {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0 1.4rem;
    padding: 0;
    border-bottom: 0;
    background: none;
  }
  .menu-list a {
    min-height: var(--rail);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    border-bottom: 0;
    border-top: 3px solid transparent;
  }
  .menu-list a:hover { border-top-color: var(--hi); }
}

/* ---------- bands ---------- */

.band { padding-block: clamp(2.9rem, 8vw, 5.5rem); }

.axis {
  max-width: var(--axis);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.band--field {
  background: var(--field);
  color: var(--on-field-soft);
}
.band--field a { color: var(--link-dark); }
.band--field :focus-visible { outline-color: var(--hi); }
.band--close { background: var(--field-2); }

.band--sheet {
  background: var(--sheet);
  border-top: 1px solid var(--line-soft);
}
.band--tint {
  background: var(--tint);
  border-top: 1px solid var(--line);
}

.kicker {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hi-deep);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.kicker--light { color: var(--hi); }
.dot {
  width: 0.4rem;
  height: 0.4rem;
  background: currentColor;
  transform: rotate(45deg);
  flex: none;
}

h1, h2 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.85rem;
  max-width: 24ch;
}
.band--field h1, .band--field h2 { color: #FFFFFF; }

h1 { font-size: clamp(1.95rem, 4.8vw, 3rem); max-width: 22ch; }
h2 { font-size: clamp(1.4rem, 3.9vw, 2.05rem); }

.sec-answer {
  font-size: clamp(1.09rem, 2.6vw, 1.28rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 62ch;
  margin-bottom: 1.6rem;
}
.sec-answer--light { color: var(--on-field); }

.prose, .prose-note, .lede-more, .repair-close { max-width: 66ch; }
.prose-note { color: var(--muted); }
.band--field .prose-note { color: var(--on-field-soft); }

/* ---------- opening field ---------- */

.lede { padding-top: clamp(2.4rem, 7vw, 4.5rem); }

.lede-grid { display: grid; gap: 1.6rem; }

.lede .answer {
  font-size: clamp(1.2rem, 3.4vw, 1.6rem);
  line-height: 1.42;
  color: #FFFFFF;
  font-weight: 500;
  max-width: 40ch;
  border-left: 4px solid var(--hi);
  padding-left: clamp(0.9rem, 2.5vw, 1.4rem);
  margin-bottom: 1.5rem;
}

.lede-more { color: var(--on-field-soft); }

@media (min-width: 860px) {
  .lede-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
  }
  .lede .answer { margin-top: 0.15rem; }
  .lede-copy { padding-top: 0.2rem; }
}

/* ---------- company comparison ---------- */

.cmp {
  display: block;
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.9rem;
}

.cmp caption {
  display: block;
  text-align: left;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 66ch;
  margin-bottom: 1.1rem;
}

.cmp thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.cmp tbody { display: grid; gap: 1rem; }

.cmp tr {
  display: block;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.1rem, 3.4vw, 1.55rem);
}

.cmp th[scope="row"] {
  display: block;
  text-align: left;
  font-size: clamp(1.08rem, 2.6vw, 1.2rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  padding: 0 0 0.7rem;
  border-bottom: 3px solid var(--hi);
  margin-bottom: 0.4rem;
}

.cmp td {
  display: block;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}
.cmp tr td:first-of-type { border-top: 0; }

.cell-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

@media (min-width: 900px) {
  .cmp tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}

.prose p + p { margin-top: 0; }

/* ---------- scope checks ---------- */

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.checks li {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem 1rem 2.9rem;
  font-size: 0.98rem;
  line-height: 1.55;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 1.25rem;
  width: 0.72rem;
  height: 0.4rem;
  border-left: 3px solid var(--hi-deep);
  border-bottom: 3px solid var(--hi-deep);
  transform: rotate(-45deg);
}

.checks strong { display: block; }

@media (min-width: 780px) {
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
}

/* ---------- ladder access ---------- */

.access-grid { display: grid; gap: 1.6rem; }

@media (min-width: 900px) {
  .access-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: clamp(2.2rem, 4.5vw, 3.75rem);
    align-items: start;
  }
  .access-lead .sec-answer { margin-bottom: 0; }
}

.access-lead h2 { max-width: 20ch; }
.access-body {
  border-top: 1px solid var(--line-field);
  padding-top: 1.5rem;
}

@media (min-width: 900px) {
  .access-body {
    border-top: 0;
    border-left: 1px solid var(--line-field);
    padding-top: 0.35rem;
    padding-left: clamp(1.75rem, 3vw, 2.75rem);
  }
}

/* ---------- proof steps ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.steps li {
  counter-increment: step;
  background: var(--tint);
  border-radius: 12px;
  padding: 1.1rem 1.2rem 1.15rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink);
}

.steps li::before {
  content: counter(step);
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--hi-deep);
  margin-bottom: 0.5rem;
}

@media (min-width: 780px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
}

/* ---------- closing field ---------- */

.repair-close { color: var(--on-field-soft); }

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

.foot {
  background: var(--field-3);
  color: var(--on-field-soft);
  padding-block: 2.25rem;
  font-size: 0.92rem;
}
.foot p { max-width: 72ch; }

/* ---------- motion ---------- */

@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;
  }
}

/* ---------- 404 ---------- */

.gone { min-height: 70vh; display: flex; align-items: center; }
.gone .axis { width: 100%; }
.gone p { max-width: 54ch; }
.gone-back {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 1.25rem;
  padding: 0.6rem 1.3rem;
  background: var(--hi);
  color: var(--field);
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
}
.gone-back:hover { text-decoration: underline; }
