/* Columbus OH Roofers: the one stylesheet. docs/PLAN.md section 1.
 *
 * Written new for this site. Nothing here is copied from another site.
 * Rules of the system:
 *   - Evergreen is for action and identity only.
 *   - No shadows, no gradients, no motion on load or scroll.
 *   - Separation is space, a background change, or a hairline.
 *   - Layout and navigation use no JavaScript.
 */

/* ---------- Font ---------- */

/* Archivo, SIL Open Font License 1.1. One file: Latin, weight 700 to 750,
 * width 88 to 96. Source, license and build steps: docs/ASSETS.md. */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2?v=20261120") format("woff2");
  font-weight: 700 750;
  font-stretch: 88% 96%;
  font-style: normal;
  font-display: swap;
}

/* A system face resized to Archivo's proportions, so the swap from the
 * fallback to Archivo does not move the layout. Numbers measured against
 * Archivo at weight 700, width 92 (docs/ASSETS.md). */
@font-face {
  font-family: "Archivo fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Liberation Sans Bold");
  font-weight: 700 750;
  size-adjust: 91%;
  ascent-override: 96%;
  descent-override: 23%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */

:root {
  /* Palette (plan section 1.5). Nine tokens, one brand color. */
  --slate: #1f2a30;
  --white: #ffffff;
  --overcast: #eef2f3;
  --galvanized: #51606a;
  --evergreen: #17503c;
  --evergreen-deep: #0f3a2b;
  --patina: #e3efea;
  --mint: #cfe3da;
  --rule: #cbd5d9;

  --font-head: "Archivo", "Archivo fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing scale (plan section 1.7): 4 8 12 16 24 32 48 72 112. */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4.5rem;
  --s9: 7rem;

  --container: 70rem; /* 1120px */
  --measure: min(42.5rem, 66ch); /* 680px, and never more than 66 characters */
  --section: var(--s8);
  --radius: 0.625rem; /* 10px, buttons only */
}

@media (min-width: 60em) {
  :root {
    --section: var(--s9);
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--s5);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.55;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
table {
  margin: 0;
}

h1,
h2,
h3,
.h1,
.h2,
.h3 {
  font-family: var(--font-head);
  color: var(--slate);
  text-wrap: balance;
}

h1,
.h1 {
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  font-weight: 750;
  font-stretch: 88%;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

h2,
.h2 {
  font-size: 1.875rem; /* 30px */
  font-weight: 700;
  font-stretch: 92%;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h3,
.h3 {
  font-size: 1.375rem; /* 22px */
  font-weight: 700;
  font-stretch: 96%;
  line-height: 1.2;
}

@media (min-width: 60em) {
  h2,
  .h2 {
    font-size: 2.5rem; /* 40px */
  }

  h3,
  .h3 {
    font-size: 1.625rem; /* 26px */
  }
}

.lead {
  font-size: 1.25rem; /* 20px */
  line-height: 1.45;
}

.small {
  font-size: 0.9375rem; /* 15px */
  line-height: 1.45;
}

.muted {
  color: var(--galvanized);
}

@media (min-width: 60em) {
  .lead {
    font-size: 1.375rem; /* 22px */
  }
}

/* A destination that is not built yet is shown as text that looks like the
 * link it will become (src/components/NavLink.astro). :where() keeps this rule
 * as weak as the plain "a" rule, so components can restyle both the same way. */
a,
:where(.is-pending) {
  color: var(--evergreen);
  text-decoration-line: underline;
  text-decoration-thickness: 0.0625em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--evergreen-deep);
  text-decoration-thickness: 0.125em;
}

:focus-visible,
.is-focus {
  outline: 3px solid var(--slate);
  outline-offset: 2px;
}

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

/* Illustration inks. Inline SVG uses these classes, never style attributes. */
.ink {
  fill: none;
  stroke: var(--slate);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ink-light {
  fill: none;
  stroke: var(--galvanized);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fill-white {
  fill: var(--white);
}

.fill-overcast {
  fill: var(--overcast);
}

.fill-patina {
  fill: var(--patina);
}

.fill-mint {
  fill: var(--mint);
}

.fill-evergreen {
  fill: var(--evergreen);
}

.fill-slate {
  fill: var(--slate);
}

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

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s5);
}

.section {
  padding-block: var(--section);
}

.section--overcast {
  background: var(--overcast);
}

.section--tight {
  padding-block: var(--s7);
}

.measure {
  max-width: var(--measure);
}

/* Vertical rhythm inside a text block. */
.flow > * + * {
  margin-top: var(--s4);
}

.flow > h2 + *,
.flow > .h2 + * {
  margin-top: var(--s5);
}

.flow > * + h2,
.flow > * + .h2 {
  margin-top: var(--s7);
}

.flow > * + h3 {
  margin-top: var(--s6);
}

.skip-link {
  position: absolute;
  left: var(--s4);
  top: -6rem;
  z-index: 20;
  padding: var(--s3) var(--s4);
  background: var(--white);
  color: var(--slate);
  font-weight: 600;
}

.skip-link:focus {
  top: var(--s4);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem; /* 48px */
  padding: var(--s2) var(--s5);
  border: 2px solid var(--evergreen);
  border-radius: var(--radius);
  background: var(--evergreen);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  font-stretch: 96%;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button.is-hover {
  border-color: var(--evergreen-deep);
  background: var(--evergreen-deep);
  color: var(--white);
}

.button:active,
.button.is-pressed {
  border-color: var(--evergreen-deep);
  background: var(--evergreen-deep);
  color: var(--mint);
  transform: translateY(1px);
}

.button--large {
  min-height: 3.5rem; /* 56px */
  padding-inline: var(--s6);
  font-size: 1.25rem;
}

.button--block {
  display: flex;
  width: 100%;
}

.button--secondary {
  background: var(--white);
  color: var(--evergreen);
}

.button--secondary:hover,
.button--secondary.is-hover {
  background: var(--patina);
  color: var(--evergreen-deep);
}

.button--secondary:active,
.button--secondary.is-pressed {
  background: var(--mint);
  color: var(--evergreen-deep);
}

/* A destination that is not built yet. It looks as it will, and does nothing. */
.is-pending {
  cursor: default;
}

.text-link {
  font-weight: 600;
}

.text-link.is-hover {
  color: var(--evergreen-deep);
  text-decoration-thickness: 0.125em;
}

.text-link.is-pressed {
  color: var(--slate);
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}

.site-header__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s1) var(--s2);
  padding-block: var(--s3);
}

/* On a phone the brand's three parts sit straight in the header grid: mark,
 * name and menu button on one row, the descriptor across the full width. */
.brand {
  display: contents;
}

.brand__mark {
  width: 1.625rem;
  height: auto;
  color: var(--evergreen);
}

.brand__mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.brand__name {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 750;
  font-stretch: 88%;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--slate);
  text-decoration: none;
}

.brand__name:hover {
  color: var(--evergreen-deep);
}

.brand__descriptor {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--galvanized);
}

.site-nav__list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  display: flex;
  align-items: center;
  min-height: 3rem;
  color: var(--slate);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

a.site-nav__link:hover {
  color: var(--evergreen-deep);
  text-decoration-line: underline;
  text-decoration-thickness: 0.125em;
}

.site-header__phone {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  font-stretch: 96%;
  white-space: nowrap;
  color: var(--slate);
  text-decoration: none;
}

/* Mobile: the menu is a <details> element. No script. */
.site-nav--desktop,
.site-header__actions {
  display: none;
}

.menu {
  grid-column: 3;
  grid-row: 1;
}

.menu__toggle {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: 3rem;
  padding-inline: var(--s3);
  border: 2px solid var(--slate);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-stretch: 96%;
  color: var(--slate);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.menu__toggle::-webkit-details-marker {
  display: none;
}

.menu__icon {
  position: relative;
  width: 1.125rem;
  height: 0.875rem;
  border-block: 2px solid currentColor;
}

.menu__icon::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: calc(50% - 1px);
  border-top: 2px solid currentColor;
}

.menu[open] .menu__toggle {
  background: var(--slate);
  color: var(--white);
}

.menu__label-close,
.menu[open] .menu__label-open {
  display: none;
}

.menu[open] .menu__label-close {
  display: inline;
}

.menu__panel {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}

.menu__panel .wrap {
  padding-bottom: var(--s5);
}

.menu__panel .site-nav__list {
  flex-direction: column;
  padding-top: var(--s2);
}

.menu__panel .site-nav__link {
  min-height: 3.25rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1.125rem;
}

.menu__panel .button {
  margin-top: var(--s5);
}

/* Desktop: brand, nav and actions in one row. */
@media (min-width: 64em) {
  .menu {
    display: none;
  }

  .site-header__bar {
    display: flex;
    gap: var(--s5);
    min-height: 5.5rem;
    padding-block: var(--s4);
  }

  .brand {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--s1) var(--s3);
    align-items: center;
    margin-right: auto;
  }

  .brand__mark {
    width: 2.25rem;
  }

  .brand__name {
    font-size: 1.5rem;
  }

  .brand__descriptor {
    max-width: 17rem;
  }

  .site-nav--desktop {
    display: block;
  }

  .site-nav--desktop .site-nav__list {
    gap: 1.25rem;
  }

  .site-nav--desktop .site-nav__link {
    font-size: 1rem;
  }

  .site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--s4);
  }

  .site-header__actions .button {
    white-space: nowrap;
  }

  /* The number joins the row only where there is room for it. */
  .site-header__phone {
    display: none;
  }
}

@media (min-width: 72em) {
  .site-header__phone {
    display: inline;
  }
}

/* A header shown as a specimen inside the style guide. */
.specimen-header {
  border-top: 1px solid var(--rule);
}

/* The open-menu specimen keeps the panel where it really sits, under the
 * header, and leaves room for it so the next block is not covered. */
.sg-menu-open {
  min-height: 34rem;
}

/* ---------- Disclosure ---------- */

.disclosure-strip {
  background: var(--patina);
  color: var(--slate);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.disclosure-strip p {
  padding-block: var(--s3);
}

.disclosure-line {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--galvanized);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: var(--s7) 0;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: var(--s7);
}

.hero__copy > * + * {
  margin-top: var(--s5);
}

/* In the hero the answer is the lead paragraph itself, not a tinted block. */
.hero .answer {
  max-width: 34rem;
  padding: 0;
  background: none;
}

.hero__actions {
  display: grid;
  gap: var(--s4);
  justify-items: start;
  margin-top: var(--s6);
}

.hero__actions .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
}

.hero__actions .disclosure-line {
  max-width: 30rem;
}

/* The one cut on the site: the top edge rises to a ridge at a 6-in-12 pitch.
 * The box is 4 wide by 3 tall, so a rise of one quarter of the width is one
 * third of the height. */
.hero__art {
  aspect-ratio: 4 / 3;
  background: var(--overcast);
  clip-path: polygon(0 33.34%, 50% 0, 100% 33.34%, 100% 100%, 0 100%);
}

.hero__art svg {
  width: 100%;
  height: 100%;
}

@media (min-width: 60em) {
  .hero {
    padding-top: var(--s8);
  }

  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s7);
    align-items: end;
  }

  .hero__copy {
    padding-bottom: var(--s8);
  }
}

@media (max-width: 59.99em) {
  .hero__actions .button {
    display: flex;
    width: 100%;
  }
}

/* ---------- Answer block ---------- */

.answer {
  max-width: var(--measure);
  padding: var(--s5);
  background: var(--patina);
  font-size: 1.25rem;
  line-height: 1.45;
}

@media (min-width: 60em) {
  .answer {
    padding: var(--s6);
    font-size: 1.375rem;
  }
}

/* ---------- Content pages ---------- */

.page {
  padding-block: var(--s5) var(--section);
}

.page__head {
  padding-bottom: var(--s4);
}

.page__body > * {
  max-width: var(--measure);
}

.page__body > .faq,
.page__body > .wide {
  max-width: none;
}

.page__body > .faq {
  margin-top: var(--s8);
}

.page__body ul,
.page__body ol {
  padding-left: 1.25rem;
}

.page__body li + li {
  margin-top: var(--s2);
}

.page__body h1 + .answer,
.page__body h1 + .muted {
  margin-top: var(--s5);
}

.draft-notice {
  padding: var(--s4) var(--s5);
  border-left: 4px solid var(--slate);
  background: var(--overcast);
}

/* The credit and mailing address on a light page (the footer has its own). */
.operator {
  padding: var(--s5);
  background: var(--overcast);
}

.operator__credit {
  margin-bottom: var(--s3);
}

.operator dt {
  font-size: 0.9375rem;
  color: var(--galvanized);
}

.operator dd {
  margin-left: 0;
}

.operator dd + dt {
  margin-top: var(--s3);
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--galvanized);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: 3rem;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--galvanized);
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.card {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: var(--s2) var(--s5);
  align-items: start;
  padding-block: var(--s5);
  border-bottom: 1px solid var(--rule);
}

.card__art {
  grid-row: span 3;
  width: 5.5rem;
}

.card__title a,
.card__title .is-pending {
  color: var(--slate);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.card__title a:hover {
  color: var(--evergreen-deep);
}

.card__text {
  color: var(--slate);
}

.card__more {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  font-weight: 600;
}

.card--area {
  grid-template-columns: 1fr;
}

@media (min-width: 60em) {
  .cards--services {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--s8);
  }

  .cards--areas {
    grid-template-columns: repeat(3, 1fr);
    column-gap: var(--s7);
  }

  .card {
    grid-template-columns: 7.5rem 1fr;
    padding-block: var(--s6);
  }

  .card--area {
    grid-template-columns: 1fr;
  }

  .card__art {
    width: 7.5rem;
  }
}

/* A list of cards or trust items under a heading or an intro. */
h2 + .trust,
.measure + .trust,
.measure + .cards {
  margin-top: var(--s6);
}

/* ---------- Trust block ---------- */

.trust {
  display: grid;
  gap: var(--s6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust__item {
  padding-top: var(--s5);
  border-top: 2px solid var(--slate);
}

.trust__item > * + * {
  margin-top: var(--s3);
}

@media (min-width: 60em) {
  .trust {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s7) var(--s8);
  }
}

/* ---------- FAQ ---------- */

.faq__list {
  margin-top: var(--s6);
  border-top: 1px solid var(--rule);
}

.faq__item {
  max-width: none;
  padding-block: var(--s5);
  border-bottom: 1px solid var(--rule);
}

.faq__item > * {
  max-width: var(--measure);
}

.faq__item > * + * {
  margin-top: var(--s3);
}

/* ---------- Cost table ---------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cost-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.cost-table caption {
  padding-bottom: var(--s4);
  text-align: left;
  color: var(--galvanized);
  font-size: 0.9375rem;
}

.cost-table th,
.cost-table td {
  padding: var(--s4) var(--s5) var(--s4) 0;
  text-align: left;
  vertical-align: top;
}

.cost-table thead th {
  border-bottom: 2px solid var(--slate);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--galvanized);
}

.cost-table tbody th {
  font-weight: 600;
}

.cost-table tbody tr {
  border-bottom: 1px solid var(--rule);
}

.cost-table__figure {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  font-stretch: 96%;
  white-space: nowrap;
}

/* ---------- Sources ---------- */

.sources {
  padding-top: var(--s5);
  border-top: 2px solid var(--slate);
}

.sources__list {
  margin-top: var(--s4);
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.sources__list li + li {
  margin-top: var(--s3);
}

.sources__meta {
  display: block;
  color: var(--galvanized);
}

.sources__reviewed {
  margin-top: var(--s5);
  font-size: 0.9375rem;
  color: var(--galvanized);
}

/* ---------- Form-closed line ---------- */

.form-closed {
  max-width: var(--measure);
  padding: var(--s4) var(--s5);
  border-left: 4px solid var(--slate);
  background: var(--overcast);
  font-weight: 600;
}

.section--overcast .form-closed {
  background: var(--white);
}

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

.site-footer {
  padding-block: var(--s8) var(--s7);
  background: var(--evergreen);
  color: var(--white);
}

.site-footer :focus-visible,
.call-bar:focus-visible {
  outline-color: var(--white);
}

.site-footer a,
.site-footer .is-pending {
  color: var(--white);
}

.site-footer a:hover {
  color: var(--mint);
}

.site-footer__grid {
  display: grid;
  gap: var(--s7);
}

.site-footer__name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 750;
  font-stretch: 88%;
  line-height: 1.1;
  color: var(--white);
}

.site-footer__descriptor {
  margin-top: var(--s2);
  color: var(--mint);
}

.site-footer__disclosure {
  max-width: 34rem;
  margin-top: var(--s5);
  color: var(--white);
}

.site-footer__heading {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  font-stretch: 96%;
  color: var(--white);
}

.site-footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--s5);
  margin: var(--s3) 0 0;
  padding: 0;
  list-style: none;
}

.site-footer__nav a,
.site-footer__nav span {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  white-space: nowrap;
}

.site-footer__credit {
  margin-top: var(--s3);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.site-footer__operator {
  margin-top: var(--s3);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--white);
}

.site-footer__operator dt {
  margin-top: var(--s3);
  color: var(--mint);
}

.site-footer__operator dd {
  margin-left: 0;
}

.site-footer__operator .site-footer__note {
  color: var(--mint);
}

@media (min-width: 60em) {
  .site-footer__grid {
    grid-template-columns: 5fr 4fr 4fr;
    gap: var(--s7);
  }
}

/* ---------- Call bar (mobile, phone on) ---------- */

.call-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  min-height: 3.75rem;
  padding: var(--s2) var(--s4) calc(var(--s2) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--mint);
  background: var(--evergreen);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  font-stretch: 96%;
  text-align: center;
  text-decoration: none;
}

.call-bar:hover {
  background: var(--evergreen-deep);
  color: var(--white);
}

/* The bar's space is reserved, so the page does not shift under it. */
.has-call-bar {
  padding-bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px));
}

/* A call bar shown as a specimen inside the style guide. */
.call-bar--specimen {
  position: static;
}

@media (min-width: 60em) {
  .call-bar:not(.call-bar--specimen) {
    display: none;
  }

  .has-call-bar {
    padding-bottom: 0;
  }
}

/* ---------- Sample build (local screenshots only, never deployed) ---------- */

.sample-banner {
  padding: var(--s2) var(--s5);
  background: var(--slate);
  color: var(--white);
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: left;
}

.sample-tag {
  display: inline-block;
  padding: 0 var(--s2);
  border: 1px solid currentColor;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: nowrap;
}

/* ---------- Style guide (internal page) ---------- */

.sg-section {
  padding-block: var(--s7);
  border-top: 1px solid var(--rule);
}

.sg-section > .wrap > * + * {
  margin-top: var(--s5);
}

.sg-section > [data-shot] {
  margin-top: var(--s5);
}

.sg-note {
  max-width: var(--measure);
  color: var(--galvanized);
  font-size: 0.9375rem;
}

.sg-label {
  margin-block: var(--s6) var(--s3);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--galvanized);
}

.sg-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: var(--s5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sg-swatch__chip {
  height: 4.5rem;
  border: 1px solid var(--rule);
}

.sg-swatch__name {
  margin-top: var(--s2);
  font-weight: 600;
}

.sg-bg-slate {
  background: var(--slate);
}

.sg-bg-white {
  background: var(--white);
}

.sg-bg-overcast {
  background: var(--overcast);
}

.sg-bg-galvanized {
  background: var(--galvanized);
}

.sg-bg-evergreen {
  background: var(--evergreen);
}

.sg-bg-evergreen-deep {
  background: var(--evergreen-deep);
}

.sg-bg-patina {
  background: var(--patina);
}

.sg-bg-mint {
  background: var(--mint);
}

.sg-bg-rule {
  background: var(--rule);
}

.sg-type > * + * {
  margin-top: var(--s5);
}

.sg-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4) var(--s5);
  align-items: center;
}

.sg-space {
  display: grid;
  gap: var(--s2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.sg-space li {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.sg-space__bar {
  height: 1rem;
  background: var(--slate);
}

.sg-w1 {
  width: var(--s1);
}

.sg-w2 {
  width: var(--s2);
}

.sg-w3 {
  width: var(--s3);
}

.sg-w4 {
  width: var(--s4);
}

.sg-w5 {
  width: var(--s5);
}

.sg-w6 {
  width: var(--s6);
}

.sg-w7 {
  width: var(--s7);
}

.sg-w8 {
  width: var(--s8);
}

.sg-w9 {
  width: var(--s9);
}

.sg-art-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: var(--s5);
}

.sg-frame {
  border: 1px solid var(--rule);
}

@media (min-width: 64em) {
  .sg-only-mobile {
    display: none;
  }
}

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

  .button:active,
  .button.is-pressed {
    transform: none;
  }
}

/* Hairline ink for illustration detail (siding, courses in the distance). */
.ink-rule {
  fill: none;
  stroke: var(--rule);
  stroke-linecap: round;
}


/* ---------- Photos (stock, always captioned) ---------- */

.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--overcast);
}

.photo__credit {
  margin-top: var(--s2);
  max-width: var(--measure);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--galvanized);
}

.photo__credit a {
  color: var(--galvanized);
}

/* The hero photo keeps the roofline cut of the hero art: a 6-in-12 ridge. */
.hero__photo img {
  aspect-ratio: 4 / 3;
  clip-path: polygon(0 33.34%, 50% 0, 100% 33.34%, 100% 100%, 0 100%);
}

.hero__photo .photo__credit {
  padding-bottom: var(--s5);
}

/* ---------- Inner page head: words left, photo right ---------- */

.page-hero {
  display: grid;
  gap: var(--s6);
  margin-bottom: var(--s7);
}

@media (min-width: 60em) {
  .page-hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--s8);
    align-items: start;
  }

  .page-hero__photo {
    margin-top: var(--s4);
  }
}

/* ---------- Lists ---------- */

.page__body .ticks,
.ticks {
  display: grid;
  gap: var(--s3);
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: var(--s6);
}

.page__body .ticks li + li {
  margin-top: 0;
}

/* A short roof pitch as the list mark: the site's one recurring shape. */
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 1rem;
  height: 0.6rem;
  background: var(--evergreen);
  clip-path: polygon(0 100%, 50% 0, 100% 100%, 82% 100%, 50% 36%, 18% 100%);
}

.page__body .steps,
.steps {
  display: grid;
  gap: var(--s5);
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: var(--s7);
  counter-increment: step;
}

.page__body .steps li + li {
  margin-top: 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: var(--evergreen);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.page__body .link-list,
.link-list {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.page__body .link-list li + li {
  margin-top: 0;
}

.link-list li {
  border-bottom: 1px solid var(--rule);
}

.link-list .text-link,
.link-list a {
  display: flex;
  align-items: center;
  min-height: 3rem;
}

/* A plain-statement box: the disclosure where a request would go. */
.note {
  padding: var(--s5);
  border-left: 4px solid var(--evergreen);
  background: var(--patina);
}

.note > * + * {
  margin-top: var(--s3);
}

.note .form-closed {
  padding: 0;
  border: 0;
  background: none;
}

/* ---------- Photo cards (home, services hub, guides) ---------- */

.photo-cards {
  display: grid;
  gap: var(--s7) var(--s6);
  margin: var(--s6) 0 0;
  padding: 0;
  list-style: none;
}

.photo-card > * + * {
  margin-top: var(--s3);
}

.photo-card .photo {
  margin-bottom: var(--s4);
}

.photo-card__title a {
  color: var(--slate);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.photo-card__title a:hover {
  color: var(--evergreen-deep);
}

@media (min-width: 40em) {
  .photo-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 60em) {
  .photo-cards--four {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Figures at a glance (home cost block) ---------- */

.figures {
  display: grid;
  gap: var(--s5);
  margin: var(--s6) 0 0;
  padding: 0;
  list-style: none;
}

.figure {
  padding: var(--s5);
  background: var(--white);
  border-top: 4px solid var(--evergreen);
}

.figure__value {
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 750;
  font-stretch: 88%;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.figure__what {
  margin-top: var(--s2);
  font-weight: 600;
}

.figure__source {
  margin-top: var(--s2);
  font-size: 0.9375rem;
  color: var(--galvanized);
}

@media (min-width: 60em) {
  .figures {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Areas ---------- */

.area-table td a {
  overflow-wrap: anywhere;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  margin: var(--s5) 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: var(--s1) var(--s3);
  border: 1px solid var(--rule);
  background: var(--white);
  font-size: 0.9375rem;
}

/* ---------- Split section (words and a photo) ---------- */

.split {
  display: grid;
  gap: var(--s6);
}

@media (min-width: 60em) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s8);
    align-items: center;
  }
}

.after-list {
  margin-top: var(--s6);
}
