/* ==========================================================================
   BER ELECTRIC SERVICE — style.css
   Berlite monochrome theme: white canvas, charcoal #4b4e53, light #eee
   bands, dark #303236 / #26282b blocks, near-black #101010. No color
   accents — the accent role is near-black on light surfaces and white
   on dark surfaces (via --c-accent scoping). Lato display (thin 300 vs
   black 900 contrast, wide tracking) / Open Sans body / Michroma logo.
   Square corners, no gradients except the hairline grid texture.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --c-primary:      #4b4e53;
  --c-primary-dark: #101010;
  --c-accent:        #101010;  /* overridden to #fff on dark surfaces */
  --c-accent-strong: #101010;
  --c-footer:       #101010;
  --c-surface-dark: #303236;
  --c-surface-deep: #26282b;
  --c-text-inv:     #ffffff;
  --c-text-inv-soft: rgba(255, 255, 255, .72);
  --c-line-inv:     rgba(255, 255, 255, .15);
  --c-nav:          #5c6066;
  --c-nav-hover:    #111111;
  --c-muted:        #7e8082;
  --c-bg-light:     #eeeeee;
  --c-bg-alt:       #e2e3df;
  --c-border:       #dedede;
  --c-border-mid:   #d3d3d3;
  --c-border-ghost: #a3a7ad;
  --c-white:        #ffffff;
  --c-error:        #b3261e;

  --grid-texture: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
                  linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);

  --ff-display: 'Lato', Helvetica, Arial, sans-serif;
  --ff-body:    'Open Sans', Helvetica, Arial, sans-serif;
  --ff-logo:    'Michroma', 'Arial Narrow', Arial, sans-serif;

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 40px;
  --sp-5: 64px;
  --sp-6: 96px;

  --radius: 0;
  --shadow-header: 0 1px 15px rgba(0, 0, 0, .45);
  --shadow-card:   0 14px 30px rgba(16, 16, 16, .14);
  --container: 1140px;
  --header-h: 72px;
  --header-h-shrunk: 56px;
  --hero-badges-h: 101px; /* badges bar incl. top border + licence/google lockups */
}

/* Dark surfaces: accent flips to white, outline/primary buttons invert,
   focus rings go white */
.site-header, .hero, .page-title-band, .section--dark, .cta-band,
.side-panel, .site-footer, .icon-circle, .project-visual {
  --c-accent: #ffffff;
}

.hero, .page-title-band, .section--dark, .cta-band, .side-panel, .site-footer {
  --btn-outline: var(--c-white);
  --btn-outline-flip: var(--c-surface-deep);
  --btn-primary-bg: var(--c-white);
  --btn-primary-fg: var(--c-primary-dark);
  --btn-primary-hover-bg: #dedede;
  --btn-primary-hover-fg: var(--c-primary-dark);
}

.site-header :focus-visible,
.hero :focus-visible,
.page-title-band :focus-visible,
.section--dark :focus-visible,
.cta-band :focus-visible,
.side-panel :focus-visible,
.site-footer :focus-visible { outline-color: var(--c-white); }

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-primary);
  background: var(--c-white);
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--c-primary-dark); color: var(--c-white); }

img, svg { vertical-align: middle; }

a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-primary-dark); }

h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  color: var(--c-primary);
  margin: 0 0 var(--sp-2);
  line-height: 1.25;
}

p { margin: 0 0 var(--sp-2); }

:focus-visible {
  outline: 2px solid var(--c-primary-dark);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--c-primary-dark);
  color: var(--c-white);
  font-family: var(--ff-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  padding: 12px 24px;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

/* --------------------------------------------------------------------------
   3. Typography classes
   -------------------------------------------------------------------------- */
.display-hero {
  font-family: var(--ff-display);
  font-weight: 300;
  text-transform: uppercase;
  font-size: clamp(30px, 4.4vw, 56px);
  letter-spacing: clamp(3px, .7vw, 9px);
  line-height: 1.2;
  color: var(--c-text-inv);
  margin: 0;
}

.display-bold { font-weight: 900; }

.section-title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-bottom: var(--sp-3);
}

.section-title strong { font-weight: 900; }

/* short accent rule above every section title (matches page banners) */
.section-title::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--c-accent);
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--c-muted);
  max-width: 640px;
  margin-bottom: var(--sp-4);
}

.eyebrow {
  display: inline-block;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  border-bottom: 2px solid var(--c-accent);
  padding-bottom: 4px;
  margin-bottom: var(--sp-2);
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 15px 38px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: background-color .18s, border-color .18s, color .18s;
}

.btn--primary {
  background: var(--btn-primary-bg, var(--c-primary-dark));
  border-color: var(--btn-primary-bg, var(--c-primary-dark));
  color: var(--btn-primary-fg, var(--c-white));
}
.btn--primary:hover {
  background: var(--btn-primary-hover-bg, var(--c-primary));
  border-color: var(--btn-primary-hover-bg, var(--c-primary));
  color: var(--btn-primary-hover-fg, var(--c-white));
}

.btn--outline {
  background: transparent;
  border-color: var(--btn-outline, var(--c-primary));
  color: var(--btn-outline, var(--c-primary));
}
.btn--outline:hover {
  background: var(--btn-outline, var(--c-primary));
  color: var(--btn-outline-flip, var(--c-white));
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--c-surface-dark);
  height: var(--header-h);
  border-bottom: 1px solid var(--c-line-inv);
  transition: height .25s ease, box-shadow .25s ease;
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header.header--shrunk {
  height: var(--header-h-shrunk);
  box-shadow: var(--shadow-header);
  border-bottom-color: transparent;
}

.logo { display: flex; align-items: center; }

.logo-text {
  font-family: var(--ff-logo);
  font-weight: 400;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--c-white);
  white-space: nowrap;
  line-height: 1;
  transition: font-size .25s;
}

.header--shrunk .logo-text { font-size: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  color: var(--c-white);
}

.header-cta { padding: 11px 22px; flex-shrink: 0; }

.nav-cta { display: none; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--sp-4);
}

.site-nav a {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--c-text-inv-soft);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

.site-nav a:hover { color: var(--c-white); }
.site-nav a.is-active { color: var(--c-white); border-bottom-color: var(--c-white); }

/* --------------------------------------------------------------------------
   6. Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--c-surface-deep);
  background-image: var(--grid-texture);
  background-size: 72px 72px;
}

.hero-slider {
  position: relative;
  width: 100%;
  display: grid; /* all slides share one cell: height = tallest slide, no jumps */
  touch-action: pan-y; /* keep vertical scroll; horizontal drags become swipes */
}

.hero-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
}

.hero-slide.is-current {
  opacity: 1;
  visibility: visible;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - var(--header-h) - var(--hero-badges-h));
  padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + 58px)
           max(var(--sp-3), calc(50vw - 570px));
}

/* text centers in the free space; buttons pin to the bottom of the
   (grid-equalized) slide so they never move between slides */
.hero-text { margin-top: auto; margin-bottom: auto; }
.hero-actions { flex-shrink: 0; }

.hero-media { position: relative; }

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(25%);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
              var(--c-surface-deep) 0%,
              rgba(38, 40, 43, .4) 32%,
              rgba(38, 40, 43, 0) 62%);
}

@supports (clip-path: polygon(0 0)) {
  .hero-media { clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%); }
}

.hero-kicker {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--c-white);
  margin-bottom: var(--sp-2);
  white-space: nowrap;
}

.hero-kicker::before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--c-white);
  vertical-align: middle;
  margin-right: 14px;
}

@media (min-width: 900px) and (max-width: 1280px) {
  .hero-kicker { font-size: 11px; letter-spacing: 1.5px; }
  .hero-kicker::before { width: 24px; margin-right: 10px; }
}

@media (max-width: 899px) {
  .hero-kicker { white-space: normal; }
}

.hero-sub {
  color: var(--c-text-inv-soft);
  font-size: 15px;
  max-width: 540px;
  margin: var(--sp-2) 0 var(--sp-3);
}

.hero-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

@media (min-width: 900px) {
  /* reserve two button rows so per-slide label wrapping never shifts layout */
  .hero-actions {
    min-height: 126px;
    align-items: flex-start;
    align-content: flex-start;
  }
}

.hero-controls {
  position: absolute;
  bottom: var(--sp-3);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  z-index: 5;
}

.hero-dots { display: flex; gap: 0; }

.hero-dot {
  /* 12px visual dot centered in a 32px touch target */
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  transition: background-color .2s, border-color .2s;
}

.hero-dot.is-active::after { background: var(--c-white); border-color: var(--c-white); }

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 0;
  border: 2px solid rgba(255, 255, 255, .3);
  background: transparent;
  color: var(--c-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s;
}
.hero-arrow:hover { border-color: var(--c-white); }

.hero-badges {
  position: relative;
  border-top: 1px solid var(--c-line-inv);
}

.hero-badges .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  padding-top: 18px;
  padding-bottom: 18px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-white);
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-badge svg { flex-shrink: 0; }

.hero-badges .container { align-items: center; }

.hero-licence {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, .45);
  padding: 7px 14px;
  transition: border-color .2s;
}
.hero-licence:hover { border-color: var(--c-white); }

.hero-licence .hl-label {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, .6);
}

.hero-licence .hl-num {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 1.5px;
  color: var(--c-white);
}

.hero-google {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .3);
  padding: 11px 14px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--c-white);
  transition: border-color .2s;
}
.hero-google:hover { border-color: var(--c-white); color: var(--c-white); }

.footer-licence {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .35);
  padding: 8px 14px;
  color: var(--c-white);
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.hero-badge--licence svg,
.footer-licence svg { color: var(--c-white); flex-shrink: 0; }

.licence-inline { font-weight: 700; }

/* Licence feature — the number as the design (ghost numeral) */
.licence-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  text-align: center;
  gap: var(--sp-1);
}

.licence-label {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--c-white);
}

.licence-label::before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--c-white);
  vertical-align: middle;
  margin-right: 14px;
}

.licence-number {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(52px, 8vw, 110px);
  letter-spacing: 2px;
  line-height: 1;
  white-space: nowrap;
  color: rgba(255, 255, 255, .10);
}

@supports (-webkit-text-stroke: 2px white) {
  .licence-number {
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, .65);
  }
}

.licence-sub {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--c-text-inv-soft);
}

.licence-display--light .licence-label { color: var(--c-primary); }
.licence-display--light .licence-label::before { background: var(--c-primary); }
.licence-display--light .licence-number { color: rgba(75, 78, 83, .08); }

@supports (-webkit-text-stroke: 2px white) {
  .licence-display--light .licence-number {
    color: transparent;
    -webkit-text-stroke: 2px rgba(75, 78, 83, .55);
  }
}

.licence-display--light .licence-sub { color: var(--c-muted); }

/* compact hero for short viewports (e.g. 1280x720 laptops) */
@media (max-height: 780px) and (min-width: 900px) {
  .hero-copy {
    padding-top: var(--sp-2);
    padding-bottom: calc(var(--sp-2) + 56px);
  }
  .display-hero { font-size: clamp(28px, 4vw, 46px); }
  .hero-sub { margin: 10px 0 14px; }
  .hero-actions { min-height: 48px; }
  .hero-actions .btn { padding: 12px 24px; font-size: 11px; }
  .hero-controls { bottom: var(--sp-2); }
}

/* --------------------------------------------------------------------------
   7. Sections & bands
   -------------------------------------------------------------------------- */
.section { padding: var(--sp-6) 0; }
.section--light { background: var(--c-bg-light); }
.section--alt { background: var(--c-bg-alt); }

.section--dark { background: var(--c-surface-dark); }
.section--dark h2, .section--dark h3 { color: var(--c-white); }
.section--dark p,
.section--dark .section-subtitle,
.section--dark .pillar p,
.section--dark .step p { color: var(--c-text-inv-soft); }
.section--dark p strong { color: var(--c-white); }

.page-title-band {
  background-color: var(--c-surface-deep);
  background-image: var(--grid-texture);
  background-size: 72px 72px;
  padding: var(--sp-5) 0;
  color: var(--c-text-inv-soft);
}

.page-title-band h1 {
  color: var(--c-white);
  font-weight: 300;
  font-size: clamp(30px, 4.5vw, 52px);
  text-transform: uppercase;
  letter-spacing: clamp(4px, 1vw, 10px);
  margin: 0 0 var(--sp-1);
}

.page-title-band h1 strong { font-weight: 900; }

.page-title-band h1::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--c-white);
  margin-bottom: var(--sp-2);
}

.page-title-band p { color: var(--c-text-inv-soft); margin: 0; }

.breadcrumb {
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, .6);
  margin-bottom: var(--sp-2);
}
.breadcrumb a { color: rgba(255, 255, 255, .6); }
.breadcrumb a:hover { color: var(--c-white); }
.breadcrumb span::before { content: "/"; margin: 0 8px; color: rgba(255, 255, 255, .35); }

.cta-band {
  background: var(--c-surface-dark);
  padding: var(--sp-5) 0;
  color: var(--c-white);
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--c-white);
  font-weight: 300;
  font-size: clamp(20px, 3vw, 30px);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin: 0;
}
.cta-band h2 strong { font-weight: 900; }

/* --------------------------------------------------------------------------
   8. Grids, pillars & cards
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
}

@media (min-width: 820px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.pillar { text-align: center; padding: var(--sp-2); }

.icon-circle { /* legacy name — square industrial tile */
  width: 88px;
  height: 88px;
  border-radius: 0;
  background: var(--c-surface-dark);
  border-left: 4px solid var(--c-white);
  color: var(--c-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-3);
}

.section--dark .icon-circle {
  background: transparent;
  border: 1px solid var(--c-line-inv);
  border-left: 4px solid var(--c-white);
}

.pillar h3 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--sp-1);
}

.pillar p { color: var(--c-muted); margin: 0; }

.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-surface-dark);
  border-radius: 0;
  padding: var(--sp-4) var(--sp-3);
  transition: border-color .2s, box-shadow .25s, transform .25s;
}

.card:hover {
  border-top-color: var(--c-primary-dark);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.card .card-icon { color: var(--c-primary); margin-bottom: var(--sp-2); }

.card h3 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.card p { color: var(--c-muted); }

.card--featured {
  background: var(--c-surface-dark);
  border-color: var(--c-surface-dark);
  border-top-color: var(--c-white);
}

.card--featured h3,
.card--featured .card-icon { color: var(--c-white); }
.card--featured p { color: var(--c-text-inv-soft); }
.card--featured .eyebrow { color: var(--c-white); border-bottom-color: var(--c-white); }
.card--featured .card-link { color: var(--c-white); border-bottom-color: var(--c-white); }
.card--featured .card-link:hover { background: var(--c-white); color: var(--c-primary-dark); }
.card--featured:hover { border-top-color: var(--c-white); }

.card-link {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 2px solid var(--c-primary-dark);
  padding: 2px 4px 3px;
  transition: background-color .18s, color .18s, border-color .18s;
}
.card-link:hover {
  background: var(--c-primary-dark);
  color: var(--c-white);
  border-bottom-color: transparent;
}

/* --------------------------------------------------------------------------
   9. Process steps (dark bands, ghost numerals)
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

.step { text-align: left; }

.step-num {
  display: block;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(64px, 8vw, 88px);
  line-height: 1;
  color: rgba(255, 255, 255, .10);
  -webkit-text-stroke: 2px rgba(255, 255, 255, .55);
  margin-bottom: var(--sp-1);
}

.step h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--sp-1);
}

.step p { color: var(--c-muted); margin: 0; font-size: 13px; }

/* light-band variant: charcoal ghost numerals */
.section--light .step-num { color: rgba(75, 78, 83, .08); }

@supports (-webkit-text-stroke: 2px white) {
  .section--light .step-num {
    color: transparent;
    -webkit-text-stroke: 2px rgba(75, 78, 83, .5);
  }
}

/* --------------------------------------------------------------------------
   10. References / testimonials
   -------------------------------------------------------------------------- */
.client-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  justify-content: center;
  align-items: center;
  margin: var(--sp-4) 0;
}

.client-strip span {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--c-border-ghost);
  transition: color .2s;
}
.client-strip span:hover { color: var(--c-primary); }

blockquote {
  margin: 0;
  border-left: 3px solid var(--c-primary-dark);
  padding: var(--sp-1) var(--sp-3);
  font-style: italic;
  color: var(--c-muted);
}

blockquote footer {
  margin-top: var(--sp-1);
  font-style: normal;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--c-primary);
}

/* --------------------------------------------------------------------------
   11. Stats (about — dark band, outlined numerals)
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}

@media (min-width: 1100px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

.stat-num {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 52px;
  line-height: 1;
  color: var(--c-primary);
  display: block;
  margin-bottom: var(--sp-1);
}

.stat-num sup {
  font-size: 26px;
  font-weight: 300;
  color: var(--c-border-ghost);
}

.section--dark .stat-num {
  font-size: clamp(64px, 9vw, 104px);
  color: var(--c-white);
}

@supports (-webkit-text-stroke: 2px white) {
  .section--dark .stat-num {
    color: transparent;
    -webkit-text-stroke: 2px var(--c-white);
  }
}

.section--dark .stat-num sup {
  -webkit-text-stroke: 0;
  color: var(--c-white);
  font-weight: 900;
  font-size: .38em;
}

.stat-label {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--c-muted);
}

.section--dark .stat-label { color: var(--c-text-inv-soft); }

.badge-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.badge-list li {
  border: 1px solid var(--c-border-mid);
  border-left: 3px solid var(--c-primary-dark);
  border-radius: 0;
  padding: 12px 20px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: var(--c-white);
}

/* --------------------------------------------------------------------------
   12. Projects
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: var(--sp-4);
}

.filter-btn {
  background: none;
  border: 1px solid var(--c-border-mid);
  padding: 10px 20px;
  cursor: pointer;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--c-nav);
  transition: color .2s, border-color .2s, background-color .2s, box-shadow .2s;
}

.filter-btn:hover { border-color: var(--c-primary); color: var(--c-nav-hover); }
.filter-btn.is-active {
  font-weight: 700;
  background: var(--c-surface-dark);
  color: var(--c-white);
  border-color: var(--c-surface-dark);
  box-shadow: inset 3px 0 0 var(--c-white);
}

.project-card { padding: 0; overflow: hidden; }

.project-visual {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-visual--dark { background: var(--c-surface-deep); color: rgba(255, 255, 255, .85); }
.project-visual--alt { background: var(--c-surface-dark); color: rgba(255, 255, 255, .85); }

.project-visual .watermark {
  position: absolute;
  right: -10px;
  bottom: -28px;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 110px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--c-white);
  opacity: .07;
  user-select: none;
}

.project-body { padding: var(--sp-3); }

.project-body .eyebrow { margin-bottom: var(--sp-1); font-size: 11px; }

.project-body h3 { margin-bottom: 6px; }

.project-meta { color: var(--c-muted); font-size: 13px; margin: 0; }

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */
.contact-form {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr 1fr;
}

.form-field { display: flex; flex-direction: column; }
.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--sp-1);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--ff-body);
  font-size: 16px; /* >=16px prevents iOS focus auto-zoom */
  color: var(--c-primary);
  background: var(--c-white);
  border: 1px solid var(--c-border-mid);
  border-radius: 0;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-primary-dark);
  box-shadow: inset 0 0 0 1px var(--c-primary-dark);
}

.form-field textarea { resize: vertical; min-height: 140px; }

.form-field input::placeholder,
.form-field textarea::placeholder { color: #a9abad; opacity: 1; }

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--c-error);
  box-shadow: inset 0 0 0 1px var(--c-error);
}

.field-error {
  color: var(--c-error);
  font-size: 12px;
  margin-top: 6px;
  min-height: 1em;
}

.form-status {
  grid-column: 1 / -1;
  border-left: 3px solid var(--c-primary-dark);
  background: var(--c-white);
  padding: var(--sp-2) var(--sp-3);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--ok { border-left-color: var(--c-primary-dark); }
.form-status--error { border-left-color: var(--c-error); }

.field-hint { font-size: 12px; color: var(--c-muted); margin-top: 6px; }

.hp-field { display: none !important; }

.btn.is-loading { opacity: .65; pointer-events: none; }

.btn.is-loading::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: -2px;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Result popup (contact form) */
.form-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3);
  background: rgba(16, 16, 16, .65);
  animation: fm-fade .25s ease;
}

.form-modal-box {
  background: var(--c-white);
  max-width: 420px;
  width: 100%;
  padding: var(--sp-4) var(--sp-3);
  text-align: center;
  border-top: 3px solid var(--c-surface-dark);
  box-shadow: 0 14px 30px rgba(16, 16, 16, .3);
}
.form-modal-box.is-open { animation: fm-rise .3s ease; }

.form-modal--error .form-modal-box { border-top-color: var(--c-error); }

.fm-icon {
  display: inline-block;
  color: var(--c-surface-dark);
  margin-bottom: var(--sp-2);
}
.form-modal--error .fm-icon { color: var(--c-error); }

.fm-icon-error,
.form-modal--error .fm-icon-ok { display: none; }
.form-modal--error .fm-icon-error { display: block; }

.fm-check { stroke-dasharray: 40; stroke-dashoffset: 0; }
.is-open .fm-check { animation: fm-draw .45s ease .2s backwards; }

.form-modal h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0 0 var(--sp-1);
}

.form-modal p { margin: 0; color: var(--c-muted); }

.fm-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-top: var(--sp-3);
}
.fm-actions .btn { display: block; width: 100%; }

@keyframes fm-fade { from { opacity: 0; } }
@keyframes fm-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes fm-draw { from { stroke-dashoffset: 40; } }

@media (prefers-reduced-motion: reduce) {
  .form-modal,
  .form-modal-box.is-open,
  .is-open .fm-check,
  .btn.is-loading::before { animation: none; }
}

.side-panel {
  background: var(--c-surface-dark);
  padding: var(--sp-4);
  color: var(--c-text-inv-soft);
}

.side-panel .section-title { color: var(--c-white); }
.side-panel a { color: var(--c-white); text-decoration: underline; }
.side-panel a:hover { color: var(--c-text-inv-soft); }

/* highlighted contact rows in the side panel */
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--c-line-inv);
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: border-color .2s, background-color .2s;
}

.side-panel a.contact-row { text-decoration: none; }
.side-panel a.contact-row:hover { color: inherit; }

.contact-row:hover {
  border-color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .05);
}

.contact-row svg { flex-shrink: 0; color: var(--c-white); }

.cr-label {
  display: block;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--c-text-inv-soft);
  margin-bottom: 2px;
}

.cr-value {
  display: block;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.25;
  color: var(--c-white);
  word-break: break-word;
}

.cr-value--sm { font-size: 16px; font-weight: 700; }

.map-placeholder {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: 0;
  aspect-ratio: 21 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  color: var(--c-muted);
  text-align: center;
  padding: var(--sp-3);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--c-border);
}

.side-panel .hours-table td { border-bottom-color: var(--c-line-inv); }

.hours-table td:last-child { text-align: right; font-family: var(--ff-display); font-weight: 700; }

.side-panel .hours-table td:last-child { color: var(--c-white); }

.emergency-callout {
  border-left: 3px solid var(--c-primary-dark);
  background: var(--c-bg-light);
  padding: var(--sp-2) var(--sp-3);
  margin-top: var(--sp-3);
}

.side-panel .emergency-callout {
  background: var(--c-surface-deep);
  border-left-color: var(--c-white);
  color: var(--c-text-inv-soft);
}
.side-panel .emergency-callout strong { color: var(--c-white); }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-footer);
  color: rgba(255, 255, 255, .7);
  padding: var(--sp-6) 0 0;
}

.footer-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
  padding-bottom: var(--sp-5);
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
}

.site-footer h4 {
  color: var(--c-white);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: var(--sp-3);
}

.site-footer h4::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, .35);
  margin-top: 8px;
}

.site-footer a { color: rgba(255, 255, 255, .7); }
.site-footer a:hover { color: var(--c-white); }

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }

.site-footer address { font-style: normal; }
.site-footer address p { margin-bottom: 10px; }

.footer-logo { display: flex; align-items: center; margin-bottom: var(--sp-3); }
.footer-logo .logo-text { color: var(--c-white); font-size: 19px; letter-spacing: 3px; }

.footer-social { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); }

.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s;
}
.footer-social a:hover { border-color: var(--c-white); color: var(--c-white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: var(--sp-3) 0;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* --------------------------------------------------------------------------
   14b. Galleries, lightbox, check-lists, photo hero
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.gallery--strip { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.gallery a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-bg-alt);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .25s ease, opacity .2s;
}

.gallery a:hover img,
.gallery a:focus-visible img { transform: scale(1.04); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(10, 10, 10, .95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3);
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 92vw;
  max-height: 80vh;
  display: block;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
  touch-action: pan-y;
}

.lightbox-caption {
  color: var(--c-text-inv-soft);
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

.lightbox-controls { display: flex; gap: var(--sp-2); }

.lightbox button {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, .4);
  background: transparent;
  color: var(--c-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s;
}
.lightbox button:hover { border-color: var(--c-white); }
.lightbox :focus-visible { outline: 2px solid var(--c-white); outline-offset: 2px; }

.check-list {
  list-style: none;
  margin: 0 0 var(--sp-3);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px var(--sp-3);
}

.check-list li { padding-left: 26px; position: relative; }

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 2px;
  background: var(--c-primary-dark);
}

.section--dark .check-list li::before,
.side-panel .check-list li::before { background: var(--c-white); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-3);
}

.section-head .section-title { margin-bottom: 0; }

.rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--c-white);
  border: 1px solid var(--c-border-mid);
  padding: 10px 16px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--c-primary);
  transition: border-color .2s;
}
.rating-chip:hover { border-color: var(--c-primary); color: var(--c-primary-dark); }

.rating-stars { display: inline-flex; gap: 2px; color: #fbbc04; }

.google-g { flex-shrink: 0; }

.logo-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 760px) {
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .logo-wall { grid-template-columns: repeat(6, 1fr); }
}

.logo-tile {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  text-align: center;
}

.logo-tile img {
  max-height: 48px;
  max-width: 82%;
  width: auto;
}

.logo-tile small {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--c-muted);
}

.logo-tile--text span,
.logo-tile .logo-word {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--c-primary);
  line-height: 1.3;
}

.logo-tile--lockup img { max-height: 30px; }

.logo-wall-note {
  color: var(--c-muted);
  margin-top: var(--sp-2);
}

/* Auto-scrolling marquees (brands + reviews) — JS-driven so the user can
   drag / wheel / touch-scroll them like a video scrubber */
.marquee-zone { width: 100%; }

.marquee-zone .logo-wall-note {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--sp-3);
}

.marquee {
  overflow-x: auto;
  position: relative;
  cursor: grab;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.marquee::-webkit-scrollbar { display: none; }
.marquee:active { cursor: grabbing; }

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-set {
  display: flex;
  align-items: stretch;
  gap: 56px;
  padding-right: 56px;
}

a.brand-item:hover img { opacity: .85; }

.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 120px;
}

.brand-item img { max-height: 44px; width: auto; }

.brand-item small {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--c-muted);
}

.brand-item--text span,
.brand-item .logo-word {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--c-primary);
  line-height: 1.3;
  text-align: center;
}

.review-card {
  width: 360px;
  flex-shrink: 0;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-text {
  margin: 0;
  color: var(--c-primary);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-meta {
  margin-top: auto;
  font-size: 13px;
  color: var(--c-muted);
}

.review-meta strong {
  display: block;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--c-primary);
}

@media (max-width: 639px) {
  .review-card { width: 290px; }
  .marquee-set { gap: 36px; padding-right: 36px; }
}

.client-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  align-items: center;
}

.client-grid span {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--c-border-ghost);
  transition: color .2s;
}
.client-grid span:hover { color: var(--c-primary); }

/* --------------------------------------------------------------------------
   15. Reveal animation
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

.d-1 { transition-delay: .1s; }
.d-2 { transition-delay: .2s; }
.d-3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide, .site-header, .card { transition: none; }
}

/* --------------------------------------------------------------------------
   16. Utility / layout helpers
   -------------------------------------------------------------------------- */
.two-col {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.mt-4 { margin-top: var(--sp-4); }
.mb-4 { margin-bottom: var(--sp-4); }

.mobile-cta { display: none; }

[id] { scroll-margin-top: 110px; }

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 899px) {
  body { padding-top: var(--header-h-shrunk); }

  .site-header { height: var(--header-h-shrunk); }
  .site-header .logo-text { font-size: 14px; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-surface-dark);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .5);
    display: none;
  }

  body.nav-open .site-nav { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: var(--sp-2) 0;
  }

  .site-nav a {
    display: block;
    padding: 14px var(--sp-3);
    border-bottom: 0;
    border-left: 3px solid transparent;
  }
  .site-nav a.is-active { border-left-color: var(--c-white); color: var(--c-white); }

  .header-cta { display: none; }

  .nav-cta { display: block; }
  .site-nav .nav-cta a {
    background: var(--c-white);
    color: var(--c-primary-dark);
    margin: 8px var(--sp-3) 4px;
    padding: 12px;
    text-align: center;
    font-weight: 900;
    border-left: 0;
  }

  /* full-bleed hero: photo behind the copy, vertical scrim for legibility */
  .hero-slide { grid-template-columns: 1fr; position: relative; }
  .hero-media { position: absolute; inset: 0; z-index: 0; clip-path: none; }
  .hero-media::after {
    background: linear-gradient(180deg,
                rgba(38, 40, 43, .5) 0%,
                rgba(38, 40, 43, .25) 40%,
                rgba(38, 40, 43, .88) 75%,
                var(--c-surface-deep) 100%);
  }
  .hero-copy {
    position: relative;
    z-index: 1;
    justify-content: flex-end;
    min-height: min(80vh, 640px);
    min-height: min(80svh, 640px);
    padding: var(--sp-4) var(--sp-3) calc(var(--sp-3) + 44px);
  }
  .hero-text { margin: 0; }
  .hero-arrow { display: none; }
  .hero-controls { bottom: var(--sp-2); }
  .hero-controls .container { justify-content: center; }
  .hero-dot { width: 34px; }
  .hero-dot::after {
    width: 26px;
    height: 3px;
    border-radius: 0;
    border: 0;
    background: rgba(255, 255, 255, .35);
  }
  .hero-dot.is-active::after { background: var(--c-white); }

  .two-col { grid-template-columns: 1fr; gap: var(--sp-4); }

  /* mobile buttons: full-width, except where intentionally centered inline */
  .btn { display: block; width: 100%; }
  .two-col + .btn { margin-top: var(--sp-3); }
  .text-center .btn, .cta-band .btn { display: inline-block; width: auto; }
  .btn.header-cta { display: none; }

  .section { padding: var(--sp-5) 0; }

  .cta-band .container { flex-direction: column; text-align: center; }

  .contact-form { grid-template-columns: 1fr; }

  .side-panel { padding: var(--sp-3); }

  /* sticky call bar (homepage) — revealed by JS after the hero scrolls past */
  body[data-page="home"] { padding-bottom: 54px; }
  .mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 80;
    display: flex;
    transform: translateY(100%);
    transition: transform .3s ease;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, .18);
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta a {
    flex: 1;
    padding: 16px 8px calc(16px + env(safe-area-inset-bottom, 0px));
    text-align: center;
    font-family: var(--ff-display);
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
  }
  .mobile-cta-call { background: var(--c-white); color: var(--c-primary-dark); }
  .mobile-cta-request { background: var(--c-primary-dark); color: var(--c-white); }

  /* touch ergonomics */
  .site-footer li { margin-bottom: 0; }
  .site-footer li a { display: inline-block; padding: 9px 0; }
  .site-footer address a { display: inline-block; padding: 5px 0; }
  .card-link { padding: 8px 4px; }
  .pillar a { display: inline-block; padding: 5px 0; }
}

@media (max-width: 639px) {
  .section-title { font-size: 22px; letter-spacing: 3px; }

  /* compact hero badge bar: check items share a row */
  .hero-badges .container { gap: var(--sp-2) var(--sp-3); }
  .hero-licence, .hero-google { flex-basis: 100%; justify-content: flex-start; }

  /* map proportion on phones */
  iframe[title*="Map"] { height: 320px; }
  .client-strip { gap: var(--sp-2) var(--sp-3); }
  .client-strip span { font-size: 14px; }
  .stat-num { font-size: 40px; }

  /* How We Work: connected vertical timeline */
  .steps { gap: var(--sp-3); }
  .step { position: relative; padding-left: 52px; }
  .step::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 42px;
    bottom: calc(-1 * var(--sp-3));
    width: 2px;
    background: var(--c-border);
  }
  .step:last-child::before { display: none; }
  .steps .step-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    margin: 0;
    font-size: 15px;
    -webkit-text-stroke: 0;
    color: var(--c-white);
    background: var(--c-surface-dark);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Why Ber Electric: compact 2×2 pillar grid */
  .grid--pillars { grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
  .grid--pillars .pillar { padding: var(--sp-2) var(--sp-1); }
  .grid--pillars .icon-circle { width: 56px; height: 56px; }
  .grid--pillars .icon-circle svg { width: 24px; height: 24px; }
  .grid--pillars .pillar h3 { font-size: 12px; letter-spacing: 1px; }
  .grid--pillars .pillar p { font-size: 13px; }

  /* Services: horizontal snap-scroll cards (next-card peek invites swiping) */
  .grid--swipe {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--sp-3));
    padding: 4px var(--sp-3) var(--sp-2);
    scrollbar-width: none;
  }
  .grid--swipe::-webkit-scrollbar { display: none; }
  .grid--swipe > * { flex: 0 0 82%; scroll-snap-align: center; }
  .grid--swipe .reveal { opacity: 1; transform: none; transition: none; }

  .check-list { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .logo-tile { height: 90px; padding: 12px 14px; }
}

/* ===== FAQ (faq.html) ===== */
.faq-list { max-width: 860px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--c-border, rgba(0, 0, 0, 0.12));
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 22px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-answer { padding: 0 0 22px; }
.faq-answer p { margin: 0 0 12px; }
.faq-answer p:last-child { margin-bottom: 0; }
