/* ==========================================================================
   Madewell Exteriors — Design System
   Brand: Spark Creative brand board
   ========================================================================== */

/* --- Montserrat (self-hosted, latin subset) ------------------------------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/montserrat-400.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/montserrat-500.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/montserrat-700.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/montserrat-800.woff2") format("woff2");
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* Brand */
  --ink:        #000000;
  --ink-800:    #121110;
  --ink-700:    #1c1a17;
  --ink-600:    #2a2620;
  --gold:       #af9561;
  --gold-lt:    #d0b271;
  --gold-dk:    #2a2110;
  --silver-lt:  #d1d3d4;
  --silver:     #6d6f71;
  --silver-dk:  #595a5c;

  /* Neutrals */
  --white:      #ffffff;
  --bone:       #f7f5f1;
  --bone-2:     #ece8e0;
  --slate:      #4a4844;
  --slate-lt:   #7a766e;

  /* Gradients */
  --grad-gold:   linear-gradient(135deg, var(--gold-dk) 0%, var(--gold) 50%, var(--gold-lt) 100%);
  --grad-silver: linear-gradient(180deg, var(--silver-lt) 0%, var(--silver) 33%, var(--silver-lt) 66%, var(--silver-dk) 100%);
  --hairline:    linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);

  /* Type */
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --max: 1400px;
  --max-narrow: 820px;

  /* Misc */
  --radius: 4px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .45);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 108px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}

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

/* The UA gives figure and blockquote `margin: 1em 40px`. Left in place it
   silently adds 80px between flex/grid children. */
figure, blockquote { margin: 0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* --- Layout --------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: var(--max-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.section--bone { background: var(--bone); }
.section--dark, .financing { background: var(--ink-800); color: rgba(255, 255, 255, .74); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4,
.financing h1, .financing h2, .financing h3, .financing h4 { color: var(--white); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--gold);
  color: var(--ink);
  padding: .75rem 1.25rem;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Read out by screen readers, not shown on screen */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Type scale ----------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.section--dark .eyebrow { color: var(--gold-lt); }

.h-display { font-size: clamp(2.5rem, 6.2vw, 4.5rem); }
.h1        { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.h2        { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.h3        { font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: -.01em; }
.h4        { font-size: 1rem; letter-spacing: 0; }

.lede {
  font-size: clamp(1.03rem, 1.5vw, 1.18rem);
  line-height: 1.65;
  color: var(--slate);
}
.section--dark .lede, .financing .lede { color: rgba(255, 255, 255, .78); }
.section--dark .eyebrow, .financing .eyebrow { color: var(--gold-lt); }

.section-head { max-width: 660px; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .h2 + .lede { margin-top: 1.15rem; }

.rule {
  width: 64px;
  height: 3px;
  border: 0;
  margin: 1.5rem 0 0;
  background: var(--grad-gold);
}
.section-head--center .rule { margin-inline: auto; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1.05rem 2rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.btn--gold:hover { background: var(--gold-lt); border-color: var(--gold-lt); }

.btn--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.btn--ink:hover { background: var(--ink-600); border-color: var(--ink-600); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .38);
  color: var(--white);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-lt); }

.btn--outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--white); }

.btn--wide { width: 100%; }
.btn--sm { padding: .8rem 1.4rem; font-size: .75rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* --- Photo placeholders ---------------------------------------------------
   Replace .ph blocks with <img>. The shingle pattern keeps mockups legible.
   -------------------------------------------------------------------------- */
.ph {
  position: relative;
  overflow: hidden;
  background-color: var(--ink-700);
  background-image:
    linear-gradient(160deg, rgba(175, 149, 97, .22) 0%, rgba(0, 0, 0, .55) 62%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, .045) 0 1px,
      transparent 1px 46px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, .06) 0 1px,
      transparent 1px 26px
    );
  border-radius: var(--radius);
}
.ph::after {
  content: attr(data-ph);
  position: absolute;
  inset: auto 0 0 0;
  padding: .6rem .9rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  background: rgba(0, 0, 0, .55);
}
.ph--4x3 { aspect-ratio: 4 / 3; }
.ph--3x2 { aspect-ratio: 3 / 2; }
.ph--1x1 { aspect-ratio: 1 / 1; }
.ph--tall { aspect-ratio: 3 / 4; }

/* Marks an unfinished content slot awaiting real client data */
.todo {
  border: 2px dashed rgba(175, 149, 97, .55);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
  background: rgba(175, 149, 97, .05);
}
.todo__tag {
  display: inline-block;
  margin-bottom: .85rem;
  padding: .32rem .7rem;
  background: var(--gold);
  color: var(--ink);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-radius: 2px;
}
.todo p { font-size: .95rem; color: var(--slate-lt); max-width: 46ch; margin-inline: auto; }

/* --- Header --------------------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
  font-size: .78rem;
  letter-spacing: .04em;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 42px;
  padding-block: .45rem;
}
.topbar__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.topbar__list li {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.topbar__list svg { color: var(--gold); flex: none; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--gold-lt); }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--bone-2);
  transition: box-shadow .25s var(--ease);
}
.header.is-stuck { box-shadow: 0 6px 28px -14px rgba(0, 0, 0, .3); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding-block: .75rem;
}

.logo {
  display: block;
  flex: none;
  line-height: 0;
}
.logo__img {
  width: 210px;
  height: auto;
}
.footer .logo__img { width: 240px; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  position: relative;
  display: block;
  padding: .4rem 0;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .28s var(--ease);
}
.nav__link:hover { color: var(--gold); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { width: 100%; }
.nav__link[aria-current="page"] { color: var(--gold); }

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.nav__phone svg { color: var(--gold); }
.nav__phone:hover { color: var(--gold); }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--bone-2);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  position: relative;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: background .2s var(--ease);
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform .28s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 76vh, 760px);
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background-color: var(--ink-800);
  background-image:
    linear-gradient(105deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .72) 45%, rgba(0, 0, 0, .5) 100%),
    linear-gradient(200deg, rgba(175, 149, 97, .3) 0%, rgba(0, 0, 0, .8) 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 30px);
  background-size: cover;
  color: rgba(255, 255, 255, .8);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: var(--grad-gold);
}
.hero__inner { position: relative; z-index: 2; }
.hero__text  { max-width: 50%; }
.hero .h-display { color: var(--white); }
.hero .lede { margin-top: 1.5rem; color: rgba(255, 255, 255, .8); }
.hero .btn-row { margin-top: 2.35rem; }

.hero__phone {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.35rem;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-lt);
}

.hero__note {
  margin-top: 1.75rem;
  font-size: .8rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .55);
}

/* --- Trust strip ---------------------------------------------------------- */
.trust {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .1);
}
.trust__item {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.65rem clamp(1rem, 2vw, 1.75rem);
  background: var(--ink);
}
.trust__item svg { color: var(--gold); flex: none; }
.trust__label {
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
}
.trust__label span {
  display: block;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .55);
}

/* --- Service cards -------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 2.4vw, 2rem);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--bone-2);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.card .ph { border-radius: 0; }
.card__body { padding: clamp(1.5rem, 2.6vw, 2rem); display: flex; flex-direction: column; flex: 1; }
.card__body .h3 { margin-bottom: .85rem; }
.card__body p { font-size: .95rem; color: var(--slate-lt); }
.card__list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: .88rem;
  color: var(--slate-lt);
}
.card__list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: .4rem;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.card__foot { margin-top: auto; padding-top: .5rem; }

/* --- Split (story / image) ------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--reverse > *:first-child { order: 2; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--bone-2);
}
.section--dark .stat-row { border-color: rgba(255, 255, 255, .12); }
.stat__value {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--gold);
}
.stat__value--sm { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.stat__value { display: flex; align-items: flex-end; min-height: 2.35rem; }
.stat__label {
  margin-top: .55rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate-lt);
}
.section--dark .stat__label { color: rgba(255, 255, 255, .55); }

/* --- Process steps -------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}
.step { position: relative; padding-top: 2.75rem; counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  opacity: .95;
}
.step::after {
  content: "";
  position: absolute;
  top: .55rem;
  left: 3.4rem;
  right: -1rem;
  height: 1px;
  background: rgba(175, 149, 97, .35);
}
.step:last-child::after { display: none; }
.step .h4 { margin-bottom: .6rem; }
.step p { font-size: .92rem; }
.section--dark .step p { color: rgba(255, 255, 255, .68); }

/* --- Gallery --------------------------------------------------------------
   Sixteen job photos in the same scroll-snap slider the reviews use: one row
   of portrait tiles, swipe on touch, arrows and dots on desktop.
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery .ph { transition: opacity .3s var(--ease); }
.gallery .ph:hover { opacity: .85; }

.gallery__viewport { position: relative; }

.gallery__track {
  --ggap: clamp(.7rem, 1.4vw, 1.1rem);
  --gper: 4;
  display: flex;
  gap: var(--ggap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: .25rem;
}
.gallery__track::-webkit-scrollbar { display: none; }

.gallery__item {
  flex: 0 0 calc((100% - (var(--gper) - 1) * var(--ggap)) / var(--gper));
  scroll-snap-align: start;
  display: block;
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.gallery__item .pic { transition: opacity .3s var(--ease); }
.gallery__item:hover .pic,
.gallery__item:focus-visible .pic { opacity: .88; }

/* Small zoom cue, so it reads as clickable rather than decorative */
.gallery__item::after {
  content: "";
  position: absolute;
  right: .7rem;
  bottom: .7rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 17px no-repeat;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  pointer-events: none;
}
.gallery__item:hover::after,
.gallery__item:focus-visible::after { opacity: 1; transform: none; }

.gallery__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: clamp(1.5rem, 2.5vw, 2rem);
}

@media (max-width: 1100px) { .gallery__track { --gper: 3; } }
@media (max-width: 760px)  { .gallery__track { --gper: 2; } }
@media (max-width: 460px)  { .gallery__track { --gper: 1; } }

/* --- Feature list --------------------------------------------------------- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature {
  display: flex;
  gap: 1.1rem;
}
/* The client's copy opens each value with a bold lead-in sentence — give it
   the ink colour so it reads as a lead, not just heavier body text, and a bit
   the ink colour so it reads as a lead, not just heavier body text. */
.feature p strong { color: var(--ink); font-weight: 700; }
.section--dark .feature p strong { color: var(--white); }

.feature__icon {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(175, 149, 97, .5);
  border-radius: var(--radius);
  color: var(--gold);
}
.feature .h4 { margin-bottom: .6rem; }  /* clears the bold lead-in below it */
.feature p { font-size: .92rem; }
.section--dark .feature p { color: rgba(255, 255, 255, .68); }

/* --- FAQ ------------------------------------------------------------------ */
.faq { border-top: 1px solid var(--bone-2); }
.faq__item { border-bottom: 1px solid var(--bone-2); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.5rem 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.faq__q:hover { color: var(--gold); }
.faq__icon {
  flex: none;
  position: relative;
  width: 18px;
  height: 18px;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--gold);
  transform: translateY(-50%);
  transition: transform .3s var(--ease);
}
.faq__icon::after { transform: translateY(-50%) rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: translateY(-50%) rotate(0deg); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.faq__a > div { overflow: hidden; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a p {
  padding-bottom: 1.6rem;
  font-size: .97rem;
  color: var(--slate-lt);
  max-width: 68ch;
}

/* --- Financing band ------------------------------------------------------- */
.financing {
  position: relative;
  background: var(--ink-800);
  color: rgba(255, 255, 255, .74);
  overflow: hidden;
}
.financing::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-gold);
}
.financing__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.financing__points {
  display: grid;
  gap: 1.15rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.financing__points li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  font-size: .95rem;
  color: rgba(255, 255, 255, .78);
}
.financing__points svg { flex: none; margin-top: .3rem; color: var(--gold); }

.embed-slot {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 2px dashed rgba(175, 149, 97, .55);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  text-align: center;
}
.embed-slot__tag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .32rem .7rem;
  background: var(--gold);
  color: var(--ink);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-radius: 2px;
}
.embed-slot p {
  font-size: .9rem;
  color: rgba(255, 255, 255, .6);
  max-width: 42ch;
  margin-inline: auto;
}
.embed-slot .btn { margin-top: 1.5rem; }

/* --- Contact form --------------------------------------------------------- */
.contact { background: var(--bone); }
.contact__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.contact__aside .lede { margin-top: 1.15rem; }

.contact__meta {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--bone-2);
}
.contact__meta-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact__meta-item svg { flex: none; margin-top: -.1rem; color: var(--gold); }
.contact__meta-item strong {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: .35rem;
}
.contact__meta-item p { font-size: .92rem; color: var(--slate-lt); }
.contact__meta-item a { text-decoration: none; }
.contact__meta-item a:hover { color: var(--gold); }

.form {
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--bone-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label {
  margin-bottom: .5rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}
.field label span { color: var(--gold); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid var(--bone-2);
  border-radius: var(--radius);
  background: var(--white);
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #b3ada3; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(175, 149, 97, .18);
}
.js-turnstile:not(:empty) { margin-top: 1.5rem; }   /* bot check, see main.js */
.form__foot { margin-top: 1.5rem; }
.form__legal {
  margin-top: 1.15rem;
  font-size: .74rem;
  line-height: 1.6;
  color: var(--slate-lt);
}
.form__status {
  margin-top: 1rem;
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
}
.form__status:empty { display: none; }
.form__status[data-state="ok"]  { background: rgba(175, 149, 97, .14); color: var(--gold-dk); }
.form__status[data-state="err"] { background: #fdeaea; color: #8c2b2b; }

/* --- CTA band ------------------------------------------------------------- */
.cta-band {
  background: var(--grad-gold);
  color: var(--ink);
  text-align: center;
}
.cta-band .h2 { color: var(--ink); }
.cta-band p { margin-top: 1rem; color: rgba(0, 0, 0, .72); }
.cta-band .btn-row { justify-content: center; margin-top: 2rem; }

/* --- Footer --------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .6);
  font-size: .9rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3.25rem, 6vw, 4.75rem);
}
.footer__about { margin-top: 1.5rem; font-size: .9rem; max-width: 34ch; }
.footer h4 {
  margin-bottom: 1.25rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white);
}
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin-bottom: .7rem; }
.footer a { text-decoration: none; transition: color .2s var(--ease); }
.footer a:hover { color: var(--gold-lt); }
.footer address { font-style: normal; margin-bottom: 1.25rem; line-height: 1.6; }
.footer address strong {
  display: block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .3rem;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .8rem;
}
.footer__bottom p { margin: 0; }
.footer__cookie {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color .2s var(--ease);
}
.footer__cookie:hover { color: var(--gold-lt); }

/* --- Long-form text (privacy policy) -------------------------------------- */
.prose { line-height: 1.75; }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 2.75rem 0 1rem; }
.prose h3 { font-size: 1.1rem; margin: 1.75rem 0 .75rem; }
.prose ul { margin: 0 0 1.15em; padding-left: 1.25rem; }
.prose li { margin-bottom: .55rem; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--ink); }
.prose a {
  color: var(--ink);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: var(--ink); }
.prose code { font-size: .9em; }
.prose__date { color: var(--slate-lt); font-size: .9rem; }

/* --- Cookie consent banner (built by main.js) ----------------------------- */
.consent {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 150;                     /* above the sticky header */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  max-width: 46rem;
  margin-inline: auto;
  padding: 1.25rem 1.5rem;
  background: var(--ink-800);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: rgba(255, 255, 255, .78);
  font-size: .88rem;
  line-height: 1.55;
}
.consent[hidden] { display: none; }
.consent__text { flex: 1 1 18rem; margin: 0; }
.consent__text a { color: var(--gold-lt); text-underline-offset: 2px; }
.consent__text a:hover { color: var(--white); }
.consent__actions { display: flex; gap: .75rem; }
@media (max-width: 520px) {
  .consent__actions { flex: 1 1 100%; }
  .consent__actions .btn { flex: 1; }
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .financing__grid,
  .contact__grid { grid-template-columns: 1fr; }
  .split--reverse > *:first-child { order: 0; }
  .step::after { display: none; }
}

/* The lockup plus the nav fits down to 1100px — measured, not guessed.
   "Storm Damage" is a wider label than the "Home" it replaced, but dropping the
   duplicate phone link out of the header paid for it exactly.
   Keep this in sync with the 1100 in main.js. */
@media (max-width: 1100px) {
  .burger { display: inline-flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h) - 42px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--white);
    border-bottom: 1px solid var(--bone-2);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    padding: 1rem 0;
    font-size: .95rem;
    border-bottom: 1px solid var(--bone-2);
  }
  .nav__link::after { display: none; }
  .nav__phone { padding: 1.15rem 0 .5rem; font-size: 1.05rem; }
  .nav .btn { width: 100%; margin-top: .5rem; }
}

@media (max-width: 860px) {
  :root { --header-h: 82px; }

  .logo__img { width: 175px; }

  .topbar { font-size: .72rem; }
  .topbar__inner { justify-content: center; gap: 1rem; }
  .topbar__list li:not(:first-child) { display: none; }
  .topbar__list li { white-space: nowrap; }
}

@media (max-width: 560px) {
  .topbar__inner > span { display: none; }
  .trust__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .logo__img { width: 160px; }
  .footer .logo__img { width: 200px; }
}

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

/* ==========================================================================
   Interior page components
   ========================================================================== */

/* --- Page hero ------------------------------------------------------------ */
.page-hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  background-color: var(--ink-800);
  background-image:
    linear-gradient(100deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .74) 50%, rgba(0, 0, 0, .55) 100%),
    linear-gradient(200deg, rgba(175, 149, 97, .28) 0%, rgba(0, 0, 0, .82) 62%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 30px);
  color: rgba(255, 255, 255, .78);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: var(--grad-gold);
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__text  { max-width: 50%; }
.page-hero .h1 { color: var(--white); }
.page-hero .lede { margin-top: 1.35rem; color: rgba(255, 255, 255, .78); }
.page-hero .btn-row { margin-top: 2.25rem; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.breadcrumb a { text-decoration: none; color: var(--gold-lt); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li::after { content: "/"; margin-left: .55rem; opacity: .5; }
.breadcrumb li:last-child::after { display: none; }

/* --- Checklist ------------------------------------------------------------ */
.checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--bone-2);
  font-size: .96rem;
}
.section--dark .checklist li,
.financing .checklist li { border-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .78); }
.checklist svg { flex: none; margin-top: .3rem; color: var(--gold); }
.checklist strong { display: block; color: var(--ink); font-weight: 700; }
.section--dark .checklist strong { color: var(--white); }

/* --- Compare (repair vs replace) ------------------------------------------ */
.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.compare__col {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--bone-2);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
}
.compare__col h3 { margin-bottom: 1.25rem; }
.compare__col ul { margin: 0; padding: 0; list-style: none; }
.compare__col li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .7rem;
  font-size: .95rem;
  color: var(--slate-lt);
}
.compare__col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
}

/* --- Alert band (urgent repair) ------------------------------------------- */
.alert-band {
  /* Deliberately NOT --grad-gold: that gradient starts near-black, and this band
     carries dark text. Gold -> light gold keeps every word legible across it. */
  background: linear-gradient(105deg, var(--gold) 0%, var(--gold-lt) 100%);
  color: var(--ink);
}
.alert-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.75rem;
}
.alert-band__text { display: flex; align-items: center; gap: 1.1rem; }
.alert-band__text svg { flex: none; }
.alert-band strong {
  display: block;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 800;
  letter-spacing: -.01em;
}
.alert-band p { margin: .2rem 0 0; font-size: .9rem; color: rgba(0, 0, 0, .78); }

/* --- Service area list ---------------------------------------------------- */
.areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .6rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.areas li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem 0;
  font-size: .95rem;
  border-bottom: 1px solid var(--bone-2);
}
.areas svg { flex: none; color: var(--gold); }

/* --- Materials / system cards --------------------------------------------- */
.tile {
  background: var(--white);
  border: 1px solid var(--bone-2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.section--bone .tile { background: var(--white); }
.tile:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.tile .ph { border-radius: 0; }
.tile__body { padding: clamp(1.4rem, 2.4vw, 1.9rem); }
.tile__body .h3 { margin-bottom: .7rem; }
.tile__body p { font-size: .93rem; color: var(--slate-lt); }
.tile__meta {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--bone-2);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Two-up card grid (e.g. commercial roofing systems) */
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
@media (min-width: 980px) { .cards--2 { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Hero photography
   Each hero points at its own file via --hero-photo. If the file is missing
   the gradients alone still render, so the page never looks broken.
   ========================================================================== */
.hero--photo,
.page-hero--photo {
  background-image:
    linear-gradient(105deg, rgb(0 0 0 / 50%) 0%, rgb(0 0 0 / 37%) 50%, rgb(0 0 0 / 10%) 100%),
    var(--hero-photo, none);
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

/* On a phone the hero text runs the full width of the screen, but the 105deg
   wash above is only dark at the LEFT edge — so the eyebrow ends up sitting on
   bare photo. Measured on the commercial hero (a white TPO roof): 1.73:1, well
   under the 4.5 that 12px bold text needs. This adds a vertical scrim on small
   screens only; the desktop hero keeps exactly the gradient signed off on. */
@media (max-width: 860px) {
  .hero--photo,
  .page-hero--photo {
    background-image:
      linear-gradient(180deg, rgb(0 0 0 / 62%) 0%, rgb(0 0 0 / 48%) 55%, rgb(0 0 0 / 38%) 100%),
      linear-gradient(105deg, rgb(0 0 0 / 50%) 0%, rgb(0 0 0 / 37%) 50%, rgb(0 0 0 / 10%) 100%),
      var(--hero-photo, none);
  }
}

.hero--home              { --hero-photo: url("../img/hero-home.jpg"); }
.page-hero--residential  { --hero-photo: url("../img/hero-residential.jpg"); }
.page-hero--storm        { --hero-photo: url("../img/hero-storm.jpg"); }
.page-hero--commercial   { --hero-photo: url("../img/hero-commercial.jpg"); }
.page-hero--repair       { --hero-photo: url("../img/hero-repair.jpg"); }
.page-hero--about        { --hero-photo: url("../img/hero-about.jpg"); }

/* ==========================================================================
   Real photography — .pic replaces a .ph placeholder once the file exists.
   Same ratios as the placeholders, so nothing shifts when an image lands.
   ========================================================================== */
.pic {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--ink-700);
}
.pic--3x2  { aspect-ratio: 3 / 2; }
.pic--4x3  { aspect-ratio: 4 / 3; }
.pic--1x1  { aspect-ratio: 1 / 1; }
.pic--tall { aspect-ratio: 3 / 4; }

.card .pic { border-radius: 0; }
.tile .pic { border-radius: 0; }
.gallery .pic { transition: opacity .3s var(--ease); }
.gallery a:hover .pic,
.gallery .pic:hover { opacity: .88; }

/* WebP for the hero background where the browser supports it */
@supports (background-image: image-set(url("../img/hero-home.webp") type("image/webp"))) {
  .hero--home { --hero-photo: image-set(
      url("../img/hero-home.webp") type("image/webp"),
      url("../img/hero-home.jpg")  type("image/jpeg")); }
}


/* Hero copy column: half the page on desktop, wider as the screen narrows */
@media (max-width: 1200px) {
  .hero__text, .page-hero__text { max-width: 64%; }
}
@media (max-width: 900px) {
  .hero__text, .page-hero__text { max-width: 78%; }
}
@media (max-width: 700px) {
  .hero__text, .page-hero__text { max-width: 100%; }
}

/* Portrait photos whose subject sits high in the frame — crop from the bottom
   instead of centring, so the person is never the part that gets cut. */
.pic--top { object-position: center top; }

/* ==========================================================================
   Reviews slider
   Scroll-snap track — native swipe on touch, arrows and dots on desktop.
   No library, no autoplay: people read at their own pace.
   ========================================================================== */
.reviews__viewport {
  position: relative;
}

.reviews__track {
  --rgap: clamp(1rem, 2vw, 1.75rem);
  --rper: 3;
  display: flex;
  gap: var(--rgap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: .25rem;
}
.reviews__track::-webkit-scrollbar { display: none; }

.review {
  flex: 0 0 calc((100% - (var(--rper) - 1) * var(--rgap)) / var(--rper));
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--bone-2);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
}

.review__stars {
  display: flex;
  gap: .18rem;
  margin-bottom: 1.15rem;
  color: var(--gold);
}

.review__quote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate);
}
.review__quote p { margin: 0; }

.review__by {
  margin-top: auto;
  padding-top: 1.5rem;
  font-style: normal;
}
.review__name {
  display: block;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
}
.review__meta {
  display: block;
  margin-top: .25rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- Controls -------------------------------------------------------------- */
.reviews__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.reviews__arrow,
.slider__arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--bone-2);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  transition: background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), opacity .22s var(--ease);
}
.reviews__arrow:hover:not(:disabled),
.slider__arrow:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.reviews__arrow:disabled,
.slider__arrow:disabled { opacity: .3; cursor: default; }

.reviews__dots,
.slider__dots {
  display: flex;
  align-items: center;
  gap: .55rem;
}
.reviews__dot,
.slider__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bone-2);
  transition: background-color .22s var(--ease), width .22s var(--ease);
}
.reviews__dot[aria-current="true"],
.slider__dot[aria-current="true"] {
  width: 26px;
  border-radius: 4px;
  background: var(--gold);
}

/* Too many pages for dots — a counter instead (see buildDots in main.js) */
.slider__count {
  justify-content: center;
  min-width: 4.5rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  color: var(--slate);
}

@media (max-width: 1000px) { .reviews__track { --rper: 2; } }
@media (max-width: 660px)  { .reviews__track { --rper: 1; } }

/* ==========================================================================
   Credential badges
   Greyscale marks in a row, colour on hover. Built to hold real accreditation
   logos once the client confirms which ones they actually hold.
   ========================================================================== */
.badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--bone-2);
  border: 1px solid var(--bone-2);
  border-radius: var(--radius);
  overflow: hidden;
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) 1rem;
  background: var(--white);
  text-align: center;
  filter: grayscale(1);
  opacity: .82;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.badge:hover { filter: grayscale(0); opacity: 1; }

.badge__mark { color: var(--gold); }

.badge__label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.4;
}
.badge__label span {
  display: block;
  margin-top: .3rem;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: none;
  color: var(--slate-lt);
}

.badges-note {
  margin-top: 1.25rem;
  font-size: .8rem;
  text-align: center;
  color: var(--slate-lt);
}

/* Split with a wider copy column — used where a two-column list sits beside a photo */
.split--copy-led { grid-template-columns: 1.12fr .88fr; }
@media (max-width: 980px) { .split--copy-led { grid-template-columns: 1fr; } }

/* Checklist forced to two columns inside a split (it would otherwise collapse to one) */
.checklist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .checklist--2 { grid-template-columns: 1fr; } }

.reviews__cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

/* ==========================================================================
   GAF Certified Plus band
   Sits directly under the hero so the credential is the first thing after it.
   Light ground: GAF's badge is built for one.
   ========================================================================== */
.cert { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* A contained card, not a full-bleed band: it lines up with the grid the rest
   of the page sits on instead of running edge to edge. */
.cert__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--bone);
  border: 1px solid var(--bone-2);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}
.cert__badge {
  flex: none;
  width: clamp(88px, 11vw, 132px);
  height: auto;
}
.cert__copy { min-width: 0; }
.cert__wrap { }
.cert__copy h2 {
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -.01em;
}
.cert__copy p {
  margin: .5rem 0 0;
  font-size: .95rem;
  color: var(--slate-lt);
  max-width: 62ch;
}
.cert__copy .link-arrow { margin-top: .9rem; }

@media (max-width: 620px) {
  .cert__inner { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
}

/* ==========================================================================
   Third-party embeds (GAF widgets)
   GAF supply these as fixed-height iframes. --embed-h is the one number to
   tune if the widget's own content changes height.
   ========================================================================== */
.embed {
  --embed-h: 1000px;
  position: relative;
  width: 100%;
  border: 1px solid var(--bone-2);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.embed iframe {
  display: block;
  width: 100%;
  height: var(--embed-h);
  border: 0;
}
@media (max-width: 760px) {
  .embed { --embed-h: 1150px; }
}

/* ==========================================================================
   Long unbreakable strings (the business email) force a grid column wider
   than the phone viewport. Let the columns shrink and the address wrap.
   ========================================================================== */
.contact__grid > *,
.footer__grid > *,
.split > * { min-width: 0; }

.contact__meta-item p,
.footer li,
.footer a { overflow-wrap: anywhere; }

/* ==========================================================================
   Lightbox
   Opened from the project gallery. Full-viewport, keyboard and swipe driven.
   Uses dvh so the mobile browser chrome does not clip the controls.
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(.5rem, 2vw, 1.5rem);
  padding: clamp(3.5rem, 7vh, 5rem) clamp(.75rem, 3vw, 2.5rem) clamp(1.25rem, 4vh, 2.5rem);
  animation: lb-in .22s var(--ease);
}
.lightbox[hidden] { display: none; }

@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  /* Opaque on purpose: at 93% the gallery's own arrows and counter showed
     through right where the lightbox arrows sit, which read as two sets of
     controls. The body is scroll-locked anyway, so nothing is lost. */
  background: #0a0908;
  cursor: zoom-out;
}

.lightbox__frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  min-width: 0;
  height: 100%;
  margin: 0;
}

.lightbox__img {
  display: block;
  max-width: 100%;
  min-height: 0;
  max-height: calc(100dvh - 11rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--ink-700);
}

.lightbox__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: .4rem .9rem;
  max-width: 60ch;
  text-align: center;
  font-size: .88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .72);
}
.lightbox__count {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
  color: var(--gold-lt);
}

/* --- Controls -------------------------------------------------------------- */
.lightbox__btn {
  position: relative;
  z-index: 2;
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transition: background-color .22s var(--ease), border-color .22s var(--ease),
              opacity .22s var(--ease);
}
.lightbox__btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .45);
}
.lightbox__btn:disabled { opacity: .25; cursor: default; }

.lightbox__close {
  position: absolute;
  top: clamp(.75rem, 2.5vh, 1.5rem);
  right: clamp(.75rem, 3vw, 2.5rem);
  width: 46px;
  height: 46px;
}

@media (max-width: 700px) {
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__nav {
    position: absolute;
    bottom: clamp(1.25rem, 4vh, 2.5rem);
    width: 46px;
    height: 46px;
  }
  .lightbox__nav--prev { left: clamp(1.25rem, 8vw, 3rem); }
  .lightbox__nav--next { right: clamp(1.25rem, 8vw, 3rem); }
  .lightbox__img { max-height: calc(100dvh - 14rem); }
  .lightbox__caption { padding-bottom: 3.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox { animation: none; }
  .gallery__item::after { transition: none; }
}

/* Body lock while the lightbox is open */
body.is-lb-open { overflow: hidden; }

/* ==========================================================================
   Wisetack financing card
   Supplied by the provider as a raw HTML/CSS block (not an iframe), so it
   lands in our cascade. Everything is scoped under .wisetack so their generic
   "-code-example" class names cannot leak anywhere else on the site.

   Three things their snippet needs from us:
   1. The h2 colour. Our `h1,h2,h3,h4 { color: var(--ink) }` is an element
      selector and beats their class, which sets no colour — without this the
      heading renders black on the blue card.
   2. .logo-code-example, .paragraph-code-example-medium and
      .max-width-585-code-example are referenced in their markup but never
      defined in their CSS. The logo especially: with no width, the SVG falls
      back to its intrinsic size.
   3. Montserrat is already self-hosted here, so their font stack resolves.
   ========================================================================== */
.wisetack .container-code-example {
  z-index: 1;
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
}

.wisetack .content-code-example-3 {
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
  background-color: #156ed7;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 32px 32px 40px;
}

.wisetack .box-code-example-3 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  width: 100%;
  text-align: left;
}

.wisetack .column-left-code-example-3 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 65%;
  min-width: 0;
}

.wisetack .margin-bot-8-code-example { margin-bottom: 8px; }

.wisetack .title-code-example-xsmall {
  margin: 0;
  font-size: 32px;
  line-height: 140%;
  color: #fff;               /* overrides our global heading colour */
  letter-spacing: -.01em;
}

.wisetack .link-white-code-example {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.wisetack .link-white-code-example:hover { text-decoration-thickness: 2px; }

/* --- Not defined in the supplied CSS -------------------------------------- */
.wisetack .max-width-585-code-example { max-width: 585px; }

.wisetack .paragraph-code-example-medium {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .92);
}
.wisetack .paragraph-code-example-medium + .paragraph-code-example-medium { margin-top: .35rem; }

.wisetack .logo-code-example {
  flex: none;
  width: 132px;
  height: auto;
}

/* Shown only if the hotlinked logo fails to load (see main.js) */
.wisetack__wordmark {
  flex: none;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff;
  line-height: 1;
}

/* Their snippet switches to a stacked layout at a 767px VIEWPORT. But this card
   sits in a grid column, so on a 1512px screen it is only ~585px wide and the
   side-by-side layout is already cramped — "once?" drops onto its own line.
   A container query keys the switch to the card's own width instead. The
   viewport media query below is kept as the fallback. */
.wisetack { container-type: inline-size; }

@container (max-width: 660px) {
  .wisetack .content-code-example-3 { padding: 28px; }
  .wisetack .box-code-example-3 {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .wisetack .column-left-code-example-3 {
    width: 100%;
    max-width: 100%;
  }
  .wisetack .title-code-example-xsmall { font-size: 28px; }
}

@media screen and (max-width: 767px) {
  .wisetack .content-code-example-3 { padding: 24px; }
  .wisetack .column-left-code-example-3 {
    text-align: center;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 100%;
  }
  .wisetack .box-code-example-3 {
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }
  .wisetack .title-code-example-xsmall { font-size: 26px; }
}
