/* ==========================================================================
   Ev-Air-Tight Roofing Services — site styles
   Palette: black / red / white (red sampled from the logo)
   Type: Archivo Variable (self-hosted, SIL OFL) — condensed heavy for
         headings, normal width for body. One family, two widths.
   ========================================================================== */

@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Archivo Variable";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-wdth-italic.woff2") format("woff2-variations");
}

:root {
  --black: #000000;
  --ink: #1c1c1c;
  --gray-700: #555555;
  --gray-500: #7a7a7a;
  --gray-300: #d4d4d4;
  --gray-100: #f2f2f2;
  --white: #ffffff;
  --red: #ed3037;
  --red-dark: #b8202a;

  --font: "Archivo Variable", "Archivo", "Arial Narrow", Arial, Helvetica, sans-serif;
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(56px, 8vw, 104px);
  --measure: 62ch;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-stretch: 100%;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red-dark); }
a:hover { color: var(--red); }

h1, h2, h3, h4 {
  font-stretch: 68%;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--black);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 7.5vw, 6.25rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: clamp(1.375rem, 2vw, 1.625rem); font-stretch: 78%; line-height: 1.05; }
h4 { font-size: 1.125rem; font-stretch: 88%; line-height: 1.2; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.2em; }
li { margin-bottom: 0.35em; }

.lede { font-size: 1.25rem; line-height: 1.45; font-stretch: 96%; color: var(--gray-700); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-tight { padding-top: calc(var(--section-y) * 0.6); padding-bottom: calc(var(--section-y) * 0.6); }
.band-gray { background: var(--gray-100); }
.band-black { background: var(--black); color: var(--white); }
.band-black h1, .band-black h2, .band-black h3, .band-black h4 { color: var(--white); }
.band-black p { color: rgba(255, 255, 255, 0.82); }
.band-red { background: var(--red); color: var(--white); }
.band-red h2, .band-red h3 { color: var(--white); }
.band-red p { color: rgba(255, 255, 255, 0.92); }

.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin-bottom: 0.3em; }
.section-head p { margin: 0; }

/* Visually-hidden helper + skip link */
.sr-only {
  position: absolute; 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: -60px; z-index: 100;
  background: var(--black); color: var(--white); padding: 10px 14px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* Placeholder text that the client needs to replace */
.ph { opacity: 0.72; text-decoration: underline dashed; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-stretch: 88%;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.01em;
  padding: 15px 22px;
  border: 2px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn-red { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-black { background: var(--black); border-color: var(--black); color: var(--white); }
.btn-black:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-outline-white { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--black); }
.btn-white { background: var(--white); border-color: var(--white); color: var(--black); }
.btn-white:hover { background: var(--black); border-color: var(--black); color: var(--white); }

.text-link {
  font-weight: 700;
  font-stretch: 90%;
  color: var(--black);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 1px;
}
.text-link:hover { color: var(--red); }

/* --------------------------------------------------------------------------
   Fixed top block: contact bar + header.
   Transparent over the hero / page head; white once the page is scrolled.
   -------------------------------------------------------------------------- */
.site-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background-color 260ms ease, box-shadow 260ms ease;
}
.site-top.is-scrolled {
  background: var(--white);
  box-shadow: 0 1px 0 var(--gray-300);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-left: clamp(20px, 3vw, 44px);
  padding-right: clamp(20px, 3vw, 44px);
}

.topbar {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-stretch: 92%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  max-height: 60px;
  overflow: hidden;
  transition: max-height 240ms ease, opacity 200ms ease;
}
.topbar .bar { min-height: 40px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar-contact { display: flex; gap: 28px; }
.is-scrolled .topbar { max-height: 0; opacity: 0; border-bottom-color: transparent; }

.site-header .bar { height: 124px; transition: height 260ms ease; }
.is-scrolled .site-header .bar { height: 92px; }

.logo { display: block; flex: 0 0 auto; }
.logo-plate {
  display: block;
  background: var(--white);
  padding: 5px 7px;
  border-radius: 3px;
}
.logo img { height: 100px; width: auto; transition: height 260ms ease; }
.is-scrolled .logo img { height: 72px; }

/* Primary navigation */
.nav { height: 100%; }
.nav > ul { display: flex; align-items: center; height: 100%; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav > ul > li { position: relative; display: flex; align-items: center; height: 100%; }
.nav > ul > li > a {
  display: inline-block;
  font-stretch: 88%;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--white);
  text-decoration: none;
  padding: 6px 12px;
  border-bottom: 2px solid transparent;
  transition: color 260ms ease;
}
.nav > ul > li:not(.nav-cta) > a:hover { border-bottom-color: rgba(255, 255, 255, 0.5); }
.nav > ul > li > a[aria-current="page"] { border-bottom-color: var(--red); }
.is-scrolled .nav > ul > li > a { color: var(--black); }
.is-scrolled .nav > ul > li:not(.nav-cta) > a:hover { border-bottom-color: var(--gray-300); }
.is-scrolled .nav > ul > li > a[aria-current="page"] { border-bottom-color: var(--red); }
.nav .nav-cta { margin-left: 14px; }
.nav .nav-cta > a.btn { padding: 13px 18px; border-bottom: 2px solid var(--red); color: var(--white); }
.nav .nav-cta > a.btn:hover { border-bottom-color: var(--red-dark); }

/* Dropdowns */
.sub-toggle {
  background: none;
  border: 0;
  padding: 6px 4px;
  margin-left: -8px;
  cursor: pointer;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  transition: color 260ms ease, transform 200ms ease;
}
.sub-toggle svg { width: 12px; height: 12px; display: block; }
.is-scrolled .sub-toggle { color: var(--black); }
.has-sub:hover .sub-toggle, .has-sub:focus-within .sub-toggle, .has-sub.open .sub-toggle { transform: rotate(180deg); }

.sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-top: 3px solid var(--red);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 200ms;
  z-index: 60;
}
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.sub li { margin: 0; }
.sub a {
  display: block;
  padding: 10px 18px 10px 16px;
  color: var(--black);
  text-decoration: none;
  font-stretch: 92%;
  font-weight: 600;
  font-size: 1rem;
  border-left: 3px solid transparent;
}
.sub a:hover { border-left-color: var(--red); background: var(--gray-100); color: var(--black); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--white);
  border-radius: 2px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: border-color 260ms ease;
}
.is-scrolled .nav-toggle, .nav-open .nav-toggle { border-color: var(--black); }
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--white);
  transition: transform 160ms ease, opacity 160ms ease, background-color 260ms ease;
}
.is-scrolled .nav-toggle span, .nav-open .nav-toggle span { background: var(--black); }
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Anchor targets sit below the fixed header */
[id] { scroll-margin-top: 120px; }

/* --------------------------------------------------------------------------
   Hero (home) — full viewport, the fixed header floats over it
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 176px;
  padding-bottom: 72px;
}
.hero-media {
  position: absolute;
  inset: -12% 0 -12% 0;             /* extra height so the parallax never shows an edge */
  background-color: #262626;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 26px);
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero-media video, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 32%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.35) 100%);
}
.hero-media-label {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 1;
  font-size: 0.8125rem;
  font-stretch: 90%;
  color: rgba(255, 255, 255, 0.5);
}
.hero .container { position: relative; z-index: 1; width: 100%; }
.hero-mark { width: 72px; height: 6px; background: var(--red); margin-bottom: 28px; }
.hero h1 { color: var(--white); max-width: 15ch; margin-bottom: 0.35em; }
.hero p { font-size: 1.1875rem; line-height: 1.5; max-width: 50ch; color: rgba(255, 255, 255, 0.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Inner page header — same treatment, shorter */
.page-head { background: var(--black); color: var(--white); position: relative; }
.page-head .container { padding-top: clamp(210px, 22vw, 260px); padding-bottom: clamp(48px, 7vw, 88px); }
.page-head h1 { color: var(--white); font-size: clamp(2.5rem, 5.5vw, 4.5rem); margin-bottom: 0.3em; max-width: 18ch; }
.page-head p { font-size: 1.1875rem; color: rgba(255, 255, 255, 0.82); max-width: 56ch; }
.page-head .hero-mark { margin-bottom: 22px; }

/* --------------------------------------------------------------------------
   Motion. One orchestrated entrance on the hero, then content reveals as it
   scrolls into view. Everything is visible with no JS, and static when the
   visitor prefers reduced motion.
   -------------------------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.js .hero .hero-mark, .js .page-head .hero-mark { transform-origin: left center; animation: grow 600ms cubic-bezier(0.2, 0.7, 0.2, 1) 150ms both; }
.js .hero h1, .js .page-head h1 { animation: rise 800ms cubic-bezier(0.2, 0.7, 0.2, 1) 280ms both; }
.js .hero p, .js .page-head p { animation: rise 800ms cubic-bezier(0.2, 0.7, 0.2, 1) 420ms both; }
.js .hero-actions { animation: rise 800ms cubic-bezier(0.2, 0.7, 0.2, 1) 560ms both; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

.js [data-reveal="wipe"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1000ms cubic-bezier(0.77, 0, 0.18, 1);
}
.js [data-reveal="wipe"].is-visible { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  .js .hero .hero-mark, .js .page-head .hero-mark, .js .hero h1, .js .page-head h1,
  .js .hero p, .js .page-head p, .js .hero-actions { animation: none; }
  .js [data-reveal], .js [data-reveal="wipe"] { opacity: 1; transform: none; clip-path: none; transition: none; }
  .hero-media { transform: none !important; }
}

/* --------------------------------------------------------------------------
   Services band (home) — three parallel offerings, separated by rules
   -------------------------------------------------------------------------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.svc {
  padding: 8px 36px 8px 36px;
  border-left: 1px solid var(--gray-300);
}
.svc:first-child { padding-left: 0; border-left: 0; }
.svc:last-child { padding-right: 0; }
.svc h3 { margin-bottom: 14px; }
.svc p { margin-bottom: 18px; }
.systems-line {
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 24px;
  border-top: 2px solid var(--black);
  font-stretch: 94%;
  color: var(--gray-700);
  max-width: none;
}
.systems-line strong { color: var(--black); font-weight: 700; }

/* --------------------------------------------------------------------------
   Two-column split (why us, contact, service sections)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.split-even { grid-template-columns: 1fr 1fr; }
.split-rev > :first-child { order: 2; }
.split-rev > :last-child { order: 1; }

/* --------------------------------------------------------------------------
   Photo placeholders (swap for real photos)
   -------------------------------------------------------------------------- */
.photo {
  position: relative;
  background-color: #2b2b2b;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 2px, transparent 2px 24px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
}
.photo-wide { aspect-ratio: 16 / 9; }
.photo-portrait { aspect-ratio: 4 / 5; }
.photo-square { aspect-ratio: 1 / 1; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
#replacement .photo img { object-position: center top; }
.photo span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  font-size: 0.8125rem;
  font-stretch: 90%;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   Portfolio grids
   -------------------------------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.work-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px 20px; }
.work figcaption { margin-top: 10px; font-size: 0.9375rem; line-height: 1.4; }
.work figcaption strong { display: block; font-stretch: 84%; font-weight: 700; font-size: 1.0625rem; }
.band-black .work figcaption { color: rgba(255, 255, 255, 0.78); }
.band-black .work figcaption strong { color: var(--white); }
.work { margin: 0; }
.band-actions { margin-top: clamp(28px, 4vw, 44px); }

/* --------------------------------------------------------------------------
   Coming soon (portfolio / recent work, until photos and video are shot)
   -------------------------------------------------------------------------- */
.coming-soon { padding-top: 8px; }
.coming-soon .hero-mark { margin-bottom: 22px; }
.coming-soon-title {
  font-stretch: 68%;
  font-weight: 800;
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0 0 0.2em;
  max-width: none;
}
.band-black .coming-soon-title { color: var(--white); }
.coming-soon p:not(.coming-soon-title) { font-size: 1.125rem; }

/* --------------------------------------------------------------------------
   Definition list (roofing systems)
   -------------------------------------------------------------------------- */
.systems {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(32px, 5vw, 64px);
  margin: 0;
}
.systems div {
  padding: 18px 0;
  border-top: 1px solid var(--gray-300);
}
.systems dt { font-stretch: 80%; font-weight: 800; font-size: 1.25rem; line-height: 1.1; margin-bottom: 4px; }
.systems dd { margin: 0; color: var(--gray-700); max-width: var(--measure); }

/* --------------------------------------------------------------------------
   Process steps (a real sequence, so numbered)
   -------------------------------------------------------------------------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.steps li {
  counter-increment: step;
  margin: 0;
  padding: 20px 28px 8px 0;
  border-top: 2px solid var(--black);
  margin-right: 24px;
}
.steps li:last-child { margin-right: 0; }
.steps li::before {
  content: counter(step);
  display: block;
  font-stretch: 68%;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--red);
  margin-bottom: 12px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--gray-700); font-size: 1rem; }

/* --------------------------------------------------------------------------
   Feature list with rules
   -------------------------------------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li {
  padding: 10px 0 10px 22px;
  border-top: 1px solid var(--gray-300);
  margin: 0;
  position: relative;
}
.checklist li:last-child { border-bottom: 1px solid var(--gray-300); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 10px;
  height: 3px;
  background: var(--red);
}

/* Service detail sections on the services page */
.service-block { padding-top: var(--section-y); padding-bottom: var(--section-y); border-top: 1px solid var(--gray-300); }
.service-block:first-of-type { border-top: 0; }
.service-block h2 { margin-bottom: 0.4em; }

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}
.team-grid-4 { grid-template-columns: repeat(4, 1fr); }
.team-grid-lead { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.team-grid-lead .person h3 { font-size: 1.625rem; }
.team-grid-5 { grid-template-columns: repeat(5, 1fr); gap: 28px 20px; }
.team-grid-5 .person h3 { font-size: 1.1875rem; }
.team-grid-5 .person .role { font-size: 0.9375rem; }
.person { margin: 0; }
.person .photo { aspect-ratio: 4 / 5; margin-bottom: 14px; }
.person h3 { font-size: 1.375rem; margin-bottom: 2px; }
.person .role { font-stretch: 92%; color: var(--gray-700); margin-bottom: 8px; font-weight: 600; }
.person p { font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   Partners row
   -------------------------------------------------------------------------- */
.partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px 32px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.partners li { margin: 0; display: flex; align-items: center; justify-content: center; height: 64px; }
.partners img { max-height: 60px; max-width: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.band-partners { background: var(--white); border-top: 1px solid var(--gray-300); }
.partners-note { font-size: 0.875rem; color: var(--gray-500); margin-top: 20px; }

/* --------------------------------------------------------------------------
   Quote
   -------------------------------------------------------------------------- */
.quote { margin: 0; max-width: 760px; }
.quote p {
  font-stretch: 72%;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--black);
  max-width: none;
}
.quote footer { margin-top: 18px; font-stretch: 92%; color: var(--gray-700); }

/* --------------------------------------------------------------------------
   FAQ accordion (native details/summary)
   -------------------------------------------------------------------------- */
.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--gray-300); }
.faq details:last-child { border-bottom: 1px solid var(--gray-300); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 44px 20px 0;
  font-stretch: 80%;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--black);
  transform: translateY(-50%);
}
.faq summary::after { transform: translateY(-50%) rotate(90deg); transition: transform 140ms ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(0deg); }
.faq details[open] summary { color: var(--red-dark); }
.faq details[open] summary::before, .faq details[open] summary::after { background: var(--red-dark); }
.faq .answer { padding: 0 0 22px; color: var(--gray-700); }
.faq .answer p { max-width: 68ch; }

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */
.legal { max-width: 760px; }
.legal .legal-meta { font-size: 0.9375rem; color: var(--gray-500); margin-bottom: 28px; }
.legal h2 { font-size: 1.5rem; font-stretch: 78%; margin: 40px 0 10px; }
.legal h3 { font-size: 1.0625rem; font-stretch: 92%; margin: 18px 0 6px; }
.legal p, .legal li { max-width: none; }
.legal ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.legal li { margin-bottom: 0.5em; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-details { display: grid; gap: 22px; }
.contact-details div { border-top: 1px solid var(--gray-300); padding-top: 14px; }
.contact-details h3 { font-size: 1.125rem; font-stretch: 88%; margin-bottom: 6px; }
.contact-details a { color: var(--black); text-decoration: none; font-weight: 600; }
.contact-details a:hover { color: var(--red); }
.contact-details .big { font-stretch: 76%; font-weight: 800; font-size: 1.75rem; line-height: 1; }
.map { margin-top: 32px; }
.map iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--gray-100); }

.form { display: grid; gap: 18px; }
.form-fields { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-stretch: 90%; font-weight: 600; font-size: 0.9375rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 2px;
  padding: 12px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--black); outline: 2px solid var(--black); outline-offset: 0; }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.875rem; color: var(--gray-500); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--red-dark); font-weight: 600; }
.form-error a { color: inherit; }
.form-success {
  display: none;
  border: 2px solid var(--black);
  border-left: 8px solid var(--red);
  padding: 18px 20px;
}
.form-success h3 { margin-bottom: 4px; }
.form.is-sent .form-success { display: block; }
.form.is-sent .form-fields { display: none; }

.leak-note {
  border: 2px solid var(--black);
  border-left: 8px solid var(--red);
  padding: 16px 20px;
  margin-top: 28px;
}
.leak-note strong { font-stretch: 80%; font-weight: 800; font-size: 1.25rem; display: block; margin-bottom: 4px; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px 48px;
  align-items: center;
}
.cta h2 { margin-bottom: 0.25em; }
.cta p { margin: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--black); color: rgba(255, 255, 255, 0.78); }
.site-footer .container { padding-top: 64px; padding-bottom: 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.footer-brand img { height: 120px; width: auto; background: var(--white); padding: 8px; border-radius: 2px; margin-bottom: 18px; }
.footer-brand p { color: rgba(255, 255, 255, 0.7); font-size: 0.9375rem; max-width: 34ch; }
.site-footer h4 { color: var(--white); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; font-size: 0.9375rem; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-contact li { font-size: 0.9375rem; }
.footer-hours { margin-top: 14px; color: rgba(255, 255, 255, 0.7); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 22px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.6); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
  .team-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .team-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .site-header .bar { height: 90px; }
  .is-scrolled .site-header .bar { height: 76px; }
  .logo img { height: 70px; }
  .is-scrolled .logo img { height: 58px; }
  .nav-toggle { display: block; }
  .site-top.nav-open { background: var(--white); box-shadow: 0 1px 0 var(--gray-300); }
  .site-top.nav-open .topbar { max-height: 0; opacity: 0; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: auto;
    background: var(--white);
    border-bottom: 1px solid var(--gray-300);
    display: none;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }
  .nav-open .nav { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; height: auto; gap: 0; padding: 6px clamp(20px, 3vw, 44px) 20px; }
  .nav > ul > li { display: block; height: auto; border-top: 1px solid var(--gray-300); }
  .nav > ul > li:first-child { border-top: 0; }
  .nav > ul > li.has-sub { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .nav > ul > li > a { display: block; padding: 14px 0; border-bottom: 0; font-size: 1.125rem; color: var(--black); }
  .nav > ul > li > a[aria-current="page"] { color: var(--red-dark); }
  .sub-toggle { color: var(--black); margin: 0; padding: 12px 6px 12px 16px; transform: none; }
  .has-sub:hover .sub-toggle, .has-sub:focus-within .sub-toggle { transform: none; }
  .has-sub.open .sub-toggle { transform: rotate(180deg); }
  .sub {
    grid-column: 1 / -1;
    position: static;
    min-width: 0;
    border: 0;
    border-top: 0;
    padding: 0 0 8px 12px;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
  .has-sub.open .sub { display: block; }
  .sub a { padding: 9px 0 9px 12px; font-size: 1rem; }
  .nav .nav-cta { margin: 14px 0 0; }
  .nav .nav-cta > a.btn { display: block; text-align: center; }

  .topbar .bar { min-height: 0; padding-top: 8px; padding-bottom: 8px; }
  .topbar-tag { display: none; }
  .topbar-contact { gap: 18px; flex-wrap: wrap; }
  .hero { padding-top: 132px; }
  .page-head .container { padding-top: 165px; }
  [id] { scroll-margin-top: 90px; }

  .svc-grid { grid-template-columns: 1fr; }
  .svc { padding: 28px 0; border-left: 0; border-top: 1px solid var(--gray-300); }
  .svc:first-child { border-top: 0; padding-top: 0; }

  .split, .split-even { grid-template-columns: 1fr; }
  .photo-portrait { aspect-ratio: 4 / 3; }
  .split-rev > :first-child { order: 1; }
  .split-rev > :last-child { order: 2; }

  .systems { grid-template-columns: 1fr; }
  .team-grid, .team-grid-4, .team-grid-5 { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .team-grid-lead { max-width: none; }
  .work-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cta .container { grid-template-columns: 1fr; }
  .cta .btn { justify-self: start; }
  .form-row { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(3, 1fr); gap: 20px 24px; }
  .partners li { height: 52px; }
  .partners img { max-height: 48px; }
}

@media (max-width: 520px) {
  .work-grid, .work-grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { margin-right: 0; padding-right: 0; }
  .team-grid, .team-grid-4 { grid-template-columns: 1fr; }
  .team-grid-lead { grid-template-columns: 1fr; }
  .team-grid-5 { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .cta .btn { justify-self: stretch; width: 100%; text-align: center; }
}

/* publish copy: services page without photos */
.service-block .checklist { margin-top: 8px; }
@media (max-width: 860px) { .service-block .checklist { margin-top: 0; } }
