/* Commercial Gutter Cleaning Nashville — one-page guide
   Layout: left navigation spine (desktop) + inset panels interrupted by full-bleed bands */

:root {
  --bg: #EDF0F2;
  --paper: #FFFFFF;
  --sand: #F7F1E8;
  --mist: #C3D5D2;
  --ink: #16212B;
  --ink-2: #2E3D49;
  --muted: #5A6875;
  --accent: #B4531F;
  --accent-soft: #E8A45C;
  --line: rgba(22, 33, 43, .14);
  --line-2: rgba(22, 33, 43, .08);
  --rail: 244px;
  --read: 68ch;
  --wrap: 1060px;
  --r: 20px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "kern" 1;
}

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

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

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

strong { color: var(--ink); font-weight: 650; }

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}

svg { display: block; width: 100%; height: auto; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  border-radius: 0 0 12px 0;
  text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- navigation spine ---------- */

.rail { background: var(--ink); color: #D7E0E6; }

.rail__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 28px);
}

.mark {
  margin: 0;
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #F2F5F7;
  line-height: 1.35;
}
.mark span { color: var(--accent-soft); }

.jump { display: none; }

.drawer summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .22);
}
.drawer summary::-webkit-details-marker { display: none; }

.burger { display: block; width: 20px; }
.burger i {
  display: block;
  height: 2px;
  background: #F2F5F7;
  border-radius: 2px;
  margin: 4px 0;
}

.drawer__panel {
  padding: 4px clamp(16px, 4vw, 28px) 20px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  margin-top: 12px;
}
.drawer[open] { display: block; width: 100%; }
.drawer[open] summary { border-color: var(--accent-soft); }

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

.drawer__panel a {
  display: flex;
  align-items: center;
  min-height: 46px;
  color: #F2F5F7;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-weight: 550;
}
.drawer__panel li:last-child a { border-bottom: 0; }
.drawer__panel a:hover { color: var(--accent-soft); }

/* the drawer must be able to escape the flex row on phones */
.rail__in { flex-wrap: wrap; }
.drawer { order: 3; }
.drawer:not([open]) { order: 0; }

/* ---------- shared section shell ---------- */

.sec__in,
.mast__in,
.foot__in {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.sec { scroll-margin-top: 12px; }

.sec--panel { padding-block: clamp(12px, 2vw, 20px); }

.sec--panel .sec__in {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: clamp(24px, 4vw, 46px);
  box-shadow: 0 1px 2px rgba(22, 33, 43, .06), 0 12px 28px -18px rgba(22, 33, 43, .35);
}

.sec--co .sec__in { background: var(--sand); }

.sec--outline { padding-block: clamp(12px, 2vw, 20px) clamp(28px, 5vw, 56px); }
.sec--outline .sec__in {
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  padding: clamp(24px, 4vw, 46px);
}

.sec--band { padding-block: clamp(36px, 6vw, 68px); }
.sec--access { background: var(--ink); color: #C8D3DB; }
.sec--sched { background: var(--mist); }

.lead { max-width: 46ch; }
.lead h2 { font-size: clamp(1.4rem, 3.2vw, 2.05rem); }

.lead__a {
  margin: .8em 0 0;
  font-size: clamp(1.06rem, 1.9vw, 1.22rem);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
}

.lead::after {
  content: "";
  display: block;
  height: 3px;
  width: 64px;
  background: var(--accent);
  border-radius: 3px;
  margin-top: 22px;
}

.prose { max-width: var(--read); margin-top: 22px; }
.prose--after { margin-top: 26px; }

/* ---------- masthead ---------- */

.mast { padding: clamp(30px, 6vw, 66px) 0 clamp(16px, 3vw, 26px); }

.mast h1 {
  font-size: clamp(2rem, 5.4vw, 3.15rem);
  letter-spacing: -.028em;
  max-width: 18ch;
}

.mast__grid { margin-top: clamp(24px, 4vw, 40px); display: grid; gap: 24px; }

.answer {
  background: var(--paper);
  border-left: 6px solid var(--accent);
  border-radius: 6px var(--r) var(--r) 6px;
  padding: clamp(20px, 3.4vw, 32px);
  font-size: clamp(1.12rem, 2.2vw, 1.4rem);
  line-height: 1.48;
  color: var(--ink);
  font-weight: 480;
  box-shadow: 0 1px 2px rgba(22, 33, 43, .06), 0 14px 30px -20px rgba(22, 33, 43, .4);
}

.answer__more {
  color: var(--muted);
  max-width: 46ch;
  align-self: end;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

/* ---------- building types ---------- */

.drain {
  margin: 26px 0 0;
  color: #8C9AA6;
  background: linear-gradient(180deg, #F6F8F9, #EEF2F4);
  border-radius: 14px;
  padding: 14px clamp(12px, 3vw, 28px);
}

.types { margin-top: 30px; }
.types__cue { max-width: var(--read); }

.types__grid {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.type {
  background: #F6F8F9;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}

.type__ico { color: var(--accent); width: 44px; padding-top: 2px; }
.type p { font-size: .97rem; line-height: 1.55; }

/* ---------- access band ---------- */

.sec--access h2 { color: #F2F5F7; }
.sec--access .lead__a { color: #EAF0F3; }
.sec--access .lead::after { background: var(--accent-soft); }
.sec--access strong { color: #F2F5F7; }
.sec--access a { color: var(--accent-soft); }
.sec--access :focus-visible,
.rail :focus-visible,
.record :focus-visible,
.foot :focus-visible { outline-color: var(--accent-soft); }

.lead--band { max-width: 50ch; }

.access__grid { margin-top: 30px; display: grid; gap: 26px; }

.access__fig {
  margin: 0;
  color: #64778A;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  padding: 18px;
  max-width: 320px;
}

.access__body { max-width: var(--read); }

.access__metro {
  border-left: 3px solid var(--accent-soft);
  padding-left: 18px;
  color: #EAF0F3;
}

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

.cmp { margin-top: 28px; }
.cmp table { width: 100%; border-collapse: collapse; }
.cmp tbody { display: grid; gap: 16px; }

.cmp tr {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 4px 4px 16px 16px;
  padding: clamp(18px, 2.6vw, 26px);
  min-width: 0;
}

.cmp th[scope="row"] {
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.35;
  font-weight: 650;
  color: var(--ink);
  padding: 0 0 16px;
  border-bottom: 2px solid var(--ink);
}
.cmp th[scope="row"] a { color: var(--ink); }

.cmp td {
  display: block;
  padding: 16px 0 0;
  margin-top: 14px;
  border-top: 1px solid var(--line-2);
  font-size: .96rem;
  line-height: 1.58;
  min-width: 0;
}
.cmp tbody tr > td:first-of-type { border-top: 0; margin-top: 0; }

.cmp td::before {
  content: attr(data-label);
  display: block;
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 6px;
}

.co-notes { margin-top: 30px; display: grid; gap: 24px; }
.co-note { max-width: var(--read); }
.co-note p { font-size: .99rem; }

/* ---------- in writing ---------- */

.writ__grid { margin-top: 26px; display: grid; gap: 24px; align-items: start; }

.record {
  background: var(--ink);
  color: #D7E0E6;
  border-radius: 16px;
  padding: clamp(20px, 3vw, 28px);
}

.record__cue { color: #F2F5F7; font-weight: 550; }

.record__list { list-style: none; margin: 16px 0 0; padding: 0; }

.record__list li {
  position: relative;
  padding: 0 0 0 30px;
  margin-bottom: 14px;
  font-size: .97rem;
  line-height: 1.55;
}
.record__list li:last-child { margin-bottom: 0; }

.record__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .34em;
  width: 7px;
  height: 13px;
  border: solid var(--accent-soft);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(42deg);
}

/* ---------- schedule band ---------- */

.sec--sched .lead::after { display: none; }

.sched__answer {
  margin-top: 22px;
  background: var(--paper);
  border-radius: 16px;
  padding: clamp(18px, 3vw, 28px);
  max-width: 62ch;
  box-shadow: 0 1px 2px rgba(22, 33, 43, .05);
}

.sched__strip { display: block; height: 26px; margin-bottom: 16px; max-width: 320px; }
.sched__strip svg { height: 26px; }

.sched__body { margin-top: 26px; max-width: var(--read); }

.sched__close {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--ink);
}

/* ---------- before booking ---------- */

.asks { margin-top: 26px; display: grid; gap: 18px; }

.ask {
  background: var(--paper);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 28px);
  border-top: 4px solid var(--accent);
}

.ask h3 { font-size: 1.1rem; line-height: 1.35; }
.ask p { margin-top: .7em; font-size: .98rem; }

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

.foot {
  background: var(--ink);
  color: #9FB0BD;
  padding: clamp(28px, 4vw, 44px) 0;
}
.foot p { max-width: 78ch; font-size: .9rem; line-height: 1.6; margin: 0; }

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

.gone { padding: clamp(60px, 12vw, 140px) 0; }
.gone h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.gone p { margin-top: 18px; max-width: 52ch; }
.gone__back {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin-top: 22px;
  padding: 10px 22px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.gone__back:hover { background: var(--accent); }

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

@media (min-width: 640px) {
  body { font-size: 17.5px; }
  .types__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .access__grid { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; }
  .access__fig { max-width: none; }
}

@media (min-width: 900px) {
  .mast__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr); gap: 34px; }
  .cmp tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .writ__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .8fr); gap: 32px; }
  .asks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .types__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

@media (min-width: 1180px) {
  body { font-size: 18px; padding-left: var(--rail); }
  body.alt { padding-left: 0; }

  .rail {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--rail);
    z-index: 10;
    overflow-y: auto;
  }

  .rail__in {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: 100%;
    padding: 34px 26px;
    gap: 34px;
  }

  .mark { font-size: .78rem; }
  .mark span { display: block; }

  .drawer,
  .drawer[open] { display: none; }

  .jump { display: block; }
  .jump li { border-top: 1px solid rgba(255, 255, 255, .12); }
  .jump a {
    display: flex;
    align-items: center;
    min-height: 46px;
    color: #C8D3DB;
    text-decoration: none;
    font-size: .95rem;
    font-weight: 550;
  }
  .jump a:hover { color: var(--accent-soft); }

  .sec { scroll-margin-top: 24px; }
  .mast h1 { font-size: clamp(2.4rem, 3.5vw, 3.25rem); }
  .lead { max-width: 52ch; }
}

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