/* Residential Gutter Cleaning Nashville — one-page guide
   Composition: a plan-view house-and-lot drawing carried through
   alternating full-bleed fields (paper, sand, ink, moss). */

:root {
  --paper: #FBF8F2;
  --sand: #EDE6D8;
  --sand-deep: #E4DBC9;
  --moss-field: #DCE5DA;
  --ink: #1C2A23;
  --text: #26302A;
  --muted: #59635C;
  --muted-ink: #B7C2B8;
  --moss: #3A5B46;
  --moss-light: #7FC495;
  --clay: #A2481F;
  --line: #D6CCB8;
  --line-ink: rgba(233, 226, 212, .22);
  --cream: #E9E2D4;
  --wrap: 1120px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "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(--sand);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1rem + 0.32vw, 1.1875rem);
  line-height: 1.62;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.012em; }

a { color: var(--moss); text-underline-offset: 3px; }
a:hover { color: var(--clay); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 40;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
}

.hold {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(18px, 4.5vw, 40px);
}

/* ---------------- masthead + navigation ---------------- */

.mast {
  background:
    radial-gradient(120% 90% at 78% 0%, #FFFDF8 0%, rgba(255, 253, 248, 0) 62%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.mast__nav { position: relative; }

.nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
}

.mark {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--moss);
  line-height: 1.25;
}
.mark span {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.jump { display: none; }
.jump ul, .drawer__panel ul { list-style: none; margin: 0; padding: 0; }

.drawer summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FFFFFF;
}
.drawer summary::-webkit-details-marker { display: none; }
.drawer[open] summary { border-color: var(--moss); }

.burger { display: block; width: 20px; }
.burger i {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--moss);
}

.drawer__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(28, 42, 35, .12);
  padding-block: 4px 10px;
}
.drawer__panel a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.drawer__panel li:last-child a { border-bottom: 0; }
.drawer__panel a:hover { color: var(--clay); }

.mast__in {
  padding-block: clamp(30px, 6vw, 62px) clamp(30px, 5vw, 58px);
}

.mast h1 {
  margin: 0 0 clamp(18px, 2.6vw, 26px);
  font-size: clamp(1.85rem, 1.28rem + 2.5vw, 3.05rem);
  line-height: 1.14;
  max-width: 18ch;
  color: var(--ink);
}

.answer {
  max-width: 60ch;
  font-size: clamp(1.09rem, 1.01rem + 0.45vw, 1.28rem);
  line-height: 1.55;
  color: var(--text);
  border-left: 4px solid var(--clay);
  padding-left: clamp(16px, 2.4vw, 26px);
}
.answer__lead {
  font-weight: 650;
  color: var(--ink);
}

/* ---------------- section fields ---------------- */

.band {
  padding-block: clamp(38px, 6vw, 74px);
  scroll-margin-top: 8px;
}

.band--plan { background: var(--sand); }
.band--paper { background: var(--paper); border-block: 1px solid var(--line); }
.band--moss { background: var(--moss-field); }
.band--ink { background: var(--ink); color: var(--cream); }
.band--ink h2 { color: #FFFFFF; }
.band--ink a { color: var(--moss-light); }
.band--ink a:hover { color: #FFFFFF; }

.lead { margin-bottom: clamp(26px, 3.4vw, 40px); }
.lead h2 {
  margin: 0 0 0.5em;
  font-size: clamp(1.42rem, 1.12rem + 1.35vw, 2.15rem);
  line-height: 1.2;
  max-width: 24ch;
}
.lead__a {
  max-width: 66ch;
  margin: 0;
  font-size: clamp(1.03rem, 0.99rem + 0.24vw, 1.14rem);
}
.lead::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: clamp(20px, 2.6vw, 30px);
  background: var(--line);
}
.band--ink .lead::after { background: var(--line-ink); }

/* ---------------- 1. scope: the lot plan ---------------- */

.scope { display: grid; gap: clamp(26px, 3.6vw, 44px); }

.plan { margin: 0; }
.plan svg {
  display: block;
  width: 100%;
  height: auto;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.pl-lab {
  font-family: system-ui, sans-serif;
  font-size: 21px;
  font-weight: 600;
  fill: #26302A;
}
.pl-lab--sm { font-size: 18px; }
.pl-note {
  font-family: system-ui, sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.1em;
  fill: #7C7361;
  text-transform: uppercase;
}

.key {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.88rem;
  color: var(--muted);
}
.key li { display: flex; align-items: center; gap: 9px; }
.key__edge { display: block; width: 26px; height: 6px; border-radius: 3px; background: var(--moss); }
.key__spout { display: block; width: 13px; height: 13px; background: var(--clay); }
.key__lot { display: block; width: 26px; height: 0; border-top: 2px dashed #B3A78E; }
.key--ink { color: var(--muted-ink); }
.key__edge--ink { background: var(--moss-light); }
.key__thin { display: block; width: 26px; height: 0; border-top: 2px solid #8B9C90; }

.runs { list-style: none; margin: 0; padding: 0; }
.runs li {
  padding: 16px 0 17px 20px;
  border-top: 1px solid var(--line);
  border-left: 3px solid var(--moss);
  padding-left: 18px;
}
.runs li:last-child { border-bottom: 1px solid var(--line); }
.runs strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.06em;
  color: var(--ink);
}

.aside {
  max-width: 68ch;
  margin: clamp(26px, 3.4vw, 40px) 0 0;
  padding: 18px 22px;
  background: #FFFFFF;
  border-left: 4px solid var(--moss);
  border-radius: 0 12px 12px 0;
  font-size: 1.0625rem;
}
.aside--clay { border-left-color: var(--clay); background: var(--sand); }

/* ---------------- 2. roof shape and lot ---------------- */

.shape { display: grid; gap: clamp(22px, 3vw, 32px); }
.shape__a, .shape__b { max-width: 62ch; margin: 0; }

.roofs { margin: 0; }
.roofs__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 22px);
}
.roofs svg {
  display: block;
  width: 100%;
  height: auto;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-ink);
  border-radius: 12px;
}
.rf-lab {
  font-family: system-ui, sans-serif;
  font-size: 21px;
  font-weight: 600;
  fill: #E9E2D4;
}

.lot {
  display: grid;
  gap: clamp(18px, 2.6vw, 30px);
  margin-top: clamp(28px, 3.6vw, 42px);
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--line-ink);
}
.lot p { max-width: 62ch; }

/* ---------------- 3. access ---------------- */

.stops__cue {
  max-width: 62ch;
  margin: 0 0 clamp(16px, 2.2vw, 22px);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.02rem + 0.4vw, 1.3rem);
  color: var(--ink);
}

.stops {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.stops li {
  position: relative;
  padding: 15px 18px 15px 40px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1.0625rem;
  line-height: 1.5;
}
.stops li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 22px;
  width: 11px;
  height: 11px;
  background: var(--clay);
  border-radius: 2px;
}

/* ---------------- 4. before booking ---------------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  background: #FFFFFF;
  border: 1px solid #C6D2C4;
  border-radius: 16px;
  overflow: hidden;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: clamp(16px, 2.2vw, 22px) clamp(16px, 2.4vw, 26px);
  border-top: 1px solid #DDE5DB;
}
.steps li:first-child { border-top: 0; }
.steps li::before {
  content: counter(step);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--moss);
  text-align: center;
  border-bottom: 3px solid var(--moss-field);
  padding-bottom: 4px;
}

/* ---------------- 5. companies ---------------- */

.cos {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
  align-items: stretch;
}
.co {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.co__name {
  margin: 0;
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  font-weight: 700;
  line-height: 1.25;
}
.co__name a { color: #FFFFFF; }
.co__name a:hover { color: var(--moss-light); }
.co__facts {
  display: grid;
  grid-template-rows: repeat(4, auto);
  margin: 0;
  height: 100%;
}
.co__facts div {
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.4vw, 26px);
  border-top: 1px solid var(--line);
}
.co__facts div:first-child { border-top: 0; }
.co__facts dt {
  margin: 0 0 5px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}
.co__facts dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

/* ---------------- 6. screens ---------------- */

.band--screens { padding-block: clamp(34px, 4.6vw, 58px); }
.screens h2 {
  margin: 0 0 0.55em;
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.95rem);
  line-height: 1.22;
  max-width: 22ch;
}
.screens__a { max-width: 64ch; margin: 0; }
.yes {
  font-family: var(--serif);
  font-size: 1.35em;
  font-weight: 700;
  color: var(--moss-light);
}

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

.foot {
  background: var(--sand-deep);
  border-top: 1px solid var(--line);
  padding-block: clamp(24px, 3vw, 34px);
}
.foot p {
  max-width: 70ch;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

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

.gone { min-height: 72vh; display: flex; align-items: center; }
.gone h1 {
  margin: 0 0 0.5em;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1.3rem + 2vw, 2.6rem);
  color: var(--ink);
}
.gone p { max-width: 56ch; }
.gone__back {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 20px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--moss);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.gone__back:hover { background: var(--ink); color: #FFFFFF; }

/* ---------------- wider screens ---------------- */

@media (min-width: 560px) {
  .stops { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .scope {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
    align-items: start;
  }
  .lot { grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 4vw, 52px); }
  .cos { grid-template-columns: 1fr 1fr; }
  .co__facts { grid-template-rows: repeat(4, 1fr); }
  .steps li { grid-template-columns: 62px minmax(0, 1fr); gap: 22px; }
  .steps li::before { font-size: 1.85rem; }
}

@media (min-width: 900px) {
  .drawer { display: none; }

  .jump { display: block; }
  .jump ul { display: flex; flex-wrap: wrap; gap: 4px 6px; }
  .jump a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 11px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.87rem;
    font-weight: 600;
    text-decoration: none;
  }
  .jump a:hover { color: var(--clay); background: var(--sand); }

  .lead--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    column-gap: clamp(32px, 4.5vw, 60px);
    align-items: start;
  }
  .lead--split h2 { margin-bottom: 0; max-width: 16ch; }
  .lead--split::after { grid-column: 1 / -1; }

  .shape {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(32px, 4.5vw, 56px);
  }
  .shape__a { grid-column: 1; grid-row: 1; }
  .roofs { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .shape__b { grid-column: 1; grid-row: 2; }

  .stops { grid-template-columns: repeat(3, 1fr); }

  .screens {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    column-gap: clamp(36px, 5vw, 64px);
    align-items: start;
  }
  .screens h2 { margin-bottom: 0; }
}

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