/* ==========================================================================
   FIELDS EXTERIORS — "Blueprint to Built" design system
   A construction-themed site where every section installs itself on scroll.
   ========================================================================== */

:root {
  color-scheme: light;
  --font-head: 'Oswald', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ink: #0a1421;
  --navy: #0d3b66;
  --navy-deep: #071d33;
  --steel: #3c4a5c;
  --concrete: #f2efe6;
  --concrete-dark: #e6e0d0;
  --paper: #fffdf8;
  --safety: #ff5a1f;
  --safety-dark: #d43e10;
  --caution: #ffc531;
  --teal: #0f766e;
  --teal-dark: #0b5c56;
  --white: #ffffff;
  --text: #142132;
  --text-soft: #4d5c6d;
  --text-on-dark: #eef3f8;
  --text-on-dark-soft: rgba(238, 243, 248, 0.78);

  --radius-lg: 1.6rem;
  --radius-md: 1.1rem;
  --radius-sm: 0.65rem;
  --shadow-soft: 0 18px 40px rgba(10, 20, 33, 0.1);
  --shadow-strong: 0 30px 70px rgba(7, 15, 25, 0.35);
  --ease-build: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.75rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text);
  font-size: 16px;
  background:
    radial-gradient(circle at 8% 0%, rgba(13, 59, 102, 0.08), transparent 32%),
    radial-gradient(circle at 92% 8%, rgba(255, 90, 31, 0.08), transparent 34%),
    var(--concrete);
  background-attachment: fixed;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: none;
  letter-spacing: -0.01em;
}

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

/* --------------------------------------------------------------------------
   Blueprint texture helper — used behind dark sections
   -------------------------------------------------------------------------- */
.blueprint-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
}

/* --------------------------------------------------------------------------
   Build-progress rail — fills like a level bubble as you scroll the page
   -------------------------------------------------------------------------- */
.build-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 60;
  background: rgba(10, 20, 33, 0.08);
}

.build-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--safety), var(--caution));
  box-shadow: 0 0 12px rgba(255, 90, 31, 0.6);
  transition: width 90ms linear;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  padding: 1rem 1.5rem 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 90, 31, 0.16), transparent 40%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #0c4a4a 100%);
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.15));
  pointer-events: none;
}

.top-bar {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.logo-3d {
  position: relative;
  width: 4.6rem;
  height: 4.6rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 1.1rem;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: logo-float 6s ease-in-out infinite;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.logo-image {
  width: 88%;
  height: 88%;
  object-fit: contain;
  display: block;
  border-radius: 0.7rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--text-on-dark-soft);
  text-transform: uppercase;
}

.brand-wrap .eyebrow {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--white);
  line-height: 1.15;
}

.brand-subtitle {
  margin: 0.15rem 0 0;
  color: var(--text-on-dark-soft);
  font-size: 0.86rem;
  font-weight: 500;
}

@media (max-width: 600px) {
  .brand-wrap .eyebrow { font-size: 1.05rem; }
  .logo-3d { width: 3.6rem; height: 3.6rem; border-radius: 0.85rem; }
}

.contact-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  color: var(--white);
  background: var(--safety);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(255, 90, 31, 0.35);
  transition: transform 220ms var(--ease-build), box-shadow 220ms var(--ease-build), background 220ms ease;
}

.contact-pill::before {
  content: "\260E";
  font-size: 0.85em;
}

.contact-pill:hover,
.contact-pill:focus-visible {
  transform: translateY(-2px);
  background: var(--safety-dark);
  box-shadow: 0 16px 34px rgba(255, 90, 31, 0.45);
}

/* Header bookmark / share icon buttons */
.header-icon-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-bookmark-btn,
.header-share-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--text-on-dark);
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease, transform 220ms var(--ease-build);
}

.header-bookmark-btn:hover,
.header-share-btn:hover {
  background: rgba(255, 90, 31, 0.22);
  color: var(--white);
  transform: translateY(-2px);
}

.header-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--navy-deep);
  color: var(--text-on-dark);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  box-shadow: var(--shadow-soft);
  z-index: 200;
}

.header-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Nav toggle (mobile hamburger) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.75rem auto 0;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  position: relative;
  z-index: 3;
}

.nav-toggle .bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 18px;
}

.nav-toggle .bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.sticky-nav {
  position: relative;
  z-index: 2;
  margin: 0.9rem auto 0;
  max-width: 1240px;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.nav-link {
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  color: var(--text-on-dark);
  transition: transform 200ms ease, background 200ms ease, color 200ms ease;
  touch-action: manipulation;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  background: var(--safety);
  color: var(--white);
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .sticky-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 0.55rem;
    margin-top: 0.6rem;
    border-radius: var(--radius-md);
    transition: max-height 320ms var(--ease-build), opacity 260ms ease, padding 320ms var(--ease-build);
  }

  .sticky-nav.nav-open {
    max-height: 24rem;
    opacity: 1;
    padding: 0.55rem;
  }

  .nav-link {
    border-radius: var(--radius-sm);
  }

  .nav-link {
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Trust ribbon — persistent ticker of trust signals on every page
   -------------------------------------------------------------------------- */
.trust-ribbon {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-ribbon-track {
  display: flex;
  width: max-content;
  animation: trust-scroll 32s linear infinite;
}

.trust-ribbon-set {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding: 0.6rem 1.25rem;
  flex-shrink: 0;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-on-dark);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.trust-chip svg {
  flex-shrink: 0;
  color: var(--caution);
}

@keyframes trust-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.trust-ribbon:hover .trust-ribbon-track,
.trust-ribbon:focus-within .trust-ribbon-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .trust-ribbon-track {
    animation: none;
  }
  .trust-ribbon-set:last-child {
    display: none;
  }
}

/* Mini trust-stat row used inside "warranty & trust" sections on detail pages */
.mini-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.mini-stat {
  text-align: center;
  padding: 0.9rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--concrete);
  border-top: 3px solid var(--safety);
}

.mini-stat .stat-value {
  font-size: 1.5rem;
}

.mini-stat span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-soft);
  font-weight: 600;
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   Hero banner
   -------------------------------------------------------------------------- */
.hero-banner {
  position: relative;
  max-width: 1240px;
  margin: 1.5rem auto 0;
  padding: 3rem 2.25rem 4rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  z-index: 1;
}

.hero-home,
.hero-services,
.hero-gallery,
.hero-about,
.hero-location {
  background: none;
}

.hero-copy {
  display: grid;
  gap: 1.1rem;
  color: var(--text-on-dark);
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 90, 31, 0.16);
  border: 1px solid rgba(255, 90, 31, 0.4);
  color: #ffcdb3;
  font-weight: 700;
}

.hero-copy .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--safety);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.25);
}

.hero-title,
.section-title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  color: var(--white);
}

.hero-text {
  margin: 0;
  max-width: 46ch;
  color: var(--text-on-dark-soft);
  font-size: 1.05rem;
}

.page-home .hero-copy .hero-text,
.page-services .hero-copy .hero-text {
  border: none;
  background: none;
  padding: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.25rem;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  background: var(--safety);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(255, 90, 31, 0.32);
  transition: transform 220ms var(--ease-build), box-shadow 220ms var(--ease-build);
}

.hero-button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.hero-button:hover,
.hero-button:focus-visible {
  transform: translateY(-3px);
}

.hero-gallery,
.services-gallery,
.gallery-hero,
.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.hero-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.hero-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0.85rem;
}

.hero-card h3 { margin: 0; color: var(--navy); }
.hero-card p { margin: 0; color: var(--text-soft); }

.about-hero { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.about-hero img { min-height: 280px; }

.hero-logo-animation {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.hero-gallery.hero-logo-animation img,
.hero-gallery.hero-logo-animation video {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  object-fit: contain !important;
  border-radius: 0;
  box-shadow: none;
  animation: hero-logo-bob 5s ease-in-out infinite;
}

@keyframes hero-logo-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}

.hero-gallery img,
.services-gallery img,
.about-hero img,
.gallery-hero img {
  width: 100%;
  min-height: 220px;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 320ms var(--ease-build);
}

.hero-gallery img:hover,
.services-gallery img:hover,
.about-hero img:hover,
.gallery-hero img:hover {
  transform: translateY(-4px) scale(1.02);
}

/* Sawtooth roofline transition out of every hero */
.hero-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 26px;
  background:
    linear-gradient(135deg, transparent 50%, var(--concrete) 50%) 0 0 / 34px 34px repeat-x,
    linear-gradient(-135deg, transparent 50%, var(--concrete) 50%) 0 0 / 34px 34px repeat-x;
  background-position: 0 0, 17px 0;
}

.meet-team-inner { box-shadow: var(--shadow-soft); }

/* --------------------------------------------------------------------------
   Page content / panels
   -------------------------------------------------------------------------- */
.page-content {
  position: relative;
  max-width: 1240px;
  margin: 0 auto 4rem;
  padding: 2.5rem 1.5rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
}

.breadcrumb-nav {
  max-width: 1240px;
  margin: 1.25rem auto 0;
  padding: 0 1.5rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.breadcrumb-nav a { color: var(--teal); font-weight: 600; }
.breadcrumb-nav a:hover { text-decoration: underline; }

.panel {
  position: relative;
  padding: 2.5rem 2.25rem;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(10, 20, 33, 0.06);
}

/* corner "blueprint" tick marks — a construction/technical-drawing signature */
.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--safety);
  opacity: 0.65;
  pointer-events: none;
}

.panel::before {
  top: 14px;
  left: 14px;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 6px;
}

.panel::after {
  bottom: 14px;
  right: 14px;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 6px;
}

/* Caution-stripe divider automatically injected between stacked panels */
.page-content > .panel + .panel {
  margin-top: 0;
}

.page-content > .panel + .panel::before {
  content: none;
}

.page-content > section + section {
  position: relative;
}

.page-content > section + section::before {
  content: "";
  position: absolute;
  top: -1.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 7px;
  border-radius: 4px;
  background: repeating-linear-gradient(45deg, var(--safety) 0 10px, var(--ink) 10px 20px);
  opacity: 0.85;
}

.panel-intro {
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  display: block;
  width: fit-content;
  margin: 0 auto 1rem;
  text-align: center;
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
  color: var(--navy);
  padding-bottom: 0.5rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--safety);
}

h1, h2, h3 { text-align: center; }

.panel-intro { text-align: center; }
.hero-copy { text-align: left; }
.hero-copy .hero-actions { justify-content: flex-start; }

/* --------------------------------------------------------------------------
   Grids & cards
   -------------------------------------------------------------------------- */
.stat-grid,
.feature-grid,
.service-grid,
.gallery-grid,
.about-grid,
.highlight-grid,
.before-after-row,
.area-grid,
.values-panel {
  display: grid;
  gap: 1.5rem;
}

.stat-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

.service-grid,
.feature-grid,
.about-grid,
.highlight-grid,
.before-after-row,
.area-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.values-panel { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.gallery-page .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.stat-card,
.feature-card,
.about-card,
.highlight-card,
.value-card,
.area-card {
  padding: 1.6rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid rgba(10, 20, 33, 0.06);
  border-top: 3px solid var(--teal);
  transition: transform 220ms var(--ease-build), box-shadow 220ms var(--ease-build), border-color 220ms ease;
}

.testimonial-banner {
  padding: 1.6rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid rgba(10, 20, 33, 0.06);
  border-left: 4px solid var(--safety);
}

.hover-card:hover,
.tilt-card:hover .tilt-inner,
.value-card:hover,
.reveal-card:hover,
.stat-card:hover,
.area-card:hover,
.gallery-item:hover {
  transform: translateY(-5px);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: var(--shadow-soft);
}

.stat-value {
  display: block;
  font-family: var(--font-head);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.feature-card img,
.service-card img,
.carousel-slide img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 0.9rem 0.9rem 0 0;
  margin-bottom: 0;
}

.service-card {
  min-height: 340px;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid rgba(10, 20, 33, 0.06);
  box-shadow: var(--shadow-soft);
}

.tilt-inner {
  display: grid;
  gap: 0.6rem;
  padding: 1.4rem;
  transform-origin: center;
  will-change: transform;
  transition: transform 220ms ease;
}

.service-card h3,
.feature-card h3,
.about-card h3,
.highlight-card h3,
.hero-card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-size: 1.2rem;
}

.service-card p { margin: 0; color: var(--text-soft); }

.area-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  color: var(--teal);
}
.area-link:hover { color: var(--safety); }

.gallery-item {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid rgba(10, 20, 33, 0.06);
  box-shadow: var(--shadow-soft);
}

.page-gallery .gallery-item { position: relative; }
.page-gallery .gallery-item::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(7,15,25,0.35) 100%);
  pointer-events: none;
}

.gallery-item img { transition: transform 400ms var(--ease-build); min-height: 200px; height: 200px; object-fit: cover; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0.9rem 0.9rem;
  color: var(--white);
  font-weight: 700;
  margin-top: -2.6rem;
}
.gallery-page .gallery-item figcaption { color: var(--white); }
.page-content:not(.gallery-page) .gallery-item { color: var(--text); }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.4rem;
  justify-content: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--concrete);
  border: 1px solid rgba(10, 20, 33, 0.08);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.badge-pill svg { flex-shrink: 0; color: var(--teal); }
.badge-pill:hover { transform: translateY(-2px); background: var(--white); box-shadow: var(--shadow-soft); }

/* --------------------------------------------------------------------------
   Service rail — auto-scrolling, infinite-loop service card carousel that
   speeds up sideways while you scroll the page down (no manual controls)
   -------------------------------------------------------------------------- */
.service-rail {
  overflow: hidden;
  margin: 0 -1.5rem;
  padding: 0.5rem 0 0.75rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.service-rail-track {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  width: max-content;
  padding: 0.25rem 1.5rem;
  animation: service-rail-scroll 46s linear infinite;
}

.service-rail:hover .service-rail-track,
.service-rail:focus-within .service-rail-track {
  animation-play-state: paused;
}

@keyframes service-rail-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.service-rail-card {
  display: block;
  flex: 0 0 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(10, 20, 33, 0.06);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms var(--ease-build), box-shadow 220ms var(--ease-build);
}

.service-rail-card:hover,
.service-rail-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(10, 20, 33, 0.16);
}

.service-rail-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.service-rail-card-body {
  padding: 1rem 1.1rem 1.25rem;
}

.service-rail-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--navy);
  text-align: left;
}

.service-rail-card p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--text-soft);
  text-align: left;
}

.service-rail-card .area-link {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .service-rail { overflow: hidden; -webkit-mask-image: none; mask-image: none; touch-action: pan-y; }
  .service-rail-track { animation: none; flex-wrap: wrap; width: auto; }
}

/* --------------------------------------------------------------------------
   Before / after
   -------------------------------------------------------------------------- */
.before-after-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 260px;
  border-radius: var(--radius-md);
  --reveal: 50%;
  cursor: default;
  box-shadow: var(--shadow-soft);
}

.before-after-card img,
.project-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

/* The source photos are paired layouts; show the relevant half as an individual project view. */
.project-image { background-repeat: no-repeat; background-size: 200% auto; }
.project-image--farmhouse { background-image: url("../images/B-A-2.webp"); background-position: right center; }
.project-image--historic { background-image: url("../images/B-A-1.webp"); }
.project-image--historic.after-image { background-position: right center; }
.project-image--historic.before-image { background-position: left center; }
.project-image--two-story { background-image: url("../images/B-A-3-hd.jpg"); }
.project-image--two-story.after-image { background-position: right center; }
.project-image--two-story.before-image { background-position: left center; }

/* Avoid rendering sections that are still offscreen. Their dimensions remain
   reserved, so this reduces main-thread work without causing layout shifts. */
.gallery-page .before-after-panel,
.gallery-page .highlight-panel,
.gallery-page .trust-panel {
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}

.after-image {
  z-index: 1;
}

.before-image {
  clip-path: inset(0 calc(100% - var(--reveal)) 0 0);
  z-index: 2;
}

.before-after-card::after {
  content: "Before";
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 3;
  opacity: 1;
}

.before-after-card::before {
  content: "After";
  position: absolute;
  right: 1rem;
  top: 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--safety);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 3;
}

.before-after-slider {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  z-index: 4;
  left: 1rem;
  right: 1rem;
  bottom: 4.4rem;
  width: calc(100% - 2rem);
  height: 28px;
  margin: 0;
  cursor: ew-resize;
  background: linear-gradient(90deg, var(--white) 0 var(--slider, 50%), rgba(255,255,255,.5) var(--slider, 50%) 100%);
  border-radius: 999px;
  outline: none;
  touch-action: pan-y;
}
.before-after-slider::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--safety); border: 3px solid var(--white); box-shadow: 0 2px 8px rgba(7,15,25,.45); }
.before-after-slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--safety); border: 3px solid var(--white); box-shadow: 0 2px 8px rgba(7,15,25,.45); }
.before-after-slider:focus-visible { outline: 3px solid var(--caution); outline-offset: 3px; }

.project-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(7, 15, 25, 0.85);
  color: var(--white);
  font-weight: 700;
  z-index: 3;
}

@media (max-width: 520px) {
  .before-after-card { min-height: 230px; }
  .before-after-slider { bottom: 4rem; }
  .project-label { right: 1rem; font-size: .9rem; }
}

/* --------------------------------------------------------------------------
   Carousel / slideshow
   -------------------------------------------------------------------------- */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 1rem;
  border: 1px solid rgba(10, 20, 33, 0.06);
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: hidden;
  padding-bottom: 0.5rem;
  touch-action: pan-y;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  min-width: 300px;
  flex: 0 0 300px;
  background: var(--concrete);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(10, 20, 33, 0.06);
}

.carousel-slide .slide-caption { padding: 1rem 1.1rem; font-weight: 700; color: var(--navy); }

@media (max-width: 900px) {
  .carousel-track { touch-action: pan-y; }
}

.slideshow {
  position: relative;
  width: 100%;
  min-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
}
.slideshow-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; display: grid; place-items: center; }
.slideshow-slide.active { opacity: 1; }
.slideshow-slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption { font-weight: 700; }
.slideshow-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255,255,255,0.2); }
.slideshow-progress::before {
  content: "";
  position: absolute;
  left: 0; top: 0; height: 100%;
  width: var(--progress-width, 0%);
  background: linear-gradient(90deg, var(--safety), var(--caution));
  transition: width 3s linear;
}

/* --------------------------------------------------------------------------
   Trust panel / footer CTA banners
   -------------------------------------------------------------------------- */
.trust-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.reveal-card { position: relative; overflow: hidden; }
.reveal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 240ms ease;
}
.reveal-card:hover::before { opacity: 1; }
.reveal-card h3 { margin-bottom: 0.6rem; }

.value-card ul { margin: 1rem 0 0; padding-left: 1.35rem; text-align: left; }
.value-card li { margin-bottom: 0.75rem; }
.value-card h2 { font-size: 1.3rem; text-align: left; margin-top: 0; }
.value-card p { text-align: left; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer-panel {
  position: relative;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--ink) 100%);
  color: var(--text-on-dark);
  padding: 3rem 1.5rem 2rem;
  margin-top: 1rem;
  overflow: hidden;
}

.footer-panel::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 26px;
  background:
    linear-gradient(135deg, transparent 50%, var(--concrete) 50%) 0 0 / 34px 34px repeat-x,
    linear-gradient(-135deg, transparent 50%, var(--concrete) 50%) 0 0 / 34px 34px repeat-x;
  background-position: 0 0, 17px 0;
  transform: translateY(-26px) scaleY(-1);
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.footer-col h4 {
  margin: 0 0 0.6rem 0;
  color: var(--caution);
  font-size: 0.95rem;
  text-align: left;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-brand p { margin: 0.5rem 0 1rem 0; color: var(--text-on-dark-soft); }
.footer-logo { height: 46px; display: block; margin-bottom: 0.6rem; filter: brightness(0) invert(1); opacity: 0.92; }

.call-now-cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.75rem 1.15rem;
  background: var(--safety);
  color: var(--white);
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(255, 90, 31, 0.3);
}

.call-now-cta.pulse { animation: pulse-glow 2.6s ease-in-out infinite; }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 12px 30px rgba(255, 90, 31, 0.3); }
  50% { box-shadow: 0 12px 40px rgba(255, 90, 31, 0.55); }
}

.footer-links ul, .footer-trust ul { list-style: none; padding: 0; margin: 0; }
.footer-links a, .footer-contact a, .footer-bottom a { color: var(--text-on-dark-soft); }
.footer-links a:hover, .footer-contact a:hover { color: var(--caution); }

.badge-list { list-style: none; padding: 0; margin: 0; }
.trust-badge { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.65rem; color: var(--text-on-dark-soft); font-weight: 600; font-size: 0.92rem; }
.trust-badge svg { flex-shrink: 0; color: var(--caution); }

.footer-partners {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 1.75rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  align-items: baseline;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(238, 243, 248, 0.55);
}

.footer-partners strong { color: rgba(238, 243, 248, 0.82); font-weight: 700; margin-right: 0.15rem; }
.footer-partners a { color: rgba(255, 197, 49, 0.9); }
.footer-partners a:hover { text-decoration: underline; }

.footer-bottom {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(238, 243, 248, 0.6);
}

@media (max-width: 980px) { .footer-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-col { align-items: center; }
  .footer-col h4, .value-card ul, .value-card p, .value-card h2 { text-align: center; }
  .footer-logo { margin-left: auto; margin-right: auto; }
}

/* --------------------------------------------------------------------------
   Location pages
   -------------------------------------------------------------------------- */
.location-hero { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.location-hero img { min-height: 300px; }

.area-card h3 { margin-top: 0; color: var(--navy); text-align: left; }
.area-card p { text-align: left; }
.area-card a.area-link { font-weight: 700; }

/* --------------------------------------------------------------------------
   Scroll "build" animation engine
   -------------------------------------------------------------------------- */
.build-init { opacity: 0; }

.build-rise { transform: translateY(52px); }
.build-rise.is-built {
  animation: build-rise-in 0.85s var(--ease-build) forwards;
  animation-delay: var(--build-delay, 0ms);
}
@keyframes build-rise-in {
  0% { opacity: 0; transform: translateY(52px) scale(0.98); }
  65% { opacity: 1; transform: translateY(-6px) scale(1.004); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.build-left { transform: translateX(-64px) rotate(-2.5deg); }
.build-left.is-built {
  animation: build-slide-left 0.85s var(--ease-build) forwards;
  animation-delay: var(--build-delay, 0ms);
}
@keyframes build-slide-left {
  0% { opacity: 0; transform: translateX(-64px) rotate(-2.5deg); }
  65% { opacity: 1; transform: translateX(8px) rotate(0.4deg); }
  100% { opacity: 1; transform: translateX(0) rotate(0deg); }
}

.build-right { transform: translateX(64px) rotate(2.5deg); }
.build-right.is-built {
  animation: build-slide-right 0.85s var(--ease-build) forwards;
  animation-delay: var(--build-delay, 0ms);
}
@keyframes build-slide-right {
  0% { opacity: 0; transform: translateX(64px) rotate(2.5deg); }
  65% { opacity: 1; transform: translateX(-8px) rotate(-0.4deg); }
  100% { opacity: 1; transform: translateX(0) rotate(0deg); }
}

.build-frame { transform: translateY(-46px); }
.build-frame.is-built {
  animation: build-frame-in 0.9s var(--ease-build) forwards;
  animation-delay: var(--build-delay, 0ms);
}
@keyframes build-frame-in {
  0% { opacity: 0; transform: translateY(-46px) scale(0.985); }
  60% { opacity: 1; transform: translateY(10px) scale(1.003); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .build-init { opacity: 1 !important; transform: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-banner { grid-template-columns: 1fr; padding-bottom: 3rem; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow { margin: 0 auto; }
  .hero-copy .hero-actions { justify-content: center; }
  .hero-gallery { order: -1; max-width: 360px; margin: 0 auto; }
}

@media (max-width: 720px) {
  .top-bar, .footer-inner, .footer-partners, .footer-bottom, .page-content, .breadcrumb-nav {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-banner { padding: 2.25rem 1.25rem 2.75rem; }
  .hero-title { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .panel { padding: 1.9rem 1.4rem; }

  .hero-gallery, .services-gallery, .about-hero, .gallery-hero, .hero-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .contact-pill { padding: 0.6rem 0.9rem; font-size: 0.85rem; }
  .hero-button, .hero-button.secondary { width: 100%; }
  .hero-actions { flex-direction: column; }

  .service-grid, .stat-grid, .about-grid, .highlight-grid, .hero-card-grid,
  .before-after-row, .gallery-grid, .area-grid, .values-panel {
    grid-template-columns: 1fr;
  }

  .carousel-slide { min-width: 240px; flex: 0 0 240px; }
}

@media (max-width: 560px) {
  .top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .contact-pill {
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .logo-3d { width: 3.1rem; height: 3.1rem; }
  .brand-wrap .eyebrow { font-size: 0.92rem; }
  .brand-subtitle { font-size: 0.75rem; }
}
