/* ==========================================================================
   How Much Does Gutter Guard Installation Cost in Nashville?
   Warm editorial homeowner guide — static CSS, no dependencies.
   ========================================================================== */

:root {
  --ink:        #1C1813;
  --ink-soft:   #4A4238;
  --muted:      #786F64;
  --paper:      #FBF8F3;
  --paper-hi:   #FFFDF8;
  --sand:       #F2EADC;
  --sand-deep:  #E4D8C4;
  --clay:       #A94B25;
  --clay-deep:  #8B3B1B;
  --clay-lite:  #DBA478;
  --moss:       #2E5645;
  --cream:      #F7F1E6;
  --rule:       rgba(28, 24, 19, .12);
  --rule-soft:  rgba(28, 24, 19, .09);
  --rule-lite:  rgba(255, 241, 224, .18);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "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);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (max-width: 520px) {
  body { font-size: 17px; }
}

a {
  color: var(--clay);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: break-word;
}

a:hover { color: var(--clay-deep); }

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

.sec--checks a:focus-visible,
.masthead a:focus-visible,
.foot a:focus-visible { outline-color: var(--clay-lite); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Layout scaffolding
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.grid { display: grid; }

.col { min-width: 0; }

@media (min-width: 900px) {
  .grid {
    grid-template-columns: 168px minmax(0, 1fr);
    column-gap: clamp(40px, 5vw, 72px);
    align-items: start;
  }
  .grid > .eyebrow { grid-column: 1; margin-bottom: 0; padding-top: .6rem; }
  .grid > .col     { grid-column: 2; max-width: 780px; }

}

.grid--ruled {
  border-top: 1px solid var(--rule);
  padding-top: clamp(26px, 3.6vw, 46px);
}

.sec--checks .grid--ruled { border-top-color: var(--rule-lite); }

.eyebrow {
  margin: 0 0 clamp(14px, 2vw, 20px);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
}

.eyebrow--light { color: var(--clay-lite); }

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

.masthead {
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(169, 75, 37, .30) 0%, rgba(169, 75, 37, 0) 62%),
    linear-gradient(158deg, #262019 0%, #1A1611 58%, #241D16 100%);
  color: var(--cream);
  padding: clamp(60px, 11vw, 132px) 0 clamp(52px, 8vw, 104px);
}

.masthead h1 {
  margin: 0 0 clamp(24px, 3vw, 34px);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.07;
  letter-spacing: -.02em;
  color: #FDF8EF;
}

.answer {
  margin: 0;
  max-width: 44rem;
  font-size: clamp(1.06rem, 2.2vw, 1.3rem);
  line-height: 1.62;
  color: rgba(247, 241, 230, .86);
}

.answer strong {
  color: #F3C193;
  font-weight: 700;
}

.estimator {
  margin-top: clamp(34px, 5vw, 52px);
  padding: clamp(22px, 3.5vw, 34px);
  border: 1px solid rgba(255, 241, 224, .18);
  border-radius: 18px;
  background: rgba(255, 248, 238, .07);
  box-shadow: 0 24px 60px -38px rgba(0, 0, 0, .8);
}

.estimator-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(20px, 3vw, 28px);
}

.estimator-kicker {
  margin: 0;
  color: var(--clay-lite);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.estimator-title {
  margin: 0;
  color: #FFF8EE;
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2.6vw, 1.55rem);
  font-weight: 600;
  line-height: 1.25;
  text-align: right;
}

.estimator-control label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: rgba(247, 241, 230, .72);
  font-size: .9rem;
  font-weight: 600;
}

#footage-output {
  color: #F3C193;
  font-family: var(--serif);
  font-size: 1.34rem;
  font-weight: 700;
  white-space: nowrap;
}

#gutter-footage {
  --range-progress: 28.571%;
  width: 100%;
  height: 28px;
  margin: 10px 0 2px;
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

#gutter-footage:focus-visible {
  outline: 2px solid var(--clay-lite);
  outline-offset: 5px;
  border-radius: 999px;
}

#gutter-footage::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--clay-lite) 0 var(--range-progress), rgba(255, 241, 224, .18) var(--range-progress) 100%);
}

#gutter-footage::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 241, 224, .18);
}

#gutter-footage::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--clay-lite);
}

#gutter-footage::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -8px;
  border: 4px solid #FFF8EE;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .42);
  appearance: none;
  -webkit-appearance: none;
}

#gutter-footage::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border: 4px solid #FFF8EE;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .42);
}

.estimator-scale {
  display: flex;
  justify-content: space-between;
  color: rgba(247, 241, 230, .46);
  font-size: .7rem;
}

.estimator-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: clamp(22px, 3vw, 30px) 0 0;
  padding: 0;
  list-style: none;
}

.estimator-results li {
  min-width: 0;
  padding: clamp(16px, 2.2vw, 21px);
  border: 1px solid rgba(255, 241, 224, .12);
  border-radius: 12px;
  background: rgba(10, 8, 6, .25);
}

.estimator-company,
.estimator-value,
.estimator-basis {
  display: block;
}

.estimator-company {
  min-height: 2.7em;
  color: rgba(247, 241, 230, .8);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.35;
}

.estimator-value {
  margin-top: 10px;
  color: #F3C193;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.72rem);
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.estimator-basis {
  margin-top: 9px;
  color: rgba(247, 241, 230, .54);
  font-size: .68rem;
  line-height: 1.45;
}

.estimator-note,
.estimator-aliases {
  font-size: .68rem;
  line-height: 1.5;
}

.estimator-note {
  margin: 18px 0 0;
  color: rgba(247, 241, 230, .52);
}

.estimator-aliases {
  margin: 6px 0 0;
  color: rgba(247, 241, 230, .52);
}

@media (max-width: 640px) {
  .estimator-head {
    display: block;
  }

  .estimator-title {
    margin-top: 6px;
    text-align: left;
  }

  .estimator-results {
    grid-template-columns: 1fr;
  }

  .estimator-company {
    min-height: 0;
  }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.sec { padding: clamp(56px, 9vw, 110px) 0; }

.sec--compare  { background: #F5EFE5; }
.sec--sizes    { background: var(--sand); }
.sec--included { background: var(--paper); }

.sec--checks {
  background: #1A1611;
  color: var(--cream);
}

h2 {
  margin: 0 0 clamp(22px, 2.6vw, 32px);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.58rem, 3.6vw, 2.35rem);
  line-height: 1.16;
  letter-spacing: -.015em;
}

.sec--checks h2 { color: #FDF8EF; }

.section-answer {
  max-width: 42rem;
  margin: calc(-1 * clamp(10px, 1vw, 14px)) 0 clamp(28px, 3.5vw, 42px);
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.6;
}

.section-answer--light {
  color: rgba(247, 241, 230, .76);
}

.prose {
  margin-top: clamp(30px, 3.6vw, 44px);
  max-width: 40rem;
}

.prose p {
  margin: 0 0 1.2em;
  color: var(--ink-soft);
}

.prose p:last-child { margin-bottom: 0; }

.note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.04rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Provider comparison panels
   -------------------------------------------------------------------------- */

.panels {
  display: block;
  width: 100%;
  border-collapse: collapse;
}

.panels tbody {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2vw, 22px);
}

@media (min-width: 1120px) {
  .panels tbody { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.panels tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  background: var(--paper-hi);
  border: 1px solid rgba(28, 24, 19, .14);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 38px -25px rgba(28, 24, 19, .5);
}

@media (min-width: 1120px) {
  .panels tr {
    grid-template-rows:
      114px
      180px
      190px
      160px
      225px;
  }
}

.panels th[scope="row"] {
  display: flex;
  align-items: center;
  margin: 0;
  padding: clamp(20px, 2.6vw, 28px);
  background: #251E19;
  text-align: left;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.12rem, 2vw, 1.3rem);
  line-height: 1.3;
}

.panels th[scope="row"] a {
  color: #FFF7EA;
  text-decoration-color: rgba(255, 247, 234, .55);
}

.panels td {
  display: block;
  min-width: 0;
  padding: clamp(18px, 2.3vw, 24px);
  border-top: 1px solid var(--rule);
}

.panels td:first-of-type {
  background: #E8EEE7;
}

.lab {
  display: block;
  margin-bottom: 6px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.val {
  display: block;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  overflow-wrap: break-word;
}

.val--primary {
  color: var(--moss);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.7vw, 2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.015em;
}

.val--primary.val--words {
  font-size: clamp(1.35rem, 2.3vw, 1.72rem);
}

.val--support {
  margin-top: 9px;
  color: var(--muted);
  font-size: .9rem;
}

.comparison-wide {
  margin-top: clamp(4px, 1vw, 12px);
}

.compare-copy .prose {
  margin-top: clamp(34px, 4vw, 48px);
}

@media (min-width: 900px) {
  .comparison-wide {
    width: calc(100% - 168px - clamp(40px, 5vw, 72px));
    margin-left: calc(168px + clamp(40px, 5vw, 72px));
  }
}

.home-guides {
  margin-top: clamp(32px, 4.5vw, 52px);
}

.home-guides h3 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(1.24rem, 2.4vw, 1.58rem);
  line-height: 1.25;
}

.home-guides ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-guides li {
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: rgba(255, 253, 248, .72);
  color: var(--ink-soft);
  line-height: 1.58;
}

.home-guides strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.08rem;
}

@media (max-width: 680px) {
  .home-guides ul { grid-template-columns: 1fr; }
}

@media (min-width: 1120px) {
  .comparison-wide {
    overflow: hidden;
    border: 1px solid rgba(28, 24, 19, .15);
    border-radius: 16px;
    background: var(--paper-hi);
    box-shadow: 0 20px 42px -28px rgba(28, 24, 19, .55);
  }

  .panels {
    display: table;
    table-layout: fixed;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  .panels .col-company { width: 17%; }
  .panels .col-price   { width: 18%; }
  .panels .col-system  { width: 23%; }
  .panels .col-quote   { width: 19%; }
  .panels .col-terms   { width: 23%; }

  .panels thead.sr-only {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }

  .panels thead { display: table-header-group; }
  .panels tbody { display: table-row-group; }

  .panels thead tr,
  .panels tbody tr {
    display: table-row;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .panels thead th {
    display: table-cell;
    padding: 18px 16px;
    border-left: 1px solid rgba(255, 247, 234, .12);
    background: #251E19;
    color: #FFF7EA;
    text-align: left;
    vertical-align: bottom;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.35;
    text-transform: uppercase;
  }

  .panels thead th:first-child { border-left: 0; }

  .panels th[scope="row"] {
    display: table-cell;
    padding: 20px 17px;
    border-top: 1px solid var(--rule);
    background: #F8F0E5;
    color: var(--ink);
    vertical-align: top;
    font-size: 1rem;
    line-height: 1.4;
  }

  .panels th[scope="row"] a {
    color: var(--clay-deep);
    text-decoration-color: rgba(139, 59, 27, .45);
  }

  .panels td {
    display: table-cell;
    padding: 20px 17px;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
    background: var(--paper-hi);
    vertical-align: top;
  }

  .panels td:first-of-type { background: #E8EEE7; }

  .panels td .lab { display: none; }

  .panels td .val {
    font-size: .95rem;
    line-height: 1.5;
  }

  .panels td .val--primary {
    font-size: 1.45rem;
    line-height: 1.1;
  }

  .panels td .val--support {
    margin-top: 8px;
    font-size: .84rem;
  }
}

/* --------------------------------------------------------------------------
   Home-size cost scale
   -------------------------------------------------------------------------- */

.scale {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.val--money {
  color: var(--moss);
  font-weight: 700;
  font-size: 1.06rem;
  font-variant-numeric: tabular-nums;
}

.bar {
  position: relative;
  display: block;
  height: 9px;
  max-width: 340px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(28, 24, 19, .10);
}

.bar-seg {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #CC7F44, #A94B25);
}

.bar--a .bar-seg { left: 20%; right: 60%; }
.bar--b .bar-seg { left: 30%; right: 40%; }
.bar--c .bar-seg { left: 40%; right: 20%; }
.bar--d .bar-seg { left: 50%; right: 0; }

@media (min-width: 760px) {
  .scale .lab { display: none; }

  .scale thead th {
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(28, 24, 19, .20);
    text-align: left;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .scale thead th + th { padding-left: clamp(20px, 3vw, 34px); }

  .scale tbody th {
    width: 40%;
    padding: clamp(20px, 2.4vw, 26px) 0;
    text-align: left;
    vertical-align: top;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.08rem;
    line-height: 1.35;
  }

  .scale tbody td {
    padding: clamp(20px, 2.4vw, 26px) 0 clamp(20px, 2.4vw, 26px) clamp(20px, 3vw, 34px);
    vertical-align: top;
    color: var(--ink-soft);
  }

  .scale td.cost { width: 60%; }

  .scale tbody tr + tr th,
  .scale tbody tr + tr td { border-top: 1px solid rgba(28, 24, 19, .11); }
}

@media (max-width: 759px) {
  .scale,
  .scale tbody,
  .scale tr,
  .scale th,
  .scale td {
    display: block;
    width: auto;
  }

  .scale thead { display: none; }

  .scale tr {
    padding: clamp(18px, 5vw, 24px);
    margin-bottom: 14px;
    background: var(--paper-hi);
    border: 1px solid var(--rule-soft);
    border-radius: 14px;
    box-shadow: 0 14px 30px -26px rgba(28, 24, 19, .5);
  }

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

  .scale tbody th {
    margin: 0 0 14px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--rule);
    text-align: left;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.3;
  }

  .scale td { padding: 0; }
  .scale td + td { margin-top: 16px; }
  .bar { max-width: none; }
}

/* --------------------------------------------------------------------------
   What the price covers
   -------------------------------------------------------------------------- */

.statement {
  margin: 0;
  max-width: 38rem;
  padding-left: clamp(18px, 2.4vw, 28px);
  border-left: 3px solid var(--clay);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  line-height: 1.46;
  color: var(--ink);
}

.statement-follow {
  margin: clamp(24px, 3vw, 32px) 0 0;
  max-width: 40rem;
  padding-left: clamp(18px, 2.4vw, 28px);
  border-left: 3px solid transparent;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

.prose--after-statement {
  margin-top: clamp(28px, 4vw, 44px);
}

/* --------------------------------------------------------------------------
   Quote checks
   -------------------------------------------------------------------------- */

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: chk;
  display: grid;
  gap: clamp(26px, 3.4vw, 40px);
}

@media (min-width: 820px) {
  .checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(36px, 4vw, 60px);
  }
}

.checks li {
  counter-increment: chk;
  min-width: 0;
  padding-top: clamp(18px, 2.2vw, 24px);
  border-top: 1px solid var(--rule-lite);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(247, 241, 230, .74);
}

.checks li::before {
  content: counter(chk, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: .88rem;
  letter-spacing: .08em;
  color: var(--clay-lite);
}

.check-lead {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 2vw, 1.22rem);
  line-height: 1.36;
  color: #FDF8EF;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.foot {
  background: #141110;
  border-top: 1px solid rgba(255, 241, 224, .08);
  padding: clamp(36px, 5vw, 56px) 0;
  font-size: .95rem;
  color: rgba(247, 241, 230, .6);
}

.foot p { margin: 0; }

.foot p + p { margin-top: 8px; }

.foot-topic {
  font-family: var(--serif);
  font-size: 1.06rem;
  color: #EDE3D3;
}

/* --------------------------------------------------------------------------
   Not-found page
   -------------------------------------------------------------------------- */

.notfound {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: clamp(56px, 10vw, 120px) 0;
  background: linear-gradient(135deg, #181410 0%, #382216 100%);
  color: var(--cream);
}

.notfound h1 {
  max-width: 12ch;
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1;
}

.notfound p {
  max-width: 48ch;
  margin: 0;
  color: rgba(247, 241, 230, .76);
}

.notfound a { color: var(--clay-lite); }
