/* ============================================================================
   Mainly Electrical — design system
   Palette taken from the company mark: slate navy ground, brass linework.
   ========================================================================== */

:root {
  /* Brand */
  --ink-900: #12151d;
  --ink-850: #171b25;
  --ink-800: #1d222e;
  --ink-700: #262c3a;
  --ink-600: #333a4b;
  --ink-500: #454d61;

  --brass-400: #f0cd92;
  --brass-300: #e8be7e;
  --brass:     #d9a45b;
  --brass-600: #bf8a41;
  --brass-700: #96682c;

  --cream:  #f4efe6;
  --paper:  #fbf9f5;
  --paper-2:#f2eee6;
  --line:   #e0d9cc;

  --text:      #1b1f28;
  --text-soft: #555c6b;
  --text-mute: #7b8394;

  --on-dark:      #f4efe6;
  --on-dark-soft: #b9bdc9;
  --on-dark-mute: #848b9c;

  --ok: #2f7d5d;
  --warn: #b4531f;

  /* Type */
  --f-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mark: "Josefin Sans", var(--f-display);

  /* Layout */
  --wrap: 1200px;
  --wrap-narrow: 820px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Depth */
  --shadow-sm: 0 1px 2px rgba(18, 21, 29, .06), 0 2px 8px rgba(18, 21, 29, .05);
  --shadow-md: 0 4px 12px rgba(18, 21, 29, .08), 0 16px 40px rgba(18, 21, 29, .09);
  --shadow-lg: 0 10px 24px rgba(18, 21, 29, .12), 0 32px 70px rgba(18, 21, 29, .16);
  --shadow-brass: 0 8px 26px rgba(191, 138, 65, .32);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --header-h: 76px;
  --util-h: 38px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
/* overflow-x: clip (not hidden) on html/body — Safari treats overflow-x: hidden on an
   ancestor as a reason to stop honoring position: sticky on descendants (the persistent
   utility bar / header), even though it only clips the X axis. clip keeps the same
   horizontal-bleed protection without creating a scroll container Safari's sticky
   resolution gets confused by. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); letter-spacing: -.01em; }
h4 { font-size: 1.05rem; letter-spacing: 0; }
p  { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--brass-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass-600); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li + li { margin-top: .35em; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brass); color: var(--ink-900);
  padding: 12px 18px; border-radius: 0 0 10px 10px;
  font-weight: 700; text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; }

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

/* ---------- layout primitives ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(64px, 9vw, 118px); }
.section--tight { padding-block: clamp(48px, 6vw, 76px); }
.section--dark { background: var(--ink-900); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--tint { background: var(--paper-2); }

.sec-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head p { color: var(--text-soft); font-size: 1.06rem; }
.section--dark .sec-head p { color: var(--on-dark-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mark);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass-700);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1.5px; background: currentColor; opacity: .6;
}
.sec-head--center .eyebrow::after {
  content: ""; width: 26px; height: 1.5px; background: currentColor; opacity: .6;
}
.section--dark .eyebrow { color: var(--brass-300); }

.lede { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--text-soft); }
.section--dark .lede { color: var(--on-dark-soft); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--brass);
  --btn-fg: var(--ink-900);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  font-family: var(--f-body);
  font-size: .98rem; font-weight: 650; letter-spacing: .01em;
  line-height: 1;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease),
              background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary { box-shadow: var(--shadow-brass); }
.btn-primary:hover { background: var(--brass-300); box-shadow: 0 12px 32px rgba(191, 138, 65, .42); }

.btn-outline { background: transparent; color: var(--text); border-color: rgba(27, 31, 40, .22); }
.btn-outline:hover { border-color: var(--text); background: rgba(27, 31, 40, .04); color: var(--text); }

.btn-ghost-light { background: transparent; color: var(--cream); border-color: rgba(244, 239, 230, .3); }
.btn-ghost-light:hover { background: rgba(244, 239, 230, .1); border-color: rgba(244, 239, 230, .6); color: var(--cream); }

.btn-dark { background: var(--ink-800); color: var(--cream); }
.btn-dark:hover { background: var(--ink-700); color: var(--cream); }

.btn-sm { padding: 11px 20px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- utility bar ---------- */
.utility {
  position: sticky; top: 0; z-index: 91;
  background: var(--ink-900);
  color: var(--on-dark-mute);
  font-size: .8rem;
  border-bottom: 1px solid rgba(244, 239, 230, .07);
}
.utility .wrap {
  min-height: var(--util-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.utility-badges { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.utility-badges span { display: inline-flex; align-items: center; gap: 7px; }
.utility-badges svg { width: 13px; height: 13px; color: var(--brass); flex: none; }
.utility-contact { display: flex; align-items: center; gap: 18px; }
.utility-contact a { color: var(--cream); text-decoration: none; font-weight: 600; }
.utility-contact a:hover { color: var(--brass-300); }
@media (max-width: 980px) {
  /* matches the nav's own breakpoint for switching to the hamburger menu —
     keeping this one in sync avoids a gap zone (e.g. large-phone landscape,
     ~900-980px) where the nav is already mobile but this bar still tries a
     one-line desktop layout and wraps badly */
  :root { --util-h: 60px; }
  /* badges take too much width on a phone; keep the bar to just the two
     things people actually want while scrolling: call and email */
  .utility-badges { display: none; }
  .utility .wrap { justify-content: center; padding-block: 10px; }
  .utility-contact { gap: 18px; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 360px) {
  .utility-contact { gap: 8px 14px; font-size: .92em; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: var(--util-h); z-index: 90;
  background: transparent;
  /* backdrop-filter is intentionally NOT animated: it acts as a containing
     block for fixed descendants (the slide-out nav) while active, so fading
     it in/out over time clips that panel to the header's own height for the
     duration of the fade, producing a torn/short panel until the fade ends. */
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid,
body.page-inner .site-header {
  background: rgba(18, 21, 29, .92);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: rgba(217, 164, 91, .18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
}
/* A backdrop-filter makes the header a containing block for its fixed
   descendants, which would clip the slide-out menu. Drop it while open. */
body .site-header.nav-open {
  z-index: 93;
  background: rgba(18, 21, 29, .97);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: rgba(217, 164, 91, .18);
}

.nav-bar {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

/* brand lockup */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 46px; height: 32px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; overflow: visible; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--f-mark);
  font-weight: 400;
  font-size: 1.12rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
}
.brand-sub {
  font-family: var(--f-mark);
  font-size: .53rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 5px;
}
@media (max-width: 400px) {
  .brand-name { font-size: .98rem; letter-spacing: .1em; }
  .brand-mark { width: 38px; height: 27px; }
}

/* nav */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(244, 239, 230, .22);
  border-radius: 11px; cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; width: 19px; height: 1.7px; background: var(--cream);
  border-radius: 2px; position: relative;
  transition: transform .28s var(--ease), opacity .18s linear;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 1.7px;
  background: var(--cream); border-radius: 2px;
  transition: transform .28s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.primary-nav ul {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.primary-nav li { margin: 0; }
.primary-nav a {
  display: block;
  padding: 10px 15px;
  font-size: .95rem; font-weight: 550;
  color: var(--on-dark-soft);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: color .18s var(--ease), background-color .18s var(--ease);
  white-space: nowrap;
}
.primary-nav a:hover { color: var(--cream); background: rgba(244, 239, 230, .08); }
.primary-nav a[aria-current="page"] { color: var(--brass-300); }
.primary-nav .nav-cta {
  margin-left: 10px;
  background: var(--brass); color: var(--ink-900); font-weight: 700;
  padding: 12px 22px;
  box-shadow: 0 6px 18px rgba(191, 138, 65, .3);
}
.primary-nav .nav-cta:hover { background: var(--brass-300); color: var(--ink-900); }

@media (max-width: 980px) {
  /* the toggle doubles as the close button, so it has to sit above the panel */
  .nav-toggle { display: inline-flex; position: relative; z-index: 2; }
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; z-index: 1;
    width: min(360px, 86vw);
    background: var(--ink-850);
    border-left: 1px solid rgba(217, 164, 91, .2);
    padding: calc(var(--header-h) + 26px) 28px 34px;
    transform: translateX(101%);
    visibility: hidden;
    transition: transform .34s var(--ease-out), visibility 0s linear .34s;
    overflow-y: auto;
    box-shadow: -24px 0 60px rgba(0, 0, 0, .4);
  }
  .primary-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .34s var(--ease-out), visibility 0s linear 0s;
  }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav a { padding: 15px 16px; font-size: 1.06rem; border-radius: 11px; }
  .primary-nav .nav-cta { margin: 18px 0 0; text-align: center; }
  .nav-scrim {
    position: fixed; inset: 0; z-index: 92;
    background: rgba(10, 12, 17, .6);
    backdrop-filter: blur(3px);
    opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease);
  }
  .nav-scrim.is-visible { opacity: 1; pointer-events: auto; }
}

/* scroll progress */
#progress {
  position: fixed; top: 0; left: 0; z-index: 120;
  height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brass-600), var(--brass-300));
  pointer-events: none;
}

/* ============================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(70px, 12vh, 130px));
  padding-bottom: clamp(90px, 14vh, 150px);
  min-height: min(88vh, 820px);
  display: flex; align-items: center;
  background: var(--ink-900);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
}
/* Fallback artwork when no photo/video has been supplied */
.hero-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 10%, rgba(217, 164, 91, .22), transparent 58%),
    radial-gradient(90% 70% at 10% 100%, rgba(70, 92, 120, .35), transparent 60%),
    linear-gradient(155deg, #1b2030 0%, #12151d 55%, #0d1016 100%);
}
.hero-fallback::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(217, 164, 91, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 164, 91, .07) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 20%, transparent 78%);
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(12, 14, 20, .93) 0%, rgba(12, 14, 20, .78) 42%, rgba(12, 14, 20, .32) 78%, rgba(12, 14, 20, .5) 100%),
    linear-gradient(180deg, rgba(12, 14, 20, .8) 0%, transparent 26%, transparent 62%, rgba(12, 14, 20, .82) 100%);
}

.hero-inner { position: relative; max-width: 760px; }

/* the vertical brass rule + traced "current" line */
.hero-rule {
  position: absolute; left: calc(-1 * var(--gutter) + 10px); top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(217, 164, 91, .55) 12%, rgba(217, 164, 91, .55) 88%, transparent);
}
.hero-rule::after {
  content: "";
  position: absolute; left: -1px; width: 4px; height: 84px;
  border-radius: 4px;
  background: linear-gradient(180deg, transparent, var(--brass-300), transparent);
  box-shadow: 0 0 16px rgba(232, 190, 126, .85);
  animation: current-run 5.5s var(--ease) infinite;
}
@keyframes current-run {
  0%   { top: -12%; opacity: 0; }
  12%  { opacity: 1; }
  78%  { opacity: 1; }
  100% { top: 102%; opacity: 0; }
}
@media (max-width: 900px) { .hero-rule { display: none; } }

.hero .eyebrow { color: var(--brass-300); }
.hero h1 { color: var(--cream); margin-bottom: .34em; }
.hero h1 .accent {
  color: var(--brass-300);
  display: inline-block;
}
.hero-lede {
  font-size: clamp(1.06rem, 1.7vw, 1.26rem);
  color: rgba(244, 239, 230, .82);
  max-width: 54ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 700px) {
  /* .hero reserves min(88vh, 820px) so a full-bleed video/photo background
     has room to breathe; with no media set, that just centers a few lines
     of text in a huge empty box. Let it size to its content on mobile. */
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 28px); padding-bottom: 56px; }
  /* the hero's own CTAs are redundant with the persistent bottom call bar
     on mobile, so hide them there instead of showing the same two buttons twice */
  .hero-actions { display: none; }
}

/* quick action strip straddling the hero edge */
.quickbar { position: relative; z-index: 5; margin-top: -46px; }
.quickbar-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: linear-gradient(180deg, var(--ink-800), var(--ink-850));
  border-radius: 20px;
  box-shadow: 0 30px 54px -18px rgba(9, 11, 16, .55);
  overflow: hidden;
}
/* soft glow underneath so the bar dissolves into the section below
   instead of ending on a hard edge */
.quickbar::after {
  content: "";
  position: absolute;
  left: 12%; right: 12%; bottom: -34px;
  height: 44px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(9, 11, 16, .3), transparent 75%);
  pointer-events: none;
  z-index: -1;
}
.quickbar-item {
  display: flex; align-items: center; justify-content: center; gap: 13px;
  flex: 1 1 240px;
  padding: 26px 34px;
  color: var(--on-dark-soft);
  text-decoration: none;
  text-align: left;
  transition: background-color .2s var(--ease);
}
a.quickbar-item:hover { background: rgba(217, 164, 91, .1); color: var(--on-dark-soft); }
.quickbar-ico {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(217, 164, 91, .14);
  color: var(--brass-300);
}
.quickbar-ico svg { width: 19px; height: 19px; }
.quickbar-item > span:last-child { min-width: 0; }
.quickbar-label { display: block; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--on-dark-mute); margin-bottom: 3px; }
.quickbar-value { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; color: var(--cream); line-height: 1.25; }
.quickbar-value .stars { color: var(--brass-300); letter-spacing: .04em; }

@media (max-width: 700px) {
  .quickbar { margin-top: -30px; }
  .quickbar-inner { flex-direction: column; }
  .quickbar-item { flex: 1 1 auto; justify-content: flex-start; padding: 18px 22px; }
  /* call/text and email are already covered by the persistent bottom call bar */
  .quickbar-item:nth-child(1), .quickbar-item:nth-child(2) { display: none; }
}

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  background: var(--ink-900);
  color: var(--on-dark);
  padding-block: clamp(56px, 8vw, 96px);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(90% 120% at 92% -10%, rgba(217, 164, 91, .17), transparent 55%),
    linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .25));
}
.page-hero .wrap { position: relative; }
.page-hero h1 { color: var(--cream); font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: .3em; }
.page-hero p { color: var(--on-dark-soft); max-width: 62ch; font-size: 1.08rem; }
.page-hero .eyebrow { color: var(--brass-300); }

.crumbs { font-size: .85rem; color: var(--on-dark-mute); margin-bottom: 18px; }
.crumbs a { color: var(--on-dark-soft); text-decoration: none; }
.crumbs a:hover { color: var(--brass-300); text-decoration: underline; }
.crumbs span { margin: 0 8px; opacity: .5; }

/* ============================================================================
   TRUST STRIP
   ========================================================================== */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.trust > div {
  background: var(--paper);
  padding: 30px 26px;
  text-align: center;
}
.trust-fig {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--ink-800);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.trust-fig .star { color: var(--brass); }
.trust-lbl { font-size: .86rem; color: var(--text-mute); margin-top: 6px; }
@media (max-width: 780px) { .trust { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================================
   SERVICE CARDS
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px 30px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--brass), var(--brass-300));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .38s var(--ease-out);
}
.card:hover, .card:focus-within {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(217, 164, 91, .45);
}
.card:hover::after, .card:focus-within::after { transform: scaleX(1); }
.card h3 { margin-bottom: .45em; color: var(--ink-800); }
.card p { color: var(--text-soft); font-size: .97rem; margin: 0; }
.card-ico {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(217, 164, 91, .16), rgba(217, 164, 91, .06));
  color: var(--brass-700);
  margin-bottom: 20px;
}
.card-ico svg { width: 26px; height: 26px; }
.card-ico svg [data-draw] {
  stroke-dasharray: 120; stroke-dashoffset: 120;
  transition: stroke-dashoffset .9s var(--ease-out) .1s;
}
.is-revealed .card-ico svg [data-draw] { stroke-dashoffset: 0; }

a.card { text-decoration: none; display: block; color: inherit; }
.card-more {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px;
  font-size: .9rem; font-weight: 650; color: var(--brass-700);
}
.card-more svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.card:hover .card-more svg { transform: translateX(4px); }

/* ============================================================================
   PROCESS
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.split--middle { align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.mark-panel {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(100% 90% at 70% 15%, rgba(217, 164, 91, .2), transparent 60%),
    linear-gradient(160deg, #202634, #12151d);
  display: grid; place-items: center;
  overflow: hidden;
  border: 1px solid rgba(217, 164, 91, .2);
}
.mark-panel::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(244, 239, 230, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, .045) 1px, transparent 1px);
  background-size: 42px 42px;
}
.mark-panel svg { position: relative; width: min(74%, 380px); height: auto; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  position: relative;
  padding-left: 62px;
  padding-bottom: 26px;
  margin: 0;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -2px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(217, 164, 91, .13);
  border: 1px solid rgba(217, 164, 91, .3);
  color: var(--brass-700);
  font-family: var(--f-display); font-weight: 700; font-size: .9rem;
}
.steps li::after {
  content: ""; position: absolute; left: 21px; top: 48px; bottom: 6px;
  width: 1px; background: linear-gradient(180deg, rgba(217, 164, 91, .4), transparent);
}
.steps li:last-child::after { display: none; }
.steps strong { display: block; font-family: var(--f-display); font-size: 1.08rem; color: var(--ink-800); margin-bottom: 3px; }
.steps span { color: var(--text-soft); font-size: .97rem; }
.section--dark .steps li::before { background: rgba(217, 164, 91, .16); color: var(--brass-300); }
.section--dark .steps strong { color: var(--cream); }
.section--dark .steps span { color: var(--on-dark-soft); }

/* ============================================================================
   REVIEWS
   ========================================================================== */
.rating-summary {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 13px 22px 13px 16px;
  background: rgba(244, 239, 230, .06);
  border: 1px solid rgba(244, 239, 230, .14);
  border-radius: var(--radius-pill);
  margin-bottom: 26px;
}
.rating-summary .g {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  background: #fff; border-radius: 50%;
}
.rating-summary .g svg { width: 18px; height: 18px; }
.rating-score { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; color: var(--cream); }
.rating-meta { font-size: .87rem; color: var(--on-dark-mute); }
.rating-stars { color: var(--brass-300); letter-spacing: .08em; font-size: .95rem; }

.reviews-viewport { overflow: hidden; }
.reviews-track {
  display: flex;
  gap: 20px;
  transition: transform .55s var(--ease-out);
  will-change: transform;
}
.review {
  /* exactly three across on desktop, two on tablet, one on phone —
     no half-clipped card at the container edge */
  flex: 0 0 calc((100% - 40px) / 3);
  display: flex; flex-direction: column;
  background: rgba(244, 239, 230, .045);
  border: 1px solid rgba(244, 239, 230, .12);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
}
.review-stars { color: var(--brass-300); letter-spacing: .12em; font-size: 1rem; margin-bottom: 14px; }
.review-body {
  color: rgba(244, 239, 230, .86);
  font-size: 1rem; line-height: 1.68;
  margin: 0 0 22px;
}
.review-body.is-clamped {
  display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-more {
  align-self: flex-start;
  background: none; border: 0; padding: 0;
  color: var(--brass-300); font: inherit; font-size: .88rem; font-weight: 600;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
  margin: -14px 0 18px;
}
.review-foot {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto;           /* pin to the bottom of the card */
  padding-top: 18px;
  border-top: 1px solid rgba(244, 239, 230, .1);
}
.review-avatar {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brass), var(--brass-700));
  color: var(--ink-900);
  font-family: var(--f-display); font-weight: 700; font-size: .95rem;
}
.review-who { font-weight: 650; color: var(--cream); font-size: .97rem; line-height: 1.3; }
.review-when { font-size: .82rem; color: var(--on-dark-mute); }

.reviews-controls { display: flex; align-items: center; gap: 12px; margin-top: 30px; }
.rc-btn {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(244, 239, 230, .22);
  color: var(--cream);
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), opacity .2s;
}
.rc-btn:hover:not(:disabled) { background: rgba(217, 164, 91, .16); border-color: var(--brass); }
.rc-btn:disabled { opacity: .32; cursor: default; }
.rc-btn svg { width: 17px; height: 17px; }
.rc-dots { display: flex; gap: 7px; margin-left: 6px; }
.rc-dot {
  width: 7px; height: 7px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(244, 239, 230, .26);
  cursor: pointer;
  transition: background-color .22s var(--ease), width .22s var(--ease);
}
.rc-dot[aria-current="true"] { background: var(--brass); width: 22px; border-radius: 4px; }
.reviews-link { margin-left: auto; font-size: .9rem; color: var(--on-dark-soft); text-decoration: none; }
.reviews-link:hover { color: var(--brass-300); text-decoration: underline; }
@media (max-width: 1080px) { .review { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 700px)  { .review { flex-basis: 100%; } }
@media (max-width: 620px) { .reviews-link { display: none; } }

/* ============================================================================
   SERVICE AREA
   ========================================================================== */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 3vw, 34px);
}
.area-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
}
.area-card h3 { color: var(--ink-800); margin-bottom: .3em; }
.area-card > p { color: var(--text-mute); font-size: .92rem; margin-bottom: 20px; }
.town-list {
  list-style: none; margin: 0; padding: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 13px 8px;
  border-top: 1px solid var(--line);
}
.town-list li { margin: 0; }
.town-list span {
  display: flex; align-items: baseline; gap: 9px;
  font-size: .93rem;
  color: var(--text-soft);
  line-height: 1.3;
  transition: color .2s var(--ease);
}
.town-list span::before {
  content: "";
  width: 4px; height: 4px; flex: none;
  border-radius: 50%;
  background: var(--line);
  transform: translateY(-2px);
}
.town-list li:hover span { color: var(--brass-700); }
.town-list li:hover span::before { background: var(--brass); }
.town-list .is-hub span { color: var(--ink-800); font-weight: 650; }
.town-list .is-hub span::before { background: var(--brass); width: 5px; height: 5px; }

/* ============================================================================
   ACCORDION
   ========================================================================== */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px;
  background: none; border: 0;
  font-family: var(--f-display); font-size: 1.08rem; font-weight: 600; text-align: left;
  color: var(--ink-800); cursor: pointer;
}
.acc-btn:hover { color: var(--brass-700); }
.acc-ico { width: 22px; height: 22px; flex: none; position: relative; }
.acc-ico::before, .acc-ico::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--brass-700); border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .28s var(--ease), opacity .2s linear;
}
.acc-ico::before { width: 14px; height: 2px; }
.acc-ico::after { width: 2px; height: 14px; }
.acc-btn[aria-expanded="true"] .acc-ico::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.acc-panel { overflow: hidden; height: 0; transition: height .32s var(--ease); }
.acc-panel > div { padding: 0 4px 26px; color: var(--text-soft); max-width: 72ch; }

/* ============================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
  position: relative;
  background: linear-gradient(120deg, var(--brass-700) 0%, var(--brass) 55%, var(--brass-300) 100%);
  color: var(--ink-900);
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(18, 21, 29, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 21, 29, .07) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(105deg, transparent 20%, #000 90%);
  -webkit-mask-image: linear-gradient(105deg, transparent 20%, #000 90%);
}
.cta-band .wrap {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 34px;
  flex-wrap: wrap;
  padding-block: clamp(46px, 6vw, 72px);
}
.cta-band h2 { color: var(--ink-900); margin-bottom: .2em; max-width: 18ch; }
.cta-band p { color: rgba(18, 21, 29, .78); margin: 0; max-width: 46ch; }
.cta-actions { display: flex; gap: 13px; flex-wrap: wrap; }
.cta-band .btn-dark { box-shadow: 0 10px 28px rgba(18, 21, 29, .24); }
.cta-band .btn-outline { border-color: rgba(18, 21, 29, .38); color: var(--ink-900); }
.cta-band .btn-outline:hover { background: rgba(18, 21, 29, .1); border-color: var(--ink-900); }

/* ============================================================================
   FORM
   ========================================================================== */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 42px);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: .87rem; font-weight: 650; color: var(--ink-800);
  margin-bottom: 7px;
}
.field .req { color: var(--warn); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit; font-size: .98rem;
  color: var(--text);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 11px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%23555c6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--brass);
  box-shadow: 0 0 0 4px rgba(217, 164, 91, .18);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.field-err { display: none; margin-top: 6px; font-size: .84rem; color: var(--warn); font-weight: 600; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--warn); }
.field.has-error .field-err { display: block; }
.form-note { font-size: .85rem; color: var(--text-mute); margin-top: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  display: none;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: .95rem;
  margin-bottom: 22px;
}
.form-status.is-ok { display: block; background: rgba(47, 125, 93, .1); border: 1px solid rgba(47, 125, 93, .35); color: #1e5a41; }
.form-status.is-err { display: block; background: rgba(180, 83, 31, .1); border: 1px solid rgba(180, 83, 31, .35); color: #8a3f16; }

.contact-aside { display: flex; flex-direction: column; gap: 18px; }
.contact-tile {
  display: flex; gap: 15px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
a.contact-tile:hover { border-color: rgba(217, 164, 91, .5); transform: translateX(3px); color: inherit; }
.contact-tile .ico {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(217, 164, 91, .14); color: var(--brass-700);
}
.contact-tile .ico svg { width: 19px; height: 19px; }
.contact-tile .tile-dl { margin: 0; }
.contact-tile dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 3px; }
.contact-tile dd { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; color: var(--ink-800); }
.contact-tile small { display: block; font-family: var(--f-body); font-weight: 400; font-size: .87rem; color: var(--text-soft); margin-top: 3px; }

/* ============================================================================
   PROSE (about / detail pages)
   ========================================================================== */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.15em; }
.prose li { color: var(--text-soft); }
.prose li::marker { color: var(--brass); }

.pull {
  border-left: 3px solid var(--brass);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.45;
  color: var(--ink-800);
  letter-spacing: -.01em;
}

.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li {
  position: relative;
  padding-left: 30px;
  margin: 0 0 11px;
  color: var(--text-soft);
}
.spec-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 15px; height: 9px;
  border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass);
  transform: rotate(-45deg);
  border-radius: 1px;
}
.section--dark .spec-list li { color: var(--on-dark-soft); }

/* service detail blocks */
.svc-block {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 4vw, 56px);
  padding-block: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--util-h) + var(--header-h) + 24px);
}
.svc-block:last-of-type { border-bottom: 0; }
@media (max-width: 860px) { .svc-block { grid-template-columns: 1fr; gap: 20px; } }
.svc-block h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin-bottom: .35em; }
.svc-num {
  font-family: var(--f-display); font-size: .8rem; font-weight: 700;
  letter-spacing: .18em; color: var(--brass-700); margin-bottom: 10px;
}

/* jump nav */
.jumpnav { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 8px; }
.jumpnav a {
  padding: 9px 17px;
  font-size: .88rem; font-weight: 550;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(244, 239, 230, .22);
  color: var(--on-dark-soft); text-decoration: none;
  transition: all .2s var(--ease);
}
.jumpnav a:hover { border-color: var(--brass); background: rgba(217, 164, 91, .14); color: var(--brass-300); }

/* ============================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ink-900); color: var(--on-dark-mute); font-size: .94rem; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 52px);
  padding-block: clamp(52px, 7vw, 78px);
}
@media (max-width: 940px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { color: var(--on-dark-mute); max-width: 38ch; font-size: .94rem; }
.footer-col h2 {
  font-family: var(--f-mark); font-size: .78rem; font-weight: 600; line-height: 1.3;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 10px; }
.footer-col a { color: var(--on-dark-soft); text-decoration: none; }
.footer-col a:hover { color: var(--brass-300); text-decoration: underline; }
.footer-col address { font-style: normal; color: var(--on-dark-soft); line-height: 1.85; }

.footer-bottom {
  border-top: 1px solid rgba(244, 239, 230, .1);
  padding-block: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* sticky mobile call bar — persistent now that the hero's own CTAs and the
   quickbar's call/email items are hidden on mobile, so this is the only
   copy of those actions rather than a third one stacked on the others */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none;
  background: var(--ink-850);
  border-top: 1px solid rgba(217, 164, 91, .3);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, .32);
}
.callbar .btn { flex: 1; padding: 14px 12px; font-size: .93rem; }
@media (max-width: 700px) {
  .callbar {
    display: flex;
    transition: transform .2s var(--ease), opacity .2s var(--ease);
  }
  /* iOS Safari doesn't correctly reposition fixed elements against the
     shrunk viewport while the keyboard is animating open/closed, so a
     fixed bottom bar visually "floats" mid-content during that transition.
     Hiding it while any field has focus avoids the glitch entirely. */
  .callbar.is-hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }
  body { padding-bottom: 76px; }
}

/* ============================================================================
   REVEAL ANIMATION
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-revealed { opacity: 1; transform: none; }
.reveal-1 { transition-delay: .08s; }
.reveal-2 { transition-delay: .16s; }
.reveal-3 { transition-delay: .24s; }
.reveal-4 { transition-delay: .32s; }
.reveal-5 { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-rule::after { display: none; }
  .reviews-track { transition: none; }
}

@media print {
  .site-header, .callbar, .cta-band, .quickbar, #progress, .utility { display: none !important; }
  body { background: #fff; color: #000; }
}
