/* CM Plumbing & Gas – Premium Layout v2
 * Revert: swap stylesheet link back to css/style.css in index.html, 403.html, 404.html,
 * scripts/build-service-pages.js, then run npm run build
 */

:root {
  --bg-dark: #ffffff;
  --bg-mid: #f7f9fb;
  --bg-light: #eef3f7;
  --bg-about: #f0f7fc;
  --text: #0f1c2e;
  --text-muted: #5c6f82;
  --accent: #1a8fd4;
  --accent-bright: #0d5a8f;
  --metal: linear-gradient(135deg, #48cae4 0%, #1a8fd4 50%, #0d5a8f 100%);
  --border: rgba(15, 28, 46, 0.1);
  --radius: 10px;
  --font-sans: 'Montserrat', "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: 'Barlow Semi Condensed', var(--font-sans);
  --font-body: var(--font-sans);
  --logo-bg: #ffffff;
  --logo-zone-text: #0f1c2e;
  --logo-zone-border: rgba(15, 28, 46, 0.08);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-height: 4.75rem;
  --emergency-bar-height: 2.35rem;
  --btn-accent: #1a8fd4;
  --btn-accent-hover: #1578b8;
  --blue-glow: rgba(26, 143, 212, 0.18);
  --blue-border: rgba(26, 143, 212, 0.28);
  --emergency: #d62828;
  --emergency-hover: #b91c1c;
  --gold-glow: var(--blue-glow);
  --gold-border: var(--blue-border);
  --section-space: clamp(3.5rem, 6vw, 5rem);
  --page-gutter: clamp(1.25rem, 4vw, 4rem);
  --content-max: min(1600px, calc(100vw - 2 * var(--page-gutter)));
  --content-readable: min(48rem, 100%);
  --content-service: min(72rem, 100%);
  --shadow-sm: 0 1px 2px rgba(15, 28, 46, 0.04), 0 4px 16px rgba(15, 28, 46, 0.04);
  --shadow-md: 0 8px 30px rgba(15, 28, 46, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 28, 46, 0.1);
}

/* Keyframes – site-wide animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes subtleGlow {
  0%, 100% { box-shadow: 0 4px 24px rgba(0,0,0,0.2); }
  50% { box-shadow: 0 8px 32px rgba(192,192,192,0.08); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .section { opacity: 1; transform: none; }
  .section.is-visible { opacity: 1; transform: none; }
  [data-parallax] { transform: none !important; }
  .hero-bg-slide-img { animation: none !important; }
  .gallery-item--exit {
    opacity: 0;
    transform: none;
    transition-duration: 0.05ms;
  }
  .gallery-item--enter,
  .gallery-item--enter.gallery-item--enter-active {
    opacity: 1;
    transform: none;
    transition-duration: 0.05ms;
    transition-delay: 0;
  }
  .gallery-skeleton::after {
    animation: none;
    opacity: 0.5;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height); /* space for sticky header so nav links don’t hide section top */
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-dark);
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::after {
  display: none;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent-bright);
  color: var(--bg-dark);
  font-weight: 600;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0.5rem;
  outline: 3px solid var(--btn-accent);
  outline-offset: 2px;
}
.skip-link:focus:not(:focus-visible) {
  outline: none;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible {
  outline: 2px solid var(--btn-accent);
  outline-offset: 2px;
  text-decoration: underline;
}

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

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  position: relative;
  z-index: 1;
}

/* Breadcrumb – service pages (below hero, desktop only) */
.breadcrumb-wrap {
  display: none;
  padding-top: 1rem;
  padding-bottom: 0.25rem;
}
@media (min-width: 1024px) {
  .breadcrumb-wrap {
    display: block;
  }
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: rgba(15, 28, 46, 0.25);
  font-weight: 400;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--btn-accent);
  text-decoration: underline;
}

.breadcrumb li[aria-current='page'] {
  color: var(--text);
  font-weight: 600;
}

/* Header – white background so logo (black text) is visible */
/* Safe area: gold bar above header on iPhone (notch/Dynamic Island) */
.site-header {
  padding-top: env(safe-area-inset-top, 0);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--logo-zone-border);
  background: transparent;
  transition: box-shadow 0.3s var(--ease-out);
}
/* Blur on ::before so fixed mobile nav is not trapped in a containing block */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--logo-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s var(--ease-out);
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}
.site-header.scrolled::before {
  background: #ffffff;
}

.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0.65rem var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: block;
  text-decoration: none;
}
.logo-link {
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.logo-link:hover {
  text-decoration: none;
  opacity: 0.9;
  transform: scale(1.02);
}
.logo {
  height: 48px;
  width: auto;
  max-width: 240px;
}
.logo-fallback {
  display: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--logo-zone-text);
}
.logo-link.logo-fallback-active .logo {
  display: none;
}
.logo-link.logo-fallback-active .logo-fallback {
  display: block;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--logo-zone-border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--logo-zone-text);
  transition: border-color 0.2s, background 0.2s;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--btn-accent);
  outline-offset: 2px;
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  background: rgba(0,0,0,0.06);
  border-color: var(--logo-zone-text);
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--logo-zone-text);
  transition: transform 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.main-nav a {
  display: block;
  padding: 0.6rem 0;
  color: var(--logo-zone-text);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: color 0.2s var(--ease-out);
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.25rem;
  height: 2px;
  width: 0;
  background: var(--btn-accent);
  transition: width 0.3s var(--ease-out);
}
.main-nav a:hover {
  color: var(--btn-accent);
}
.main-nav a:hover::after {
  width: 100%;
}
.main-nav a:focus-visible {
  outline: 2px solid var(--btn-accent);
  outline-offset: 2px;
}

/* Mobile: side-entrance panel + overlay */
@media (max-width: 767px) {
  .main-nav {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.4s;
  }
  .main-nav.is-open,
  .main-nav.is-closing {
    visibility: visible;
  }
  .main-nav.is-open {
    pointer-events: auto;
  }
  .main-nav.is-closing {
    pointer-events: none;
  }
  .main-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    transition: opacity 0.35s var(--ease-out);
  }
  .main-nav.is-open::before {
    opacity: 1;
  }
  .main-nav.is-closing::before {
    opacity: 0;
  }
  .main-nav .nav-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 85vw);
    background: #ffffff;
    box-shadow: -8px 0 32px rgba(0,0,0,0.2);
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
  }
  .nav-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--logo-zone-border);
    flex-shrink: 0;
  }
  .nav-panel-logo-link {
    display: block;
    flex: 1;
    min-width: 0;
    text-decoration: none;
  }
  .nav-panel-logo-link::after {
    display: none;
  }
  .nav-panel-logo {
    height: 42px;
    width: auto;
    max-width: 100%;
    display: block;
  }
  .main-nav .nav-panel > ul {
    flex: 0 0 auto;
  }
  .nav-panel-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--logo-zone-border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .nav-panel-tagline {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--logo-zone-text);
    margin: 0;
    opacity: 0.85;
  }
  .nav-panel-contact {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
  }
  .nav-panel-contact-sep {
    margin: 0 0.35em;
    opacity: 0.7;
  }
  .nav-panel-contact a {
    color: var(--logo-zone-text);
    display: inline;
  }
  .nav-panel-contact a::after {
    display: none;
  }
  .nav-panel-contact a:hover {
    color: var(--btn-accent);
  }
  .nav-panel-badges {
    margin: 0;
  }
  .nav-panel-badges .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    margin-right: 0.25rem;
  }
  .nav-panel-cta {
    display: block;
    text-align: center;
    margin-top: 0.25rem;
  }
  .main-nav .nav-panel-cta.btn-primary {
    color: #ffffff;
    background: var(--btn-accent);
    padding: 0.85rem 1.25rem;
  }
  .main-nav .nav-panel-cta.btn-primary:hover,
  .main-nav .nav-panel-cta.btn-primary:focus-visible {
    color: #ffffff;
    background: var(--btn-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }
  .main-nav .nav-panel-cta::after {
    display: none;
  }
  .main-nav.is-open .nav-panel {
    transform: translateX(0);
  }
  .main-nav.is-closing .nav-panel {
    transform: translateX(100%);
  }
  body.nav-open {
    overflow: hidden;
  }
  .nav-close {
    position: static;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--logo-zone-border);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--logo-zone-text);
    transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
    z-index: 2;
  }
  .nav-close:hover {
    background: rgba(0,0,0,0.06);
    border-color: var(--logo-zone-text);
  }
  .nav-close:focus-visible {
    outline: 2px solid var(--btn-accent);
    outline-offset: 2px;
  }
  .nav-close-icon {
    position: relative;
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    transform: rotate(45deg);
  }
  .nav-close-icon::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 2px;
    background: currentColor;
    transform: rotate(-90deg);
  }
  .main-nav .nav-panel > ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 0 0 auto;
  }
  .main-nav .nav-panel > ul > li {
    opacity: 0;
    transform: translateX(1rem);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  }
  .main-nav.is-open .nav-panel > ul > li {
    opacity: 1;
    transform: translateX(0);
  }
  .main-nav.is-open .nav-panel > ul > li:nth-child(1) { transition-delay: 0.05s; }
  .main-nav.is-open .nav-panel > ul > li:nth-child(2) { transition-delay: 0.1s; }
  .main-nav.is-open .nav-panel > ul > li:nth-child(3) { transition-delay: 0.15s; }
  .main-nav.is-open .nav-panel > ul > li:nth-child(4) { transition-delay: 0.2s; }
  .main-nav a {
    padding: 0.75rem 0;
    font-size: 1.05rem;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
  .nav-close {
    display: none;
  }
  .nav-panel-top {
    display: none;
  }
  .main-nav {
    display: block;
    position: static;
    background: transparent;
    visibility: visible;
    pointer-events: auto;
  }
  .main-nav::before {
    display: none;
  }
  .main-nav .nav-panel {
    position: static;
    width: auto;
    padding: 0;
    box-shadow: none;
    transform: none;
    background: transparent;
    flex-direction: row;
  }
  .nav-panel-footer {
    display: none;
  }
  .main-nav .nav-panel > ul {
    flex-direction: row;
    gap: 0.5rem;
  }
  .main-nav .nav-panel > ul > li {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .main-nav a {
    padding: 0.5rem 1rem;
  }
  .main-nav a::after {
    bottom: 0.35rem;
  }
}

/* Hero – photo slideshow (Ken Burns) + parallax layers + gradient mesh */
.hero {
  position: relative;
  min-height: clamp(520px, 72vh, 680px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(3rem, 8vw, 5rem) 0;
  overflow: hidden;
  background: #0a1628;
}
.hero--service {
  min-height: clamp(320px, 48vh, 440px);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

/* Photo slideshow – behind overlay and gradient */
.hero-bg-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg-slideshow.is-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
}
.hero-bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  overflow: hidden;
}
.hero-bg-slide.visible {
  opacity: 1;
  z-index: 1;
}
.hero-bg-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.hero-bg-slide.visible .hero-bg-slide-img {
  animation: hero-kenburns 14s ease-out both;
}
@keyframes hero-kenburns {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.12) translate(-2%, -2%);
  }
}

/* Dark overlay so white text stays readable on any photo – stronger at bottom for CTA “stage” */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    rgba(8, 20, 36, 0.92) 0%,
    rgba(8, 20, 36, 0.72) 42%,
    rgba(8, 20, 36, 0.35) 100%
  );
}

.hero-bg {
  display: none;
}

.hero-bg-layer {
  position: absolute;
  inset: -20%;
  will-change: transform;
  backface-visibility: hidden;
}

/* Parallax layers kept light so hero photos show through */
.hero-bg-layer--deep {
  background: radial-gradient(ellipse 120% 80% at 50% 120%, rgba(20,20,25,0.4) 0%, transparent 55%);
  opacity: 0.5;
}

.hero-bg-layer--mid {
  background: radial-gradient(ellipse 90% 70% at 50% 80%, rgba(50,50,60,0.2) 0%, transparent 55%);
  opacity: 0.6;
}

.hero-bg-layer--accent {
  background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(120,120,140,0.08) 0%, transparent 50%);
}

.hero-bg-layer--shape {
  background: radial-gradient(circle at 20% 30%, rgba(80,80,100,0.05) 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(60,60,80,0.04) 0%, transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: left;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  box-sizing: border-box;
}
.hero-content > * {
  animation: fadeInUp 0.8s var(--ease-out) both;
}
.hero-content > *:nth-child(1) { animation-delay: 0.08s; }
.hero-content > *:nth-child(2) { animation-delay: 0.16s; }
.hero-content > *:nth-child(3) { animation-delay: 0.28s; }
.hero-content > *:nth-child(4) { animation-delay: 0.38s; }
.hero-content > *:nth-child(5) { animation-delay: 0.48s; }
.hero-content > *:nth-child(6) { animation-delay: 0.58s; }
.hero-content > *:nth-child(7) { animation-delay: 0.68s; }
.hero-content > *:nth-child(8) { animation-delay: 0.78s; }
.hero-content > *:nth-child(9) { animation-delay: 0.88s; }
.hero-content > *:nth-child(10) { animation-delay: 0.98s; }

.hero-tagline {
  position: relative;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 1rem;
  font-weight: 600;
}
.hero-tagline::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  margin: 0 0 0.85rem;
  background: var(--btn-accent);
  border-radius: 2px;
}
.hero--service .hero-content {
  text-align: center;
}
.hero--service .hero-tagline::before {
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: none;
  max-width: 22ch;
}
.hero--service h1 {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.25rem;
  font-weight: 500;
  max-width: 48ch;
}
.hero--service .hero-sub {
  margin-left: auto;
  margin-right: auto;
}

.hero-services {
  display: none;
}

.hero-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.85rem;
}
.hero--service .hero-cta-wrap {
  justify-content: center;
}
.hero-cta-wrap > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding-block: 0.9rem;
  box-sizing: border-box;
  line-height: 1.2;
}
.hero-cta-wrap > .hero-cta-primary {
  padding-inline: 2rem;
  font-size: 1rem;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 24px var(--blue-glow);
}
.hero-cta-wrap > .hero-cta-phone {
  padding-inline: 1.5rem;
  font-size: 1rem;
  letter-spacing: 0.06em;
}
.hero-cta-primary {
  box-shadow: 0 4px 24px var(--blue-glow);
}
.hero-cta-primary:hover {
  box-shadow: 0 8px 32px rgba(26, 143, 212, 0.35);
}
.hero-cta-secondary {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.hero-cta-secondary:hover {
  color: var(--btn-accent);
  text-decoration: none;
}
.hero-cta-secondary::after {
  content: ' →';
  opacity: 0.8;
}
.hero-trust {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem 1.35rem;
}
.hero--service .hero-trust {
  justify-content: center;
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.9);
}
.hero-trust li::before {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--btn-accent);
  box-shadow: 0 0 0 2px rgba(26, 143, 212, 0.25);
}
.hero-trust-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  min-height: 44px;
  min-width: 44px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s var(--ease-out), background 0.2s ease;
  box-sizing: border-box;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--btn-accent);
  color: #ffffff;
  border: none;
}
.btn-primary:hover {
  background: var(--btn-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-primary:active {
  transform: translateY(-1px);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bg-dark), 0 0 0 5px var(--btn-accent);
}
.btn-primary:focus-visible {
  box-shadow: 0 0 0 3px var(--bg-dark), 0 0 0 5px var(--btn-accent);
}

/* Sections – scroll reveal + parallax bg */
.section {
  position: relative;
  padding: var(--section-space) 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  overflow: hidden;
}
.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Explicit section backgrounds (replaces nth-child striping) */
.section.services,
.section.testimonials,
.section.gallery {
  background: var(--bg-dark);
}
.section.about {
  background: var(--bg-about);
}
.section.contact {
  background: var(--bg-mid);
}

.section-bg {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  will-change: transform;
  backface-visibility: hidden;
  z-index: 0;
}
.section-bg--services {
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(26, 143, 212, 0.08) 0%, transparent 60%);
}
.section-bg--about {
  background:
    radial-gradient(ellipse 70% 55% at 78% 42%, rgba(72, 202, 228, 0.22) 0%, transparent 62%),
    radial-gradient(ellipse 55% 45% at 12% 75%, rgba(26, 143, 212, 0.12) 0%, transparent 58%);
}
.section-bg--gallery {
  background: radial-gradient(ellipse 70% 50% at 20% 80%, rgba(26, 143, 212, 0.06) 0%, transparent 50%);
}
.section-bg--contact {
  background: radial-gradient(ellipse 90% 60% at 50% 100%, rgba(26, 143, 212, 0.08) 0%, transparent 55%);
}
.section-bg--testimonials {
  background: radial-gradient(ellipse 70% 50% at 30% 50%, rgba(72, 202, 228, 0.1) 0%, transparent 55%);
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--btn-accent);
  margin: 0 0 0.65rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--text);
  position: relative;
}
.section h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 0.85rem;
  background: var(--btn-accent);
  border-radius: 2px;
}

.section-intro {
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: none;
  line-height: 1.75;
  font-size: 1.05rem;
}

.section:not(.service-description):not(.service-cta) .section-intro,
.section:not(.service-description):not(.service-cta) h2::after {
  margin-left: 0;
}

/* Service pages – centered body sections (all breakpoints) */
.section.service-description .container,
.section.service-cta .container {
  text-align: center;
  max-width: var(--content-service);
}
.section.service-gallery .container {
  text-align: center;
  max-width: var(--content-max);
}
.section.service-description .section-intro,
.section.service-cta .section-intro {
  margin-left: auto;
  margin-right: auto;
}
.section.service-description h2::after,
.section.service-cta h2::after,
.section.service-gallery h2::after {
  margin-left: auto;
  margin-right: auto;
}
.section.service-description p:last-of-type {
  margin-bottom: 0;
}

/* Services – refined list cards */
.services-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
@media (min-width: 1280px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.services-grid {
  align-items: stretch;
}

.services-grid li {
  position: relative;
  padding: 0;
  min-height: 104px;
  height: 100%;
  display: flex;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0;
  text-align: left;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out),
    background 0.3s var(--ease-out);
}
.services-grid li::before {
  display: none;
}
.services-grid li::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--btn-accent);
  opacity: 1;
  z-index: 1;
  transition: width 0.25s var(--ease-out);
}
.services-grid li[data-category="emergency"]::after {
  background: var(--emergency);
}
.services-grid li {
  color: var(--text);
  text-shadow: none;
}
.services-grid li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  inset: auto;
  z-index: 2;
  color: inherit;
  text-decoration: none;
  padding: 1.2rem 1.35rem 1.2rem 1.5rem;
  min-height: 104px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
.service-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.service-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  transition: color 0.25s var(--ease-out);
}
.service-card-outcome {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-muted);
  transition: color 0.25s var(--ease-out);
}
.service-card-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  background: var(--bg-mid);
  border-radius: 999px;
  transition:
    transform 0.3s var(--ease-out),
    color 0.25s var(--ease-out),
    background 0.25s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}
.services-grid li a::after {
  content: none;
}
.services-grid li a:hover {
  color: var(--accent-bright);
  text-decoration: none;
}
.services-grid li a:hover .service-card-title {
  color: var(--accent-bright);
}
.services-grid li a:hover .service-card-outcome {
  color: var(--text);
}
.services-grid li a:hover .service-card-arrow {
  transform: translateX(3px);
  color: #ffffff;
  background: var(--btn-accent);
  box-shadow: 0 4px 14px var(--blue-glow);
}
.services-grid li span {
  position: relative;
  z-index: 2;
}
.services-grid li:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 143, 212, 0.28);
  background: linear-gradient(135deg, #ffffff 0%, #f7fbfe 100%);
  box-shadow: 0 14px 36px rgba(26, 143, 212, 0.12);
}
.services-grid li:hover::after {
  width: 6px;
}
.services-grid li[data-category="emergency"]:hover {
  border-color: rgba(214, 40, 40, 0.28);
  background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
  box-shadow: 0 14px 36px rgba(214, 40, 40, 0.1);
}
.services-grid li[data-category="emergency"] a:hover .service-card-arrow {
  background: var(--emergency);
  box-shadow: 0 4px 14px rgba(214, 40, 40, 0.22);
}
.services-grid.is-visible li {
  animation: fadeInUp 0.5s var(--ease-out) both;
}
.services-grid.is-visible li:nth-child(1) { animation-delay: 0.05s; }
.services-grid.is-visible li:nth-child(2) { animation-delay: 0.1s; }
.services-grid.is-visible li:nth-child(3) { animation-delay: 0.15s; }
.services-grid.is-visible li:nth-child(4) { animation-delay: 0.2s; }
.services-grid.is-visible li:nth-child(5) { animation-delay: 0.25s; }
.services-grid.is-visible li:nth-child(6) { animation-delay: 0.3s; }
.services-grid.is-visible li:nth-child(7) { animation-delay: 0.35s; }
.services-grid.is-visible li:nth-child(8) { animation-delay: 0.4s; }

/* About */
.about-inner {
  display: grid;
  gap: 2.5rem;
  align-items: stretch;
}
@media (min-width: 900px) {
  .about-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: clamp(2rem, 5vw, 4rem);
  }
}
.about-content {
  min-width: 0;
}
.about p {
  margin: 0 0 1.15rem;
  max-width: 64ch;
  color: var(--text-muted);
  line-height: 1.7;
}
.about-content .about p {
  max-width: none;
}
.about-lead {
  font-size: 1.125rem;
  color: var(--text);
  line-height: 1.7;
  font-weight: 500;
}
.about-image-wrap {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 2;
  width: 100%;
  min-height: 220px;
  align-self: stretch;
}
.about-image {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (min-width: 900px) {
  .about-image-wrap {
    aspect-ratio: auto;
    min-height: 280px;
    height: 100%;
  }
}

.trust-badges {
  margin: 2rem 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--accent);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.badge:hover {
  transform: scale(1.05);
  border-color: var(--btn-accent);
  box-shadow: 0 4px 16px var(--gold-glow);
}

.references {
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Gallery – squares, 6 at a time, Load more */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 0;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-light);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.gallery-item:hover {
  transform: scale(1.04);
  border-color: rgba(201,162,39,0.5);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35), 0 0 0 1px rgba(201,162,39,0.2);
}
.gallery-item:focus-within {
  outline: none;
  border-color: var(--btn-accent);
  box-shadow: 0 0 0 2px rgba(201,162,39,0.3);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gallery – exit animation when changing category */
.gallery-item--exit {
  opacity: 0;
  transform: scale(0.96) translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.35s var(--ease-out);
}

/* Gallery – entrance animation when image loads */
.gallery-item--enter {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease-out), transform 0.45s var(--ease-out);
}
.gallery-item--enter.gallery-item--enter-active {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery – skeleton loader */
.gallery-skeleton {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-light);
  border: 1px solid var(--border);
  position: relative;
}
.gallery-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(255,255,255,0.06) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: gallery-skeleton-shimmer 1.2s ease-in-out infinite;
}
@keyframes gallery-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.gallery-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.gallery-selector-btn {
  padding: 0.55rem 1.25rem;
  min-height: 44px;
  min-width: 44px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  box-sizing: border-box;
}
.gallery-selector-btn:hover {
  color: var(--text);
  border-color: var(--gold-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.gallery-selector-btn.is-active {
  color: var(--bg-dark);
  background: var(--btn-accent);
  border-color: var(--btn-accent);
  box-shadow: 0 4px 16px var(--gold-glow);
}
.gallery-selector-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg-dark), 0 0 0 4px var(--btn-accent);
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 2rem 0;
  padding: 2rem 1rem;
}

.gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 1.75rem 0 0;
  flex-wrap: wrap;
}
.gallery-pagination.is-hidden {
  display: none;
}
.gallery-pagination-btn {
  padding: 0.55rem 1.25rem;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.gallery-pagination-btn:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--gold-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.gallery-pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  color: var(--text-muted);
}
.gallery-pagination-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg-dark), 0 0 0 4px var(--btn-accent);
}
.gallery-page-info {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Service pages – gallery grid */
.service-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.service-gallery-item {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.service-gallery-item:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35), 0 0 0 1px rgba(201,162,39,0.2);
}
.service-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-gallery-empty {
  color: var(--text-muted);
  font-style: italic;
}
@media (min-width: 600px) {
  .service-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 900px) {
  .service-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Service pages – responsive (mobile-first) */
@media (max-width: 767px) {
  .hero--service {
    min-height: 42vh;
    padding: 2rem 0;
  }
  .hero--service .hero-content {
    max-width: var(--content-max);
  }
  .hero--service h1 {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
  }
  .hero--service .hero-tagline {
    font-size: 0.7rem;
    letter-spacing: 0.24em;
  }
  .hero--service .hero-cta-wrap {
    gap: 0.75rem;
  }
  .hero--service .hero-cta-primary,
  .hero--service .hero-cta-secondary {
    font-size: 0.9rem;
  }
  .section.service-description,
  .section.service-gallery,
  .section.service-cta {
    padding: 3rem 0;
  }
  .section.service-description .container,
  .section.service-gallery .container,
  .section.service-cta .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .section.service-description h2,
  .section.service-gallery h2 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
  }
  .section.service-description .section-intro {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  #service-gallery-grid.gallery-grid {
    gap: 0.5rem;
    margin-bottom: 0;
  }
  #service-gallery-pagination {
    margin-top: 1.25rem;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  #service-gallery-pagination .gallery-pagination-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-height: 44px;
  }
  #service-gallery-pagination .gallery-page-info {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero--service {
    min-height: 38vh;
    padding: 1.5rem 0.75rem;
  }
  .hero--service h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }
  .section.service-description,
  .section.service-gallery,
  .section.service-cta {
    padding: 2.5rem 0;
  }
  .section.service-description .container,
  .section.service-gallery .container,
  .section.service-cta .container {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }
  #service-gallery-grid.gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }
  #service-gallery-pagination {
    gap: 0.5rem;
  }
  #service-gallery-pagination .gallery-pagination-btn {
    min-height: 48px;
    padding: 0.6rem 1rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero--service {
    min-height: 48vh;
    padding: 2.5rem 1.25rem;
  }
  .section.service-description,
  .section.service-gallery,
  .section.service-cta {
    padding: 4rem 0;
  }
}

/* Gallery lightbox – mobile-friendly (service + main) */
@media (max-width: 767px) {
  .gallery-lightbox {
    padding: 1rem;
  }
  .gallery-lightbox-img {
    max-height: calc(100vh - 6rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }
  .gallery-lightbox-close {
    top: max(0.5rem, env(safe-area-inset-top));
    right: max(0.5rem, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    font-size: 1.75rem;
  }
  .gallery-lightbox-prev,
  .gallery-lightbox-next {
    width: 44px;
    height: 44px;
    font-size: 2rem;
  }
  .gallery-lightbox-prev {
    left: max(0.5rem, env(safe-area-inset-left));
  }
  .gallery-lightbox-next {
    right: max(0.5rem, env(safe-area-inset-right));
  }
}

/* Gallery lightbox – click image to open full-size */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s var(--ease-out);
}
.gallery-lightbox[hidden] {
  display: none;
}
.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.gallery-lightbox.is-open[hidden] {
  display: flex;
}
.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
  cursor: pointer;
}
.gallery-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.2s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.gallery-lightbox-close:hover {
  opacity: 1;
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.35);
}
.gallery-lightbox-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201,162,39,0.6);
}
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  line-height: 1;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.2s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.35);
}
.gallery-lightbox-prev:focus-visible,
.gallery-lightbox-next:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201,162,39,0.6);
}
.gallery-lightbox-prev {
  left: 1rem;
}
.gallery-lightbox-next {
  right: 1rem;
}
.gallery-lightbox-prev.is-hidden,
.gallery-lightbox-next.is-hidden {
  visibility: hidden;
  pointer-events: none;
  opacity: 0.4;
}
.gallery-lightbox-img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: calc(100vh - 4rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

/* Contact */
/* Contact – split layout */
.contact-container-wide {
  max-width: var(--content-max);
}

.contact-header {
  margin-bottom: 2.5rem;
  max-width: none;
}

.contact-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1.75fr);
    gap: clamp(2rem, 4vw, 4rem);
  }
}

.contact-sidebar {
  padding: 1.5rem;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-info-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.contact-info-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.contact-info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
a.contact-info-value:hover {
  color: var(--btn-accent);
  text-decoration: none;
}

.contact-reassurance {
  font-size: 0.95rem;
  color: var(--accent-bright);
  margin: 0;
  font-weight: 600;
}

.contact-container {
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.contact-methods-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem 1rem;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}
.contact-methods-link {
  color: var(--accent-bright);
  font-weight: 600;
  transition: color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.contact-methods-link:hover {
  color: var(--btn-accent);
  text-decoration: none;
}
.contact-methods-sep {
  color: var(--text-muted);
  font-weight: 400;
}
.contact-address {
  margin: -1rem 0 2rem;
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
}

.contact-form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: clamp(1.5rem, 3.5vw, 2rem);
  background: linear-gradient(180deg, #ffffff 0%, #fafcfe 100%);
  border: 1px solid rgba(15, 28, 46, 0.07);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 8px 32px rgba(15, 28, 46, 0.05);
  text-align: left;
}
.contact-form .contact-form-hp {
  margin: 0;
  padding: 0;
}

.contact-form-row {
  margin-top: 1rem;
}
.contact-form-row:first-of-type {
  margin-top: 0;
}
.contact-form-row label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  text-align: left;
}
.contact-form-row .required {
  color: var(--btn-accent);
}
.contact-form-row .optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85em;
}

/* Mobile: force single column for half rows (match homepage mobile breakpoint) */
@media (max-width: 767px) {
  .contact-form-row--half {
    display: block;
  }
  .contact-form-row--half > label {
    margin-top: 1rem;
  }
  .contact-form-row--half > label:first-child {
    margin-top: 0;
  }
}

@media (min-width: 768px) {
  .contact-form-row--half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0 1rem;
    column-gap: 1rem;
    row-gap: 0.35rem;
  }
  /* Column 1: first label above first input */
  .contact-form-row--half > *:nth-child(1) { grid-column: 1; grid-row: 1; }
  .contact-form-row--half > *:nth-child(2) { grid-column: 1; grid-row: 2; }
  /* Column 2: second label above second input */
  .contact-form-row--half > *:nth-child(3) { grid-column: 2; grid-row: 1; }
  .contact-form-row--half > *:nth-child(4) { grid-column: 2; grid-row: 2; }
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.82rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background-color: var(--bg-mid);
  border: 1px solid rgba(15, 28, 46, 0.08);
  border-radius: calc(var(--radius) + 2px);
  transition:
    border-color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}
.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235c6f82' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  background-color: #ffffff;
  border-color: rgba(26, 143, 212, 0.45);
  box-shadow: 0 0 0 3px rgba(26, 143, 212, 0.12);
}
.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-form select:focus-visible {
  outline: none;
  background-color: #ffffff;
  border-color: var(--btn-accent);
  box-shadow: 0 0 0 3px var(--blue-glow);
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form-submit {
  margin-top: 1.25rem;
  width: 100%;
}
.contact-form-submit-wrap {
  margin-top: 0.25rem;
}
.contact-form-promise {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}
.contact-form-promise::before {
  content: '✓';
  display: inline-block;
  margin-right: 0.35rem;
  color: var(--btn-accent);
  font-weight: 700;
}
.contact-form-submit.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: wait;
}
.contact-form-submit.is-loading:hover {
  transform: none;
}
.contact-form-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(13,13,13,0.2);
  border-top-color: #0d0d0d;
  border-radius: 50%;
  animation: contact-form-spinner 0.7s linear infinite;
}
.contact-form-spinner-text {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@keyframes contact-form-spinner {
  to { transform: rotate(360deg); }
}
.contact-form button[aria-busy="true"] {
  cursor: wait;
}
.contact-form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}
.contact-form-status:not([hidden]) {
  opacity: 1;
}
.contact-form-status--success {
  color: #1578b8;
}
.contact-form-status--error {
  color: #e57373;
}

/* Footer */
.site-footer {
  position: relative;
  background: var(--logo-bg);
  border-top: 1px solid var(--logo-zone-border);
  padding: clamp(2.25rem, 4vw, 3rem) var(--page-gutter);
  text-align: center;
  color: var(--text);
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--btn-accent);
  border-radius: 0 0 2px 2px;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.site-footer p {
  margin: 0;
}

.footer-logo {
  margin: 0 auto 0.5rem;
  height: 44px;
  width: auto;
  filter: none;
  opacity: 0.95;
}
.footer-logo-fallback {
  display: none;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--logo-zone-text);
}
.footer-logo-wrap.footer-fallback-active .footer-logo {
  display: none;
}
.footer-logo-wrap.footer-fallback-active .footer-logo-fallback {
  display: block;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.4rem;
  color: var(--logo-zone-text);
  font-weight: 600;
}

.footer-location,
.footer-address,
.footer-contact {
  margin: 0.25rem 0;
  color: #555;
  font-size: 0.92rem;
}
.footer-location {
  font-weight: 600;
  color: #333;
}
.footer-address {
  color: #555;
}

.footer-contact a {
  color: #444;
  transition: color 0.2s var(--ease-out);
}
.footer-contact a:hover {
  color: var(--btn-accent);
}

.footer-badges {
  margin: 1rem 0 0;
}

.footer-areas {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.65;
}
.footer-areas a {
  color: inherit;
  text-decoration: none;
}
.footer-areas a:hover {
  color: var(--btn-accent);
  text-decoration: underline;
}

.footer-badges .badge {
  margin: 0 0.25rem;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  background: rgba(0,0,0,0.08);
  border-color: var(--logo-zone-border);
  color: var(--logo-zone-text);
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.footer-badges .badge:hover {
  transform: scale(1.08);
  background: rgba(0,0,0,0.12);
}

.site-footer .footer-credit {
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--logo-zone-border);
  width: 100%;
  max-width: 28rem;
  font-size: 0.85rem;
  color: #666;
}
.footer-credit a {
  color: inherit;
  text-decoration: none;
}
.footer-credit a:hover {
  color: var(--btn-accent);
  text-decoration: underline;
}

/* ========== CM Plumbing & Gas – emergency bar, testimonials, utilities ========== */

.emergency-bar {
  background: var(--emergency);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
}
.emergency-bar-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0.55rem var(--page-gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  text-align: center;
}
.emergency-bar-text {
  letter-spacing: 0.04em;
}
.emergency-bar-link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}
.emergency-bar-link:hover {
  color: #ffffff;
  text-decoration: none;
}

.section-bg {
  opacity: 0.45;
}
.section.about .section-bg--about {
  opacity: 0.9;
}
.emergency-cta {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: stretch;
  margin-top: 2rem;
  padding: 1.5rem 1.5rem;
  background: var(--emergency);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) {
  .emergency-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.35rem 2rem;
  }
}
.emergency-cta-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 42ch;
}
.emergency-cta-strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
}
.emergency-cta-call {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  flex-shrink: 0;
  padding: 0.8rem 1.6rem;
  background: #ffffff;
  color: var(--emergency);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.emergency-cta-call:hover {
  color: var(--emergency-hover);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.emergency-cta-call-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--emergency-hover);
}
.emergency-cta-call-number {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--emergency);
}

.section.service-description p:last-of-type {
  margin-bottom: 0;
}
.service-scope {
  list-style: none;
  margin: 1.5rem auto 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  text-align: left;
}
@media (min-width: 640px) {
  .service-scope {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}
.service-scope li {
  margin: 0;
  padding: 1.15rem 1.1rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
}
.service-scope-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.service-scope-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.service-emergency-call {
  margin: 0 0 1.25rem;
}

.btn-emergency {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.85rem 1.75rem;
  background: var(--emergency);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(214, 40, 40, 0.35);
}
.btn-emergency:hover {
  background: var(--emergency-hover);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(214, 40, 40, 0.45);
}
.btn-emergency-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.btn-emergency-phone {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.btn-emergency--compact {
  flex-direction: row;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}
.btn-emergency--compact .btn-emergency-label,
.btn-emergency--compact .btn-emergency-phone {
  font-size: inherit;
  letter-spacing: 0.06em;
  text-transform: none;
}
.hero-cta-emergency {
  min-width: 220px;
}
.footer-emergency {
  margin: 0.75rem 0 0;
}

.testimonials-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  .testimonial-card--expandable {
    grid-column: 1 / -1;
  }
}
.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  min-height: 100%;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.testimonial-card blockquote {
  margin: 0;
  flex: 1;
}
.testimonial-card blockquote p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
}
.testimonial-card blockquote > p:first-child::before {
  content: '\201C';
  color: var(--btn-accent);
  font-size: 1.5rem;
  line-height: 0;
  margin-right: 0.15rem;
  vertical-align: -0.2em;
}
.testimonial-card-expandable {
  overflow: hidden;
  max-height: 0;
  margin-top: 0;
  transition: max-height 0.4s var(--ease-out);
}
.testimonial-card-expandable p {
  margin: 0;
}
.testimonial-card-expandable p + p {
  margin-top: 1.5rem;
}
.testimonial-card--expandable.is-expanded .testimonial-card-expandable {
  max-height: 2400px;
  margin-top: 1.75rem;
}
@media (min-width: 900px) {
  .testimonial-card-expandable {
    max-height: none;
    overflow: visible;
    margin-top: 2rem;
    column-count: 2;
    column-gap: 3rem;
  }
  .testimonial-card-expandable p {
    break-inside: avoid;
  }
  .testimonial-card-expandable p + p {
    margin-top: 1.75rem;
  }
}
.testimonial-card-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: -0.25rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-bright);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  align-self: flex-start;
}
.testimonial-card-toggle::after {
  content: '\2193';
  font-size: 0.85em;
  transition: transform 0.25s var(--ease-out);
}
.testimonial-card--expandable.is-expanded .testimonial-card-toggle::after {
  transform: rotate(180deg);
}
@media (prefers-reduced-motion: reduce) {
  .testimonial-card-expandable,
  .testimonial-card-toggle::after {
    transition: none;
  }
}
.testimonial-card-toggle:hover,
.testimonial-card-toggle:focus-visible {
  color: var(--btn-accent);
}
@media (min-width: 900px) {
  .testimonial-card-toggle {
    display: none;
  }
}
.testimonial-card footer {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.testimonial-card cite {
  font-style: normal;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: 0.02em;
}
.testimonial-role {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.section.is-hidden,
.gallery.is-hidden {
  display: none !important;
}

html {
  scroll-padding-top: var(--header-height);
}

/* ========== DEV GATE – Coming Soon (remove when development is complete) ========== */
html.has-coming-soon-gate,
body.has-coming-soon-gate {
  overflow: hidden;
  height: 100%;
}
.coming-soon-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg-dark);
  transition: opacity 0.5s var(--ease-out), visibility 0.5s var(--ease-out);
}
.coming-soon-gate.is-unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.coming-soon-gate .coming-soon-bg {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E");
  pointer-events: none;
}
.coming-soon-gate .coming-soon-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 480px;
  animation: fadeInUp 0.8s var(--ease-out) both;
}
.coming-soon-tagline {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: rgba(255,255,255,0.85);
  margin: 0 0 1rem;
  font-weight: 600;
}
.coming-soon-tagline::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin: 0 auto 1rem;
  background: linear-gradient(90deg, transparent, var(--btn-accent), transparent);
  border-radius: 2px;
}
.coming-soon-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 4rem);
  font-weight: 400;
  line-height: 1.02;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}
.coming-soon-sub {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}
.coming-soon-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin: 0 0 2rem;
}
.coming-soon-trust .badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
}
.coming-soon-divider {
  width: 80px;
  height: 1px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.coming-soon-dev-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
.coming-soon-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 280px;
  margin: 0 auto;
}
.coming-soon-form input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.coming-soon-form input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}
.coming-soon-form input:focus {
  outline: none;
  border-color: var(--btn-accent);
  box-shadow: 0 0 0 2px rgba(201,162,39,0.35);
}
.coming-soon-form .btn {
  width: 100%;
}
.coming-soon-error {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #e57373;
}
/* ========== END DEV GATE ========== */

/* Back to top – chevron button */
.back-to-top {
  position: fixed;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  right: max(1.5rem, env(safe-area-inset-right));
  z-index: 90;
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease-out), visibility 0.3s var(--ease-out), transform 0.3s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  border-color: var(--blue-border);
  box-shadow: 0 6px 24px var(--blue-glow);
  color: var(--btn-accent);
  background: #ffffff;
}
.back-to-top:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg-dark), 0 0 0 4px var(--btn-accent);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* V2 homepage – center on mobile (desktop stays left-aligned editorial) */
@media (max-width: 767px) {
  .hero:not(.hero--service) {
    align-items: center;
    padding-top: clamp(2.5rem, 8vw, 4rem);
    padding-bottom: clamp(2.5rem, 8vw, 4rem);
  }

  body.layout-v2 .hero:not(.hero--service) .hero-content {
    text-align: center;
  }
  body.layout-v2 .hero:not(.hero--service) .hero-tagline::before {
    margin-left: auto;
    margin-right: auto;
  }
  body.layout-v2 .hero:not(.hero--service) h1 {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
  body.layout-v2 .hero:not(.hero--service) .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  body.layout-v2 .hero:not(.hero--service) .hero-cta-wrap {
    justify-content: center;
  }
  body.layout-v2 .hero:not(.hero--service) .hero-trust {
    justify-content: center;
  }

  body.layout-v2 .section:not(.service-description):not(.service-cta):not(.contact) .container {
    text-align: center;
  }
  body.layout-v2 .section:not(.service-description):not(.service-cta):not(.contact) h2::after {
    margin-left: auto;
    margin-right: auto;
  }
  body.layout-v2 .section:not(.service-description):not(.service-cta):not(.contact) .section-intro {
    margin-left: auto;
    margin-right: auto;
  }

  body.layout-v2 .contact-header {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  body.layout-v2 .contact-header h2::after {
    margin-left: auto;
    margin-right: auto;
  }

  body.layout-v2 .section.contact .contact-layout,
  body.layout-v2 .section.contact .contact-form-wrap,
  body.layout-v2 .section.contact .contact-form,
  body.layout-v2 .section.contact .contact-form-row,
  body.layout-v2 .section.contact .contact-form-row label,
  body.layout-v2 .section.contact .contact-form input,
  body.layout-v2 .section.contact .contact-form textarea,
  body.layout-v2 .section.contact .contact-form select {
    text-align: left;
  }
}

/* 404 page */
.page-404 {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-404 .container {
  padding: 4rem 1.25rem;
}
.page-404-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 20vw, 10rem);
  font-weight: 400;
  line-height: 1;
  color: var(--text-muted);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}
.page-404-message {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* 403 page */
.page-403 {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-403 .container {
  padding: 4rem 1.25rem;
}
.page-403-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 20vw, 10rem);
  font-weight: 400;
  line-height: 1;
  color: var(--text-muted);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}
.page-403-message {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
