:root {
  --color-primary: #0c1a3c;
  --color-primary-light: #18305f;
  --color-primary-dark: #060f24;
  --color-accent: #ffb400;
  --color-accent-dark: #d99a00;
  --color-accent2: #e20613;
  --color-ink: #0b0b0c;
}
/* The engine injects :root{--color-primary / --color-primary-light / --color-primary-dark /
   --color-accent / --color-accent-dark / --color-accent2 / --color-ink} at the marker above.
   Everything below references brand/accent color ONLY via those vars.
   No raw brand or accent hex lives in this stylesheet body.

   House style is OZE-matched: light/white-dominant body, navy hero + footer as
   bookends, gold as the primary accent, and --color-accent2 (red) used on the
   single mid-page urgency band only. */

:root {
  /* Neutral ramp (9 swatches max). --c-ink follows the injected --color-ink. */
  --c-ink: var(--color-ink);
  --c-ink-soft: #2f343d;
  --c-slate: #5b626e;
  --c-mute: #8a909b;
  --c-line: #e6e8ec;
  --c-cloud: #f3f4f7;
  --c-paper: #ffffff;
  --c-white: #ffffff;
  --c-shadow: rgba(17, 21, 28, 0.10);

  /* Brand tint surfaces (neutral hex only; the cool cast is a hair of navy baked
     into the neutral so no raw brand hex is needed). --c-tint is the faint cool
     wash that replaces flat white on alternating sections; --c-tint-line is the
     hairline that separates tiers. */
  --c-tint: #f4f6fa;
  --c-tint-line: rgba(12, 26, 60, 0.06);
  /* Brand-derived accents (built from injected vars, no new brand hex). */
  --c-accent-soft: color-mix(in srgb, var(--color-accent) 16%, transparent);
  --c-roof-watermark: color-mix(in srgb, var(--color-primary) 5%, transparent);

  /* Sticky nav height; referenced by the services sticky-stacking scroll. */
  --nav-h: 74px;

  /* Brand- and accent-derived surfaces (built from injected vars, no new hex).
     Accent (gold) = CTAs, highlights, active states. Primary (navy) = dark surfaces,
     stat card, badges. Accent buttons carry dark INK text, never white. */
  --c-cta: var(--color-accent);
  --c-cta-hover: var(--color-accent-dark);
  --c-cta-text: var(--color-ink);
  --c-band: var(--color-primary);
  --c-band-soft: var(--color-primary-light);
  --c-accent-text: var(--color-accent-dark);
  --c-focus: color-mix(in srgb, var(--color-primary) 35%, transparent);
  /* Urgency band: the single red (third accent) surface on the page. White text
     passes contrast on the red; its CTA is gold with dark ink text. */
  --c-urgency: var(--color-accent2);
  --c-urgency-deep: color-mix(in srgb, var(--color-accent2) 82%, #000);

  /* Spacing system: one 8px base unit */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 48px;
  --s-8: 64px;
  --s-10: 80px;
  --s-12: 96px;
  --s-16: 128px;

  /* Type scale, ratio 1.25 (major third), base 17px */
  --t-base: 1.0625rem;  /* 17px */
  --t-sm: 0.875rem;     /* 14px */
  --t-md: 1.0625rem;
  --t-lg: 1.328rem;     /* ~21.25px */
  --t-xl: 1.66rem;      /* ~26.6px */
  --t-2xl: 2.074rem;    /* ~33.2px */
  --t-3xl: 2.592rem;    /* ~41.5px */
  --t-4xl: 3.24rem;     /* ~51.9px */

  --lh-body: 1.6;
  --lh-tight: 1.06;

  --container: 1480px;
  --measure: 65ch;

  /* Large rounded-corner aesthetic (the Roofinity tell) */
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* Roofinity font system: Manrope for all display/headings (light weight 500,
     tight tracking), Inter for body. */
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --tr-fast: 180ms var(--ease);
  --tr-mid: 260ms var(--ease);
}

/* ------------------------------------------------------------------ Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Offset anchored sections so a nav-link jump lands BELOW the sticky nav
   instead of being hidden behind it. --nav-h is the sticky nav height. */
section[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: var(--lh-body);
  color: var(--c-ink-soft);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
/* Roofinity headings: Manrope at LIGHT weight 500, large, tight line-height and
   negative tracking (~-0.03em). The light weight is the core Roofinity tell. */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--c-ink);
  line-height: var(--lh-tight);
  font-weight: 500;
  margin: 0 0 var(--s-2);
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.074rem, 4.6vw + 1rem, 3.24rem); }
h2 { font-size: clamp(1.74rem, 3.2vw + 0.6rem, 2.74rem); }
h3 { font-size: var(--t-lg); font-weight: 500; }
p { margin: 0 0 var(--s-2); }
ul { margin: 0; padding: 0; list-style: none; }

/* Visible keyboard focus on every interactive element. Components that set
   outline:none for a focused look must provide their own :focus-visible ring. */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ------------------------------------------------------------- Primitives */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  /* Mobile keeps a sane gutter (~22px, never edge-to-edge); on large screens the
     gutter stays tight (capped at 24px) so the wider container uses more of the
     viewport. Body-text blocks are independently capped via --measure, so widening
     here only widens section layout/grids, not paragraph line length. */
  padding-inline: clamp(20px, 5vw, var(--s-3));
}
.section { padding-block: clamp(var(--s-8), 7.5vw, var(--s-12)); }
.section--cloud { background: var(--c-cloud); }
.section--ink { background: var(--c-band); }
/* Brand tier: a faint cool wash (a hair of navy) so the page reads as designed
   tiers instead of one flat-white wash, while keeping it light and airy. */
.section--tint { background: var(--c-tint); }
/* Faint 1px hairline between alternating tiers. Applied to tinted/cloud bands so
   the seam where a tint meets white reads crisply without a heavy border. */
.section--tint,
.section--cloud { border-top: 1px solid var(--c-tint-line); border-bottom: 1px solid var(--c-tint-line); }
/* Faint large roofline watermark (a row of roof peaks) behind a section. Navy at
   ~5% so it reads as texture, never competing with the copy on top. */
.section--roofmark { position: relative; overflow: hidden; }
.section--roofmark > .container { position: relative; z-index: 1; }
.roof-watermark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 0;
  color: var(--c-roof-watermark);
  pointer-events: none;
}
.roof-watermark svg { width: 100%; height: auto; display: block; }
.section__head { max-width: 62ch; margin-bottom: var(--s-5); }
.section__head--row {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  align-items: flex-start;
  max-width: none;
}
.section__intro { color: var(--c-slate); max-width: var(--measure); margin-bottom: 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent-text);
  margin-bottom: var(--s-2);
}
/* Roof-peak chevron mark in front of every section kicker (the brand motif: the
   red roof house in the logo, distilled to a small gold peak). Drawn with
   borders so it needs no SVG and inherits the accent via border-color. */
.kicker::before {
  content: "";
  flex: none;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 9px solid var(--color-accent);
}
/* Gold tick/underline trailing the kicker label for a touch of polish. */
.kicker::after {
  content: "";
  flex: none;
  width: 22px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  opacity: 0.85;
}
.kicker--light { color: var(--color-accent); }
.kicker--light::before { border-bottom-color: var(--color-accent); }

/* ------------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  min-height: 52px;
  padding: 14px var(--s-4);
  font-family: var(--font-body);
  font-size: var(--t-md);
  font-weight: 600;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--tr-fast), transform var(--tr-fast), box-shadow var(--tr-fast);
}
.btn--primary {
  background: var(--c-cta);
  color: var(--c-cta-text);
  box-shadow: 0 6px 18px var(--c-shadow);
}
.btn--primary:hover { background: var(--c-cta-hover); transform: translateY(-2px); }
.btn--accent-outline {
  background: transparent;
  color: var(--c-ink);
  border: 1.5px solid var(--c-line);
}
.btn--accent-outline:hover { border-color: var(--c-cta); color: var(--c-accent-text); }
.btn--block { width: 100%; }

/* ----------------------------------------------------------------- Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: var(--nav-h);
}
.nav__brand {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 800;
  color: var(--c-ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
/* Logo lockup: the supplied logo art has a white background, so on the white
   nav it sits flush; we just cap its height and let width scale. */
.nav__brand--logo { display: inline-flex; align-items: center; }
.nav__logo { height: 48px; width: auto; display: block; }
.nav__links { display: none; gap: var(--s-4); align-items: center; }
.nav__links a {
  text-decoration: none;
  color: var(--c-ink-soft);
  font-weight: 500;
  font-size: var(--t-md);
  transition: color var(--tr-fast);
}
.nav__links a:hover { color: var(--c-accent-text); }
.nav__cta { display: none; min-height: 46px; padding: 10px var(--s-3); }
.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-ink);
  transition: transform var(--tr-fast), opacity var(--tr-fast);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: var(--s-1);
  padding: var(--s-2) var(--s-3) var(--s-4);
  border-top: 1px solid var(--c-line);
  background: var(--c-paper);
}
.nav__mobile.is-open { display: flex; }
.nav__mobile-head {
  display: flex;
  align-items: center;
  padding: var(--s-1) var(--s-1) var(--s-2);
  margin-bottom: var(--s-1);
  border-bottom: 1px solid var(--c-line);
}
.nav__logo--mobile { height: 38px; width: auto; display: block; }
.nav__mobile a {
  text-decoration: none;
  color: var(--c-ink-soft);
  font-weight: 500;
  padding: 12px var(--s-1);
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--c-line);
}
.nav__mobile .btn { margin-top: var(--s-2); }

/* ----------------------------------------------------------------- Hero */
.hero { padding-block: var(--s-3) 0; }
.hero__frame {
  position: relative;
  color: var(--c-white);
}
/* Mobile (default): vertical STACK. The .hero__media block holds the photo with
   the headline/phone/CTA over it (photo stays visible under a soft gradient),
   then the navy form bar flows BELOW it in normal flow. On desktop (>=960px)
   .hero__media becomes display:contents so the original overlay layout (absolute
   photo filling the whole frame, form bar overlaid at the bottom) is restored
   exactly. */
.hero__media {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 62vh;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--c-band);
  padding: var(--s-5) var(--s-4);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Hero background slider: stacked full-cover layers that crossfade behind the
   scrim + content. The headline, phone, and form bar never move; only the photo
   changes. */
.hero__slider { position: absolute; inset: 0; z-index: 0; }
.hero__slider .hero__bg {
  opacity: 0;
  transition: opacity 800ms var(--ease);
}
.hero__slider .hero__bg.is-active { opacity: 1; }
.hero__dots {
  position: absolute;
  z-index: 3;
  left: var(--s-3);
  bottom: var(--s-3);
  display: flex;
  gap: var(--s-1);
}
.hero__dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background-color var(--tr-fast), transform var(--tr-fast);
}
.hero__dot:hover { background: rgba(255, 255, 255, 0.7); }
.hero__dot.is-active {
  background: var(--color-accent);
  transform: scale(1.15);
}
.hero__dot:focus-visible {
  outline: 2px solid var(--c-white);
  outline-offset: 2px;
}
/* Lighter scrim than before so the roof photo reads clearly (Roofinity tell):
   a soft top wash to keep the white headline legible, near-clear in the middle,
   and a gentle base so the dark form bar sits without a hard seam. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Mobile: soft gradient anchored to the BOTTOM (where the headline/phone/CTA
     sit), leaving the top of the roof photo nearly clear so it reads. Desktop
     restores the full-frame wash for legibility behind the overlaid form. */
  background: linear-gradient(180deg, rgba(11, 16, 28, 0) 0%, rgba(11, 16, 28, 0.04) 40%, rgba(11, 16, 28, 0.42) 78%, rgba(11, 16, 28, 0.66) 100%);
}
.hero__top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
.hero__headline { max-width: 16ch; }
/* Roofinity-scale headline: large, LIGHT (Manrope 500), tight, dominant over the
   photo. Light weight at large size is the Roofinity signature. */
.hero h1 {
  color: var(--c-white);
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero__intro { display: flex; flex-direction: column; gap: var(--s-2); max-width: 46ch; }
.hero__subline { font-size: var(--t-lg); color: rgba(255, 255, 255, 0.92); margin: 0; }
.hero__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-weight: 600;
  color: var(--c-white);
  text-decoration: none;
}
.hero__phone span { text-decoration: underline; text-underline-offset: 3px; }

/* Embedded form bar along the bottom of the hero (the signature element) */
/* Roofinity-style: a sleek DARK TRANSLUCENT panel that lets the roof photo show
   through, not a solid navy block. Navy at ~76% opacity + heavier blur. */
.hero__formbar {
  position: relative;
  z-index: 2;
  /* Mobile: a clean SOLID navy panel that flows BELOW the photo (its own block,
     not overlapping the image). Sits flush under the rounded photo with a small
     gap, full width, rounded. Desktop restores the translucent overlaid bar. */
  margin-top: var(--s-3);
  /* Barely-there diagonal roof-tile hairline texture layered over the navy
     panel (the only textured surface on the page). */
  background:
    repeating-linear-gradient(28deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 11px),
    var(--color-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  box-shadow: 0 12px 40px rgba(6, 15, 36, 0.18);
}
.hero__formbar-head { display: flex; flex-direction: column; margin-bottom: var(--s-2); }
.hero__formbar-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-lg);
  letter-spacing: -0.02em;
  color: var(--c-white);
}
.hero__formbar-sub { color: rgba(255, 255, 255, 0.78); font-size: var(--t-sm); }
.hero__form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
  align-items: end;
}
.hero__form .field { margin-bottom: 0; }
.hero__form .field label { color: rgba(255, 255, 255, 0.85); }
/* Dark translucent fields with thin light borders + light text (Roofinity),
   not solid white boxes. Placeholder kept >=0.72 alpha for WCAG-ok contrast on
   the dark translucent fill. */
.hero__form .field input {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--c-white);
}
.hero__form .field input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}
.hero__form .field input:hover {
  border-color: rgba(255, 255, 255, 0.42);
}
.hero__form .field input:focus,
.hero__form .field input:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 35%, transparent);
}
.hero__submit { white-space: nowrap; }
.hero__formbar-consent { font-size: 0.74rem; color: rgba(255, 255, 255, 0.65); margin: var(--s-2) 0 0; line-height: 1.5; }

/* Mobile gold CTA inside the photo block: jumps to the form panel below. Hidden
   on desktop where the form is overlaid in-hero (no need for a jump). */
.hero__cta {
  align-self: flex-start;
  margin-top: var(--s-1);
}

/* --- Mobile hero refinements (photo block) --- */
/* Headline kept readable over the photo (the big clamp top-end is desktop-only;
   capped here so it does not crowd the 62vh image block). */
.hero__media h1 { font-size: clamp(2.4rem, 8.5vw, 3.2rem); }
.hero__media .hero__headline { text-shadow: 0 2px 18px rgba(11, 16, 28, 0.45); }
/* Kicker: smaller + tighter on mobile so "Dekarz Wrocław i Dolny Śląsk" stays on
   one or two lines with the gold roof-peak tick inline (no 4-line wrap). The
   trailing tick is dropped on mobile so the label + leading peak fit one line. */
.hero__media .kicker {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  gap: 6px;
  flex-wrap: nowrap;
}
.hero__media .kicker::after { display: none; }
/* Trim the subline on the photo block so it stays short (2 lines max). */
.hero__media .hero__subline {
  font-size: var(--t-base);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----------------------------------------------------------------- Forms */
.field { margin-bottom: var(--s-2); }
.field label {
  display: block;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-ink-soft);
  margin-bottom: 6px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 12px var(--s-2);
  font: inherit;
  font-size: var(--t-md);
  color: var(--c-ink);
  background: var(--c-paper);
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm);
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--c-focus);
}
.form__consent { font-size: 0.78rem; color: var(--c-mute); margin: var(--s-2) 0 0; line-height: 1.5; }
.form__consent--light { color: rgba(255, 255, 255, 0.72); }

/* --------------------------------------------------------------- Value band */
.value__head {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  align-items: flex-start;
  margin-bottom: var(--s-6);
}
.value__head-main { max-width: 30ch; }
.value__head-main h2 { margin: 0; }
.value__intro { color: var(--c-slate); max-width: var(--measure); margin-top: var(--s-2); }
.value__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  flex: none;
  padding: 10px var(--s-3);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-ink);
  box-shadow: 0 6px 18px var(--c-shadow);
}
.value__badge svg { color: var(--c-accent-text); flex: none; }
.value__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  align-items: stretch;
}
/* PRIMARY panel: shared shell for the stat panel and the claim/feature panel */
.value__stat,
.value__feature {
  position: relative;
  overflow: hidden;
  background: var(--c-band);
  color: var(--c-white);
  border-radius: var(--radius-xl);
  padding: var(--s-6) var(--s-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-2);
  min-height: 280px;
  box-shadow: 0 24px 60px var(--c-shadow);
}
.value__stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-4xl);
  line-height: 1;
  color: var(--c-white);
}
.value__stat-suffix { color: var(--color-accent); }
.value__stat-label { color: rgba(255, 255, 255, 0.82); font-size: var(--t-lg); max-width: 26ch; }

/* Claim/feature primary panel (used when there is no honest stat) */
.value__feature--media { justify-content: flex-end; }
.value__feature-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.value__feature-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11, 16, 28, 0.45) 0%, rgba(11, 16, 28, 0.82) 100%);
}
.value__feature-body { position: relative; z-index: 2; display: grid; gap: var(--s-2); }
.value__feature-claim {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-2xl);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--c-white);
  margin: 0;
  max-width: 18ch;
}
.value__feature-sub { color: rgba(255, 255, 255, 0.84); font-size: var(--t-md); margin: 0; max-width: 38ch; }

/* Roofinity 2x2 (screenshot .16): clean items, no boxes/shadows. Each item is
   a vertical stack: the small gold LINE ICON sits at the TOP, the label sits
   BELOW it, and a THIN horizontal rule runs UNDER each item. Airy, white. */
.value__items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.value-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-2);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--c-line);
  background: transparent;
}
/* Short gold top-accent tick on each value item (brand polish, echoes the
   kicker tick). Sits above the icon. */
.value-item::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: var(--s-1);
  background: var(--color-accent);
  border-radius: 2px;
}
.value-item__icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--c-accent-text);
}
.value-item__icon svg { width: 26px; height: 26px; }
.value-item__label { font-family: var(--font-display); font-weight: 600; font-size: var(--t-lg); letter-spacing: -0.02em; color: var(--c-ink); }
.value-item__desc { color: var(--c-slate); font-size: var(--t-md); margin: 0; max-width: 34ch; }

/* ----------------------------------------------------------- Process
   Roofinity: a rounded photo with a small gold SQUARE numbered badge in the
   photo's top-left corner, then bold title + description BELOW the photo. No
   card border, background, or shadow: the items sit directly on the section. */
.process__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  counter-reset: step;
}
.process-card {
  position: relative;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.process-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-cloud);
}
.process-card__media img { width: 100%; height: 100%; object-fit: cover; }
/* Fallback when a step has no photo: navy block with an oversized gold number */
.process-card__media--fill {
  display: grid;
  place-items: center;
  background: var(--c-band);
}
.process-card__bignum {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4.2rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.92;
}
/* Small gold SQUARE badge pinned in the photo's top-left corner */
.process-card__num {
  position: absolute;
  top: var(--s-2);
  left: var(--s-2);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-md);
  color: var(--c-cta-text);
  background: var(--c-cta);
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 16px var(--c-shadow);
}
/* When the card has no photo, the navy block already shows a big number, so the
   square badge would be redundant against the navy; keep it for photo cards only */
.process-card--noimg .process-card__num { display: none; }
.process-card h3 { margin: var(--s-3) 0 var(--s-1); font-size: var(--t-xl); }
.process-card p { color: var(--c-slate); margin: 0; max-width: 44ch; }

/* ----------------------------------------------------------- Services
   Roofinity: airy vertical rows on the section background, separated by thin
   horizontal rules. Each row: far-left bracketed gold number "[ 1 ]", a rounded
   thumbnail, the main column (title + short desc + feature lines each prefixed
   by a small gold cross and split by thin rules), and a far-right bracketed
   arrow "[ -> ]". No card borders, no shadows. */
.services__list {
  display: grid;
  gap: 0;
}
/* Mobile (default): a clean stacked card. Full-width rounded image on TOP, then
   a row with the bracketed number + title, the description, the feature bullets,
   and the arrow link, all below the photo. Desktop overrides this to the airy
   sticky-stacking row layout. */
.service-row {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "media"
    "num"
    "body"
    "arrow";
  gap: var(--s-2);
  align-items: start;
  padding: var(--s-5) 0;
  border-top: 1px solid var(--c-line);
}
.services__list .service-row:last-child { border-bottom: 1px solid var(--c-line); }
.service-row__num {
  grid-area: num;
  align-self: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--t-md);
  letter-spacing: 0.04em;
  color: var(--c-accent-text);
  white-space: nowrap;
}
.service-row__media {
  grid-area: media;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-cloud);
}
.service-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--tr-mid); }
.service-row:hover .service-row__media img { transform: scale(1.04); }
/* Fallback when a service has no photo: navy block with a bracketed gold number
   (mirrors the process-card navy fallback). Never an empty gray box. */
.service-row__media--fill {
  display: grid;
  place-items: center;
  background: var(--c-band);
}
.service-row__bignum {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  opacity: 0.92;
}
.service-row__body { grid-area: body; }
.service-row__body h3 { margin-bottom: var(--s-1); font-size: var(--t-xl); }
.service-row__body p { color: var(--c-slate); margin: 0 0 var(--s-3); max-width: 56ch; }
.service-row__features { display: grid; gap: 0; }
.service-row__features li {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) 0;
  border-top: 1px solid var(--c-line);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--c-ink-soft);
}
/* Small gold cross (Roofinity feature marker) */
.service-row__cross {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: var(--c-accent-text);
}
.service-row__cross svg { width: 16px; height: 16px; }
/* Bracketed arrow link, far-right */
.service-row__arrow {
  grid-area: arrow;
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--t-md);
  color: var(--c-accent-text);
  text-decoration: none;
  transition: transform var(--tr-fast), color var(--tr-fast);
}
.service-row__arrow:hover { transform: translateX(3px); color: var(--c-cta-hover); }
.service-row__arrow svg { width: 18px; height: 18px; }

/* Clickable service row: the title, thumbnail and each feature line all link
   to the same detail page (siblings, never nested anchors). Hover/focus is
   color + underline only (no transform), so it respects reduced motion. */
.service-row__media--link { display: block; cursor: pointer; }
.service-row__title-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--tr-fast);
}
.service-row__title-link:hover,
.service-row__title-link:focus-visible { color: var(--c-cta-hover); text-decoration: underline; }
.service-row__feat-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--tr-fast);
}
.service-row__feat-link:hover,
.service-row__feat-link:focus-visible { color: var(--c-accent-text); text-decoration: underline; }
.service-row__title-link:focus-visible,
.service-row__feat-link:focus-visible,
.service-row__media--link:focus-visible,
.service-row__arrow:focus-visible {
  outline: 2px solid var(--c-cta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------ CTA banner
   Roofinity: a large rounded PHOTO banner with a white headline on the photo
   (top-left) and a dark navy translucent card pinned bottom-right holding a
   short line + the single RED button (white text). The red lives ONLY on that
   button, not the whole band. */
.ctabanner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-5);
  color: var(--c-white);
  background: var(--c-band);
  padding: var(--s-6) var(--s-5);
  min-height: 380px;
  box-shadow: 0 24px 60px var(--c-shadow);
}
.ctabanner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.ctabanner__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(11, 16, 28, 0.55) 0%, rgba(11, 16, 28, 0.18) 55%, rgba(11, 16, 28, 0.05) 100%);
}
.ctabanner__copy { position: relative; z-index: 2; display: grid; gap: var(--s-1); align-self: flex-start; }
.ctabanner h2 { color: var(--c-white); max-width: 16ch; margin: 0; text-shadow: 0 2px 18px rgba(11, 16, 28, 0.45); }
/* The dark translucent card carrying the short line + red button */
.ctabanner__card {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--s-3);
  width: 100%;
  max-width: 360px;
  padding: var(--s-4);
  background: color-mix(in srgb, var(--color-primary) 80%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}
.ctabanner__sub { color: rgba(255, 255, 255, 0.92); margin: 0; }
.ctabanner__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
/* The single red button on the page */
.btn--urgency {
  background: var(--c-urgency);
  color: var(--c-white);
  box-shadow: 0 6px 18px var(--c-shadow);
}
.btn--urgency:hover { background: var(--c-urgency-deep); transform: translateY(-2px); }
.ctabanner__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-weight: 600;
  color: var(--c-white);
  text-decoration: none;
}
.ctabanner__phone span { text-decoration: underline; text-underline-offset: 3px; }

/* ----------------------------------------------------------- Gallery */
/* Gallery: 2 columns from the smallest screens so the 9-photo set is not one
   long column on phones. The tall-tile span only kicks in at the 3-col desktop
   layout (see breakpoints), so on 2 columns every tile keeps a uniform 4/3. */
/* Mobile (default): a horizontal SWIPE slider. Tiles are large (~82vw), scroll-
   snap to centre, and the next tile peeks at the edge as a swipe affordance.
   The scroll lives ONLY on this container (overflow-x), so the page never
   scrolls sideways at 320px. Desktop (>=960px) restores the multi-column grid. */
.gallery__grid {
  display: flex;
  gap: 12px;
  /* Break out of the .container gutter so the slider spans the full viewport
     width. A tile then centres on the SCREEN (not just inside the padded
     container), giving a symmetric peek on both sides. The negative margin
     exactly cancels the container's inline padding. */
  margin-inline: calc(-1 * clamp(20px, 5vw, var(--s-3)));
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Centre-peek carousel: side padding lets a centred tile leave ~13vw of each
     neighbour visible (cut) on BOTH the left and right edges. */
  padding-inline: 13vw;
  /* Breathing room at the bottom so caption + shadow are not clipped. */
  padding-bottom: var(--s-1);
  scrollbar-width: none; /* Firefox */
  /* Soft edge fade so the cut neighbours feather at the screen edges. The
     centred tile sits inside the 11%-89% solid band, so it stays fully opaque;
     only the peeking neighbours fade. #000 here is a mask alpha, not a colour. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 11%, #000 89%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 11%, #000 89%, transparent 100%);
}
.gallery__grid::-webkit-scrollbar { display: none; } /* WebKit */
/* Mobile (default): tile = rounded image + caption beneath it. The tag is NOT
   overlaid on the small 2-col photos (it covered them or ellipsized to
   unreadable stubs). Instead the FULL tag text reads as a gold caption line
   directly below the photo, left-aligned, allowed to wrap, no ellipsis. The
   photo stays fully visible. Desktop restores the on-image overlay chip. */
.gallery__item {
  position: relative;
  display: flex;
  flex-direction: column;
  /* <figure> carries a UA default side margin; zero it so the slider spacing is
     exactly gap + tile and the centre-peek geometry stays symmetric. */
  margin: 0;
  /* Mobile centre-peek slider tile: ~74vw and fixed so it does not shrink. A
     centred tile leaves ~13vw of each neighbour visible (cut) on both sides.
     Snaps to centre on swipe. */
  flex: 0 0 74vw;
  max-width: 74vw;
  scroll-snap-align: center;
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform var(--tr-mid);
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__cap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: var(--s-1);
  padding: 0;
}
.gallery__tag {
  align-self: flex-start;
  /* Full text gold label under the photo: wraps freely, no ellipsis, no overlay.
     Tiles are now large (swipe slider) so the label reads clearly. */
  max-width: 100%;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--c-accent-text);
}
.gallery__caption-text {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--c-ink-soft);
}
/* Swipe affordance under the mobile slider (hidden on desktop grid). */
.gallery__swipe-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: var(--s-3) 0 0;
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-ink-soft);
}
.gallery__swipe-hint::after {
  content: "\2192";
  font-size: 1.05rem;
  color: var(--c-accent-text);
}

/* ------------------------------------------------- Before/After gallery
   Roofinity-style split tiles: each pair is a worn roof ("Przed", left) next
   to the finished roof ("Po", right), two images side by side in one rounded
   frame. Grid: 1 pair per row on mobile, 2 per row on desktop. */
.ba__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
.ba-pair { margin: 0; }
.ba-pair__panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ba-pair__pane {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--c-cloud);
}
.ba-pair__pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tr-mid);
}
.ba-pair:hover .ba-pair__pane img { transform: scale(1.04); }
.ba-pair__chip {
  position: absolute;
  top: var(--s-2);
  z-index: 1;
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  background: rgba(11, 16, 28, 0.72);
  color: var(--c-white);
  backdrop-filter: blur(4px);
}
.ba-pair__chip--before { left: var(--s-2); }
.ba-pair__chip--after {
  right: var(--s-2);
  background: var(--c-cta);
  color: var(--c-cta-text);
}
.ba-pair__tag {
  margin-top: var(--s-2);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-slate);
}

/* ----------------------------------------------------- Testimonials
   Auto-sliding marquee (Roofinity "Customers feedback"): the track holds two
   copies of the card set and translates left forever for a seamless loop.
   Pauses on hover/focus; edges fade via mask-image. Reduced-motion users get a
   plain horizontally scrollable, scroll-snapping row instead (see below). */
.tst-marquee {
  position: relative;
  overflow: hidden;
  /* Fade the cards out at the left + right edges. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}
.tst-marquee:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 4px;
}
.tst-marquee__track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: var(--s-1) var(--s-2);
  animation: tst-scroll 60s linear infinite;
  will-change: transform;
}
/* Pause the slide when the user hovers or keyboard-focuses the carousel. */
.tst-marquee:hover .tst-marquee__track,
.tst-marquee:focus-within .tst-marquee__track { animation-play-state: paused; }

@keyframes tst-scroll {
  /* The track is two identical copies, so shifting by exactly half its width
     lands on the start of the second copy: visually seamless. */
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tst-card {
  position: relative;
  flex: 0 0 clamp(280px, 86vw, 400px);
  min-height: 320px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  padding: clamp(28px, 2.6vw, 44px);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  overflow: hidden;
}
/* Gold top-accent bar (brand polish) seated at the top edge of each card. */
.tst-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
}
.tst-card__stars { color: var(--color-accent-dark); letter-spacing: 2px; }
.tst-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.4vw, 1.5rem);
  line-height: 1.45;
  color: var(--c-ink);
  max-width: 52ch;
  flex: 1;
}
.tst-card__rule { width: 100%; height: 0; border: 0; border-top: 1px solid var(--c-line); margin: var(--s-1) 0; }
.tst-card__foot { display: flex; align-items: center; gap: var(--s-2); margin-top: auto; }
.tst-card__avatar {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-band);
  color: var(--c-white);
  font-family: var(--font-display);
  font-weight: 700;
}
.tst-card__meta { display: flex; flex-direction: column; }
.tst-card__who { font-weight: 600; color: var(--c-ink); }
.tst-card__where { color: var(--c-mute); font-size: var(--t-sm); }

/* Google rating badge (under the testimonials heading) + "see all" link.
   Gold stars use the accent; the chip sits on a subtle primary-tinted surface. */
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--s-3);
  padding: 10px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  background: var(--c-white);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease);
}
.google-badge:hover { border-color: var(--color-accent); transform: translateY(-2px); }
.google-badge:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; }
.google-badge__rating {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-lg);
  color: var(--c-ink);
  line-height: 1;
}
.google-badge__stars { color: var(--color-accent); letter-spacing: 1px; font-size: var(--t-md); }
.google-badge__count { color: var(--c-mute); font-size: var(--t-sm); font-weight: 500; }
.tst-more { margin-top: var(--s-3); }
.tst-more a {
  color: var(--c-accent-text);
  font-weight: 600;
  text-decoration: none;
  font-size: var(--t-sm);
}
.tst-more a:hover { text-decoration: underline; }

/* ----------------------------------------------------------- FAQ
   Roofinity: two columns. Left = kicker + heading + note + gold "Ask" button.
   Right = accordion rows, each with a small "?" icon, the question, and a gold
   "+" toggle, split by thin rules. */
.faq__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: start;
}
.faq__aside h2 { margin: 0 0 var(--s-2); max-width: 14ch; }
.faq__aside-note { color: var(--c-slate); margin: 0 0 var(--s-3); max-width: 38ch; }
.faq__list { max-width: 100%; }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-item:first-child { border-top: 1px solid var(--c-line); }
.faq-item summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) 0;
  min-height: 44px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-lg);
  letter-spacing: -0.02em;
  color: var(--c-ink);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q-icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--c-accent-text);
}
.faq-q-icon svg { width: 22px; height: 22px; }
.faq-q-text { min-width: 0; }
.faq-item summary .faq-icon {
  flex: none;
  width: 28px;
  height: 28px;
  position: relative;
  transition: transform var(--tr-fast);
}
.faq-item summary .faq-icon::before,
.faq-item summary .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--c-cta);
  border-radius: 2px;
}
.faq-item summary .faq-icon::before { top: 50%; left: 4px; right: 4px; height: 2px; transform: translateY(-50%); }
.faq-item summary .faq-icon::after { left: 50%; top: 4px; bottom: 4px; width: 2px; transform: translateX(-50%); }
.faq-item[open] summary .faq-icon::after { opacity: 0; }
.faq-item__answer { padding: 0 var(--s-5) var(--s-3) calc(26px + var(--s-2)); color: var(--c-slate); max-width: var(--measure); }

/* ----------------------------------------------------------- Blog */
.blog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
.blog-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--tr-mid), box-shadow var(--tr-mid);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px var(--c-shadow); }
.blog-card__media { aspect-ratio: 3 / 2; background: var(--c-cloud); }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: var(--s-3); }
.blog-card__date { font-size: var(--t-sm); font-weight: 600; color: var(--c-mute); }
.blog-card h3 { margin: var(--s-1) 0; }
.blog-card p { color: var(--c-slate); margin: 0; max-width: 44ch; }

/* ----------------------------------------------------- Final CTA */
.finalcta {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  color: var(--c-white);
  background: var(--c-band);
  padding: var(--s-6) var(--s-4);
}
.finalcta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.finalcta__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(11, 16, 28, 0.88) 0%, rgba(11, 16, 28, 0.62) 100%);
}
.finalcta__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  align-items: center;
}
.finalcta__copy { max-width: 30ch; }
.finalcta h2 { color: var(--c-white); }
.finalcta__copy p { color: rgba(255, 255, 255, 0.9); }
.finalcta__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  margin-top: var(--s-2);
  font-weight: 600;
  color: var(--c-white);
  text-decoration: none;
}
.finalcta__phone span { text-decoration: underline; text-underline-offset: 3px; }
.finalcta__formcard {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
}
.finalcta__formcard .field label { color: rgba(255, 255, 255, 0.88); }
.finalcta__formcard .field input,
.finalcta__formcard .field select {
  background: rgba(255, 255, 255, 0.96);
  border-color: transparent;
}

/* ----------------------------------------------------------- Contact */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
.contact__detail { margin-bottom: var(--s-3); }
.contact__detail dt { font-size: var(--t-sm); font-weight: 600; color: var(--c-mute); text-transform: uppercase; letter-spacing: 0.08em; }
.contact__detail dd { margin: 4px 0 0; font-size: var(--t-md); color: var(--c-ink); }
.contact__detail dd a { color: var(--c-accent-text); text-decoration: underline; text-underline-offset: 3px; }
.contact__areas { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-1); }
.contact__areas li {
  padding: 6px 12px;
  background: var(--c-cloud);
  border-radius: var(--radius-pill);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--c-ink-soft);
}
.contact__form {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--s-5) var(--s-4);
}
.contact__form h3 { font-size: var(--t-xl); }
.contact__media {
  margin: 0 0 var(--s-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.contact__media img { width: 100%; height: 100%; object-fit: cover; }

/* ----------------------------------------------------------- About / O firmie */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  align-items: center;
}
.about__media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tr-mid);
}
.about__media:hover img { transform: scale(1.03); }
.about__text { color: var(--c-ink-soft); max-width: var(--measure); }
.about__points { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.about__points li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  font-size: var(--t-md);
  color: var(--c-ink);
}
.about__tick { flex: none; margin-top: 2px; color: var(--c-accent-text); }

/* ----------------------------------------------------------- Footer */
.footer { background: var(--c-ink); color: var(--c-line); padding-block: var(--s-8) var(--s-5); }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}
.footer__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-lg);
  color: var(--c-white);
  margin-bottom: var(--s-1);
}
/* Footer is dark; the logo art is white-background, so it sits inside a small
   white rounded chip to read cleanly. A tiny red roof-peak glyph echoes the
   brand mark beside it. */
.footer__brand--logo {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.footer__logo-chip {
  display: inline-flex;
  padding: 9px 12px;
  background: var(--c-white);
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.footer__logo-chip img { height: 44px; width: auto; display: block; }
.footer__roofmark { color: var(--c-urgency); line-height: 0; }
.footer__roofmark svg { width: 26px; height: auto; }
.footer p, .footer li { color: var(--c-mute); font-size: var(--t-sm); margin: 0 0 6px; }
.footer a { color: var(--c-line); text-decoration: none; }
.footer a:hover { color: var(--c-white); }
.footer h4 { font-family: var(--font-body); color: var(--c-white); font-size: var(--t-sm); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--s-2); }
.footer__social { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.footer__social a {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  font-size: var(--t-sm);
  font-weight: 500;
}
.footer__social a:hover { border-color: var(--c-cta); color: var(--c-white); }
/* Embedded Google map band: full width, rounded, lazy-loaded. */
.footer__map {
  margin-bottom: var(--s-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.footer__map iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
}
@media (min-width: 760px) {
  .footer__map iframe { height: 280px; }
}
/* Bottom CTA row: line-art house + headline + a light button and a gold button */
.footer__cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-5) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__house { color: rgba(255, 255, 255, 0.34); }
.footer__house svg { width: 96px; height: auto; }
.footer__cta-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-lg);
  color: var(--c-white);
  margin: 0;
  max-width: 26ch;
}
.footer__cta-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.footer a.footer__btn-light {
  background: var(--c-white);
  color: var(--color-primary);
  font-weight: 700;
}
.footer a.footer__btn-light:hover {
  background: var(--c-line);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}
.footer a.footer__btn-light:focus-visible {
  outline: 2px solid var(--c-white);
  outline-offset: 3px;
}
.footer__cta-actions .btn--primary:focus-visible {
  outline: 2px solid var(--c-white);
  outline-offset: 3px;
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--s-4);
  font-size: var(--t-sm);
  color: var(--c-mute);
}

/* ------------------------------------------------- Sticky mobile call */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  padding: var(--s-1) var(--s-2) calc(var(--s-1) + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--c-line);
  backdrop-filter: blur(8px);
}
.callbar .btn { width: 100%; min-height: 52px; }
/* When the mobile menu is open, hide the sticky call bar so it does not overlap
   the menu sheet. Reappears when the menu closes. */
body.nav-is-open .callbar { display: none; }

/* ----------------------------------------------------- Scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 380ms var(--ease), transform 380ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ----------------------------------------------------- Breakpoints */
@media (min-width: 640px) {
  .hero__form { grid-template-columns: 1fr 1fr; }
  /* 2x2 value grid with thin dividers: each item keeps its own bottom rule
     (icon-on-top, label below); a left rule on the even column builds the
     vertical divider between the two columns. */
  .value__items { grid-template-columns: repeat(2, 1fr); column-gap: 0; }
  .value__items .value-item:nth-child(odd) { padding-right: var(--s-5); }
  .value__items .value-item:nth-child(even) { padding-left: var(--s-5); border-left: 1px solid var(--c-line); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .ba__grid { grid-template-columns: repeat(2, 1fr); }
  .blog__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .nav__mobile { display: none !important; }
  .callbar { display: none; }

  /* Roofinity-tall hero: fills most of the viewport on desktop. The mobile photo
     block dissolves (display:contents) so the photo, scrim, top content and the
     overlaid form bar are once again direct children of the rounded frame -
     exactly the original overlay layout. */
  .hero__media {
    display: contents;
  }
  .hero__frame {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--c-band);
    min-height: 88vh;
    padding: var(--s-8) var(--s-8) var(--s-6);
  }
  /* Full-frame scrim wash restored behind the overlaid form. */
  .hero__scrim {
    background: linear-gradient(180deg, rgba(11, 16, 28, 0.46) 0%, rgba(11, 16, 28, 0.12) 32%, rgba(11, 16, 28, 0.04) 58%, rgba(11, 16, 28, 0.22) 100%);
  }
  .hero__media h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
  .hero__media .hero__headline { text-shadow: none; }
  /* Kicker restored to full size + trailing tick. */
  .hero .kicker { font-size: var(--t-sm); letter-spacing: 0.16em; gap: 9px; }
  .hero .kicker::after { display: inline-block; }
  .hero__media .hero__subline {
    font-size: var(--t-lg);
    -webkit-line-clamp: none;
    display: block;
    overflow: visible;
  }
  /* The mobile "jump to form" gold button is not needed when the form is in-hero. */
  .hero__cta { display: none; }
  .hero__top { grid-template-columns: 1.1fr 0.9fr; align-items: start; gap: var(--s-8); }
  .hero__intro { align-items: flex-end; text-align: right; }
  .hero__form { grid-template-columns: repeat(4, 1fr) auto; }
  .hero__formbar-head { flex-direction: row; align-items: baseline; gap: var(--s-2); }
  /* Translucent overlaid form bar restored (sits over the photo at the bottom). */
  .hero__formbar {
    margin-top: var(--s-5);
    background:
      repeating-linear-gradient(28deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 11px),
      color-mix(in srgb, var(--color-primary) 76%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    backdrop-filter: blur(14px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    padding: var(--s-3);
    box-shadow: 0 12px 40px rgba(6, 15, 36, 0.32);
  }

  .section__head--row { flex-direction: row; justify-content: space-between; align-items: flex-end; }

  .value__head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .value__grid { grid-template-columns: 0.9fr 1.4fr; align-items: stretch; }
  .value__items { grid-template-columns: repeat(2, 1fr); }

  .process__grid { grid-template-columns: repeat(4, 1fr); }

  .service-row {
    grid-template-columns: 56px 312px 1fr auto;
    grid-template-areas: "num media body arrow";
    align-items: center;
    gap: var(--s-6);
    padding: var(--s-7) 0;
    /* Sticky "stacking" scroll (Roofinity): each row pins just under the
       sticky nav, and the next row scrolls up and fully covers it. The solid
       paper background + top hairline make the covering edge read cleanly. */
    position: sticky;
    top: calc(var(--nav-h, 84px) + 16px);
    min-height: 78vh;
    background: var(--c-paper);
    border-top: 1px solid var(--c-line);
  }
  /* Last row needs trailing room so it too can reach the top of the viewport. */
  .services__list .service-row:last-child { margin-bottom: 12vh; }
  .service-row__num { align-self: center; }
  .service-row__media { aspect-ratio: 4 / 3; }
  .service-row__body { align-self: center; }

  .ctabanner { padding: var(--s-8); min-height: 440px; }
  .ctabanner h2 { font-size: clamp(2rem, 3vw + 0.6rem, 2.74rem); }

  /* Desktop: restore the multi-column grid (the mobile swipe slider is undone). */
  .gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
    overflow: visible;
    scroll-snap-type: none;
    max-width: none;
    /* Undo the mobile full-bleed breakout, padding and edge fade. */
    margin-inline: 0;
    padding-inline: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
  /* Desktop: larger tiles carry the tag as an on-image overlay chip again. */
  .gallery__item {
    display: block;
    flex: 0 1 auto;
    max-width: none;
    scroll-snap-align: none;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
  }
  .gallery__item--tall { grid-row: span 2; aspect-ratio: 3 / 4; }
  .gallery__item img {
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
  }
  .gallery__cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    gap: 4px;
    margin-top: 0;
    padding: var(--s-4) var(--s-2) var(--s-2);
    color: var(--c-white);
    background: linear-gradient(to top, rgba(11, 16, 28, 0.82), transparent);
  }
  .gallery__tag {
    padding: 4px 10px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    max-width: calc(100% - 8px);
    line-height: 1.25;
    color: var(--c-cta-text);
    background: var(--c-cta);
    border-radius: var(--radius-pill);
  }
  .gallery__caption-text { font-size: var(--t-sm); color: var(--c-white); }
  .gallery__swipe-hint { display: none; }

  .tst-card { flex: 0 0 clamp(440px, 40vw, 580px); }
  .blog__grid { grid-template-columns: repeat(3, 1fr); }

  .faq__layout { grid-template-columns: 0.85fr 1.15fr; gap: var(--s-10); }
  .faq__aside { position: sticky; top: 96px; }

  .finalcta { padding: var(--s-10) var(--s-8); }
  .finalcta__inner { grid-template-columns: 1fr 0.9fr; }

  .about__grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); }

  .contact__grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }

  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer__cta { grid-template-columns: auto 1fr auto; gap: var(--s-5); }
  .footer__cta-text { text-align: left; }
  .footer__cta-actions { justify-content: flex-end; }
}

@media (min-width: 1200px) {
  .value__items { grid-template-columns: repeat(2, 1fr); }
}

/* Sticky-stacking services scroll is desktop-only. On phones the tall
   min-height pinning is janky, so disable it and let rows stack normally. */
@media (max-width: 899px) {
  .service-row {
    position: static;
    min-height: auto;
    top: auto;
  }
  .services__list .service-row:last-child { margin-bottom: 0; }
  /* Stacked-card tweaks: number sits left above the title, arrow left below. */
  .service-row__num { justify-self: start; align-self: start; margin-top: var(--s-1); }
  .service-row__media { width: 100%; }
  .service-row__arrow { justify-self: start; align-self: start; margin-top: var(--s-1); }
}

/* ----------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
  /* Testimonials: no auto-scroll. Turn the marquee into a plain, accessible,
     horizontally scrollable row with scroll-snap; drop the second (duplicate)
     copy of the cards so they are not announced/shown twice. */
  .tst-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .tst-marquee__track {
    width: max-content;
    animation: none !important;
    transform: none !important;
  }
  .tst-card { scroll-snap-align: start; }
  .tst-card[aria-hidden="true"] { display: none; }
  /* Disable the sticky-stacking services scroll for reduced-motion users. */
  .service-row { position: static; min-height: auto; top: auto; }
  .services__list .service-row:last-child { margin-bottom: 0; }
  .service-row:hover, .blog-card:hover, .gallery__item:hover img,
  .service-row:hover .service-row__media img, .process-card:hover,
  .service-row__arrow:hover, .btn--primary:hover, .btn--urgency:hover,
  .about__media:hover img,
  .footer__btn-light:hover { transform: none; }
  /* Slider: no crossfade. Active slide shows instantly; manual dot switch is
     still allowed but jumps with no animation. */
  .hero__slider .hero__bg { transition: none; }
  .hero__dot { transition: none; }
  .hero__dot.is-active { transform: none; }
  .svc-hero__bg { transition: none; }
}

/* ================================================== Service detail page */
/* Service hero: tall rounded banner with the service photo + dark scrim. */
.svc-hero-wrap { padding-top: var(--s-6); }
.svc-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 420px;
  padding: var(--s-6) var(--s-5);
  color: var(--c-white);
  background: var(--c-band);
  box-shadow: 0 24px 60px var(--c-shadow);
}
.svc-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.svc-hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(11, 16, 28, 0.78) 0%, rgba(11, 16, 28, 0.42) 55%, rgba(11, 16, 28, 0.12) 100%);
}
.svc-hero__copy { position: relative; z-index: 2; max-width: 44ch; display: grid; gap: var(--s-2); }
.svc-hero__copy h1 { color: var(--c-white); margin: 0; text-shadow: 0 2px 18px rgba(11, 16, 28, 0.5); }
.svc-hero__copy p { color: rgba(255, 255, 255, 0.92); margin: 0; }
.svc-hero__copy .btn { justify-self: start; margin-top: var(--s-2); }
.svc-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1);
  font-size: var(--t-sm); color: rgba(255, 255, 255, 0.78);
}
.svc-breadcrumb a { color: rgba(255, 255, 255, 0.92); text-decoration: underline; text-underline-offset: 3px; }
.svc-breadcrumb a:hover { color: var(--c-white); }

/* Two-column body: lead form card (left) + content (right). */
.svc-body__grid { display: grid; grid-template-columns: 1fr; gap: var(--s-5); align-items: start; }
.svc-form {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  box-shadow: 0 20px 50px var(--c-shadow);
}
.svc-form h2 { font-size: var(--t-xl); margin: 6px 0 var(--s-3); }
.svc-form .field { margin-bottom: var(--s-2); }
.svc-content__intro { color: var(--c-slate); max-width: var(--measure); font-size: var(--t-lg); }
.svc-content__sub { font-size: var(--t-lg); margin-top: var(--s-4); }
.svc-points { display: grid; gap: var(--s-2); margin-top: var(--s-2); }
.svc-points li { display: flex; align-items: flex-start; gap: var(--s-2); color: var(--c-ink-soft); }
.svc-points__cross {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  color: var(--c-accent-text);
  background: color-mix(in srgb, var(--color-accent) 16%, transparent);
  border-radius: var(--radius-sm);
}
.svc-points__cross svg { width: 16px; height: 16px; }

/* CTA band: navy with gold button. */
.svc-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  background: var(--c-band);
  color: var(--c-white);
  border-radius: var(--radius-xl);
  padding: var(--s-6) var(--s-5);
  box-shadow: 0 24px 60px var(--c-shadow);
}
.svc-cta__copy h2 { color: var(--c-white); margin: 0 0 var(--s-1); max-width: 22ch; }
.svc-cta__copy p { color: rgba(255, 255, 255, 0.88); margin: 0; max-width: 48ch; }
.svc-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.svc-cta__phone {
  display: inline-flex; align-items: center; gap: var(--s-1);
  font-weight: 600; color: var(--c-white); text-decoration: none;
}
.svc-cta__phone span { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 960px) {
  .svc-hero { min-height: 480px; padding: var(--s-8); }
  .svc-body__grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--s-8); }
  .svc-form { position: sticky; top: 96px; }
}
