/* ==========================================================================
   JMAC Building Services LTD — styles.css
   Direction: "site board". White ground, black slab type, red as the single
   accent, blocky shapes taken from the logo, a faint brick-bond texture.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Brand */
  --ink: #111111;
  --ink-2: #1c1c1c;
  --brand-primary: #E30613;
  --brand-primary-dark: #B3040F;
  --white: #ffffff;
  --paper: #F4F3EF;
  --paper-2: #EAE8E2;
  --rule: #D9D6CE;
  --grey-text: #5C5C5C;
  --grey-on-dark: #B9B9B9;
  --mortar: rgba(17, 17, 17, 0.06);
  --shade: rgba(17, 17, 17, 0.55);
  --shadow: 0 18px 40px -18px rgba(17, 17, 17, 0.35);

  /* Fixed utility colours */
  --whatsapp: #25D366;
  --whatsapp-dark: #128C4B;
  --leaflet-bg: #E8E6E0;
  --lightbox-bg: rgba(10, 10, 10, 0.97);
  --tap-highlight: rgba(227, 6, 19, 0.15);
  /* Home hero overlay */
  --hero-shade-strong: rgba(17, 17, 17, 0.68);
  --hero-shade-mid: rgba(17, 17, 17, 0.5);
  --hero-shade-light: rgba(17, 17, 17, 0.28);


  /* Brick-bond texture (colour baked into the variable so no hex lives outside :root) */
  --brick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='48'%3E%3Cg fill='none' stroke='%23111111' stroke-opacity='0.06' stroke-width='1'%3E%3Cpath d='M0 .5h96M0 24.5h96M.5 0v24M48.5 24v24'/%3E%3C/g%3E%3C/svg%3E");
  --brick-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='48'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1'%3E%3Cpath d='M0 .5h96M0 24.5h96M.5 0v24M48.5 24v24'/%3E%3C/g%3E%3C/svg%3E");

  /* Type */
  --font-display: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", sans-serif-condensed, Arial, sans-serif;
  --font-body: "Avenir Next", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.833rem, 0.80rem + 0.16vw, 0.938rem);
  --step-0:  clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --step-1:  clamp(1.2rem,   1.11rem + 0.45vw, 1.5rem);
  --step-2:  clamp(1.44rem,  1.29rem + 0.75vw, 2rem);
  --step-3:  clamp(1.728rem, 1.49rem + 1.19vw, 2.663rem);
  --step-4:  clamp(2.074rem, 1.71rem + 1.82vw, 3.553rem);
  --step-5:  clamp(2.6rem,   1.9rem + 3.4vw,   5.2rem);

  /* Space */
  --gutter:      clamp(1rem, 4vw, 2rem);
  --space-xs:    0.5rem;
  --space-s:     clamp(0.75rem, 0.6rem + 0.6vw, 1rem);
  --space-m:     clamp(1.25rem, 1rem + 1.2vw, 2rem);
  --space-l:     clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  --content-max: 1200px;
  --prose-max:   68ch;

  --nav-h: 64px;
  --radius: 6px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 900px) {
  :root { --nav-h: 76px; }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
@media (min-width: 900px) { html { scroll-padding-bottom: 1rem; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; touch-action: manipulation; cursor: pointer; }
a, summary { touch-action: manipulation; }
a, button, summary { -webkit-tap-highlight-color: var(--tap-highlight); }
p, li { max-width: var(--prose-max); }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-s);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); line-height: 1.05; }
h2 { font-size: var(--step-3); line-height: 1.15; }
h3 { font-size: var(--step-2); line-height: 1.25; }
p { margin: 0 0 var(--space-s); text-wrap: pretty; }

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

.container { width: min(100% - (var(--gutter) * 2), var(--content-max)); margin-inline: auto; }
section { padding-block: clamp(3.5rem, 9vw, 7rem); }
section[id], [id] { scroll-margin-top: calc(var(--nav-h) + 0.5rem); }

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

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 2000;
  background: var(--ink); color: var(--white);
  padding: 0.75rem 1rem; font-weight: 700; text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Shared type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700; font-stretch: condensed;
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: var(--step--1);
  color: var(--brand-primary);
  margin-bottom: var(--space-s);
}
.eyebrow::before {
  content: ""; width: 28px; height: 10px; background: var(--brand-primary);
}
.on-dark .eyebrow { color: var(--white); }

.section-head { margin-bottom: var(--space-l); max-width: 52rem; }
.section-head h2 { position: relative; }
.section-head p:not(.eyebrow) { color: var(--grey-text); font-size: var(--step-1); line-height: 1.5; }
.on-dark .section-head p:not(.eyebrow) { color: var(--grey-on-dark); }

.lead { font-size: var(--step-1); line-height: 1.5; color: var(--grey-text); }

.text-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px;
  font-family: var(--font-display); font-weight: 800; font-stretch: condensed;
  text-transform: uppercase; letter-spacing: 0.06em;
  text-decoration: none;
  border-bottom: 3px solid var(--brand-primary);
}
.text-link svg { width: 20px; height: 20px; transition: transform 0.25s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .text-link:hover svg { transform: translateX(4px); }
  .text-link:hover { color: var(--brand-primary-dark); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.8rem 1.4rem;
  font-family: var(--font-display); font-weight: 800; font-stretch: condensed;
  font-size: var(--step-0);
  text-transform: uppercase; letter-spacing: 0.06em;
  text-decoration: none; line-height: 1.1;
  border: 2px solid transparent; border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}
.btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn-whatsapp { background: var(--brand-primary); color: var(--white); }
.btn-call { background: var(--ink); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.on-dark .btn-outline, .btn-outline-light { color: var(--white); border-color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn-whatsapp:hover { background: var(--brand-primary-dark); }
  .btn-call:hover { background: var(--ink-2); }
  .btn-outline:hover { background: var(--ink); color: var(--white); }
  .on-dark .btn-outline:hover, .btn-outline-light:hover { background: var(--white); color: var(--ink); }
}
.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ==========================================================================
   Header / nav (full-screen overlay below 900px)
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  padding-top: max(0px, env(safe-area-inset-top));
}
.site-header::after {
  /* red-and-black site-board stripe under the header */
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px;
  background: linear-gradient(90deg, var(--brand-primary) 0 22%, var(--ink) 22% 100%);
}
nav.nav {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: auto; height: calc(var(--nav-h) - 18px); }

.nav-toggle {
  position: relative; z-index: 1101;
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; padding: 0;
  background: var(--ink); border: 0; border-radius: var(--radius);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 3px; background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.2s ease, background-color 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] {
  background: var(--brand-primary);
  /* Pin the close button to the viewport while the overlay is open, so it can't
     scroll away with the sticky header (e.g. iOS bounce at the bottom of a page). */
  position: fixed;
  top: calc(env(safe-area-inset-top) + (var(--nav-h) - 48px) / 2);
  right: var(--gutter);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background-color: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + 1rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: var(--ink) var(--brick-light);
  visibility: hidden; opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease), visibility 0s linear 0.35s;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav-menu.is-open {
  visibility: visible; opacity: 1; transform: none;
  transition: opacity 0.3s ease, transform 0.35s var(--ease), visibility 0s;
}
.nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.nav-list li { max-width: none; }
.nav-link {
  display: flex; align-items: center; min-height: 56px;
  font-family: var(--font-display); font-weight: 800; font-stretch: condensed;
  font-size: var(--step-3); text-transform: uppercase; letter-spacing: 0.01em;
  color: var(--white); text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-inline: 0.75rem;
}
/* Current page: solid red bar in the mobile overlay */
.nav-link[aria-current="page"] {
  background: var(--brand-primary); color: var(--white);
  border-radius: var(--radius); border-bottom-color: transparent;
}
.nav-cta { margin-top: var(--space-m); }
.nav-cta .btn { width: 100%; }
/* White in the mobile overlay so it doesn't compete with the red current-page bar */
.nav-cta .btn-whatsapp { background: var(--white); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .nav-cta .btn-whatsapp:hover { background: var(--grey-on-dark); color: var(--ink); }
}
body.nav-open { overflow: hidden; }

/* Light nav toggle colour while overlay open stays visible on dark bg */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static; inset: auto; z-index: auto;
    flex-direction: row; align-items: center; justify-content: flex-end; gap: 1.5rem;
    padding: 0; background: none;
    visibility: visible; opacity: 1; transform: none; transition: none;
    overflow: visible;
  }
  .nav-list { display: flex; gap: 0.25rem; }
  .nav-link {
    min-height: 44px; padding: 0 0.7rem;
    font-size: var(--step-0); letter-spacing: 0.06em;
    color: var(--ink); border-bottom: 0;
    position: relative;
  }
  .nav-link::after {
    content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 4px; height: 3px;
    background: var(--brand-primary); transform: scaleX(0); transform-origin: left;
    transition: transform 0.25s var(--ease);
  }
  .nav-link[aria-current="page"] { color: var(--ink); background: none; border-radius: 0; }
  .nav-link[aria-current="page"]::after { transform: scaleX(1); }
  .nav-cta { margin-top: 0; }
  .nav-cta .btn-whatsapp { background: var(--brand-primary); color: var(--white); }
  .nav-cta .btn { width: auto; min-height: 46px; padding: 0.6rem 1.1rem; font-size: var(--step--1); }
}
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .nav-link:hover::after { transform: scaleX(1); }
  .nav-cta .btn-whatsapp:hover { background: var(--brand-primary-dark); color: var(--white); }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .nav-menu { gap: 0.75rem; }
  .nav-link { padding: 0 0.45rem; }
  .nav-link::after { left: 0.45rem; right: 0.45rem; }
}

/* ==========================================================================
   Hero A — split
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(100svh - var(--nav-h), 46rem);
  display: grid; align-items: center;
  padding-block: clamp(2rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);
  background: var(--paper) var(--brick);
  overflow: hidden;
}
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding-block: 4rem; }
}
.hero h1 {
  font-size: var(--step-5);
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-m);
}
.hero h1 .accent { color: var(--brand-primary); display: block; }
.hero-tagline { font-size: var(--step-1); line-height: 1.5; color: var(--ink); max-width: 36rem; margin-bottom: var(--space-m); }
.hero-phone {
  display: inline-flex; flex-direction: column; margin-top: var(--space-s);
  font-family: var(--font-display); font-weight: 800; font-stretch: condensed;
  font-size: var(--step-2); text-decoration: none; letter-spacing: 0.02em;
  min-height: 44px;
}
.hero-phone small {
  font-family: var(--font-body); font-weight: 600; font-size: var(--step--1);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-text);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.85rem;
  margin: var(--space-m) 0 0; padding: 0.7rem 1rem 0.75rem;
  background: var(--white); color: var(--ink);
  border-left: 6px solid var(--brand-primary); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
a.hero-badge { text-decoration: none; transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.hero-badge-ext { display: grid; color: var(--grey-text); margin-left: 0.25rem; }
.hero-badge-ext svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  a.hero-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  a.hero-badge:hover .hero-badge-ext { color: var(--brand-primary); }
}
.hero--watermark a.hero-badge:focus-visible { outline-color: var(--white); outline-offset: 4px; }

/* Inline link to the FMB member profile */
.fmb-link {
  color: inherit; font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--brand-primary);
  text-decoration-thickness: 2px; text-underline-offset: 0.2em;
}
@media (hover: hover) and (pointer: fine) {
  .fmb-link:hover { color: var(--brand-primary); }
  .site-footer .fmb-link:hover { color: var(--white); }
}
.cert-link { margin-top: 0.75rem; font-size: var(--step--1); }

.hero-badge-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-primary); color: var(--white);
}
.hero-badge-icon svg { width: 24px; height: 24px; stroke-width: 3; }
.hero-badge-text { display: grid; gap: 0.15rem; }
.hero-badge strong {
  font-family: var(--font-display); font-weight: 800; font-stretch: condensed;
  font-size: var(--step-1); line-height: 1.1; text-transform: uppercase; letter-spacing: 0.01em;
}
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-m); margin-top: var(--space-m); }
.hero-trust .hero-badge { margin: 0; }
.hero-badge-label { font-size: var(--step--1); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-primary-dark); }

/* Home hero: full-background photo with a slight dark overlay */
.hero--watermark { background: var(--ink); color: var(--white); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; margin: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.hero--watermark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--hero-shade-mid);
}
.hero--watermark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: linear-gradient(90deg, var(--brand-primary) 0 22%, var(--ink) 22% 100%);
}
.hero--watermark .hero-copy { max-width: 46rem; }
.hero--watermark .eyebrow { color: var(--white); }
.hero--watermark .hero-tagline { color: var(--white); }
.hero--watermark h1, .hero--watermark .hero-tagline { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.hero--watermark .btn-call { background: transparent; color: var(--white); border-color: var(--white); }
.hero--watermark :focus-visible { outline-color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .hero--watermark .btn-call:hover { background: var(--white); color: var(--ink); }
}
@media (min-width: 900px) {
  /* Zoomed out slightly: photo fills the full width, centred, no side fade */
  .hero-bg img {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
    width: auto; height: 118%; min-width: 100%;
  }
  .hero--watermark::before {
    background: linear-gradient(90deg, var(--hero-shade-strong) 0%, var(--hero-shade-mid) 45%, var(--hero-shade-light) 100%);
  }
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--ink) var(--brick-light);
  color: var(--white);
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  width: clamp(80px, 18vw, 220px); height: 12px; background: var(--brand-primary);
}
.page-hero h1 { font-size: var(--step-4); line-height: 0.95; max-width: 18ch; }
@media (min-width: 600px) { .page-hero h1 { font-size: var(--step-5); } }
.page-hero .lead { color: var(--grey-on-dark); max-width: 46rem; }
.page-hero .eyebrow { color: var(--white); }
.page-hero .btn-group { margin-top: var(--space-m); }
.page-hero .btn-call { background: transparent; color: var(--white); border-color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .page-hero .btn-call:hover { background: var(--white); color: var(--ink); }
}
.breadcrumb { font-size: var(--step--1); color: var(--grey-on-dark); margin-bottom: var(--space-s); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.breadcrumb li { max-width: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--brand-primary); }
.breadcrumb a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
@media (hover: hover) and (pointer: fine) { .breadcrumb a:hover { text-decoration: underline; } }

/* ==========================================================================
   Trust strip — stats
   ========================================================================== */
.trust {
  background: var(--ink); color: var(--white);
  padding-block: clamp(1rem, 5vw, 3rem);
}
.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: rgba(255, 255, 255, 0.14);
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--ink); max-width: none; display: flex; }
/* Mobile: compact — icon beside the number, label underneath */
.stat-inner, .stat-link {
  flex: 1;
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.65rem; row-gap: 0.1rem; align-items: center;
  padding: 0.9rem 0.75rem;
  color: inherit; text-decoration: none;
}
.stat-link { transition: background-color 0.2s ease; }
.stat-icon { grid-row: span 2; align-self: start; display: block; width: 24px; height: 24px; margin-top: 0.2rem; color: var(--brand-primary); }
.stat-icon svg { width: 24px; height: 24px; }
.stat-value {
  display: block;
  font-family: var(--font-display); font-weight: 800; font-stretch: condensed;
  font-size: var(--step-3); line-height: 1; color: var(--white);
  text-transform: uppercase; font-variant-numeric: tabular-nums;
}
.stat-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey-on-dark); font-weight: 600; }
.stat-label svg { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.2em; margin-left: 0.25em; color: var(--brand-primary); transition: transform 0.25s var(--ease); }
.stat-link .stat-label { color: var(--white); }
/* 600px+: stacked — icon above a bigger number */
@media (min-width: 600px) {
  .stat-inner, .stat-link { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; padding: clamp(1.1rem, 3vw, 1.75rem); }
  .stat-icon, .stat-icon svg { width: 30px; height: 30px; }
  .stat-icon { margin: 0 0 0.4rem; }
  .stat-value { font-size: var(--step-4); }
  .stat-label { font-size: var(--step--1); letter-spacing: 0.1em; }
}
.stat-link:focus-visible { outline-offset: -4px; }
@media (hover: hover) and (pointer: fine) {
  .stat-link:hover { background: var(--ink-2); }
  .stat-link:hover .stat-label svg { transform: translateX(4px); }
}

/* ==========================================================================
   Services — numbered list
   ========================================================================== */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); counter-reset: svc; }
.service-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 clamp(1rem, 3vw, 2rem);
  align-items: baseline;
  padding-block: clamp(1rem, 2.5vw, 1.5rem);
  border-bottom: 1px solid var(--rule);
  max-width: none;
}
.service-num {
  font-family: var(--font-display); font-weight: 800; font-stretch: condensed;
  font-size: var(--step-3); line-height: 1; color: var(--brand-primary);
  font-variant-numeric: tabular-nums; min-width: 2.2ch;
}
.service-row h3 { font-size: var(--step-2); margin: 0 0 0.2rem; }
.service-row h3 a { text-decoration: none; }
.service-row p { margin: 0; color: var(--grey-text); }
@media (min-width: 900px) {
  .service-list--2col { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-l); border-top: 0; }
  .service-list--2col .service-row:nth-child(-n+2) { border-top: 3px solid var(--ink); }
}
@media (hover: hover) and (pointer: fine) {
  .service-row h3 a:hover { color: var(--brand-primary-dark); }
}
.services-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-s); margin-top: var(--space-m); }
.services-foot p { margin: 0; font-weight: 600; }

/* Detailed service blocks (services.html) */
.service-detail { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.service-block {
  display: grid; gap: var(--space-m);
  grid-template-columns: minmax(0, 1fr);
  padding-block: var(--space-l);
  border-top: 3px solid var(--ink);
  max-width: none;
}
.service-block:last-child { border-bottom: 3px solid var(--ink); }
@media (min-width: 900px) {
  .service-block { grid-template-columns: 7rem minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
}
.service-block .service-num { font-size: var(--step-5); }
.service-block h2 { font-size: var(--step-3); margin-bottom: var(--space-s); }
.service-block .service-copy p { color: var(--grey-text); }
.service-block .service-copy p.service-desc { color: var(--ink); font-size: var(--step-1); line-height: 1.45; }
.service-areas { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: var(--space-s) 0; padding: 0; }
.service-areas li {
  font-size: var(--step--1); font-weight: 600;
  padding: 0.3rem 0.65rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 999px;
  max-width: none;
}
.service-block .btn { margin-top: var(--space-xs); }
.service-media { margin: 0; position: relative; }
.service-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 4px solid var(--ink);
}
.service-media figcaption { font-size: var(--step--1); color: var(--grey-text); margin-top: 0.5rem; }
.service-media--block {
  display: grid; place-items: center; aspect-ratio: 4 / 3;
  background: var(--paper) var(--brick); border: 4px solid var(--ink); border-radius: var(--radius);
  color: var(--ink);
}
.service-media--block svg { width: 34%; height: auto; color: var(--brand-primary); }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid { display: grid; gap: var(--space-l); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.about-copy p { font-size: var(--step-0); }
.about-quote {
  margin: var(--space-m) 0 0; padding: var(--space-m);
  background: var(--ink); color: var(--white);
  font-family: var(--font-display); font-weight: 800; font-stretch: condensed;
  font-size: var(--step-2); line-height: 1.15; text-transform: uppercase;
  border-left: 10px solid var(--brand-primary);
  border-radius: var(--radius);
}
.about-quote p { margin: 0; max-width: none; }
.about-photo { margin: 0; align-self: center; }
.about-photo img { width: 100%; height: auto; object-fit: cover; border: 6px solid var(--ink); border-radius: var(--radius); }

.checklist { list-style: none; margin: var(--space-m) 0 0; padding: 0; display: grid; gap: 0.6rem; }
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 600; max-width: none; }
.checklist svg {
  width: 26px; height: 26px; flex-shrink: 0;
  color: var(--white); background: var(--brand-primary); border-radius: 4px; padding: 4px;
}
@media (min-width: 900px) {
  .checklist--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-l); row-gap: 0.9rem; }
}

.certs-grid {
  --card-min: 15rem;
  display: grid; gap: var(--space-m);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min)), 1fr));
}
.cert-card {
  display: grid; grid-template-rows: auto 1fr; gap: var(--space-s);
  background: var(--white); border: 1px solid var(--rule); border-top: 6px solid var(--ink);
  border-radius: var(--radius); padding: var(--space-m);
}
.cert-card .cert-img { display: grid; place-items: center; height: 180px; background: var(--white); }
.cert-card img { max-height: 180px; width: auto; object-fit: contain; }
.cert-card h3 { font-size: var(--step-1); margin-bottom: 0.25rem; }
.cert-card p { color: var(--grey-text); font-size: var(--step--1); margin: 0; }


/* ==========================================================================
   Home teasers (About / Our work / Where we work)
   ========================================================================== */
.teaser-grid {
  display: grid; gap: var(--space-m);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}
.teaser-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--rule); border-top: 6px solid var(--ink);
  border-radius: var(--radius); overflow: hidden;
}
.teaser-card--dark { background: var(--ink); border-color: var(--ink); border-top-color: var(--brand-primary); color: var(--white); }
.teaser-media { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.teaser-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.teaser-media--logo {
  display: grid; place-items: center; padding: var(--space-l);
  background: var(--white); border-bottom: 1px solid var(--rule);
}
.teaser-media--logo img { width: 78%; height: auto; max-height: 100%; object-fit: contain; }
@media (hover: hover) and (pointer: fine) {
  .teaser-card:hover .teaser-media--logo img { transform: none; }
}
.teaser-media--stat {
  display: flex; align-items: flex-end; padding: var(--space-m);
  background: var(--ink-2) var(--brick-light); border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.teaser-media--stat .big {
  font-family: var(--font-display); font-weight: 800; font-stretch: condensed;
  font-size: clamp(4.5rem, 3.5rem + 4vw, 7rem); line-height: 0.85; text-transform: uppercase;
}
.teaser-media--stat .big span { color: var(--brand-primary); }
.teaser-body { display: flex; flex-direction: column; flex: 1; padding: var(--space-m); }
.teaser-body h2 { font-size: var(--step-2); line-height: 1.15; }
.teaser-body p:not(.eyebrow) { color: var(--grey-text); }
.teaser-card--dark .teaser-body p:not(.eyebrow) { color: var(--grey-on-dark); }
.teaser-body .text-link { margin-top: auto; align-self: flex-start; }
.teaser-card--dark .text-link { color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .teaser-card:hover .teaser-media img { transform: scale(1.04); }
  .teaser-card--dark .text-link:hover { color: var(--white); }
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: var(--space-m);
}
.filter-btn {
  min-height: 44px; padding: 0.5rem 1rem;
  font-family: var(--font-display); font-weight: 800; font-stretch: condensed;
  text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--step--1);
  background: var(--white); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.filter-btn .count { color: var(--brand-primary-dark); margin-left: 0.3rem; }
.filter-btn[aria-pressed="true"] .count { color: var(--grey-on-dark); }
@media (hover: hover) and (pointer: fine) {
  .filter-btn:hover { border-color: var(--brand-primary); }
}

.masonry { columns: 18rem 3; column-gap: var(--space-m); }
.masonry > * { break-inside: avoid; margin: 0 0 var(--space-m); }
.gallery-item[hidden] { display: none; }
.gallery-item button {
  display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2);
  border-radius: var(--radius); overflow: hidden; position: relative; cursor: zoom-in;
}
.gallery-item img { width: 100%; height: auto; transition: transform 0.5s var(--ease); }
.gallery-item figcaption { font-size: var(--step--1); color: var(--grey-text); margin-top: 0.5rem; line-height: 1.45; }
@media (hover: hover) and (pointer: fine) {
  .gallery-item button:hover img { transform: scale(1.03); }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 3000;
  display: grid; grid-template-rows: auto 1fr auto;
  background: var(--lightbox-bg);
  color: var(--white);
  padding: max(0.75rem, env(safe-area-inset-top)) var(--gutter) max(0.75rem, env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}
.lightbox[hidden] { display: none; }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.lightbox-counter { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.lightbox-stage { position: relative; display: grid; place-items: center; min-height: 0; }
.lightbox-stage img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lightbox-caption { text-align: center; margin: 0.75rem auto 0; color: var(--grey-on-dark); font-size: var(--step--1); }
.lb-btn {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; padding: 0;
  background: rgba(255, 255, 255, 0.1); color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: var(--radius);
  transition: background-color 0.2s ease;
}
.lb-btn svg { width: 24px; height: 24px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; }
.lb-prev { left: 0; }
.lb-next { right: 0; }
@media (hover: hover) and (pointer: fine) { .lb-btn:hover { background: var(--brand-primary); } }

/* ==========================================================================
   Service area
   ========================================================================== */
.area-grid { display: grid; gap: var(--space-l); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .area-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.town-list {
  list-style: none; margin: var(--space-m) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 0.5rem;
}
.town-list li {
  display: flex; align-items: center; gap: 0.6rem; max-width: none;
  padding: 0.75rem 1rem; background: var(--white); border: 1px solid var(--rule); border-left: 6px solid var(--ink);
  font-family: var(--font-display); font-weight: 800; font-stretch: condensed; text-transform: uppercase; letter-spacing: 0.03em;
}
.town-list li.is-base { border-left-color: var(--brand-primary); }
.town-list small { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--grey-text); margin-left: auto; font-size: var(--step--1); }
.area-callout {
  background: var(--ink) var(--brick-light); color: var(--white);
  padding: var(--space-l); border-radius: var(--radius);
  position: relative;
}
.area-callout::after { content: ""; position: absolute; left: 0; top: 0; width: 40%; height: 8px; background: var(--brand-primary); }
.area-callout .big {
  display: block; font-family: var(--font-display); font-weight: 800; font-stretch: condensed;
  font-size: clamp(4rem, 3rem + 6vw, 8rem); line-height: 0.85; color: var(--white); text-transform: uppercase;
}
.area-callout .big span { color: var(--brand-primary); }
.area-callout p { color: var(--grey-on-dark); margin-top: var(--space-s); }

#map {
  height: clamp(20rem, 50vh, 35rem);
  border-radius: var(--radius); border: 4px solid var(--ink); overflow: hidden;
  isolation: isolate; /* keep Leaflet's z-index:1000 controls under the header/menu overlay */
  background: var(--leaflet-bg);
}
.leaflet-container { background: var(--leaflet-bg); font-family: var(--font-body); }
.leaflet-popup-content-wrapper { border-radius: var(--radius); border-top: 4px solid var(--brand-primary); box-shadow: var(--shadow); }
.map-note { font-size: var(--step--1); color: var(--grey-text); margin-top: 0.75rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { display: grid; gap: 0; border-top: 3px solid var(--ink); max-width: 56rem; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding-block: 1rem;
  font-family: var(--font-display); font-weight: 800; font-stretch: condensed;
  font-size: var(--step-1); text-transform: uppercase; line-height: 1.2;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex-shrink: 0; width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--ink); color: var(--white); border-radius: 4px;
  transition: transform 0.25s var(--ease), background-color 0.2s ease;
}
.faq-icon svg { width: 18px; height: 18px; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--brand-primary); }
.faq-item p { color: var(--grey-text); padding-bottom: 1.25rem; margin: 0; }
@media (hover: hover) and (pointer: fine) {
  .faq-item summary:hover { color: var(--brand-primary-dark); }
}

/* ==========================================================================
   CTA band + contact
   ========================================================================== */
.cta-band {
  background: var(--brand-primary); color: var(--white);
  position: relative; overflow: hidden;
  border-top: 6px solid var(--ink);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; background: var(--brick); opacity: 1; mix-blend-mode: multiply; pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-grid {
  display: grid; gap: var(--space-m); align-items: center;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "panel" "ticks";
}
@media (min-width: 900px) {
  .cta-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    grid-template-areas: "copy panel" "ticks panel";
    column-gap: var(--space-l); row-gap: var(--space-s);
  }
}
.cta-copy { grid-area: copy; }
.cta-panel { grid-area: panel; }
.cta-ticks { grid-area: ticks; align-self: start; }
.cta-band h2 { font-size: var(--step-4); line-height: 1; max-width: 16ch; }
.cta-copy p:not(.eyebrow) { font-size: var(--step-1); max-width: 34rem; margin-bottom: 0; }
.cta-band .eyebrow { color: var(--white); }
.cta-band :focus-visible { outline-color: var(--white); }
.cta-band .eyebrow::before { background: var(--white); }

.cta-panel {
  display: grid; gap: 0.75rem;
  padding: var(--space-m); background: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cta-panel .btn { width: 100%; justify-content: center; }
.cta-band .btn-whatsapp { background: var(--brand-primary); color: var(--white); }
.cta-band .btn-call { background: var(--white); color: var(--ink); }
.cta-email {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding-top: 0.25rem;
  color: var(--grey-on-dark); font-weight: 600; font-size: var(--step--1);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
.cta-email svg { width: 20px; height: 20px; flex-shrink: 0; }

.cta-ticks { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.cta-ticks li { display: flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.06em; max-width: none; }
.cta-ticks svg { width: 18px; height: 18px; stroke-width: 3; flex-shrink: 0; }
.cta-band .fmb-link { text-decoration-color: var(--white); }

@media (hover: hover) and (pointer: fine) {
  .cta-band .btn-whatsapp:hover { background: var(--white); color: var(--ink); }
  .cta-band .btn-call:hover { background: var(--brand-primary); color: var(--white); }
  .cta-email:hover { color: var(--white); text-decoration-color: currentColor; }
  .cta-band .fmb-link:hover { color: var(--white); text-decoration-thickness: 3px; }
}

.contact-grid { display: grid; gap: var(--space-l); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.contact-methods { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-s); }
.contact-method { max-width: none; }
.contact-method a {
  container-type: inline-size;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.75rem; align-items: center;
  padding: var(--space-s); min-height: 44px;
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.2s var(--ease), border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-method .icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--ink); color: var(--white);
}
.contact-method--primary .icon { background: var(--brand-primary); }
.contact-method .icon svg { width: 26px; height: 26px; }
.contact-method .label { display: block; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--grey-text); }
.contact-method .value {
  display: block; font-family: var(--font-display); font-weight: 800; font-stretch: condensed;
  /* Scales with the card width so the email and Facebook name stay on one line, even at 320px */
  font-size: min(var(--step-2), calc(8.8cqi - 6px)); line-height: 1.15; white-space: nowrap;
}
@media (min-width: 600px) {
  .contact-method a { gap: 1rem; padding: var(--space-m); }
  .contact-method .icon { width: 52px; height: 52px; }
  .contact-method .arrow { display: block; }
}
.contact-method .arrow { display: none; width: 24px; height: 24px; color: var(--brand-primary); } /* decorative; hidden on phones to give the text room */
.contact-method--primary a { border-color: var(--brand-primary); }
@media (hover: hover) and (pointer: fine) {
  .contact-method a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
}
.info-panel {
  background: var(--paper) var(--brick); border: 1px solid var(--rule); border-top: 8px solid var(--ink);
  border-radius: var(--radius); padding: var(--space-m);
}
.info-panel h2 { font-size: var(--step-2); }
.info-panel dl { margin: 0; display: grid; gap: var(--space-s); }
.info-panel dt { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--grey-text); }
.info-panel dd { margin: 0.15rem 0 0; font-weight: 600; }
.info-panel a { text-underline-offset: 3px; }
.social-links { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.social-links li { max-width: none; }
.social-links a {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.4rem 0.9rem;
  border: 2px solid currentColor; border-radius: var(--radius); text-decoration: none; font-weight: 700; font-size: var(--step--1);
}
.social-links svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .social-links a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
  .brand:hover img { opacity: 0.85; }
}
.brand img { transition: opacity 0.2s ease; }
.lightbox-stage .lb-img { display: block; }

/* ==========================================================================
   Sections — backgrounds
   ========================================================================== */
.bg-paper { background: var(--paper); }
.bg-brick { background: var(--paper) var(--brick); }
.bg-ink { background: var(--ink); color: var(--white); }
.section-split-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-m); margin-bottom: var(--space-l); }
.section-split-head .section-head { margin-bottom: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--grey-on-dark); padding-top: clamp(3rem, 7vw, 5rem); }
.site-footer::before { content: ""; display: block; }
.footer-grid {
  display: grid; gap: var(--space-l);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  padding-bottom: var(--space-l);
}
.footer-logo {
  display: inline-block; background: var(--white); padding: 0.75rem 1rem; border-radius: var(--radius);
  margin-bottom: var(--space-s);
}
.footer-logo img { width: 160px; height: auto; }
.site-footer h2 {
  font-size: var(--step-0); color: var(--white); letter-spacing: 0.12em; margin-bottom: var(--space-s);
}
.site-footer p { font-size: var(--step--1); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px;
  color: var(--white); text-decoration: none; font-size: var(--step--1);
}
@media (hover: hover) and (pointer: fine) { .footer-links a:hover { color: var(--brand-primary); text-decoration: underline; } }
.footer-links .muted { color: var(--grey-on-dark); margin-right: 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: var(--space-m);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem;
  font-size: var(--step--1);
}
.footer-bottom p { margin: 0; }
.footer-credit a { color: var(--grey-on-dark); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
@media (hover: hover) and (pointer: fine) { .footer-credit a:hover { color: var(--white); } }

/* ==========================================================================
   Floating WhatsApp + mobile action bar
   ========================================================================== */
.whatsapp-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); z-index: 950;
  bottom: calc(76px + 16px + env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--whatsapp-dark); color: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease), background-color 0.2s ease;
}
.whatsapp-float svg { width: 30px; height: 30px; }
@media (min-width: 900px) {
  .whatsapp-float { bottom: max(20px, calc(20px + env(safe-area-inset-bottom))); }
}
@media (hover: hover) and (pointer: fine) {
  .whatsapp-float:hover { transform: scale(1.06); background: var(--whatsapp); }
}

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px var(--gutter) max(8px, env(safe-area-inset-bottom));
  background: var(--ink); border-top: 4px solid var(--brand-primary);
}
.mobile-bar a {
  min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--radius); text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-stretch: condensed;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.mobile-bar svg { width: 20px; height: 20px; }
.mobile-bar .mb-call { background: var(--white); color: var(--ink); }
.mobile-bar .mb-whatsapp { background: var(--brand-primary); color: var(--white); }
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* ==========================================================================
   Motion — only for visitors who haven't asked for reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  .hero-anim > * { animation: rise 0.8s var(--ease) both; }
  .hero-anim > :nth-child(2) { animation-delay: 0.08s; }
  .hero-anim > :nth-child(3) { animation-delay: 0.16s; }
  .hero-anim > :nth-child(4) { animation-delay: 0.24s; }
  .hero-anim > :nth-child(5) { animation-delay: 0.32s; }
  .hero-anim > :nth-child(6) { animation-delay: 0.4s; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .text-link svg, .nav-menu, .nav-link::after, .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after,
  .teaser-media img, .gallery-item img, .filter-btn, .faq-icon, .contact-method a, .whatsapp-float, .lb-btn {
    transition: none;
  }
}
