/* Gutter Cleaning in Nashville, TN — homeowner guide.
   Warm editorial composition. Mobile-first. System fonts. No JavaScript.
   Organizing idea: a calm printed guide — one column of type, five
   colored fields, and three hiring checks the reader can jump to. */

:root {
  --paper:      #FBF7F1;
  --paper-lift: #FDFAF6;
  --clay-tint:  #F7EFE4;
  --sage:       #EDF1EA;
  --sage-deep:  #E7EDE3;
  --white:      #FFFFFF;

  --ink:        #22201C;
  --ink-soft:   #4E4941;
  --muted:      #6B655C;

  --clay:       #B5531F;
  --clay-deep:  #9C4315;
  --green:      #1F4B3F;
  --green-deep: #163A31;

  --line:       #E3DBD0;
  --line-firm:  #D3C8B8;

  --wide:  71rem;
  --read:  64ch;
  --gap:   clamp(1.15rem, 4vw, 2.5rem);

  --serif: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

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

@media (min-width: 820px) {
  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(--clay-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--green); text-decoration-thickness: 2px; }

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

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.16;
  letter-spacing: -0.008em;
  margin: 0 0 .55em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 7vw, 3.35rem); font-weight: 600; }
h2 { font-size: clamp(1.45rem, 4.6vw, 2.15rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 3.4vw, 1.5rem); font-weight: 600; margin-bottom: .4em; }

h2[id] { scroll-margin-top: 1.25rem; }

.wrap {
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gap);
  min-width: 0;
}

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

.opening {
  background: linear-gradient(180deg, var(--paper-lift) 0%, var(--clay-tint) 100%);
  padding-block: clamp(2.5rem, 8vw, 4.75rem) clamp(2.25rem, 6vw, 3.5rem);
}

.page-menu {
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-firm);
}

.page-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: .55rem .65rem;
  color: var(--green-deep);
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--line-firm);
  border-radius: 10px;
  background: rgba(255, 255, 255, .6);
}

.page-menu summary::-webkit-details-marker { display: none; }

.menu-icon {
  display: grid;
  gap: 4px;
  width: 1.35rem;
}

.menu-icon i {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}

.page-menu[open] .menu-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.page-menu[open] .menu-icon i:nth-child(2) { opacity: 0; }
.page-menu[open] .menu-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.page-menu nav { padding-top: .65rem; }

.page-menu ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem .8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-menu a {
  display: block;
  min-height: 44px;
  padding: .55rem .65rem;
  color: var(--green-deep);
  font-size: .86rem;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  border-radius: 8px;
}

.page-menu a:hover {
  color: var(--clay-deep);
  background: rgba(255, 255, 255, .6);
}

@media (min-width: 700px) {
  .page-menu summary { display: none; }
  .page-menu nav { padding-top: 0; }

  .page-menu ul {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
  }

  .page-menu a { min-height: 0; padding: .35rem .25rem; }
}

.kicker {
  margin: 0 0 1.35rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay-deep);
}

.kicker::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 3px;
  margin-top: .85rem;
  background: var(--clay);
  border-radius: 2px;
}

.opening h1 { max-width: 16ch; }

.answer {
  max-width: 40ch;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 4.1vw, 1.6rem);
  line-height: 1.45;
  color: var(--ink);
}

.answer-note {
  max-width: var(--read);
  color: var(--muted);
}

@media (min-width: 900px) {
  .answer { max-width: 46ch; }

  .opening .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(20rem, .8fr);
    column-gap: clamp(3rem, 7vw, 6.5rem);
    row-gap: .85rem;
    align-items: center;
  }

  .page-menu { grid-column: 1 / -1; width: 100%; margin-bottom: 0; padding-bottom: .65rem; }
  .opening__copy { min-width: 0; }
}

/* the three hiring checks — jump links into the numbered list below */

.signals { margin-top: clamp(2rem, 5vw, 2.9rem); }

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

.signal {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: .85rem;
  align-content: start;
  height: 100%;
  min-height: 44px;
  padding: 1.05rem 1.15rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line-firm);
  border-top: 4px solid var(--clay);
  border-radius: 4px 4px 14px 14px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(34, 32, 28, .04), 0 14px 28px -24px rgba(34, 32, 28, .55);
}

.signal:hover {
  color: var(--ink);
  border-color: var(--clay);
  background: var(--paper-lift);
}

.signal__n {
  grid-row: 1 / span 2;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--clay-tint);
  color: var(--clay-deep);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.signal__label {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 3.6vw, 1.3rem);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-firm);
}

.signal:hover .signal__label { text-decoration-color: var(--clay); }

.signal__hint {
  margin-top: .3rem;
  font-size: .98rem;
  line-height: 1.45;
  color: var(--muted);
}

@media (min-width: 880px) {
  .signals { margin-top: 0; }
  .signals__list { grid-template-columns: 1fr; gap: 1rem; }
  .signal { padding: 1.15rem 1.25rem 1.2rem; }
}

/* ------------------------------------------------- section fields + lead --- */

.sec { padding-block: clamp(2.5rem, 7vw, 4.25rem); }

.sec--compare   { background: var(--white); border-top: 1px solid var(--line); }
.sec--cost      { background: var(--white); border-top: 1px solid var(--line); }
.sec--include   { background: var(--sage); border-top: 1px solid #D9E1D4; }
.sec--process   { background: var(--clay-tint); border-top: 1px solid var(--line-firm); }
.sec--companies { background: var(--sage-deep); border-top: 1px solid #D5DED0; }

.lead {
  padding-bottom: clamp(1.4rem, 3.2vw, 2rem);
  margin-bottom: clamp(1.6rem, 3.8vw, 2.4rem);
  border-bottom: 1px solid var(--line-firm);
}

.sec--include .lead,
.sec--companies .lead { border-bottom-color: #CFD9C9; }

.lead h2 { max-width: 22ch; }

.lead__answer {
  max-width: var(--read);
  font-size: 1.09em;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 0;
}

/* ------------------------------------------------- 1. three quick checks --- */

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

.check {
  min-width: 0;
  padding: 1.25rem 1.25rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.check__n {
  display: block;
  margin-bottom: .5rem;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--clay);
  font-variant-numeric: tabular-nums;
}

.check__body { margin: 0; }

.check:target {
  border-color: var(--clay);
  background: var(--clay-tint);
}

@media (min-width: 900px) {
  .checks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
  .check { padding: 1.5rem 1.5rem 1.7rem; }
}

/* ------------------------------------------------------ 2. what to check --- */

.scope {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #D9E1D4;
}

.item {
  display: grid;
  gap: .2rem;
  min-width: 0;
  padding: 1.1rem 0;
  border-bottom: 1px solid #D9E1D4;
}

.item__term {
  font-family: var(--serif);
  font-size: 1.08em;
  font-weight: 600;
  line-height: 1.3;
  color: var(--green-deep);
}

.item__text { display: block; }

.scope__close {
  max-width: var(--read);
  margin-top: clamp(1.4rem, 3.2vw, 2rem);
  color: var(--ink);
}

@media (min-width: 780px) {
  .item {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: 0 clamp(1.5rem, 4vw, 3rem);
    padding: 1.35rem 0;
  }
  .item__text { max-width: 56ch; }
}

/* -------------------------------------------------- 3. estimate to close --- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 clamp(.9rem, 2.5vw, 1.6rem);
  align-items: baseline;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line-firm);
}

.step:first-child { border-top: none; padding-top: 0; }
.step:last-child { padding-bottom: 0; }

.step__n {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 6vw, 2.9rem);
  font-weight: 600;
  line-height: 1;
  color: var(--clay);
  font-variant-numeric: tabular-nums;
  min-width: 1.4ch;
}

.step__body {
  margin: 0;
  max-width: 62ch;
}

/* ------------------------------------------- company comparison + context --- */

.comparison {
  min-width: 0;
  margin-bottom: clamp(1.4rem, 3vw, 2rem);
}

.comparison table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--ink-soft);
}

.comparison caption {
  margin-bottom: .75rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
  text-align: left;
}

.comparison th,
.comparison td {
  overflow-wrap: anywhere;
}

.comparison thead th {
  padding: .8rem .7rem;
  background: var(--green-deep);
  color: var(--white);
  font-size: .76rem;
  line-height: 1.3;
  letter-spacing: .07em;
  text-align: left;
  text-transform: uppercase;
}

.comparison thead th:first-child { border-radius: 12px 0 0 0; }
.comparison thead th:last-child { border-radius: 0 12px 0 0; }

.comparison tbody th,
.comparison tbody td {
  padding: .9rem .7rem;
  background: var(--white);
  border-right: 1px solid #D5DED0;
  border-bottom: 1px solid #D5DED0;
  font-size: 1rem;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}

.comparison tbody th {
  border-left: 1px solid #D5DED0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
}

.comparison tbody tr:last-child th { border-radius: 0 0 0 12px; }
.comparison tbody tr:last-child td:last-child { border-radius: 0 0 12px 0; }

.company-notes {
  display: grid;
  gap: 1rem;
}

.company-notes p {
  margin: 0;
  padding: 1.1rem 1.15rem;
  background: rgba(255, 255, 255, .58);
  border-left: 3px solid var(--green);
  border-radius: 0 10px 10px 0;
}

@media (min-width: 960px) {
  .comparison table { table-layout: fixed; }
  .comparison th:nth-child(1), .comparison td:nth-child(1) { width: 16%; }
  .comparison th:nth-child(2), .comparison td:nth-child(2) { width: 16%; }
  .comparison th:nth-child(3), .comparison td:nth-child(3) { width: 16%; }
  .comparison th:nth-child(4), .comparison td:nth-child(4) { width: 12%; }
  .comparison th:nth-child(5), .comparison td:nth-child(5) { width: 18%; }
  .comparison th:nth-child(6), .comparison td:nth-child(6) { width: 22%; }
  .company-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 959px) {
  .comparison caption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .comparison thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .comparison table,
  .comparison tbody,
  .comparison tr,
  .comparison th,
  .comparison td { display: block; width: 100%; }

  .comparison tbody tr {
    margin-bottom: 1rem;
    background: var(--white);
    border: 1px solid #D5DED0;
    border-radius: 14px;
    overflow: hidden;
  }

  .comparison tbody tr:last-child { margin-bottom: 0; }

  .comparison tbody th,
  .comparison tbody td {
    display: grid;
    grid-template-columns: minmax(7.5rem, 38%) minmax(0, 1fr);
    gap: .8rem;
    padding: .8rem .9rem;
    border: 0;
    border-bottom: 1px solid #D5DED0;
    border-radius: 0;
    font-size: 1rem;
  }

  .comparison tbody th {
    display: block;
    padding: 1rem .9rem;
    background: var(--green-deep);
    color: var(--white);
    font-size: 1.12rem;
  }

  .comparison tbody th a { color: var(--white); }
  .comparison tbody td:last-child { border-bottom: 0; }

  .comparison tbody td::before {
    content: attr(data-label);
    color: var(--green-deep);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.35;
    text-transform: uppercase;
  }
}

@media (max-width: 460px) {
  .comparison tbody td {
    grid-template-columns: 1fr;
    gap: .25rem;
  }
}

/* ------------------------------------------ cost and property conditions --- */

.prose { max-width: 66ch; }

.evidence {
  margin: clamp(1.4rem, 3.5vw, 2rem) 0;
  padding: 1.15rem 1.25rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 3px 14px 14px 3px;
  font-size: 1.05em;
  color: var(--ink);
}

.prose__close {
  font-family: var(--serif);
  font-size: 1.16em;
  line-height: 1.45;
  color: var(--green-deep);
}

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

.foot {
  background: var(--green-deep);
  color: #CFDCD6;
  padding-block: clamp(1.8rem, 4vw, 2.6rem);
}

.foot p {
  margin: 0;
  max-width: var(--read);
  font-size: .98rem;
}

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

.notfound {
  max-width: 46rem;
  margin-inline: auto;
  padding: clamp(3.5rem, 12vw, 7rem) var(--gap);
}

.notfound h1 { max-width: 14ch; }

.notfound p {
  max-width: 52ch;
  font-size: 1.12em;
}

/* ---------------------------------------------------------- preferences --- */

@media (prefers-contrast: more) {
  .check, .signal, .evidence, .comparison tbody tr { border-color: var(--ink); }
}

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