/* ==========================================================================
   RoofCraft Stockholm AB — style.css
   WHITE/BLACK PASS (2026-08-26) — full colour-system rebuild per Lukas's
   explicit request: plain white background, black primary text, ONE deep
   teal accent (replaces the previous navy+copper+steel system). No more
   dark full-bleed bands — every section is white, separated only by soft
   "shadow at the end of every section" dividers instead of colour blocks.
   Sticky rectangular header (was: floating rounded pill). Lighter, airier
   hero photo treatment — light overlay + black headline, less copy.
   Hanken Grotesk for headlines/body; Lora reserved for the logo wordmark
   only, a deliberately different, more "premium" mark than running text.
   Transform/opacity-only motion.
   ========================================================================== */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/HankenGrotesk-Variable-latin.woff2") format("woff2-variations"),
       url("../fonts/HankenGrotesk-Variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("../fonts/Lora-Bold-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- Colour system — plain white + near-black + one teal accent ---- */
  --white: #FFFFFF;         /* primary background — every section */
  --bg: #FAFAFA;            /* barely-off-white — card/input surfaces only */
  --ink: #131313;           /* primary text ("black") */
  --ink-soft: #5B6570;      /* secondary/muted text */
  --ink-faint: #8A929B;     /* tertiary text — captions, footnotes */
  --line: #E7E7E7;          /* hairline borders */
  --line-soft: #F1F1F1;     /* faint dividers, alt icon badges */
  /* Deep teal — the single accent for the whole site: buttons, link hovers,
     icons, numerals, highlights. Replaces the old copper/orange accent per
     Lukas's explicit "no more yellow/orange feeling" direction. Dark
     enough to clear AAA text contrast on white. Deepened for the
     "premium/big business" pass (2026-09-01) — richer, less spa-teal. */
  --teal: #0B4A40;
  --teal-deep: #062A24;     /* gradient end — CTAs, hero panels */
  --teal-dark: #073630;     /* hover / press */
  --teal-light: #4FB3A0;    /* lighter teal for use on dark surfaces (footer) */
  --teal-tint: #E6F1EF;     /* light wash — badges, hover backgrounds */
  --teal-tint-strong: rgba(11, 74, 64, 0.14);
  --gradient-signature: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);

  --font-display: "Hanken Grotesk", "Arial", sans-serif;
  --font-body: "Hanken Grotesk", "Arial", sans-serif;
  --font-logo: "Lora", "Iowan Old Style", Georgia, serif;
  /* Technical/spec-sheet numerals — card numbers, big stats, step numbers —
     a monospace face reads as measured and industrial rather than soft
     app-UI, a deliberate nod to the trade rather than a generic tech site. */
  --font-mono: "SF Mono", "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --container: 1152px;
  /* Tightened from the first pass (14/9/pill) — sharper, more structural
     corners read closer to material edges (shingle, flashing, tile) than
     the softer app-like rounding this started with. */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;

  /* Soft, tinted-neutral shadows — never pure black */
  --shadow-sm: 0 2px 8px rgba(17, 17, 17, 0.06);
  --shadow-md: 0 12px 26px rgba(17, 17, 17, 0.09);
  --shadow-lg: 0 26px 52px rgba(17, 17, 17, 0.13);
  /* The "tiny shadow at the end of every section" divider — replaces the
     old alternating colour bands as the way sections separate from
     each other on an all-white page. */
  --shadow-divider: 0 18px 30px -24px rgba(17, 17, 17, 0.18);

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 72px;
  --space-7: 104px;

  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-height: 64px;
}

/* ---- Reset ---- */
*, *::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 {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-2);
  color: var(--ink);
}
h1 { font-weight: 800; letter-spacing: -0.03em; }
p { margin: 0 0 var(--space-2); }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; font-size: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-2);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Focus visibility — accessibility floor */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  z-index: 300;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Navigation — sticky rectangular bar, docked flush to the top. No gap
   above it, square corners, always a solid white surface — replaces the
   floating rounded pill. The hero now sits in normal flow below the
   header — transparent over the hero photo at rest, becomes a solid white
   bar once you scroll past it. Pages without a photo hero (`.no-hero`,
   set in the HTML on every subpage) go solid immediately — there's no
   photo underneath for a transparent bar to sit on. Logo/nav/phone text
   stays ink-coloured in both states: at rest it sits over the hero's
   light sky/upper photo area (or plain white on subpages), which reads
   fine in dark text without needing a colour swap keyed to scroll state.
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease-premium), border-color 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium);
}
.site-header.is-scrolled,
.site-header.no-hero {
  background: rgba(255,255,255,0.97);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav-pill {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 14px var(--space-2);
  position: relative;
}

.logo {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.logo span { color: var(--teal); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.phone-link:hover { color: var(--teal); }
.phone-link svg { flex: none; width: 18px; height: 18px; }

@media (max-width: 639px) {
  .header-actions .btn.btn-primary.btn-sm { display: none; }
  .phone-link span { font-size: 0.88rem; }
}
@media (max-width: 359px) {
  .phone-link span { display: none; } /* icon-only on the very smallest phones */
}

/* ==========================================================================
   Buttons — crafted hover/press/focus states
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: background-color 0.25s var(--ease-premium),
              color 0.25s var(--ease-premium),
              border-color 0.25s var(--ease-premium),
              transform 0.25s var(--ease-premium),
              box-shadow 0.25s var(--ease-premium);
  white-space: nowrap;
  isolation: isolate;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0); transition-duration: 0.08s; }

.btn-primary {
  background: var(--gradient-signature);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(17,17,17,0.12);
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.22) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease-premium);
}
.btn-primary:hover {
  box-shadow: var(--shadow-md);
}
.btn-primary:hover::after { transform: translateX(120%); }
/* Default state stays monochrome (ink border/text); the single accent
   colour appears on hover — "every button uses the one accent". */
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-outline-light {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline-light:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.nav-toggle:hover { background: var(--teal-tint); border-color: var(--teal); }
.nav-toggle svg { width: 20px; height: 20px; }

.main-nav {
  display: none;
}
.main-nav.is-open {
  display: block;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
}
.main-nav ul { display: flex; flex-direction: column; }
.main-nav a {
  display: block;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius-sm);
}
.main-nav a:hover { background: var(--teal-tint); }
.main-nav a[aria-current="page"] { color: var(--teal); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .main-nav ul { flex-direction: row; gap: var(--space-4); }
  .main-nav a { padding: 8px 2px; color: var(--ink); position: relative; }
  .main-nav a::after {
    content: "";
    position: absolute;
    left: 2px; right: 2px; bottom: 2px;
    height: 1.5px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease-premium);
  }
  .main-nav a:hover::after,
  .main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
  .main-nav a[aria-current="page"] { color: var(--teal); }
}

/* ==========================================================================
   Hero — "premium/big business" pass (2026-09-01). Full-bleed again per
   Lukas's explicit "the image needs to be as big as the website" — spans
   the full viewport width on desktop instead of being framed inside the
   container, for the scale/gravitas a bigger commercial contractor should
   project. New source photo (a real industrial standing-seam roof over a
   coastal city skyline — conveys large-scale/commercial capability, not
   just a residential job) replaces the AI crew photo as the flagship hero.
   ========================================================================== */
.hero {
  position: relative;
  color: var(--white);
  min-height: 68svh;
  display: flex;
  align-items: flex-end;
  background-color: var(--ink);
  background-image: url('../images/hero-sm.jpg');
  background-size: cover;
  background-position: center 55%;
  overflow: hidden;
}
@supports (background-image: image-set(url(a.avif) 1x)) {
  .hero {
    background-image: image-set(
      url('../images/hero-sm.webp') type('image/webp'),
      url('../images/hero-sm.jpg') type('image/jpeg')
    );
  }
}
@media (min-width: 860px) {
  .hero { min-height: 92svh; background-image: url('../images/hero-lg.jpg'); background-position: center 60%; }
  @supports (background-image: image-set(url(a.avif) 1x)) {
    .hero {
      background-image: image-set(
        url('../images/hero-lg.webp') type('image/webp'),
        url('../images/hero-lg.jpg') type('image/jpeg')
      );
    }
  }
}
/* Corner bracket marks — a restrained "engineering/spec-sheet" motif
   (viewfinder-style corners) that reads as precision/tech without adding
   any new colour or competing with the photo. Hidden on mobile where
   there's no room for them to breathe. */
.hero .hero-brackets span {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(255,255,255,0.55);
  z-index: 2;
  display: none;
}
@media (min-width: 860px) {
  .hero .hero-brackets span { display: block; }
  .hero .hero-brackets span:nth-child(1) { top: var(--space-4); left: var(--space-4); border-width: 1.5px 0 0 1.5px; }
  .hero .hero-brackets span:nth-child(2) { top: var(--space-4); right: var(--space-4); border-width: 1.5px 1.5px 0 0; }
  .hero .hero-brackets span:nth-child(3) { bottom: var(--space-4); left: var(--space-4); border-width: 0 0 1.5px 1.5px; }
  .hero .hero-brackets span:nth-child(4) { bottom: var(--space-4); right: var(--space-4); border-width: 0 1.5px 1.5px 0; }
}
/* Third pass, even lighter — Lukas wants the photo to genuinely stand out,
   not sit under a wash. Legibility now rests almost entirely on the
   text-shadow halo on the headline/paragraph below. */
/* Back to a dark overlay + white text — the light-wash + black-text
   approach kept producing "can't see the text" complaints no matter how
   the balance was tuned. A dark, bottom-anchored gradient with white text
   is the standard, reliable way to keep type legible over a busy photo;
   the top ~15% stays essentially clear so the photo itself still reads
   clearly there (and under the fixed header, which needs a light patch
   for its own ink-coloured text to stay legible at rest). */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(19,19,19,0.75) 0%,
    rgba(19,19,19,0.5) 32%,
    rgba(19,19,19,0.16) 62%,
    rgba(19,19,19,0) 85%);
}
/* Faint grain — material tactility instead of a flat digital gradient,
   very low opacity so it never fights the photo or the text. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Very faint technical/blueprint grid — a "tech vibe" cue restricted to
   the upper two-thirds of the photo (masked out before it reaches the
   text zone), so it reads as engineering precision without ever
   competing with the headline. */
.hero-grid {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.16) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 72%);
  mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 72%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-height) + var(--space-4));
  padding-bottom: var(--space-5);
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-3);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow svg { width: 14px; height: 14px; color: var(--teal); }
.hero h1 {
  color: var(--white);
  /* Clean, confident weight — not the site's heavier 800 (reads blocky at
     this size), not too light either. A single soft drop-shadow gives it
     depth against the photo without the blurry multi-layer glow the
     previous (black-text) version needed to fake contrast. */
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 1.1rem + 4.6vw, 3.3rem);
  max-width: 40ch;
  margin-bottom: var(--space-2);
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
@media (min-width: 1180px) {
  .hero h1 { white-space: nowrap; }
}
.hero p {
  max-width: 44ch;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.hero-ctas .btn-primary { font-size: 1.08rem; padding: 17px 26px; }
.hero-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255,255,255,0.55);
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
  transition: text-decoration-color 0.2s ease, gap 0.2s ease;
}
.hero-secondary-link:hover { text-decoration-color: var(--white); gap: 9px; }
@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; align-items: center; }
}
@media (max-width: 639px) {
  .hero-content { padding-top: calc(var(--nav-height) + var(--space-2)); padding-bottom: var(--space-4); }
  .hero-badges { gap: 8px; margin-bottom: var(--space-2); }
  .hero-eyebrow { font-size: 0.68rem; padding: 6px 11px; }
  .hero h1 { font-size: clamp(1.5rem, 0.95rem + 5vw, 1.85rem); margin-bottom: var(--space-2); }
  .hero p { font-size: 0.88rem; }
  .hero-ctas { margin-top: var(--space-2); gap: var(--space-1); }
  .hero-ctas .btn-primary { font-size: 1rem; padding: 15px 22px; }

  .page-header h1 { font-size: clamp(1.6rem, 1rem + 4.5vw, 2rem); }
  .page-header p { font-size: 0.96rem; }
}

/* ==========================================================================
   Trust bar — plain in-flow stat row (was: floating dark chip card)
   ========================================================================== */
.trust-bar { background: var(--white); }
.trust-bar ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-2);
  padding: var(--space-4) 0;
  font-family: var(--font-body);
}
.trust-bar li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust-bar li strong {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1;
  color: var(--teal);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.trust-bar li span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.trust-bar svg { flex: none; width: 14px; height: 14px; color: var(--teal); }
@media (min-width: 640px) {
  .trust-bar ul {
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0;
  }
  .trust-bar li { position: relative; padding-left: var(--space-4); }
  .trust-bar li:first-child { padding-left: 0; }
  .trust-bar li:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 32px;
    background: var(--line);
  }
}

/* ==========================================================================
   Section scaffolding — every section is plain white. Separation between
   sections comes from a soft shadow cast by the section above, not from
   alternating colour bands.
   ========================================================================== */
section { padding: var(--space-6) 0; }
.section-tight { padding: var(--space-5) 0; }
.band-light, .band-white, .band-dark { background: var(--white); color: var(--ink); }

.hero, main > section, .trust-bar {
  position: relative;
  box-shadow: var(--shadow-divider);
}

.section-head { max-width: 640px; margin-bottom: var(--space-4); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
/* Small technical tick before section labels — a spec-sheet/blueprint
   detail rather than a plain text label. */
.eyebrow::before {
  content: "";
  width: 14px;
  height: 1.5px;
  background: currentColor;
  flex: none;
}
.section-head h2 { font-size: clamp(1.65rem, 1.15rem + 2vw, 2.35rem); }
.section-head p { color: var(--ink-soft); font-size: 1.04rem; }

/* reveal-on-scroll — staggered translateY + opacity, GPU-composited only.
   Slightly more travel + a hint of scale for the "premium pop up" feel
   Lukas asked for (2026-09-01 pass) — still transform/opacity only, still
   respects prefers-reduced-motion below. */
.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 0.7s var(--ease-premium), transform 0.7s var(--ease-premium);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
/* Numbers/stats — a punchier "pop" than the standard .reveal, with a
   touch of overshoot so it reads as a deliberate pop rather than a plain
   fade. Used on every trust-bar figure and stat-row number (2026-09-01
   pass, "I want all the numbers to pop up clean when you scroll down").
   Pairs with the count-up JS on [data-count-to] elements — the number
   pops into place and its digits tick up at the same time. */
.stat-pop {
  opacity: 0;
  transform: translateY(20px) scale(0.7);
  transition: opacity 0.5s var(--ease-premium), transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.stat-pop.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .stat-pop { opacity: 1; transform: none; transition: none; }
}

/* A more noticeable "pop into place" for service cards on mobile, where
   each card is full-width and enters the viewport on its own as you
   scroll — a bit more travel plus a subtle scale reads as a deliberate
   one-by-one entrance rather than a generic fade. */
@media (max-width: 639px) {
  .service-card.reveal {
    transform: translateY(30px) scale(0.96);
    transition-duration: 0.55s;
  }
  .service-card.reveal.is-visible { transform: none; }
}

/* ==========================================================================
   Services — premium simplification: no dark scrim, no floating badge
   overlapping the photo. Clean photo, small quiet number label, icon sits
   inline in the body, generous internal padding, wide gaps between cards.
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
.service-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-premium), box-shadow 0.4s var(--ease-premium), border-color 0.4s var(--ease-premium);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}
/* Taller than the original 16/10 — bigger, more dominant job-site photos
   rather than a thin strip above the copy. */
.service-card-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg);
}
.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-premium);
}
.service-card:hover .service-card-media img { transform: scale(1.06); }
/* Minimal number label directly on the photo — small confident type with
   a soft shadow for legibility, no pill/chip background. */
.service-card .num {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 2;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.45);
}
.service-card-body { position: relative; padding: var(--space-4); flex: 1; display: flex; flex-direction: column; gap: 8px; }
/* Icon now sits inline at the top of the body, not overlapping the photo
   seam — a small quiet mark instead of a floating badge. */
.service-card .service-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: var(--teal-tint);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.service-card:nth-child(even) .service-icon { background: var(--line-soft); color: var(--ink); }
.service-card .service-icon svg { width: 19px; height: 19px; }
.service-card:hover .service-icon { background: var(--teal); color: var(--white); }
.service-card-body h3 { font-size: 1.18rem; margin: 0 0 4px; }
.service-card-body p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: var(--space-1); }
/* Understated text-link CTA instead of a pill button on every card — six
   repeated buttons read busy; a plain accent link is quieter and more
   editorial, in keeping with the reference sites' card style. */
.service-card .btn {
  align-self: flex-start;
  margin-top: auto;
  padding: 0;
  background: none;
  border: 0;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 0;
  box-shadow: none;
}
.service-card .btn:hover { transform: none; background: none; color: var(--teal-dark); }

@media (max-width: 639px) {
  .services-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .service-card-body { padding: var(--space-3); }
}
@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; gap: var(--space-4); } }
@media (min-width: 960px) { .services-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); } }

/* Full service blocks on tjanster.html — plain rows separated by a
   hairline, not filled background cards, for a lighter "presentation"
   rhythm with more room between each. */
.service-block {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5) 0;
}
.service-block:not(:last-child) { border-bottom: 1px solid var(--line); }
.service-block-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
}
.service-block-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-premium); }
.service-block:hover .service-block-media img { transform: scale(1.035); }
.service-block-body .tag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-tint);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}
.service-block-body h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); }
.service-block-body p { color: var(--ink-soft); }
.service-block-body .btn { margin-top: 8px; }
@media (min-width: 780px) {
  .service-block { grid-template-columns: 400px 1fr; align-items: center; }
  .service-block.reverse .service-block-media { order: 2; }
}

/* ==========================================================================
   Capability split — "Two ways we work" (added 2026-09-01, premium/big-
   business pass). Makes explicit that RoofCraft handles large commercial
   contracts and single homeowner jobs alike — the one deliberate second
   dark/gradient panel on the site besides the footer, used here because
   it's a distinct feature showcase, not a plain content band.
   ========================================================================== */
.capability-grid { display: grid; grid-template-columns: 1fr; gap: 1.5px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.capability-panel {
  position: relative;
  padding: var(--space-5) var(--space-4);
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.capability-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,20,17,0.35) 0%, rgba(6,20,17,0.92) 100%);
}
.capability-panel.is-commercial { background-image: url('../images/hero-lg.jpg'); }
.capability-panel.is-residential { background-image: url('../images/service-leak-repair.jpg'); }
.capability-panel > * { position: relative; z-index: 1; }
.capability-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: var(--space-2);
}
.capability-panel h3 { color: var(--white); font-size: clamp(1.3rem, 1.05rem + 1vw, 1.6rem); margin-bottom: 8px; }
.capability-panel p { color: rgba(255,255,255,0.78); margin-bottom: var(--space-2); max-width: 40ch; }
.capability-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-2); }
.capability-list li { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: rgba(255,255,255,0.88); }
.capability-list svg { flex: none; width: 15px; height: 15px; color: var(--teal-light); }
@media (min-width: 780px) { .capability-grid { grid-template-columns: 1fr 1fr; } .capability-panel { min-height: 460px; padding: var(--space-6) var(--space-5); } }

/* ==========================================================================
   About teaser / founder split
   ========================================================================== */
.split { display: grid; gap: var(--space-3); align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); }
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-premium); }
.split-media:hover img { transform: scale(1.03); }
@media (min-width: 780px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .split.reverse .split-media { order: 2; }
}

.stat-row { display: flex; gap: var(--space-4); margin-top: var(--space-3); flex-wrap: wrap; }
.stat-row .stat strong {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.stat-row .stat span { font-size: 0.85rem; color: var(--ink-soft); }

/* ==========================================================================
   Why-choose cards (reused on om-oss.html and the homepage strip)
   ========================================================================== */
.why-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
.why-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s var(--ease-premium);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-card .icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-pill);
  background: var(--teal-tint);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-2);
}
.why-card .icon svg { width: 20px; height: 20px; }
.why-card h3 { font-size: 1.08rem; }
.why-card p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0; }
@media (min-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Process steps — numbered circles in a row (desktop), stacked (mobile).
   New pattern: fills the "how they do it" gap on the homepage.
   ========================================================================== */
.process-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.process-step { display: flex; gap: var(--space-3); align-items: flex-start; }
.process-step .step-num {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.05rem;
  border: 1.5px solid var(--line);
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 4px; }
.process-step p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0; }
@media (min-width: 780px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); position: relative; }
  .process-step { flex-direction: column; align-items: flex-start; gap: var(--space-2); position: relative; z-index: 1; }
  .process-step .step-num { width: 56px; height: 56px; font-size: 1.2rem; }
  .process-grid::before {
    content: "";
    position: absolute;
    top: 28px;
    left: calc(100% / 6);
    right: calc(100% / 6);
    height: 1px;
    background: var(--line);
    z-index: 0;
  }
}

/* ==========================================================================
   Reviews — compact section, smaller cards, just shows how the reviews
   read (was: taller section, wider cards).
   ========================================================================== */
section[aria-labelledby="reviews-heading"] { padding: var(--space-4) 0; }
.reviews-head { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); flex-wrap: wrap; }
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
}
.stars { color: var(--teal); font-size: 0.9rem; letter-spacing: 1px; }

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.marquee-track {
  display: flex;
  gap: var(--space-2);
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: 100%; }
  .marquee-track .review-card:nth-child(n+4) { display: none; }
}

.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  width: min(260px, 76vw);
  flex: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium);
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.review-card .stars { display: block; margin-bottom: 6px; }
.review-card p { font-size: 0.86rem; color: var(--ink); margin-bottom: 6px; line-height: 1.45; }
.review-card .who {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0;
}
.review-note { margin-top: var(--space-2); font-size: 0.76rem; color: var(--ink-faint); }

/* ==========================================================================
   Service area
   ========================================================================== */
.area-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
.area-chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-premium), background-color 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium);
}
.area-chip:hover { transform: translateY(-3px); background: var(--teal-tint); box-shadow: var(--shadow-md); }
.area-chip svg { flex: none; width: 18px; height: 18px; color: var(--teal); }
.area-note { margin-top: var(--space-3); color: var(--ink-soft); }
@media (min-width: 640px) { .area-grid { grid-template-columns: repeat(4, 1fr); } }

/* ==========================================================================
   Gallery / featured job photo
   ========================================================================== */
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-2); }
.gallery-item { border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-premium); }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(17,17,17,0.75), rgba(17,17,17,0));
  color: var(--white);
  padding: var(--space-2);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }

.featured-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.featured-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-premium);
}
.featured-photo:hover img { transform: scale(1.035); }
.featured-photo .gallery-caption { font-size: 0.92rem; }

/* ==========================================================================
   Before/after comparison slider — unchanged behaviour, recoloured.
   ========================================================================== */
.ba-slider { max-width: 640px; margin: 0 auto; }
.ba-slider-frame {
  --ba-pos: 50%;
  position: relative;
  aspect-ratio: 3/2;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba-img img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-drag: none; }
.ba-img-before { clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0); }
.ba-tag {
  position: absolute;
  top: var(--space-2);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(17, 17, 17, 0.68);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 2;
}
.ba-tag-before { left: var(--space-2); }
.ba-tag-after { right: var(--space-2); }
.ba-line {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--ba-pos);
  width: 3px;
  margin-left: -1.5px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.25);
  pointer-events: none;
  z-index: 2;
}
.ba-handle {
  position: absolute;
  top: 50%;
  left: var(--ba-pos);
  width: 44px; height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  z-index: 3;
}
.ba-handle svg { width: 20px; height: 20px; }
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  z-index: 4;
}
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 1px; height: 100%; background: transparent; }
.ba-range::-moz-range-thumb { width: 1px; height: 100%; border: 0; opacity: 0; background: transparent; }
.ba-range::-moz-range-track { background: transparent; border: 0; }
.ba-range:focus-visible ~ .ba-handle { outline: 2px solid var(--teal); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .ba-img-before, .ba-line, .ba-handle { transition: left 0.08s ease-out, clip-path 0.08s ease-out; }
  .ba-slider-frame.is-dragging .ba-img-before,
  .ba-slider-frame.is-dragging .ba-line,
  .ba-slider-frame.is-dragging .ba-handle { transition: none; }
}
.ba-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-2);
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.ba-hint svg { width: 16px; height: 16px; flex: none; color: var(--teal); }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: var(--space-3) 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  transition: color 0.2s ease;
}
.faq-question:hover { color: var(--teal); }
.faq-question .icon {
  flex: none;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--ink);
  transition: transform 0.3s var(--ease-premium), background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.faq-question .icon svg { width: 12px; height: 12px; }
.faq-question[aria-expanded="true"] .icon {
  transform: rotate(45deg);
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}
.faq-answer { overflow: hidden; max-height: 0; transition: max-height 0.3s var(--ease-premium); }
.faq-answer p { color: var(--ink-soft); padding: 0 4px var(--space-2); }
.faq-item.is-open .faq-answer { max-height: 400px; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { background: var(--white); color: var(--ink); text-align: center; }
.cta-band h2 { color: var(--ink); }
.cta-band p { color: var(--ink-soft); max-width: 46ch; margin-left: auto; margin-right: auto; }
.cta-band-actions { display: flex; flex-direction: column; gap: var(--space-2); align-items: center; margin-top: var(--space-3); }
@media (min-width: 640px) { .cta-band-actions { flex-direction: row; justify-content: center; } }

/* ==========================================================================
   Footer — the one deliberate dark band on the site, a clear closing
   "anchor" at the bottom of the page rather than a colour break mid-scroll.
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.62); padding: var(--space-6) 0 var(--space-3); }

/* Email capture — a lighter-weight alternative to the phone CTA / full
   contact form, sitting at the top of the footer on every page so it's
   always reachable without hunting for the contact page. */
.footer-newsletter {
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
}
.footer-newsletter-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-newsletter h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 4px; }
.footer-newsletter p { color: rgba(255,255,255,0.55); font-size: 0.92rem; margin-bottom: 0; max-width: 38ch; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 420px; }
.newsletter-form-row { display: flex; gap: 10px; }
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--teal-light); background: rgba(255,255,255,0.1); }
.newsletter-form .btn { flex: none; white-space: nowrap; }
.newsletter-form .form-status { margin-top: 0; }
@media (min-width: 640px) {
  .footer-newsletter-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-4); }
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.footer-brand .logo { color: var(--white); }
.footer-brand .logo span { color: var(--teal-light); }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.9rem; max-width: 34ch; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--teal-light); }
.footer-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 600; color: var(--white); font-size: 1.1rem; }
.footer-trust {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--teal-light);
}
.footer-map { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.14); box-shadow: var(--shadow-sm); }
/* Recolour the plain Google Maps embed to a dark monochrome tone so it
   reads as a deliberately-styled panel against the dark footer, instead of
   default light-grey/green Maps colours clashing with a near-black band. */
.footer-map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
  filter: invert(1) hue-rotate(160deg) brightness(0.85) contrast(0.9) saturate(0.9);
}
.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
@media (min-width: 780px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1.3fr; gap: var(--space-3); }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ==========================================================================
   Page header (services/about/contact) — plain white block, no nav-height
   compensation needed now the header is sticky-in-flow, not floating.
   ========================================================================== */
.page-header {
  background: var(--white);
  color: var(--ink);
  padding: calc(var(--nav-height) + var(--space-5)) 0 var(--space-4);
  position: relative;
  overflow: hidden;
}
/* Optional photo background for subpages that would otherwise carry no
   imagery at all (kontakt.html) — same light-wash logic as the hero so
   black text stays legible while the photo still reads clearly. */
.page-header.has-photo {
  background-size: cover;
  background-position: center 62%;
}
.page-header.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(255,255,255,0.92) 0%,
    rgba(255,255,255,0.7) 40%,
    rgba(255,255,255,0.55) 100%);
  z-index: 0;
}
.page-header.has-photo .container { position: relative; z-index: 1; }
.page-header.photo-kontakt { background-image: url('../images/hero-lg.jpg'); background-position: center 55%; }
.breadcrumb { position: relative; font-size: 0.82rem; color: var(--ink-faint); margin-bottom: var(--space-2); }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--teal); }
.page-header h1 { position: relative; color: var(--ink); font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.75rem); max-width: 28ch; }
.page-header p { position: relative; color: var(--ink-soft); max-width: 50ch; font-size: 1.04rem; }
.page-header .btn { position: relative; margin-top: var(--space-2); }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.contact-info { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); box-shadow: var(--shadow-sm); }
.contact-info .phone-link { color: var(--ink); font-size: 1.5rem; margin-bottom: var(--space-2); }
.contact-info .phone-link:hover { color: var(--teal); }
.contact-info-row { display: flex; align-items: flex-start; gap: 12px; padding: var(--space-2) 0; border-top: 1px solid var(--line); }
.contact-info-row:first-of-type { border-top: 0; }
.contact-info-row svg { flex: none; width: 20px; height: 20px; color: var(--teal); margin-top: 2px; }
.contact-info-row h4 { font-size: 0.92rem; margin-bottom: 2px; }
.contact-info-row p, .contact-info-row a { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0; }
.contact-info-row a:hover { color: var(--teal); }
.jour-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  margin-top: var(--space-2);
}

.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: var(--space-2); }
.form-row label { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--ink); }
.form-row .required { color: var(--teal); }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--teal); outline: none; background: var(--white); }
.form-row textarea { resize: vertical; min-height: 110px; }
.form-sla { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: var(--space-2); }
.form-status { display: none; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-top: var(--space-2); }
.form-status.is-visible { display: block; }
.form-status.success { background: #E4F1E6; color: #235C2E; border: 1px solid #B9DABE; }
.form-status.error { background: #FBE8E4; color: #8A2E1E; border: 1px solid #F1C3B8; }
.form-status.error a { font-weight: 700; text-decoration: underline; }

@media (min-width: 860px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }

/* ==========================================================================
   Utilities
   ========================================================================== */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.badge-20yr {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}

/* Hover-only affordances gated behind hover-capable pointers */
@media (hover: none) {
  .service-card:hover,
  .why-card:hover,
  .area-chip:hover,
  .review-card:hover { transform: none; box-shadow: none; }
  .split-media:hover img,
  .gallery-item:hover img,
  .featured-photo:hover img,
  .service-block:hover .service-block-media img,
  .service-card:hover .service-card-media img { transform: none; }
  .service-card:hover .service-icon { transform: none; }

  /* Touch devices get no hover, so give tap itself a quick, tactile
     response instead — a brief scale-down reads as "the card registered
     your tap" the same way the desktop hover-lift signals interactivity. */
  .service-card:active,
  .why-card:active,
  .area-chip:active,
  .review-card:active {
    transform: scale(0.97);
    transition: transform 0.15s var(--ease-premium);
  }
}
