/* Peninsula Concrete Sealing — brand palette: gold + charcoal (no blue) */
:root {
  --primary: #f0a12e;
  --primary-dark: #d8891a;
  --primary-soft: rgba(240, 161, 46, 0.14);
  --navy: #1a1a1a;          /* charcoal — maps existing "dark" tokens, not blue */
  --navy-mid: #252525;
  --navy-soft: #333333;
  --accent: #ff5e14;
  --text: #1a1a1a;
  --text-muted: #555;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f7f6f4;        /* warm off-white */
  --bg-dark: #1a1a1a;
  --border: #e8e6e3;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --max: 1140px;
  --header-h: 78px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { padding-left: 1.25rem; }
h1, h2, h3, h4 {
  font-family: var(--font);
  line-height: 1.25;
  color: var(--navy);
  font-weight: 700;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.1rem; color: var(--text-muted); line-height: 1.75; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.container-narrow { width: min(100% - 2rem, 820px); margin-inline: auto; }

/* —— Top bar —— */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 0.875rem;
  padding: 0.5rem 0;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: #fff; }
.topbar a:hover { color: var(--primary); }
.topbar-right { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.topbar .phone {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

/* —— Header / Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.logo img {
  height: 52px;
  width: auto;
}
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.main-nav > ul > li > a {
  display: block;
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  border-radius: 6px;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  color: var(--primary-dark);
  background: var(--primary-soft);
}
.main-nav .has-dropdown { position: relative; }
.main-nav .has-dropdown > a::after {
  content: "▾";
  margin-left: 0.35rem;
  font-size: 0.7em;
  opacity: 0.7;
}
/* Simple vertical services dropdown
   .open is driven by JS with a close delay so brief mouse slips don't hide the menu */
.main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.4rem 0;
  z-index: 50;
  flex-direction: column;
}
/* Invisible bridge between "Our Services" link and panel (reduces accidental leave) */
.main-nav .dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.main-nav .has-dropdown:hover .dropdown,
.main-nav .has-dropdown:focus-within .dropdown,
.main-nav .has-dropdown.open .dropdown {
  display: flex;
}
.main-nav .dropdown a {
  display: block;
  padding: 0.65rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: 0;
  white-space: normal;
  border-bottom: 1px solid var(--border);
  line-height: 1.35;
}
.main-nav .dropdown > a:last-child,
.main-nav .dropdown-sub:last-child { border-bottom: 0; }
.main-nav .dropdown a:hover {
  background: var(--bg-alt);
  color: var(--primary-dark);
  padding-left: 1.35rem;
}
/* Nested: Other Services */
.main-nav .dropdown-sub {
  position: relative;
  border-bottom: 1px solid var(--border);
}
.main-nav .dropdown-sub-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}
.main-nav .dropdown-sub-trigger::after {
  content: "›";
  font-size: 1.1rem;
  color: var(--primary-dark);
  line-height: 1;
}
.main-nav .dropdown-sub-trigger:hover {
  background: var(--bg-alt);
  color: var(--primary-dark);
}
.main-nav .dropdown-sub-menu {
  display: none;
  position: absolute;
  left: calc(100% - 2px);
  top: 0;
  min-width: 240px;
  margin-left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow);
  z-index: 60;
  padding: 0.35rem 0;
}
/* Bridge toward nested flyout so diagonal moves stay "inside" the hit area */
.main-nav .dropdown-sub-menu::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 0;
  bottom: 0;
  width: 16px;
}
.main-nav .dropdown-sub:hover > .dropdown-sub-menu,
.main-nav .dropdown-sub:focus-within > .dropdown-sub-menu,
.main-nav .dropdown-sub.open > .dropdown-sub-menu {
  display: block;
}
.main-nav .dropdown-sub-menu a {
  border-bottom: 1px solid var(--border);
}
.main-nav .dropdown-sub-menu a:last-child {
  border-bottom: 0;
}
.btn-nav {
  background: var(--primary) !important;
  color: #1a1a1a !important;
  font-weight: 700 !important;
  padding: 0.55rem 1.15rem !important;
  border-radius: 8px !important;
  margin-left: 0.35rem;
}
.btn-nav:hover {
  background: var(--primary-dark) !important;
  color: #fff !important;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.2;
  font-family: inherit;
}
.btn-primary {
  background: var(--primary);
  color: var(--navy);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}
.btn-outline:hover {
  background: #fff;
  color: var(--navy);
}
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: #fff;
}
.btn-sm { padding: 0.55rem 1rem; font-size: 0.9rem; }
.btn-lg { padding: 0.95rem 1.75rem; font-size: 1.05rem; }

/* —— Hero: cinematic (matches service hero strength + 45° gold line) —— */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(540px, 88vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0a0a0a;
  color: #fff;
  border-bottom: 0;
}
/* Oversized media layer — animate wrapper (reliable), not the img */
.hero-media {
  position: absolute;
  z-index: 0;
  top: -14%;
  left: -14%;
  width: 128%;
  height: 128%;
  overflow: hidden;
  animation: hero-drift 11s ease-in-out infinite alternate;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-origin: 50% 50%;
  transform: translateZ(0);
}
/* Override global img { max-width:100%; height:auto } */
.hero-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: contrast(1.1) saturate(1.12) brightness(0.74);
  pointer-events: none;
}
@keyframes hero-drift {
  0%   { transform: scale(1) translate3d(0, 0, 0); }
  50%  { transform: scale(1.12) translate3d(-3%, -2%, 0); }
  100% { transform: scale(1.22) translate3d(-6.5%, -4.5%, 0); }
}
/* Soft film grain on photo */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
/* Dark cinematic veil — charcoal + gold, not blue */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 18% 50%, rgba(0, 0, 0, 0.55) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 88% 20%, rgba(240, 161, 46, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 70% 90%, rgba(255, 94, 20, 0.08) 0%, transparent 50%),
    linear-gradient(105deg, rgba(8, 8, 8, 0.9) 0%, rgba(8, 8, 8, 0.68) 38%, rgba(8, 8, 8, 0.32) 68%, rgba(8, 8, 8, 0.5) 100%);
  animation: hero-veil-pulse 11s ease-in-out infinite alternate;
}
@keyframes hero-veil-pulse {
  0%   { opacity: 1; }
  100% { opacity: 0.88; }
}
/* Fine tech grid (subtle) */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(240, 161, 46, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 161, 46, 0.35) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 50%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 50%, #000 10%, transparent 75%);
}
/*
 * Gold light line at 45° — sweeps across the hero
 * (same energy as service-hero sweep, diagonal orientation)
 */
.hero-scan {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  top: 50%;
  left: 50%;
  width: 220%;
  height: 6px;
  margin-left: -110%;
  margin-top: -3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(240, 161, 46, 0.05) 22%,
    rgba(255, 220, 140, 0.55) 45%,
    rgba(240, 161, 46, 0.95) 50%,
    rgba(255, 220, 140, 0.55) 55%,
    rgba(240, 161, 46, 0.05) 78%,
    transparent 100%
  );
  box-shadow:
    0 0 18px 4px rgba(240, 161, 46, 0.45),
    0 0 48px 12px rgba(240, 161, 46, 0.2);
  transform: rotate(45deg) translate3d(-40%, 0, 0);
  transform-origin: center center;
  animation: hero-gold-line 6.5s ease-in-out infinite;
  mix-blend-mode: screen;
  opacity: 0;
}
@keyframes hero-gold-line {
  0% {
    transform: rotate(45deg) translate3d(-55%, 0, 0);
    opacity: 0;
  }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% {
    transform: rotate(45deg) translate3d(55%, 0, 0);
    opacity: 0;
  }
}
/* Soft gold glow orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
  filter: blur(40px);
  opacity: 0.55;
  animation: hero-orb 10s ease-in-out infinite alternate;
}
.hero-orb-1 {
  width: 280px;
  height: 280px;
  top: -40px;
  right: 8%;
  background: rgba(240, 161, 46, 0.35);
}
.hero-orb-2 {
  width: 180px;
  height: 180px;
  bottom: 10%;
  right: 22%;
  background: rgba(255, 94, 20, 0.22);
  animation-delay: -3s;
}
@keyframes hero-orb {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-18px, 22px, 0) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media {
    animation: hero-drift 28s ease-in-out infinite alternate;
  }
  .hero-scan,
  .hero-orb,
  .hero-veil {
    animation: none;
  }
  .hero-scan { opacity: 0; }
}
/* Content */
.hero .container {
  position: relative;
  z-index: 5;
  padding: clamp(3rem, 7vw, 5.5rem) 1rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.hero-copy {
  position: relative;
  max-width: 640px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgba(18, 18, 18, 0.72) 0%,
    rgba(12, 12, 12, 0.55) 100%
  );
  border: 1px solid rgba(240, 161, 46, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(240, 161, 46, 0.08);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  /* Mid-strength broom/sweep in (~2s), then static */
  animation: hero-panel-broom 2s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
}
@keyframes hero-panel-broom {
  0% {
    opacity: 0;
    transform: translate3d(-96px, 36px, 0) skewX(-10deg) scale(0.9);
    filter: blur(6px);
  }
  40% {
    opacity: 1;
    filter: blur(0);
  }
  62% {
    transform: translate3d(10px, -3px, 0) skewX(2deg) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
/* After entrance: only drop will-change — never kill animation (avoids blink) */
.hero-copy.is-settled {
  will-change: auto;
}
/* Gold top accent line on glass panel */
.hero-copy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary) 20%, #ffc56a 50%, var(--primary) 80%, transparent);
  box-shadow: 0 0 18px rgba(240, 161, 46, 0.9);
  border-radius: 2px;
  transform-origin: left center;
  animation: hero-panel-line 2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes hero-panel-line {
  0%   { transform: scaleX(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scaleX(1); opacity: 1; }
}
/* Soft gold broom streak — one pass only */
.hero-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 220, 140, 0.22) 47%,
    rgba(240, 161, 46, 0.4) 50%,
    rgba(255, 255, 255, 0.12) 53%,
    transparent 62%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: hero-panel-streak 2s cubic-bezier(0.16, 1, 0.3, 1) both;
  mix-blend-mode: soft-light;
}
@keyframes hero-panel-streak {
  0%   { background-position: 100% 0; opacity: 0; }
  18%  { opacity: 1; }
  100% { background-position: -100% 0; opacity: 0; }
}
.hero-copy > * {
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  background: rgba(240, 161, 46, 0.12);
  color: var(--primary);
  border: 1px solid rgba(240, 161, 46, 0.45);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  box-shadow: 0 0 24px rgba(240, 161, 46, 0.18);
}
.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(240, 161, 46, 0.95);
  animation: hero-pulse 2s ease-in-out infinite;
}
@keyframes hero-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
.hero h1 {
  color: #fff;
  max-width: 16ch;
  margin-bottom: 1.1rem;
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}
.hero h1 .hero-accent {
  display: block;
  background: linear-gradient(100deg, #fff 0%, #fff 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(240, 161, 46, 0.25));
}
.hero .hero-lead {
  color: rgba(255, 255, 255, 0.86);
  max-width: 48ch;
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 0.35rem;
}
.hero .hero-sub {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
  max-width: 44ch;
  margin: 0.85rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(240, 161, 46, 0.22);
  letter-spacing: 0.02em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.hero-actions .btn-primary {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 8px 28px rgba(240, 161, 46, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.hero-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 12px 36px rgba(240, 161, 46, 0.55);
}
.hero-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
}
.hero-actions .btn-outline:hover {
  background: #fff;
  color: #111;
  border-color: #fff;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.65rem;
}
.hero-pills a,
.hero-pills span {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.hero-pills a:hover,
.hero-pills span:hover {
  border-color: rgba(240, 161, 46, 0.55);
  background: rgba(240, 161, 46, 0.12);
  box-shadow: 0 0 16px rgba(240, 161, 46, 0.15);
  color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-copy::before,
  .hero-copy::after,
  .hero-badge::before {
    animation: none !important;
  }
  .hero-copy {
    opacity: 1;
    transform: none;
    filter: none;
    will-change: auto;
  }
  .hero-copy::after {
    display: none;
  }
}

/* Page hero (inner pages) — solid charcoal fallback */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 3.25rem 0 2.75rem;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--primary);
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(240, 161, 46, 0.1);
}
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .breadcrumb {
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}
.page-hero .breadcrumb a { color: var(--primary); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .lead { color: rgba(255, 255, 255, 0.85); max-width: 60ch; }

/* Service page hero — full-bleed PCS project photo + slow cinematic drift */
.service-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(340px, 48vh, 480px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: #111;
  border-bottom: 4px solid var(--primary);
}
/* Oversized media layer so pan/zoom never shows empty edges */
.service-hero__media {
  position: absolute;
  z-index: 0;
  top: -14%;
  left: -14%;
  width: 128%;
  height: 128%;
  overflow: hidden;
  animation: service-hero-drift 11s ease-in-out infinite alternate;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-origin: 50% 50%;
  /* transform-only animation — compositor-friendly; avoid permanent will-change */
  transform: translateZ(0);
}
/* Override global img { max-width:100%; height:auto } which kills cover + motion */
.service-hero__media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: contrast(1.1) saturate(1.12) brightness(0.8);
  pointer-events: none;
}
/* Strong cinematic drift: clear zoom + diagonal pan */
@keyframes service-hero-drift {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.12) translate3d(-3%, -2%, 0);
  }
  100% {
    transform: scale(1.22) translate3d(-6.5%, -4.5%, 0);
  }
}
/* Soft film grain */
.service-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
/* Stronger moving gold light band */
.service-hero__sweep {
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -50%;
  width: 55%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(240, 161, 46, 0.08) 35%,
    rgba(255, 220, 140, 0.22) 48%,
    rgba(240, 161, 46, 0.18) 52%,
    rgba(255, 255, 255, 0.1) 58%,
    transparent 100%
  );
  animation: service-hero-sweep 6.5s ease-in-out infinite;
  mix-blend-mode: soft-light;
  filter: blur(0.5px);
}
@keyframes service-hero-sweep {
  0%   { transform: translate3d(0, 0, 0) skewX(-8deg); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translate3d(320%, 0, 0) skewX(-8deg); opacity: 0; }
}
.service-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(10, 10, 10, 0.86) 0%, rgba(10, 10, 10, 0.55) 48%, rgba(10, 10, 10, 0.32) 100%),
    radial-gradient(ellipse 55% 75% at 88% 18%, rgba(240, 161, 46, 0.2), transparent 58%);
  animation: service-hero-veil-pulse 11s ease-in-out infinite alternate;
}
@keyframes service-hero-veil-pulse {
  0%   { opacity: 1; }
  100% { opacity: 0.88; }
}
@media (prefers-reduced-motion: reduce) {
  .service-hero__media {
    animation: service-hero-drift 28s ease-in-out infinite alternate;
  }
  .service-hero__sweep,
  .service-hero__veil {
    animation: none;
  }
  .service-hero__sweep { opacity: 0; }
}
.service-hero .container {
  position: relative;
  z-index: 2;
  padding: clamp(2.75rem, 6vw, 4.25rem) 1rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.service-hero h1 {
  color: #fff;
  max-width: 18ch;
  margin-bottom: 0.85rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}
.service-hero .breadcrumb {
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}
.service-hero .breadcrumb a { color: var(--primary); }
.service-hero .breadcrumb a:hover { color: #fff; }
.service-hero .lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 54ch;
  font-size: 1.08rem;
  margin: 0;
  line-height: 1.65;
}
.service-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Full-width service article (no right CTA sidebar) */
.service-article {
  max-width: 820px;
  margin: 0 auto;
}
.service-article.prose {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2a2a2a;
}
.service-article.prose p {
  margin-bottom: 1.15rem;
}
.service-article.prose p + p {
  margin-top: 0;
}
.service-article h2 {
  margin-top: 2.65rem;
  margin-bottom: 1rem;
  padding-bottom: 0.45rem;
  display: inline-block;
  width: 100%;
  border-bottom: 2px solid var(--border);
  border-image: none;
  position: relative;
  line-height: 1.3;
}
.service-article h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: var(--primary);
  margin-top: 0.55rem;
  border-radius: 2px;
}
.service-article h3 {
  margin-top: 1.65rem;
  margin-bottom: 0.55rem;
  line-height: 1.35;
}
.service-article .check-list,
.service-article .benefit-grid {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

/* Portfolio on service pages — matches homepage gallery tiles */
.service-portfolio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 1.75rem 0 0.5rem;
}
.service-portfolio figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  background: var(--bg-alt);
  cursor: pointer;
  isolation: isolate;
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.service-portfolio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.35s ease;
}
.service-portfolio figure:hover img,
.project-gallery figure:hover img,
.photo-grid figure:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}
/* Soft bottom shade on hover (kept) */
.service-portfolio figure::after,
.project-gallery figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(transparent 55%, rgba(0, 0, 0, 0.25));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.service-portfolio figure:hover::after,
.project-gallery figure:hover::after {
  opacity: 1;
}
/* 45° gold strike — HOVER ONLY on service page galleries (same as home 3×3) */
.service-portfolio figure::before {
  content: "";
  position: absolute;
  z-index: 3;
  pointer-events: none;
  top: 50%;
  left: 50%;
  width: 220%;
  height: 3px;
  margin-left: -110%;
  margin-top: -1.5px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(240, 161, 46, 0.035) 22%,
    rgba(255, 220, 140, 0.29) 45%,
    rgba(240, 161, 46, 0.56) 50%,
    rgba(255, 220, 140, 0.29) 55%,
    rgba(240, 161, 46, 0.035) 78%,
    transparent 100%
  );
  box-shadow:
    0 0 9px 2px rgba(240, 161, 46, 0.24),
    0 0 22px 4px rgba(240, 161, 46, 0.1);
  transform: rotate(45deg) translate3d(-55%, 0, 0);
  transform-origin: center center;
  mix-blend-mode: screen;
  opacity: 0;
}
.service-portfolio figure:hover::before {
  animation: service-card-gold-45-rotate 10.2s ease-in-out infinite;
}
/* Calm other gallery tiles while one is hovered */
.service-portfolio:hover figure:not(:hover) {
  opacity: 0.55;
  filter: saturate(0.75) brightness(0.96);
}
.service-portfolio:hover figure:not(:hover)::before {
  animation: none;
  opacity: 0;
}
.service-portfolio:hover figure:not(:hover) img {
  transform: none;
  filter: none;
}
.service-portfolio figure:hover {
  opacity: 1;
  filter: none;
  z-index: 2;
  box-shadow: var(--shadow);
}
.service-portfolio figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.35rem 0.85rem 0.7rem;
  background: linear-gradient(transparent, rgba(26, 26, 26, 0.88));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}
.service-portfolio--2 { grid-template-columns: 1fr 1fr; }
.service-portfolio--2 figure { aspect-ratio: 16 / 10; }
@media (prefers-reduced-motion: reduce) {
  .service-portfolio figure:hover::before {
    animation: none !important;
    display: none;
  }
}

/* Related services strip (not a right tab) */
.related-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}
.related-card {
  display: block;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.98rem;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(240, 161, 46, 0.45);
  color: var(--primary-dark);
}
.related-card span {
  display: block;
  margin-top: 0.35rem;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .service-portfolio { grid-template-columns: 1fr 1fr; }
  .related-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .service-portfolio,
  .service-portfolio--2,
  .related-strip { grid-template-columns: 1fr; }
  .service-hero { min-height: 300px; }
}

/* —— Trust bar —— */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1.35rem 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 3;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem 1.25rem;
  text-align: center;
}
.trust-item {
  padding: 0.65rem 0.5rem;
  border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: 0; }
.trust-item strong {
  display: block;
  color: var(--navy);
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}
.trust-item span {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.4;
}
.trust-item .icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.55rem;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 700;
}

/* Why-us feature chips */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin: 1.35rem 0 1.5rem;
  padding: 0;
  list-style: none;
}
.why-grid li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}
.why-grid li::before {
  content: "✓";
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-top: 0.1rem;
}

/* Project gallery (legacy single images — still used if needed) */
.project-gallery {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.85rem;
  min-height: 420px;
}
.project-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  background: var(--bg-alt);
  cursor: pointer;
}
.project-gallery figure:first-child {
  grid-row: 1 / 3;
}
.project-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
  transition: transform 0.45s ease, filter 0.35s ease;
}
.project-gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 0.9rem 0.75rem;
  background: linear-gradient(transparent, rgba(26, 26, 26, 0.85));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Home: before/after slider grid under main BA hero */
.project-sliders {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: minmax(200px, 1fr) minmax(200px, 1fr);
  gap: 0.85rem;
  min-height: 480px;
}
.project-sliders > .ba-slider {
  margin: 0;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  /* Hero-family frame */
  border: 1px solid rgba(240, 161, 46, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 12px 32px rgba(0, 0, 0, 0.16),
    0 0 36px rgba(240, 161, 46, 0.07);
  isolation: isolate;
}
.project-sliders > .ba-slider:first-child {
  grid-row: 1 / -1;
}
.project-sliders .ba-slider__track {
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: 200px;
  height: 100%;
}
/* Quieter handles on sub tiles */
.project-sliders .ba-slider--tile .ba-slider__line {
  width: 2px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(240, 161, 46, 0.35);
}
.project-sliders .ba-slider--tile .ba-slider__knob {
  width: 18px;
  height: 18px;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.92),
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 0 8px rgba(240, 161, 46, 0.26);
  opacity: 0.88;
}
.project-sliders .ba-slider--tile .ba-slider__knob svg {
  width: 8px;
  height: 8px;
}
.project-sliders .ba-slider--tile:focus-within .ba-slider__knob,
.project-sliders .ba-slider--tile:hover .ba-slider__knob {
  opacity: 1;
  width: 21px;
  height: 21px;
}
/* Subtle living pan on images inside tiles (gold strip/wave from base .ba-slider) */
.project-sliders .ba-slider--tile .ba-slider__img {
  animation: project-tile-drift 18s ease-in-out infinite alternate;
  will-change: transform;
}
.project-sliders .ba-slider--tile .ba-slider__img--after {
  filter: contrast(1.05) saturate(1.06) brightness(0.94);
}
.project-sliders .ba-slider--tile .ba-slider__img--before {
  filter: contrast(1.04) saturate(1.02) brightness(0.92);
}
/* Stagger gold motion slightly across tiles */
.project-sliders > .ba-slider:nth-child(2)::before,
.project-sliders > .ba-slider:nth-child(2)::after { animation-delay: 0.6s; }
.project-sliders > .ba-slider:nth-child(3)::before,
.project-sliders > .ba-slider:nth-child(3)::after { animation-delay: 1.2s; }
.project-sliders > .ba-slider:nth-child(4)::before,
.project-sliders > .ba-slider:nth-child(4)::after { animation-delay: 1.8s; }
.project-sliders > .ba-slider:nth-child(5)::before,
.project-sliders > .ba-slider:nth-child(5)::after { animation-delay: 2.4s; }
@keyframes project-tile-drift {
  0%   { transform: scale(1.02); }
  100% { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .project-sliders .ba-slider--tile .ba-slider__img {
    animation: none !important;
    transform: none;
    will-change: auto;
  }
}
@media (max-width: 900px) {
  .project-sliders {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }
  .project-sliders > .ba-slider:first-child {
    grid-row: auto;
    grid-column: 1 / -1;
  }
  .project-sliders .ba-slider__track {
    aspect-ratio: 16 / 10;
    min-height: 220px;
  }
}
@media (max-width: 560px) {
  .project-sliders {
    grid-template-columns: 1fr;
  }
  .project-sliders > .ba-slider:first-child {
    grid-column: auto;
  }
}

/* Final contact CTA block */
.final-cta {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-details {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}
.contact-details li {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.contact-details li:last-child { border-bottom: 0; }
.contact-details .label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  min-width: 5.5rem;
  padding-top: 0.15rem;
}
.contact-details .value {
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
}
.contact-details a { color: var(--navy); font-weight: 700; }
.contact-details a:hover { color: var(--primary-dark); }

/* Service cards denser for homepage overview */
.service-card .card-img {
  aspect-ratio: 16 / 10;
}
.card-grid.services-overview {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

/* —— Sections —— */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--navy);
  color: #fff;
}
.section-dark h2,
.section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255, 255, 255, 0.85); }
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.75rem;
}
.section-header .eyebrow {
  display: inline-block;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-header p { color: var(--text-muted); margin-bottom: 0; }

/* —— Cards —— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-card .card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
  isolation: isolate;
}
/* Gold wave on 3×3 service thumbs (idle loop) */
.service-card .card-img::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 45%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(240, 161, 46, 0.07) 34%,
    rgba(255, 220, 140, 0.26) 48%,
    rgba(240, 161, 46, 0.38) 50%,
    rgba(255, 255, 255, 0.12) 53%,
    transparent 68%
  );
  mix-blend-mode: soft-light;
  opacity: 0;
  animation: service-card-wave 7.5s ease-in-out infinite;
}
/* 45° gold line — hover; intensity +30% vs previous soft, slower cycle */
.service-card .card-img::before {
  content: "";
  position: absolute;
  z-index: 3;
  pointer-events: none;
  top: 50%;
  left: 50%;
  width: 220%;
  height: 3px;
  margin-left: -110%;
  margin-top: -1.5px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(240, 161, 46, 0.035) 22%,
    rgba(255, 220, 140, 0.29) 45%,
    rgba(240, 161, 46, 0.56) 50%,
    rgba(255, 220, 140, 0.29) 55%,
    rgba(240, 161, 46, 0.035) 78%,
    transparent 100%
  );
  box-shadow:
    0 0 9px 2px rgba(240, 161, 46, 0.24),
    0 0 22px 4px rgba(240, 161, 46, 0.1);
  transform: rotate(45deg) translate3d(-55%, 0, 0);
  transform-origin: center center;
  mix-blend-mode: screen;
  opacity: 0;
}
/* On hover: +45° / −45° — L→R ~20% slower overall cycle */
.service-card:hover .card-img::before {
  animation: service-card-gold-45-rotate 10.2s ease-in-out infinite;
}
/* While one card is hovered, calm the rest of the 3×3 grid */
.services-overview:hover .service-card:not(:hover) {
  opacity: 0.55;
  filter: saturate(0.75) brightness(0.96);
  transform: none;
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.services-overview:hover .service-card:not(:hover) .card-img::after {
  animation-play-state: paused;
  opacity: 0;
}
.services-overview:hover .service-card:not(:hover) .card-img img {
  transform: none;
}
.services-overview .service-card:hover {
  opacity: 1;
  filter: none;
  z-index: 2;
}
.services-overview:hover .service-card:not(:hover) .card-img::before {
  animation: none;
  opacity: 0;
}
.services-overview .service-card:nth-child(1) .card-img::after { animation-delay: 0s; }
.services-overview .service-card:nth-child(2) .card-img::after { animation-delay: 0.55s; }
.services-overview .service-card:nth-child(3) .card-img::after { animation-delay: 1.1s; }
.services-overview .service-card:nth-child(4) .card-img::after { animation-delay: 1.65s; }
.services-overview .service-card:nth-child(5) .card-img::after { animation-delay: 2.2s; }
.services-overview .service-card:nth-child(6) .card-img::after { animation-delay: 2.75s; }
.services-overview .service-card:nth-child(7) .card-img::after { animation-delay: 3.3s; }
.services-overview .service-card:nth-child(8) .card-img::after { animation-delay: 3.85s; }
.services-overview .service-card:nth-child(9) .card-img::after { animation-delay: 4.4s; }
@keyframes service-card-wave {
  /* L → R */
  0%   { transform: translate3d(-35%, 0, 0); opacity: 0; }
  8%   { opacity: 0.9; }
  40%  { transform: translate3d(165%, 0, 0); opacity: 0.9; }
  48%  { transform: translate3d(185%, 0, 0); opacity: 0; }
  /* R → L */
  52%  { transform: translate3d(165%, 0, 0); opacity: 0; }
  60%  { opacity: 0.9; }
  92%  { transform: translate3d(-35%, 0, 0); opacity: 0.9; }
  100% { transform: translate3d(-45%, 0, 0); opacity: 0; }
}
/* Full hover cycle: +45° pass, then −45° pass (slower) */
@keyframes service-card-gold-45-rotate {
  /* +45° L→R — more of the timeline so that pass reads slower */
  0% {
    opacity: 0;
    transform: rotate(45deg) translate3d(-60%, 0, 0);
  }
  5% {
    opacity: 0.78;
  }
  42% {
    opacity: 0.78;
    transform: rotate(45deg) translate3d(55%, 0, 0);
  }
  48% {
    opacity: 0;
    transform: rotate(45deg) translate3d(60%, 0, 0);
  }
  /* −45° R-style pass (shorter share of the cycle) */
  54% {
    opacity: 0;
    transform: rotate(-45deg) translate3d(-60%, 0, 0);
  }
  58% {
    opacity: 0.78;
  }
  88% {
    opacity: 0.78;
    transform: rotate(-45deg) translate3d(55%, 0, 0);
  }
  94% {
    opacity: 0;
    transform: rotate(-45deg) translate3d(60%, 0, 0);
  }
  100% {
    opacity: 0;
    transform: rotate(-45deg) translate3d(60%, 0, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .service-card .card-img::after,
  .service-card .card-img::before,
  .service-card:hover .card-img::before {
    animation: none !important;
    display: none;
  }
}
.service-card .card-img-link {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
  position: relative;
  z-index: 1;
}
.service-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover .card-img img { transform: scale(1.04); }
.service-card .card-body {
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-card h2,
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.service-card h2 a,
.service-card h3 a { color: var(--navy); }
.service-card h2 a:hover,
.service-card h3 a:hover { color: var(--primary-dark); }
.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1rem;
}
.card-link {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.card-link::after { content: "→"; transition: transform var(--transition); }
.card-link:hover::after { transform: translateX(3px); }

/* —— Feature / why us —— */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch; /* image column matches body text height */
}
.split-copy {
  min-width: 0;
}
.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 0;
  align-self: stretch;
  display: block;
  position: relative;
  background: #111;
}
.split-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Ensure the image column has a real height equal to the text column */
.split--why .split-img {
  min-height: 100%;
}

/* Cinematic panel — same family as home hero, a bit more presence */
.split-img--cinematic {
  isolation: isolate;
  border: 1px solid rgba(240, 161, 46, 0.38);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 22px 52px rgba(0, 0, 0, 0.22),
    0 0 56px rgba(240, 161, 46, 0.12);
}
/* Gold top line */
.split-img--cinematic::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.1rem;
  right: 1.1rem;
  height: 2px;
  z-index: 3;
  background: linear-gradient(90deg, transparent, var(--primary) 18%, #ffc56a 50%, var(--primary) 82%, transparent);
  box-shadow: 0 0 16px rgba(240, 161, 46, 0.85);
  border-radius: 2px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: right center;
  opacity: 0;
}
/* Soft gold bottom accent — frames the work without shouting */
.split-img--cinematic::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 2px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(240, 161, 46, 0.55) 50%, transparent);
  box-shadow: 0 0 12px rgba(240, 161, 46, 0.35);
  opacity: 0;
}
.split-img--cinematic.is-inview::after {
  animation: split-img-line-bottom 0.85s ease-out 0.15s both;
}
.split-img__media {
  position: absolute;
  z-index: 0;
  /* Enough oversize to cover L→R pan + zoom without black edges */
  top: -3%;
  left: -9%;
  width: 118%;
  height: 106%;
  overflow: hidden;
  transform-origin: 50% 45%;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.split-img__media img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  /* Show as much of the full photo as the panel allows */
  object-position: 50% 40%;
  /* Let the workmanship read clearer — less crushed dark */
  filter: contrast(1.06) saturate(1.08) brightness(0.94);
  pointer-events: none;
}
.split-img__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(145deg, rgba(10, 10, 10, 0.18) 0%, transparent 52%, rgba(10, 10, 10, 0.12) 100%),
    radial-gradient(ellipse 65% 55% at 88% 12%, rgba(240, 161, 46, 0.16), transparent 58%);
  opacity: 0.85;
}
.split-img__sweep {
  position: absolute;
  top: -15%;
  bottom: -15%;
  left: auto;
  right: -58%;
  width: 54%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    -100deg,
    transparent 0%,
    rgba(240, 161, 46, 0.1) 34%,
    rgba(255, 220, 140, 0.32) 46%,
    rgba(240, 161, 46, 0.42) 50%,
    rgba(255, 255, 255, 0.16) 54%,
    rgba(240, 161, 46, 0.12) 62%,
    transparent 100%
  );
  opacity: 0;
  mix-blend-mode: soft-light;
  filter: blur(0.35px);
}
/* Soft reveal + pan + gold wave R→L — a touch more presence, still calm */
.split-img--cinematic.is-inview {
  animation: split-img-in 0.55s ease-out both;
}
.split-img--cinematic.is-inview::before {
  animation: split-img-line 0.7s ease-out both;
}
.split-img--cinematic.is-inview .split-img__media {
  /* Longer, calmer: start wider (more of the image), ease left→right while zooming in */
  animation: split-img-drift 16s ease-in-out 0.35s infinite alternate both;
}
.split-img--cinematic.is-inview .split-img__sweep {
  animation: split-img-sweep 5s ease-in-out 0.45s infinite;
}
.split-img--cinematic.is-settled {
  will-change: auto;
}
@keyframes split-img-in {
  0% { opacity: 0.45; }
  100% { opacity: 1; }
}
@keyframes split-img-line {
  0%   { transform: scaleX(0); opacity: 0; }
  100% { transform: scaleX(1); opacity: 1; }
}
@keyframes split-img-line-bottom {
  0%   { opacity: 0; transform: scaleX(0.4); }
  100% { opacity: 1; transform: scaleX(1); }
}
/* Pan left→right + zoom-in (+15% travel/zoom vs prior 6% / 1.14) */
@keyframes split-img-drift {
  0%   { transform: scale(1) translate3d(-6.9%, 0, 0); }
  100% { transform: scale(1.161) translate3d(6.9%, -1.725%, 0); }
}
@keyframes split-img-sweep {
  0%   { transform: translate3d(0, 0, 0) skewX(3deg); opacity: 0; }
  10%  { opacity: 0.82; }
  55%  { opacity: 0.82; }
  100% { transform: translate3d(-280%, 0, 0) skewX(3deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .split-img--cinematic,
  .split-img--cinematic.is-inview,
  .split-img--cinematic.is-inview::before,
  .split-img--cinematic.is-inview::after,
  .split-img--cinematic.is-inview .split-img__media,
  .split-img--cinematic.is-inview .split-img__sweep {
    animation: none !important;
  }
  .split-img--cinematic::before,
  .split-img--cinematic::after {
    transform: scaleX(1);
    opacity: 1;
  }
  .split-img__media {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .split-img__sweep { display: none; }
}
@media (max-width: 768px) {
  .split-img {
    position: relative;
    height: auto;
    min-height: 240px;
    aspect-ratio: 4 / 3;
  }
  .split-img img {
    position: absolute;
  }
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}
.check-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.85rem;
  color: var(--text-muted);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* —— Process steps —— */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.process-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.process-step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 0.9rem;
}
.process-step h3 { font-size: 1.05rem; }
.process-step p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* —— Photo grid —— */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.photo-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.photo-grid-2 figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.photo-grid-2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* —— Before / After comparison slider (matches project-gallery formatting) —— */
.ba-slider {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 0 0.85rem; /* same gap as .project-gallery */
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--bg-alt);
  user-select: none;
  -webkit-user-select: none;
  /* MUST allow vertical page scroll on mobile. "none" trapped the whole BA block. */
  touch-action: pan-y;
  isolation: isolate;
  --ba-pct: 50%;
}
/* Gold strip — travels L→R then R→L (hero family) */
.ba-slider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  z-index: 6;
  pointer-events: none;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--primary) 18%,
    #ffd78a 50%,
    var(--primary) 82%,
    transparent 100%
  );
  background-size: 200% 100%;
  box-shadow: 0 0 14px rgba(240, 161, 46, 0.85), 0 0 28px rgba(240, 161, 46, 0.35);
  animation: ba-gold-strip 5.5s ease-in-out infinite;
}
/* Soft gold wave band — alternates direction each half-cycle */
.ba-slider::after {
  content: "";
  position: absolute;
  top: -18%;
  bottom: -18%;
  left: 0;
  width: 42%;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(240, 161, 46, 0.08) 35%,
    rgba(255, 220, 140, 0.28) 48%,
    rgba(240, 161, 46, 0.4) 50%,
    rgba(255, 255, 255, 0.12) 53%,
    transparent 68%
  );
  mix-blend-mode: soft-light;
  opacity: 0;
  animation: ba-gold-wave 7s ease-in-out infinite;
}
@keyframes ba-gold-strip {
  0%   { background-position: 100% 0; opacity: 0.45; transform: scaleX(0.55); transform-origin: left center; }
  20%  { opacity: 1; transform: scaleX(1); transform-origin: left center; }
  45%  { background-position: 0% 0; opacity: 1; transform: scaleX(1); transform-origin: left center; }
  50%  { background-position: 0% 0; opacity: 0.45; transform: scaleX(0.55); transform-origin: right center; }
  70%  { opacity: 1; transform: scaleX(1); transform-origin: right center; }
  95%  { background-position: 100% 0; opacity: 1; transform: scaleX(1); transform-origin: right center; }
  100% { background-position: 100% 0; opacity: 0.45; transform: scaleX(0.55); transform-origin: left center; }
}
@keyframes ba-gold-wave {
  /* L → R */
  0%   { transform: translate3d(-30%, 0, 0); opacity: 0; }
  8%   { opacity: 0.9; }
  40%  { transform: translate3d(160%, 0, 0); opacity: 0.9; }
  48%  { transform: translate3d(180%, 0, 0); opacity: 0; }
  /* R → L */
  52%  { transform: translate3d(160%, 0, 0); opacity: 0; }
  60%  { opacity: 0.9; }
  92%  { transform: translate3d(-30%, 0, 0); opacity: 0.9; }
  100% { transform: translate3d(-40%, 0, 0); opacity: 0; }
}
/* Pause decorative motion on sibling sliders while one is being compared */
.ba-slider.ba-motion-paused::before,
.ba-slider.ba-motion-paused::after,
.ba-slider.ba-motion-paused .ba-slider__img {
  animation-play-state: paused !important;
}
.ba-slider.is-comparing::before,
.ba-slider.is-comparing::after,
.ba-slider.is-comparing .ba-slider__img {
  /* freeze gold + pan on the active tile while comparing */
  animation-play-state: paused !important;
}
.ba-slider.is-comparing::before {
  opacity: 0.55;
}
.ba-slider.is-comparing::after {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .ba-slider::before,
  .ba-slider::after {
    animation: none !important;
  }
  .ba-slider::before {
    opacity: 1;
    transform: none;
    background-position: 50% 0;
  }
  .ba-slider::after { display: none; }
}
.ba-slider__track {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 280px;
  overflow: hidden;
  cursor: ew-resize;
  /* Vertical scroll OK; horizontal compare via JS after axis lock */
  touch-action: pan-y;
}
.ba-slider__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-slider__img--after {
  position: absolute;
  inset: 0;
}
.ba-slider__before-wrap {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 0;
}
.ba-slider__img--before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  /* width is set to match track via JS / CSS var */
  width: var(--ba-track-w, 100%);
}
.ba-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 4;
  width: 0;
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-slider__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(240, 161, 46, 0.5);
}
.ba-slider__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;   /* another ~20% smaller */
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #1a1a1a;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 2px #fff,
    0 4px 14px rgba(0, 0, 0, 0.35),
    0 0 14px rgba(240, 161, 46, 0.38);
}
.ba-slider__knob svg {
  width: 13px;
  height: 13px;
}
/* Before/After text removed from UI (aria-labels remain on range inputs) */
.ba-slider__label {
  display: none !important;
}
/* Range is for keyboard/a11y only — never receive mouse/touch drag.
   A 56px-wide native range under the knob maps tiny moves to 0–100% and
   causes rapid before/after flicker when the handle is dragged. */
.ba-slider__range {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pct, 50%);
  z-index: 5;
  width: 56px;
  height: 100%;
  margin: 0;
  transform: translateX(-50%);
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
}
.ba-slider:focus-within .ba-slider__knob {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px rgba(240, 161, 46, 0.55),
    0 6px 20px rgba(0, 0, 0, 0.35);
}
/* While actively dragging compare, allow horizontal pan on track only */
.ba-slider.is-dragging,
.ba-slider.is-dragging .ba-slider__track {
  touch-action: none;
}
@media (max-width: 768px) {
  .ba-slider__track {
    aspect-ratio: 4 / 3;
    min-height: 220px;
  }
  .ba-slider__knob {
    width: 27px;
    height: 27px;
  }
  .ba-slider__knob svg {
    width: 11px;
    height: 11px;
  }
  .ba-slider__label {
    font-size: 0.82rem;
    padding: 1.25rem 0.75rem 0.65rem;
  }
}

/* —— Content prose —— */
.prose { max-width: 780px; }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.75rem; }
.prose p + h2,
.prose ul + h2 { margin-top: 2.5rem; }
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.sidebar-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.sidebar-card h3 { color: #fff; font-size: 1.1rem; }
.sidebar-card p { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; }
.sidebar-card .phone-lg {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0.75rem 0 1rem;
}
.sidebar-links {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}
.sidebar-links h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--primary);
}
.sidebar-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-links a {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.92rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  color: var(--navy);
}
.sidebar-links a:hover { color: var(--primary-dark); padding-left: 4px; }
.sidebar-links li:last-child a { border-bottom: 0; }

/* —— Benefit boxes —— */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.benefit-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
}
.benefit-box h3,
.benefit-box h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--navy);
}
.benefit-box p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* —— Comparison table —— */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
}
table.compare th,
table.compare td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.compare th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
table.compare tr:last-child td { border-bottom: 0; }
table.compare tr:nth-child(even) td { background: var(--bg-alt); }
table.compare .highlight { color: var(--primary-dark); font-weight: 700; }

/* Side-by-side option cards (cleaner than dense tables) */
.vs-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.75rem 0 2rem;
}
.vs-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.vs-card--preferred {
  border-color: rgba(240, 161, 46, 0.55);
  box-shadow: var(--shadow), 0 0 0 1px rgba(240, 161, 46, 0.12);
}
.vs-card__head {
  padding: 1.1rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}
.vs-card--preferred .vs-card__head {
  background: linear-gradient(135deg, rgba(240, 161, 46, 0.16), rgba(240, 161, 46, 0.05));
  border-bottom-color: rgba(240, 161, 46, 0.28);
}
.vs-card__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}
.vs-card--preferred .vs-card__label {
  color: var(--primary-dark);
}
.vs-card__head h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--navy);
}
.vs-card__head p {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.vs-card__list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  flex: 1;
}
.vs-card__list li {
  position: relative;
  padding: 0.7rem 1.25rem 0.7rem 2.35rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.vs-card__list li:last-child { border-bottom: 0; }
.vs-card__list li strong {
  display: block;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.vs-card__list li::before {
  content: "–";
  position: absolute;
  left: 1.1rem;
  top: 0.7rem;
  color: #999;
  font-weight: 700;
}
.vs-card--preferred .vs-card__list li::before {
  content: "✓";
  color: var(--primary-dark);
  font-size: 0.85rem;
}
.vs-card__foot {
  padding: 0.9rem 1.25rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.vs-card--preferred .vs-card__foot {
  background: rgba(240, 161, 46, 0.1);
  color: var(--navy);
}
@media (max-width: 700px) {
  .vs-compare { grid-template-columns: 1fr; }
}

/* —— Testimonials —— */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.testimonial .stars {
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}
.testimonial h3,
.testimonial h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.testimonial p {
  font-size: 0.92rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1rem;
}
.testimonial .author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

/* —— Areas —— */
.areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.areas-list span {
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

/* —— FAQ accordion —— */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
  background: #fff;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1rem 1.15rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--primary-dark);
  font-weight: 400;
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  display: none;
  padding: 0 1.15rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.faq-item.open .faq-a { display: block; }

/* —— Forms —— */
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { margin-bottom: 0; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}
.form-success {
  display: none;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.form-success a { color: #065f46; text-decoration: underline; }
.form-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.form-error a { color: #991b1b; text-decoration: underline; }
/* Honeypot — off-screen, not display:none (some bots skip display:none) */
.form-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* —— CTA band —— */
.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
  border-top: 4px solid var(--primary);
}
.cta-band h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}
.cta-band .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* —— Footer —— */
.site-footer {
  background: #111111;
  color: rgba(255, 255, 255, 0.8);
  padding: 3.5rem 0 0;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.75);
}
.site-footer a:hover { color: var(--primary); }
.footer-brand p {
  margin: 1rem 0;
  line-height: 1.65;
  font-size: 0.92rem;
}
.footer-brand img { height: 48px; width: auto; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-contact li {
  margin-bottom: 0.6rem;
  list-style: none;
}
.footer-contact { padding: 0; margin: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.15rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* —— Floating call button (mobile) —— */
.float-call {
  display: none;
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 999;
  background: #00bb00;
  color: #fff !important;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  text-decoration: none;
}
.float-call:hover { color: #fff !important; transform: scale(1.05); }

/* —— Google review float —— */
.google-float {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 998;
  width: 90px;
  opacity: 0.95;
  transition: opacity var(--transition);
}
.google-float:hover { opacity: 1; }
.google-float img { width: 100%; border-radius: 8px; box-shadow: var(--shadow); }

/* —— Misc —— */
.tag {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.two-col-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.img-caption {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  text-align: center;
}
.highlight-box {
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  padding: 1.15rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}
.highlight-box p { margin: 0; color: var(--navy); }

/* —— Responsive —— */
@media (max-width: 1024px) {
  .card-grid,
  .card-grid.services-overview { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .main-nav a { padding: 0.45rem 0.5rem; font-size: 0.85rem; }
  .project-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }
  .project-gallery figure:first-child {
    grid-row: auto;
    grid-column: 1 / -1;
    min-height: 280px;
  }
  .final-cta { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.75rem 1rem 1.25rem;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav .btn-nav {
    margin: 0.5rem 0 0;
    text-align: center;
  }
  .main-nav .dropdown-sub-menu {
    position: static;
    display: none;
    min-width: 0;
    margin: 0;
    border: 0;
    border-left: 3px solid var(--primary);
    border-radius: 0;
    box-shadow: none;
    background: var(--bg-alt);
    padding: 0.15rem 0;
  }
  .main-nav .dropdown-sub.open > .dropdown-sub-menu {
    display: block;
  }
  .main-nav .dropdown-sub-trigger::after {
    content: "▾";
    font-size: 0.75rem;
  }
  .main-nav .dropdown-sub.open .dropdown-sub-trigger::after {
    content: "▴";
  }
  .split,
  .two-col-text,
  .card-grid,
  .card-grid.services-overview,
  .card-grid-4,
  .card-grid-2,
  .testimonials,
  .photo-grid,
  .photo-grid-2,
  .benefit-grid,
  .form-grid,
  .process-grid,
  .trust-grid,
  .footer-grid,
  .why-grid,
  .project-gallery,
  .final-cta {
    grid-template-columns: 1fr;
  }
  .project-gallery figure:first-child {
    grid-column: auto;
    min-height: 220px;
  }
  .hero {
    min-height: min(88vh, 680px);
  }
  .hero h1 { max-width: none; }
  .hero-copy {
    max-width: none;
    padding: 1.35rem 1.2rem;
  }
  .section { padding: 3rem 0; }
  .float-call { display: flex; }
  .google-float { bottom: 5rem; width: 72px; }
  .topbar { display: none; }
  .main-nav .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    border-top: 0;
    min-width: 0;
    padding-left: 0.5rem;
  }
  .main-nav .has-dropdown.open .dropdown {
    display: flex;
  }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .photo-grid { gap: 0.65rem; }
}

/* —— Lightbox gallery —— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.92);
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}
.lightbox__inner {
  position: relative;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.lightbox__img-wrap {
  position: relative;
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: #111;
}
.lightbox__img {
  display: block;
  max-width: min(1100px, 92vw);
  max-height: calc(100vh - 7rem);
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox__caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  text-align: center;
  max-width: 40rem;
  line-height: 1.45;
  min-height: 1.3em;
}
.lightbox__counter {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 2;
  backdrop-filter: blur(6px);
}
.lightbox__btn:hover {
  background: var(--primary);
  color: #1a1a1a;
}
.lightbox__prev { left: 0.75rem; }
.lightbox__next { right: 0.75rem; }
.lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10001;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease;
  backdrop-filter: blur(6px);
}
.lightbox__close:hover {
  background: var(--primary);
  color: #1a1a1a;
}
.lightbox__hint {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  z-index: 10001;
  pointer-events: none;
}
body.lightbox-open {
  overflow: hidden;
}
@media (max-width: 700px) {
  .lightbox__btn {
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
  }
  .lightbox__prev { left: 0.35rem; }
  .lightbox__next { right: 0.35rem; }
  .lightbox__hint { display: none; }
}

/* —— Blog (not linked in main nav/footer; reachable by URL/sitemap) —— */
.blog-list {
  display: grid;
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}
.blog-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.blog-card__img {
  display: block;
  line-height: 0;
  min-height: 100%;
  background: var(--bg-alt);
}
.blog-card__img img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
}
.blog-card__body {
  padding: 1.15rem 1.25rem 1.25rem 0;
}
.blog-card__body h2 {
  font-size: 1.15rem;
  margin: 0.25rem 0 0.5rem;
}
.blog-card__body h2 a { color: var(--navy); }
.blog-card__body h2 a:hover { color: var(--primary-dark); }
.blog-card__body p { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 0.75rem; }
.blog-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
  letter-spacing: 0.02em;
}
.blog-meta-hero {
  opacity: 0.9;
  font-size: 1rem !important;
}
.blog-article .blog-figure {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.blog-article .blog-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.blog-back {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.blog-back a {
  font-weight: 700;
  color: var(--primary-dark);
}
@media (max-width: 640px) {
  .blog-card {
    grid-template-columns: 1fr;
  }
  .blog-card__body { padding: 0 1.15rem 1.25rem; }
  .blog-card__img img { min-height: 180px; max-height: 200px; }
}

/* Google Map embed (contact) */
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  line-height: 0;
  position: relative;
  min-height: 450px;
}
.map-embed iframe {
  width: 100%;
  height: 450px;
  display: block;
  border: 0;
}
@media (max-width: 600px) {
  .map-embed { min-height: 320px; }
  .map-embed iframe { height: 320px; }
}

/* Print */
@media print {
  .site-header, .topbar, .float-call, .google-float, .cta-band, .lightbox { display: none; }
}

/* Performance: skip rendering offscreen sections until needed */
.section-alt,
.service-portfolio,
.project-gallery,
.testimonials,
.faq-list,
.cta-band,
.site-footer,
.card-grid,
.related-strip {
  content-visibility: auto;
  contain-intrinsic-size: 1px 640px;
}

/* Isolate fixed chrome from main-thread layout thrash */
.float-call,
.google-float {
  contain: layout style;
  content-visibility: auto;
  contain-intrinsic-size: 56px 56px;
}
/* In-content links: clear but not shouty */
.service-article.prose a,
.split-copy a,
.section .lead a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(240, 161, 46, 0.55);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  font-weight: 600;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.service-article.prose a:hover,
.split-copy a:hover,
.section .lead a:hover {
  color: var(--primary-dark);
  text-decoration-color: var(--primary);
}