/* =========================================================
   Triple D Insulation — main stylesheet
   Mobile-first: base styles are for phones, then
   @media (min-width: ...) blocks add tablet/desktop layout.
   ========================================================= */

/* ---------- 1. Brand colors, fonts and sizes ---------- */
:root {
  --navy-950: #0c1726;
  --navy-900: #0f1c2e;
  --navy-800: #15263d;
  --navy-700: #1f3653;
  --steel-700: #3d4a59;
  --steel-600: #4f5d6d;
  --steel-400: #8a96a3;
  --steel-300: #aab6c3;
  --steel-200: #d3dae1;
  --steel-100: #edf0f3;
  --paper: #f6f7f8;
  --white: #ffffff;
  --orange-400: #f08a43;
  --orange-500: #e8772e;   /* decorative accent */
  --orange-600: #c2541a;   /* buttons + small text (passes contrast on white) */
  --orange-700: #a54613;

  --font-head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
  --gutter: 20px;
  --radius: 4px;
  --header-h: 68px;

  /* The insulation "batt" symbol used on construction drawings — used as a small brand detail */
  --batt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath d='M0 6 Q3 -2 6 6 T12 6 T18 6 T24 6' fill='none' stroke='%23e8772e' stroke-width='1.6'/%3E%3C/svg%3E");
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}
@media (min-width: 1024px) {
  :root { --header-h: 84px; }
}

/* ---------- 2. Base / reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
/* Smooth scrolling is switched on by script.js after the page loads,
   so links like index.html#contact from another page land correctly */
html.smooth-scroll { scroll-behavior: smooth; }
/* the dark top bar (42px) is part of the sticky header from 640px up */
@media (min-width: 640px) {
  html { scroll-padding-top: calc(var(--header-h) + 42px + 12px); }
}

body {
  margin: 0;
  background: var(--white);
  color: #23303e;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

figure { margin: 0; }

h1, h2, h3 {
  margin: 0 0 0.6em;
  color: var(--navy-900);
  font-family: var(--font-head);
  font-stretch: 88%;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }

p { margin: 0 0 1em; }

a { color: var(--orange-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-700); }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--navy-900);
  color: var(--white);
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--white); }

.icon { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }

/* ---------- 3. Placeholders (remove once real info is in) ----------
   Anything wrapped in <span class="ph"> is unconfirmed content.
   The dashed outline makes it easy to spot. */
.ph {
  background: rgba(232, 119, 46, 0.16);
  outline: 1px dashed currentColor;
  outline-offset: 1px;
  border-radius: 2px;
  padding: 0 0.2em;
}

.ph-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.2rem 0.55rem;
  background: #fff3e8;
  border: 1px dashed var(--orange-600);
  border-radius: 2px;
  color: #82360c;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- 4. Small shared pieces ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  color: var(--orange-600);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 12px;
  background: var(--batt) repeat-x left center / 15px 8px;
}
.eyebrow--light { color: var(--orange-400); }

.batt {
  width: 108px;
  height: 14px;
  margin: 1.6rem 0;
  background: var(--batt) repeat-x left center / 24px 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.3rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 0.95rem 1.6rem; font-size: 1.05rem; }

.btn--primary { background: var(--orange-600); color: var(--white); }
.btn--primary:hover { background: var(--orange-700); color: var(--white); }

.btn--outline-light { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn--outline-light:hover { background: var(--white); border-color: var(--white); color: var(--navy-900); }

/* Placeholders inside buttons shouldn't change the button look too much */
.btn .ph { background: rgba(255, 255, 255, 0.12); }

/* Sections */
.section { padding-block: clamp(4rem, 9vw, 7rem); }

.section-head { max-width: 44rem; margin-bottom: 2.75rem; }
.section-head p:last-child { margin-bottom: 0; color: var(--steel-600); font-size: 1.125rem; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 18px rgba(15, 28, 46, 0.12); }

.topbar {
  display: none;
  background: var(--navy-950);
  color: var(--steel-200);
  font-size: 0.9rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
}
.topbar p { margin: 0; }
/* Both phone numbers, side by side */
.topbar__phones {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1.1rem;
}
.topbar__phones .icon { margin-right: -0.55rem; color: var(--orange-400); }
.topbar__phones a {
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.topbar__phones a:hover,
.topbar__phones a:hover .topbar__name { color: var(--orange-400); }
.topbar__name { margin-right: 0.15rem; color: var(--steel-300); font-weight: 600; }
/* Tablets: not enough room for the tagline AND both numbers on one line, so the numbers win
   (the tagline is still in the footer). Keeps the top bar one line, 42px tall. */
@media (max-width: 899px) {
  .topbar__inner { justify-content: flex-end; }
  .topbar__inner > p:not(.topbar__phones) { display: none; }
}

@media (min-width: 640px) {
  .topbar { display: block; }
}

.navbar { border-bottom: 1px solid var(--steel-200); }
.navbar__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--header-h);
}

/* Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
  color: var(--navy-900);
  text-decoration: none;
}
.brand:hover { color: var(--navy-900); }
/* The official Triple D logo (round badge) */
.brand__mark { flex-shrink: 0; width: 46px; height: 46px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-stretch: 82%;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.brand__tag {
  margin-top: 0.3rem;
  color: var(--steel-600);
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.brand--light,
.brand--light:hover { color: var(--white); }
.brand--light .brand__tag { color: var(--steel-300); }

/* Mobile call + menu buttons */
.navbar__call,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
}
.navbar__call {
  background: var(--orange-600);
  color: var(--white);
  font-size: 1.25rem;
}
.navbar__call:hover { background: var(--orange-700); color: var(--white); }

.nav-toggle {
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--steel-200);
  background: var(--white);
  cursor: pointer;
}
.nav-toggle__bar {
  width: 22px;
  height: 2px;
  background: var(--navy-900);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* Navigation — mobile dropdown */
.nav__list { margin: 0; padding: 0; list-style: none; }
.nav__link {
  display: block;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--steel-100);
  color: var(--navy-900);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}
.nav__link:hover,
.nav__link.is-active { color: var(--orange-600); }
.nav__cta { width: 100%; margin-top: 1.25rem; }

.js .nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.5rem var(--gutter) 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--steel-200);
  box-shadow: 0 14px 24px rgba(15, 28, 46, 0.12);
}
.js .nav.is-open { display: block; }

/* Without JavaScript the menu simply shows as a list under the logo */
html:not(.js) .navbar__inner { flex-wrap: wrap; }
html:not(.js) .nav { width: 100%; padding-bottom: 1rem; }
html:not(.js) .nav-toggle { display: none; }

/* Navigation — desktop */
@media (min-width: 1024px) {
  .navbar__call,
  .nav-toggle { display: none; }

  .js .nav,
  html:not(.js) .nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 2.25rem;
    width: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }
  .nav__list { display: flex; gap: 2rem; }
  .nav__link {
    position: relative;
    padding: 0.4rem 0;
    border: 0;
    font-size: 1rem;
  }
  .nav__link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--orange-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }
  .nav__link:hover { color: var(--navy-900); }
  .nav__link:hover::after,
  .nav__link.is-active::after { transform: scaleX(1); }
  .nav__link.is-active { color: var(--navy-900); }
  .nav__cta { width: auto; margin-top: 0; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-800);
  color: var(--steel-200);
}
.hero__content { padding-block: 3.5rem 3rem; }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero h1 span { display: block; color: var(--steel-300); }
.hero__lead { max-width: 34rem; font-size: 1.15rem; }
.hero__lead a { color: var(--white); text-decoration-color: rgba(255, 255, 255, 0.5); white-space: nowrap; }
.hero__lead a:hover { color: var(--orange-400); }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}
.hero__note {
  margin: 1.5rem 0 0;
  color: var(--steel-300);
  font-size: 0.95rem;
}
.hero__note a { color: var(--white); font-weight: 600; text-decoration-color: rgba(255, 255, 255, 0.5); }
.hero__note a:hover { color: var(--orange-400); }

.hero__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-top: 6px solid var(--orange-500);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 479px) {
  .hero__actions .btn { width: 100%; }
}

@media (min-width: 1024px) {
  .hero { min-height: 620px; display: flex; align-items: center; }
  .hero > .container { position: relative; z-index: 1; }
  .hero__content {
    max-width: min(36rem, calc(54vw - 4rem));
    padding-block: 6rem 6.5rem;
  }
  .hero__media {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 46%;
    aspect-ratio: auto;
    border-top: 0;
    border-left: 8px solid var(--orange-500);
  }
}

/* ---------- 7. About ---------- */
.about__grid { display: grid; gap: 2.75rem; }

.about__media { position: relative; }
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
/* small steel block offset behind the photo */
.about__media::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -14px;
  bottom: -14px;
  width: 55%;
  height: 60%;
  background: var(--steel-100);
  border-radius: var(--radius);
}

.about__content > p { color: var(--steel-700); }

.points { margin: 1.75rem 0; padding: 0; list-style: none; }
.points li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.6rem;
  border-top: 1px solid var(--steel-200);
  color: var(--steel-700);
}
.points li:last-child { border-bottom: 1px solid var(--steel-200); }
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 9px;
  height: 9px;
  background: var(--orange-500);
}
.points strong { color: var(--navy-900); }

.signature {
  margin: 0;
  color: var(--navy-800);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: 5fr 6fr;
    gap: 5rem;
    align-items: center;
  }
  /* text-only layout: story on the left, the points on the right */
  .about__grid--text { grid-template-columns: 6fr 5fr; align-items: start; }
  .about__grid--text .points { margin-top: 0.4rem; }
}

/* ---------- 8. Services ---------- */
.services { background: var(--paper); }

/* Homepage services: the attic card plus a panel listing the other services */
.services__solo { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .services__solo { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services__solo { grid-template-columns: 2fr 1fr; gap: 1.75rem; } }
.services__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-top: 4px solid var(--orange-500);
  border-radius: var(--radius);
}
.services__panel h3 { margin-bottom: 0.6rem; }
.services__panel p { color: var(--steel-600); }
.services__panel .svc-index { align-self: stretch; margin-top: 0.4rem; }
@media (min-width: 1024px) {
  /* one wide card: photo on the left, text on the right, so it isn't oversized */
  .services__solo .card { flex-direction: row; min-height: 20rem; }
  .services__solo .card__media { flex: 0 0 52%; aspect-ratio: auto; }
  .services__solo .card__body { align-self: center; padding: 2rem 2.25rem; }
}

.card-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--steel-300);
  box-shadow: 0 14px 30px rgba(15, 28, 46, 0.1);
}
.card:hover::after { transform: scaleX(1); }

.card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover .card__media img { transform: scale(1.04); }

.card__body { padding: 1.4rem 1.5rem 1.7rem; }
.card__body h3 { margin-bottom: 0.45rem; }
.card__body p { margin: 0; color: var(--steel-600); font-size: 1rem; }
/* small "Free attic insulation estimates" link on the homepage Attic card */
.card__offer {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px; /* comfortable to tap */
  margin-top: 0.6rem;
  padding: 0.35rem 0;
  color: var(--orange-600);
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
}
.card__offer::after { content: "\2192"; transition: transform 0.2s ease; }
.card__offer:hover { color: var(--orange-700); }
.card__offer:hover::after { transform: translateX(3px); }

.services__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin: 2.75rem 0 0;
  color: var(--steel-700);
  font-size: 1.1rem;
}
.services__more p { margin: 0; }
.services__more p a { font-weight: 700; }

/* ---------- 9. Why insulation ---------- */
.why { background: var(--navy-900); color: var(--steel-200); }
.why h2,
.why h3 { color: var(--white); }

.why__grid { display: grid; gap: 3rem; }
@media (min-width: 900px) {
  .why__grid { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
}

.checklist { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.checklist li {
  position: relative;
  padding: 1rem 0 1rem 2.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.1rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.3rem;
  width: 18px;
  height: 18px;
  border: 2px solid var(--orange-500);
  border-radius: 2px;
}

.why__panel {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--navy-800);
  border-top: 4px solid var(--orange-500);
  border-radius: var(--radius);
}
.why__panel h3 { font-size: 1.5rem; margin-bottom: 1.5rem; }

.benefits { margin: 0; }
.benefits dt {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
}
.benefits dd {
  margin: 0.25rem 0 1.4rem;
  color: var(--steel-300);
}
.benefits dd:last-child { margin-bottom: 0; }

/* ---------- 10. Process ---------- */
.steps {
  display: grid;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.step { padding-top: 1.4rem; border-top: 3px solid var(--navy-900); }
.step__num {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--orange-600);
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1;
}
.step p { margin: 0; color: var(--steel-600); }

/* ---------- 11. Our work ---------- */
.work { background: var(--steel-100); }

.gallery { display: grid; gap: 1.75rem; }
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--pair { grid-column: 1 / -1; }
}

.gallery__item img,
.pair__img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.gallery__item figcaption {
  margin-top: 0.7rem;
  color: var(--steel-600);
  font-size: 0.95rem;
}

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (min-width: 768px) {
  .pair__img img,
  .gallery__item > img { aspect-ratio: 16 / 10; }
}
.pair__img { position: relative; }
.pair__label {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pair__label--after { background: var(--orange-600); }

/* ---------- 12. Contact CTA ---------- */
.cta {
  display: grid;
  gap: 2.5rem;
  padding: clamp(2rem, 6vw, 4rem);
  background: var(--navy-800);
  border-radius: 6px;
  color: var(--steel-200);
}
.cta h2 { color: var(--white); }
.cta__text > p { max-width: 34rem; font-size: 1.1rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.75rem; }

.contact-list { margin: 0; }
.contact-list > div {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.contact-list > div:first-child { padding-top: 0; }
.contact-list > div:last-child { border-bottom: 0; }
.contact-list dt {
  margin-bottom: 0.2rem;
  color: var(--steel-300);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact-list dd {
  margin: 0;
  color: var(--white);
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}
.contact-list a { color: var(--white); text-decoration: none; }
.contact-list a:hover { color: var(--orange-400); }

@media (max-width: 479px) {
  .cta__actions .btn { width: 100%; }
}
@media (min-width: 900px) {
  .cta { grid-template-columns: 1.25fr 1fr; gap: 4rem; align-items: center; }
  .contact-list { padding-left: 3rem; border-left: 1px solid rgba(255, 255, 255, 0.12); }
}

/* ---------- 13. Footer ---------- */
.site-footer {
  padding: 4rem 0 2rem;
  background: var(--navy-950);
  color: var(--steel-300);
  font-size: 0.98rem;
}
.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 3rem; } }

.footer__brand p { max-width: 22rem; margin-top: 1.2rem; }
.footer__heading {
  margin-bottom: 1rem;
  color: var(--white);
  font-size: 0.82rem;
  font-stretch: 100%;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer__links { margin: 0; padding: 0; list-style: none; }
.footer__links li + li { margin-top: 0.55rem; }
.footer__links a { color: var(--steel-200); text-decoration: none; }
.footer__links a:hover { color: var(--white); text-decoration: underline; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}
.footer__bottom p { margin: 0; }

/* ---------- 14. Scroll reveal (only runs when script.js has loaded) ---------- */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

/* Respect people who turn off animations in their device settings */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   15. Shared additions (used on more than one page)
   ========================================================= */

/* Current page in the menu (e.g. "Services" on services.html) */
.nav__link[aria-current="page"] { color: var(--orange-600); }
@media (min-width: 1024px) {
  .nav__link[aria-current="page"] { color: var(--navy-900); }
  .nav__link[aria-current="page"]::after { transform: scaleX(1); }
}

/* "Confirm service" tag when it sits in the text flow instead of on a photo */
.ph-tag--inline {
  position: static;
  display: inline-block;
  vertical-align: middle;
}

/* Solid navy button for light backgrounds */
.btn--dark { background: var(--navy-800); color: var(--white); }
.btn--dark:hover { background: var(--navy-950); color: var(--white); }

/* =========================================================
   16. Services page (services.html)
   ========================================================= */

/* ---------- Page header ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem);
  background: var(--navy-800);
  color: var(--steel-200);
}
/* faint insulation-symbol texture on the right side (wider screens only) */
.page-hero::after {
  content: none;
}
@media (min-width: 768px) {
  .page-hero::after { content: ""; }
}
.page-hero::after {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 38%;
  background: var(--batt) repeat left top / 48px 24px;
  opacity: 0.07;
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); max-width: 16ch; }
.page-hero__lead { max-width: 40rem; font-size: 1.15rem; }
.page-hero__cta { margin: 1.25rem 0 0; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
@media (max-width: 479px) {
  .page-hero__actions .btn { width: 100%; }
}

.breadcrumb { margin-bottom: 2rem; font-size: 0.92rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--steel-400); }
.breadcrumb a { color: var(--steel-200); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current="page"] { color: var(--steel-300); }

/* ---------- Draft notice (delete from the HTML before publishing) ---------- */
.draft-note {
  margin-bottom: 3rem;
  padding: 1rem 1.25rem;
  background: #fff7f0;
  border: 1px dashed var(--orange-600);
  border-radius: var(--radius);
  color: #6b2d0b;
  font-size: 0.98rem;
}

/* ---------- Overview / jump links ---------- */
.svc-overview { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.svc-overview__grid { display: grid; gap: 1.5rem; }
.svc-overview__intro h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.svc-overview__intro--solo { max-width: 46rem; }
/* the short intro leads straight into the Attic section, without a double gap */
.svc-overview + .svc { padding-top: clamp(0.5rem, 2vw, 1.5rem); }
.svc-overview__intro p { color: var(--steel-600); }

.svc-index {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--steel-200);
}
.svc-index a {
  position: relative;
  display: block;
  padding: 1rem 2.25rem 1rem 0;
  border-top: 1px solid var(--steel-200);
  color: inherit;
  text-decoration: none;
}
/* small down-arrow */
.svc-index a::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--orange-600);
  border-bottom: 2px solid var(--orange-600);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.svc-index a:hover::after { transform: translateY(-40%) rotate(45deg); }
.svc-index__name {
  display: block;
  color: var(--navy-900);
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  transition: color 0.2s ease;
}
.svc-index a:hover .svc-index__name { color: var(--orange-600); }
.svc-index__desc { display: block; color: var(--steel-600); font-size: 0.97rem; }

@media (min-width: 700px) {
  .svc-index { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; border-bottom: 0; }
  .svc-index li:nth-last-child(-n + 2) a { border-bottom: 1px solid var(--steel-200); }
}
@media (min-width: 1024px) {
  .svc-overview__grid { grid-template-columns: 1fr 2.3fr; gap: 4rem; align-items: start; }
}
/* Homepage: the other confirmed services, listed in one column in the panel beside the attic card.
   They link to another page, so the arrow points right instead of down. */
.svc-index.svc-index--stack { grid-template-columns: 1fr; border-bottom: 1px solid var(--steel-200); }
.svc-index.svc-index--stack li a { padding-block: 0.8rem; border-bottom: 0; }
.svc-index--stack .svc-index__name { font-size: 1.05rem; }
.svc-index--stack a::after { transform: translateY(-50%) rotate(-45deg); }
.svc-index--stack a:hover::after { transform: translateY(-50%) translateX(3px) rotate(-45deg); }

/* ---------- Individual service sections ---------- */
.svc { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.svc--paper { background: var(--paper); }
.svc--steel { background: var(--steel-100); }
.svc--dark { background: var(--navy-900); color: var(--steel-200); }
.svc--dark h2,
.svc--dark h3 { color: var(--white); }

.svc h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-top: 0.75rem; }
.svc h3 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.1rem;
  font-stretch: 95%;
}
.svc__lead { color: var(--steel-700); font-size: 1.12rem; }
.svc--dark .svc__lead { color: var(--steel-200); }
.svc__small { margin: 1.25rem 0 0; color: var(--steel-600); font-size: 0.95rem; }

.svc__grid { display: grid; gap: 2.25rem; }
@media (min-width: 900px) {
  .svc__grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
  .svc__grid--media-wide { grid-template-columns: 7fr 5fr; }
  .svc__grid--text-wide { grid-template-columns: 5fr 7fr; }
  .svc__grid--reverse .svc__media { order: 2; }
  .svc__grid--reverse.svc__grid--text-wide { grid-template-columns: 7fr 5fr; }
}

.svc__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (min-width: 900px) {
  .svc__media--portrait img { aspect-ratio: 4 / 5; }
}
.svc__media--wide { margin: 2.5rem 0; }
.svc__media--wide img { aspect-ratio: 16 / 10; }
@media (min-width: 768px) {
  .svc__media--wide img { aspect-ratio: 21 / 9; }
}

.svc__head { max-width: 46rem; }

/* list with short orange dashes */
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.5rem;
  color: var(--steel-700);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.8rem;
  height: 2px;
  background: var(--orange-500);
}
@media (min-width: 640px) {
  .ticks--cols { columns: 2; column-gap: 2rem; }
  .ticks--cols li { break-inside: avoid; }
}

.subcols { display: grid; gap: 1.5rem; margin-top: 1.75rem; }
@media (min-width: 640px) { .subcols { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.subcol { padding-top: 1rem; border-top: 3px solid var(--navy-900); }
.subcol h3 { margin-top: 0; }
.subcol p { margin: 0; color: var(--steel-700); }
.subcols--tight { margin: 1.5rem 0 0.25rem; }
/* crawlspace section has no photo: space between its heading and the three columns */
.svc__head + .tri-cols { margin-top: clamp(1.75rem, 4vw, 2.5rem); }

.tri-cols { display: grid; gap: 1.75rem; }
@media (min-width: 768px) { .tri-cols { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.tri-cols > div { padding-top: 1rem; border-top: 3px solid var(--navy-900); }
.tri-cols h3 { margin-top: 0; }
.tri-cols p { margin: 0; color: var(--steel-700); }

.note {
  margin: 2.5rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--steel-100);
  border-left: 4px solid var(--navy-700);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--steel-700);
}
.note p { margin: 0; }
.note strong { color: var(--navy-900); }
.note--warn { margin-top: 1.75rem; background: #fff7f0; border-left-color: var(--orange-600); }

/* "Free attic insulation estimates" box in the Attic section */
.offer {
  margin-top: 1.75rem;
  padding: 1.25rem 1.35rem 1.4rem;
  background: #fff7f0;
  border: 1px solid #f3d3bd;
  border-left: 4px solid var(--orange-600);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.offer__title {
  margin: 0 0 0.35rem;
  color: var(--navy-900);
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
}
.offer p { color: var(--steel-700); }
.offer .btn { margin-top: 0.25rem; }
@media (max-width: 479px) {
  .offer .btn { width: 100%; }
}

/* before / after pair under a service (reuses .pair from the homepage) */
.svc__pair { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.svc__pair figcaption { margin-top: 0.7rem; color: var(--steel-600); font-size: 0.95rem; }
.svc__pair .pair__img img { aspect-ratio: 16 / 10; }

/* spray foam comparison table */
.compare-wrap { margin-top: 1.75rem; overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.compare th,
.compare td {
  padding: 0.75rem 0.75rem 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
  vertical-align: top;
}
.compare thead th {
  color: var(--orange-400);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.compare tbody th { color: var(--steel-300); font-weight: 600; }
.compare td { color: var(--white); }

/* ---------- Benefits ---------- */
.svc-benefits { border-top: 1px solid var(--steel-200); }
.svc-benefits__grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) {
  .svc-benefits__grid { grid-template-columns: 3fr 2fr; gap: 5rem; align-items: start; }
}

.benefit-grid { display: grid; gap: 1.75rem; }
@media (min-width: 640px) { .benefit-grid { grid-template-columns: 1fr 1fr; gap: 2.25rem 2.5rem; } }
.benefit { padding-top: 1rem; border-top: 3px solid var(--navy-900); }
.benefit h3 { margin-bottom: 0.4rem; font-size: 1.2rem; }
.benefit p { margin: 0; color: var(--steel-700); }

.rvalue {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--steel-100);
  border-radius: var(--radius);
}
.rvalue .batt { margin: 0 0 1.25rem; }
.rvalue h3 { font-size: 1.5rem; }
.rvalue p { color: var(--steel-700); }
.rvalue p:last-child { margin-bottom: 0; }
@media (min-width: 1024px) { .rvalue { margin-top: 5.5rem; } }

/* =========================================================
   17. About page (about.html)
   ========================================================= */

/* ---------- Our story ---------- */
.story__grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .story__grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
}
.story__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
/* story text on its own, at a comfortable reading width */
@media (min-width: 900px) {
  .story__grid--text { grid-template-columns: minmax(0, 46rem); }
}
/* two white sections meet here: avoid a double gap */
.story + .approach,
.story + template + .approach { padding-top: clamp(0.5rem, 2vw, 1.5rem); }
.story__text > p:not(.eyebrow) { color: var(--steel-700); }
.story__text > p:last-child { margin-bottom: 0; }

/* story on the left, experience panel on the right */
@media (min-width: 900px) {
  .story__grid--split { grid-template-columns: 7fr 5fr; gap: clamp(3rem, 5vw, 4.5rem); align-items: start; }
  .story__grid--split .experience { margin-top: 3.4rem; }
}
.experience {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--steel-200);
  border-top: 4px solid var(--orange-500);
  border-radius: var(--radius);
}
.experience h3 { margin: 0 0 1rem; font-size: 1.3rem; }
.experience .ticks li { color: var(--steel-700); }
.experience__note {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--steel-200);
  color: var(--steel-600);
  font-size: 0.95rem;
}
.experience__note a { font-weight: 700; }

/* "Where the name comes from" — three D's, echoing the three bars in the logo */
.name-band {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--navy-800);
  border-radius: var(--radius);
  color: var(--steel-200);
}
.name-band__title {
  margin-bottom: 0.35rem;
  color: var(--white);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
}
.name-band__intro { margin-bottom: 2rem; color: var(--steel-300); }
.name-band__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.name-d {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.1rem;
  align-items: center;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.name-d__letter {
  grid-row: 1 / 3;
  color: var(--orange-500);
  font-family: var(--font-head);
  font-size: 3.4rem;
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1;
}
.name-d__name {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}
.name-d__role { color: var(--steel-300); font-size: 0.97rem; }

@media (min-width: 768px) {
  .name-band__list { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

/* ---------- Profiles (not used at the moment) ---------- */
.family { background: var(--paper); }

.profiles { display: grid; gap: 3rem; }
@media (min-width: 768px) {
  .profiles { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
  /* the second profile sits a little lower, so the two photos don't read as a matched pair of cards */
  .profile:nth-child(2) { margin-top: 4.5rem; }
}
@media (min-width: 1024px) {
  .profiles { gap: 5rem; max-width: 62rem; }
}

.profile__photo { margin-bottom: 1.5rem; }
.profile__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.profile__role {
  margin: 0 0 0.3rem;
  color: var(--orange-600);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.profile__name { margin-bottom: 0.75rem; font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
.profile > p:not(.profile__role) { color: var(--steel-700); }

.devon {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.25rem;
  align-items: center;
  max-width: 44rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-left: 4px solid var(--orange-500);
  border-radius: var(--radius);
}
/* if the photo is removed, the text takes the full width */
.devon:not(:has(.devon__photo)) { grid-template-columns: 1fr; }
.devon__photo img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
}
.devon__name { margin: 0 0 0.35rem; font-size: 1.3rem; }
.devon p:last-child { margin: 0; color: var(--steel-700); }
@media (min-width: 640px) {
  .devon { grid-template-columns: 112px 1fr; gap: 1.75rem; }
  .devon__photo img { width: 112px; height: 112px; }
}

/* ---------- Our approach ---------- */
.rows { border-top: 1px solid var(--steel-200); }
.row {
  display: grid;
  gap: 0.6rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--steel-200);
}
.row h3 { margin: 0; font-size: 1.3rem; }
.row p { margin: 0; color: var(--steel-700); font-size: 1.08rem; max-width: 40rem; }
@media (min-width: 768px) {
  .row { grid-template-columns: 2fr 3fr; gap: 3rem; padding: 2.25rem 0; }
}

/* ---------- Our work preview ---------- */
.about-work { background: var(--steel-100); }
.about-work__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.about-work__head > div { max-width: 40rem; }
.about-work__head p:last-child { margin-bottom: 0; color: var(--steel-600); font-size: 1.1rem; }
.about-work .svc__pair { margin-top: 2.5rem; }
/* About page: the gray "Our work" band flows straight into the contact box below it,
   instead of leaving a tall white gap between them */
.about-work { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.about-work + .contact { padding-top: 0; background: var(--steel-100); }

/* "More about us" button under the homepage About section */
.about__more { margin-top: 1.75rem; }

/* ---------- Simpler one-row CTA ---------- */
.cta--inline .cta__actions { margin-top: 0; }
.cta--inline .cta__text > p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .cta--inline { grid-template-columns: 1fr auto; gap: 3rem; }
  /* three buttons: "Request an Estimate" on top, the two Call buttons side by side below,
     so the heading keeps its room */
  .cta--inline .cta__actions { max-width: 22rem; }
}

/* =========================================================
   18. Our Work page (work.html)
   ========================================================= */

/* Things hidden by the filter (or by script.js) stay hidden even if they have a display style */
.filters[hidden],
.project[hidden],
.photo[hidden],
.projects__empty[hidden],
.more-photos[hidden] { display: none; }

/* ---------- Intro ---------- */
.work-intro { padding-bottom: clamp(2rem, 4vw, 3rem); }
.work-intro__grid { display: grid; gap: 2rem; }
.work-intro__lead { max-width: 38rem; margin-bottom: 0; color: var(--steel-700); font-size: 1.12rem; }
.work-intro__lead + .work-intro__lead { margin-top: 0.85rem; }
.work-note {
  padding: 1.25rem 1.4rem;
  background: var(--paper);
  border-left: 4px solid var(--orange-500);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.work-note h3 { margin-bottom: 0.4rem; font-size: 1.05rem; }
.work-note p { margin: 0; color: var(--steel-700); }
@media (min-width: 900px) {
  .work-intro__grid { grid-template-columns: 3fr 2fr; gap: 4rem; align-items: end; }
}

/* small "Before Triple D" marker */
.project__flag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--steel-400);
  border-radius: 2px;
  color: var(--steel-700);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
  vertical-align: 0.1em;
  white-space: nowrap;
}
.work-note .project__flag { margin-left: 0; }

/* ---------- Filter buttons ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  padding: 1.5rem 0;
  border-block: 1px solid var(--steel-200);
}
.filters__label {
  margin-right: 0.5rem;
  color: var(--steel-600);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.filter {
  padding: 0.5rem 0.95rem;
  background: var(--white);
  border: 1px solid var(--steel-300);
  border-radius: var(--radius);
  color: var(--navy-900);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.filter:hover { border-color: var(--navy-800); }
.filter[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }

.projects__empty { color: var(--steel-600); font-size: 1.1rem; }

/* ---------- Projects ---------- */
.project-list { display: grid; gap: clamp(3.5rem, 8vw, 6rem); }

.project { display: grid; gap: 1.5rem; }
.project .pair__img img { aspect-ratio: 4 / 3; }
.pair__label { pointer-events: none; } /* taps go through the label to the photo */

.project__info { position: relative; padding-top: 1.25rem; border-top: 3px solid var(--navy-900); }
.project__num {
  position: absolute;
  top: 1rem;
  right: 0;
  color: var(--steel-200);
  font-family: var(--font-head);
  font-size: 3rem;
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1;
}
.project__cat {
  margin: 0 0 0.5rem;
  padding-right: 3.5rem;
  color: var(--orange-600);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.project__title { margin-bottom: 1rem; padding-right: 3.5rem; font-size: clamp(1.4rem, 2.4vw, 1.75rem); }

.project__facts { margin: 0 0 1rem; }
.project__facts > div {
  display: flex;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--steel-200);
}
.project__facts dt {
  flex: 0 0 6.5rem;
  color: var(--steel-600);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 2.1;
  text-transform: uppercase;
}
.project__facts dd { margin: 0; }
.project__desc { margin: 0; color: var(--steel-700); }

/* a strip of extra photos from the same job */
.project__extras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.project__extras img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (min-width: 960px) {
  /* photos on one side, details on the other; --flip swaps the sides */
  .project { grid-template-columns: 7fr 4fr; gap: 1.5rem 3.5rem; align-items: start; }
  .project--flip { grid-template-columns: 4fr 7fr; }
  .project--flip .project__photos { order: 2; }

  /* the first project is shown bigger, with its details in a row underneath */
  .project--feature { grid-template-columns: 1fr; }
  .project--feature .project__info {
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 2.5rem;
  }
  .project--feature .project__title,
  .project--feature .project__facts { margin: 0; }
  .project--feature .project__cat,
  .project--feature .project__title { padding-right: 0; }
  .project--feature .project__num { display: none; }
  .project--feature .project__facts > div:first-child { padding-top: 0; }
}

/* ---------- Single photos ---------- */
.more-photos { background: var(--steel-100); }
.photo-grid { display: grid; gap: 1.75rem 1.25rem; }
.photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.photo figcaption { margin-top: 0.6rem; color: var(--steel-600); font-size: 0.95rem; }
@media (min-width: 600px) {
  .photo-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  /* three columns; "wide" photos take up two of them. Photos in a row share the same height. */
  .photo-grid { grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; } /* dense: no gaps when filtered */
  .photo--wide { grid-column: span 2; }
  .photo img { height: 19rem; aspect-ratio: auto; }
}

/* ---------- Photos that open larger when tapped ---------- */
.zoom {
  position: relative;
  display: block;
  border-radius: var(--radius);
  cursor: zoom-in;
}
/* small magnifier badge */
.zoom::after {
  content: "";
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--navy-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 1.1rem no-repeat;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.zoom:hover::after,
.zoom:focus-visible::after { opacity: 0.92; transform: none; }
@media (hover: none) {
  .zoom::after { width: 2rem; height: 2rem; opacity: 0.85; transform: none; }
}
.project__extras .zoom::after { right: 0.4rem; bottom: 0.4rem; width: 1.9rem; height: 1.9rem; background-size: 0.95rem; }

/* ---------- Large photo viewer (built by script.js) ---------- */
.lightbox {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(9, 17, 29, 0.96);
  color: var(--steel-200);
}
/* Fill the visible screen on phones too (dvh leaves room for Safari's and Chrome's toolbars).
   Sideways swipes go to script.js; up/down and pinch-zoom stay with the browser. */
.lightbox {
  height: 100vh;
  height: 100dvh;
  max-height: none;
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom;
}
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox::backdrop { background: rgba(9, 17, 29, 0.6); }
html.lightbox-open,
html.lightbox-open body { overflow: hidden; }

.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 4.25rem var(--gutter) 0;
}
/* Spinner while a big photo downloads */
.lightbox.is-loading .lightbox__img { opacity: 0; }
.lightbox.is-loading .lightbox__stage::after {
  content: "";
  position: absolute;
  top: calc(50% + 2.1rem);
  left: 50%;
  width: 2.5rem;
  height: 2.5rem;
  margin: -1.25rem 0 0 -1.25rem;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--orange-400);
  border-radius: 50%;
  animation: lightbox-spin 0.8s linear infinite;
}
@keyframes lightbox-spin { to { transform: rotate(360deg); } }
.lightbox__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 10rem);
  max-height: calc(100dvh - 10rem);
  border-radius: var(--radius);
  object-fit: contain;
}
.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem var(--gutter) 1.25rem;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); /* clear the iPhone home bar */
}
.lightbox__caption { flex: 1; margin: 0; text-align: center; font-size: 0.98rem; }
.lightbox__count {
  display: block;
  color: var(--orange-400);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.lightbox__btn {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.lightbox__btn:hover { background: var(--orange-600); border-color: var(--orange-600); }
.lightbox__btn svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__btn[hidden] { visibility: hidden; display: grid; }
.lightbox__close { position: absolute; top: 0.9rem; right: var(--gutter); }

/* =========================================================
   19. Real photos: one short note per page about where they come from
   (no credit under every photo).
   ========================================================= */
.svc__media { position: relative; }
.photo-note {
  margin: 1.5rem 0 0;
  color: var(--steel-600);
  font-size: 0.95rem;
}

/* =========================================================
   20. Contact page (contact.html)
   ========================================================= */
:root {
  --field-border: #7a8694;   /* dark enough to see on white (3.7:1) */
  --error: #b42318;
  --error-bg: #fff6f5;
  --success: #1e6b3a;
}

/* Icons drawn with lines instead of a solid shape (e.g. the envelope) */
.icon--line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Call / Email cards in the page header ---------- */
.reach {
  display: grid;
  gap: 0.8rem;
  max-width: 50rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .reach { grid-template-columns: 1fr 1fr; }
  .reach__card--wide { grid-column: 1 / -1; } /* email card under the two call cards */
}

.reach__card {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 5.5rem;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 4px solid var(--orange-500);
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.reach__card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  border-left-color: var(--orange-400);
  color: var(--white);
}
.reach__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background: var(--orange-600);
  border-radius: 50%;
  font-size: 1.3rem;
}
.reach__text { min-width: 0; }
.reach__label {
  display: block;
  color: var(--orange-400);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.reach__value {
  display: block;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.reach__hint { display: block; color: var(--steel-300); font-size: 0.95rem; line-height: 1.4; }
.reach .ph { background: rgba(255, 255, 255, 0.12); }

/* ---------- Layout: form + side column ---------- */
.contact-main { background: var(--paper); }
.contact-layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) {
  .contact-layout { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
}

/* ---------- Form panel ---------- */
.form-panel {
  padding: clamp(1.25rem, 4.5vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-top: 4px solid var(--orange-500);
  border-radius: var(--radius);
}
.form-panel h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.form-panel__intro { color: var(--steel-600); }

.form-offline {
  margin: 0 0 1.75rem;
  padding: 0.9rem 1.1rem;
  background: #fff7f0;
  border: 1px solid #f3d3bd;
  border-left: 4px solid var(--orange-600);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #6b2d0b;
  font-size: 1rem;
}
.form-offline a { color: #82360c; font-weight: 600; white-space: nowrap; }
.form-offline a:hover { color: var(--navy-900); }
.form-offline[hidden] { display: none; }

/* Groups of fields */
.fset { min-width: 0; margin: 0; padding: 0; border: 0; }
.fset + .fset { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--steel-200); }
/* float + full width keeps the legend inside the box instead of on its top border */
.fset > legend { float: left; width: 100%; }
.fset > legend + * { clear: both; }
.fset__legend {
  margin-bottom: 0.9rem;
  padding: 0;
  color: var(--navy-900);
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
}
.fset__hint { margin: 0 0 1rem; color: var(--steel-600); }
.fset__legend:has(+ .fset__hint) { margin-bottom: 0.3rem; }
.fset .fset--inner { margin: 1.25rem 0 0; padding: 0; border: 0; }
.fset--inner legend { padding: 0; }

.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field + .field,
.field-row + .field,
.fset--inner + .field { margin-top: 1.25rem; }
.field-row > .field { margin-top: 0; } /* side-by-side boxes line up */

.field__label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--navy-900);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}
.field__opt { color: var(--steel-600); font-size: 0.95rem; font-weight: 400; }
.field__hint { margin: -0.15rem 0 0.5rem; color: var(--steel-600); font-size: 0.97rem; line-height: 1.45; }

/* Text boxes, dropdown and message box. 17px text stops iPhones zooming in. */
.field__input {
  display: block;
  width: 100%;
  min-height: 3.125rem;
  padding: 0.7rem 0.85rem;
  background-color: var(--white);
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius);
  color: #23303e;
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field__input:hover { border-color: var(--steel-700); }
.field__input:focus { border-color: var(--navy-800); outline: none; box-shadow: 0 0 0 3px rgba(232, 119, 46, 0.45); }
.field__textarea { min-height: 9.5rem; resize: vertical; }
.field__select {
  padding-right: 2.75rem;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2315263d' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

/* Fields that need fixing */
.field__input[aria-invalid="true"] { border-color: var(--error); background-color: var(--error-bg); }
.field__input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.3); }
.field__error {
  display: flex;
  gap: 0.45rem;
  margin: 0.45rem 0 0;
  color: var(--error);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}
.field__error::before {
  content: "!";
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.08rem;
  background: var(--error);
  border-radius: 50%;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}
.field__error[hidden] { display: none; }
.field__error--group { margin-top: 0.9rem; }

/* Big tappable radio buttons */
.choice-grid { display: grid; gap: 0.6rem; }
@media (min-width: 480px) {
  .choice-grid--2 { grid-template-columns: 1fr 1fr; }
  .choice-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.choice {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.25rem;
  padding: 0.7rem 0.9rem;
  background: var(--white);
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius);
  color: var(--navy-900);
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.choice:hover { border-color: var(--navy-800); }
.choice input {
  display: grid;
  place-content: center;
  flex-shrink: 0;
  width: 1.3rem;
  height: 1.3rem;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: var(--white);
  border: 2px solid var(--steel-600);
  border-radius: 50%;
  cursor: pointer;
}
.choice input::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  background: var(--orange-600);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.12s ease;
}
.choice input:checked { border-color: var(--orange-600); }
.choice input:checked::before { transform: scale(1); }
.choice:has(input:checked) { background: #fff6ef; border-color: var(--orange-600); box-shadow: inset 0 0 0 1px var(--orange-600); }
.choice:has(input:focus-visible) { outline: 3px solid var(--orange-500); outline-offset: 2px; }
@supports selector(:has(*)) {
  .choice input:focus-visible { outline: none; }
}

/* Cloudflare Turnstile security check (only shown once the form is switched on) */
.form-turnstile { margin-top: 2rem; min-height: 65px; }
.form-turnstile[hidden] { display: none; }
#error-turnstile { margin-top: 0.6rem; }

/* Spam trap: moved off screen, never seen by people */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Send button + privacy line */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--steel-200);
}
.form-privacy { flex: 1 1 16rem; margin: 0; color: var(--steel-600); font-size: 0.97rem; }
.form-submit { min-width: 12rem; min-height: 3.25rem; }
.form-submit[aria-disabled="true"] { opacity: 0.7; cursor: progress; }
@media (max-width: 479px) {
  .form-submit { width: 100%; }
}

/* "Please fix these" box at the top of the form */
.form-summary {
  margin: 0 0 1.75rem;
  padding: 1rem 1.25rem;
  background: var(--error-bg);
  border: 2px solid var(--error);
  border-radius: var(--radius);
}
.form-summary[hidden] { display: none; }
.form-summary:focus { outline: 3px solid var(--orange-500); outline-offset: 3px; }
.form-summary__title {
  margin: 0 0 0.4rem;
  color: var(--error);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-stretch: 100%;
}
.form-summary ul { margin: 0; padding-left: 1.2rem; }
.form-summary li + li { margin-top: 0.2rem; }
.form-summary a { color: var(--error); font-weight: 600; }

/* Messages after pressing Send */
.form-status { margin-top: 1.5rem; }
.form-status:empty { display: none; }
.status-box {
  padding: 1.25rem 1.35rem;
  background: #fff7f0;
  border: 1px solid var(--steel-200);
  border-left: 5px solid var(--orange-600);
  border-radius: var(--radius);
}
.status-box--error { background: var(--error-bg); border-left-color: var(--error); }
.status-box--success { background: #f1f8f3; border-left-color: var(--success); }
.status-box__title { margin: 0 0 0.5rem; font-size: 1.2rem; }
.status-box p { margin: 0; color: var(--steel-700); }
.status-box__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1rem; }
@media (max-width: 479px) {
  .status-box__actions .btn { width: 100%; }
}

/* ---------- Side column ---------- */
.contact-aside { display: grid; gap: 1.25rem; }
@media (min-width: 640px) and (max-width: 1023px) {
  .contact-aside { grid-template-columns: 1fr 1fr; }
  .info-card--dark { grid-column: 1 / -1; }
}
.info-card {
  padding: clamp(1.25rem, 4vw, 1.75rem);
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
}
.info-card p { color: var(--steel-700); }
.info-card p:last-child { margin-bottom: 0; }
.info-card__title { margin-bottom: 0.8rem; font-size: 1.3rem; }
.info-card--dark { background: var(--navy-800); border-color: var(--navy-800); color: var(--steel-200); }
.info-card--dark .info-card__title { margin-bottom: 1.25rem; color: var(--white); }
.info-card--dark .contact-list { padding-left: 0; border-left: 0; } /* undo the homepage box's side line */

/* Business hours table */
.hours { margin: 0; }
.hours__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.15rem 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--steel-200);
}
.hours__row:first-child { padding-top: 0; }
.hours__row:last-child { border-bottom: 0; }
.hours dt { color: var(--navy-900); font-weight: 700; }
.hours dd { margin: 0; color: var(--steel-700); text-align: right; }
.hours__after { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--steel-200); }
.hours__after p { margin: 0 0 0.6rem; font-size: 0.98rem; }
.hours__after p:last-child { margin-bottom: 0; }
.hours__after[hidden],
[data-form-online][hidden] { display: none; }

.next-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.next-steps li {
  position: relative;
  padding: 0.55rem 0 0.55rem 2.6rem;
  color: var(--steel-700);
  counter-increment: step;
}
.next-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.55rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--navy-800);
  border-radius: 50%;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
}

/* Small "use the form" link inside the dark contact boxes on Home and Services */
.cta__more { margin: 1.25rem 0 0; color: var(--steel-300); font-size: 1rem; }
.cta__more a { color: var(--orange-400); font-weight: 700; }
.cta__more a:hover { color: var(--white); }
