/*
Theme Name: Hewitt Emergency Services
Theme URI: https://hewittemergencyservices.com/
Author: Hewitt Emergency Services
Description: WordPress theme version of the Hewitt Emergency Services site, including public pages, local media, quote/contact forms, employee form links, gallery, and WooCommerce-aware shop styling.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
Text Domain: hewitt-emergency-services
*/

@font-face {
  font-family: "Chunkfive";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/Chunkfive.woff2") format("woff2"), url("assets/fonts/Chunkfive.woff") format("woff");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2") format("woff2");
}

:root {
  --header-stage-height: 190.5625px;
  --hes-black: #161616;
  --hes-ink: #252525;
  --hes-soft: #1b1b1b;
  --hes-panel: #161616;
  --hes-gold: #b88010;
  --hes-red: #a72220;
  --hes-action: #a72220;
  --hes-action-hover: #b88010;
  --hes-muted: #d2d2d2;
  --hes-border: rgba(255, 255, 255, 0.16);
  --hes-shadow: 0 14px 35px rgba(0, 0, 0, 0.14);
  --hes-width: 100%;
  --hes-logo-texture: url("assets/images/logo-grey-texture-bg.png");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background-color: var(--hes-black);
  background-image: linear-gradient(rgba(18, 18, 18, 0.88), rgba(18, 18, 18, 0.88)), var(--hes-logo-texture);
  background-size: auto, 360px 360px;
  color: #f3f3f3;
  font-family: "Montserrat", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

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

.hes-picture { display: contents; }
.hes-picture img { height: auto; }

.hes-responsive-hero { background-image: var(--hes-hero-large-jpeg); }
@supports (background-image: image-set(url("") type("image/webp"))) {
  .hes-responsive-hero { background-image: image-set(var(--hes-hero-large-sources)); }
}
@media (max-width: 720px) {
  .hes-responsive-hero { background-image: var(--hes-hero-small-jpeg); }
  @supports (background-image: image-set(url("") type("image/webp"))) {
    .hes-responsive-hero { background-image: image-set(var(--hes-hero-small-sources)); }
  }
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100001;
  max-width: calc(100% - 24px);
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid var(--hes-gold);
  background: #fff;
  color: #161616;
  font-weight: 700;
  overflow-wrap: anywhere;
  transform: translateY(calc(-100% - 64px));
}

.skip-link:focus {
  transform: none;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.admin-bar .skip-link { top: 44px; }
@media (max-width: 782px) {
  .admin-bar .skip-link { top: 58px; }
}

#main-content { scroll-margin-top: 260px; }
#main-content:focus { outline: 2px solid var(--hes-gold); outline-offset: -2px; }

.site-header {
  --header-cut-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  --header-surface-color: rgba(22, 22, 22, 0.96);
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  color: #fff;
  box-shadow: none;
  overflow: visible;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--header-surface-color);
  clip-path: var(--header-cut-path);
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.34));
}

.header-cut-fill {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.header-cut-fill__segment {
  position: absolute;
  display: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.52) 0 2px, rgba(255, 255, 255, 0.08) 2px 4px, var(--header-surface-color) 4px 100%);
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.34);
  filter: drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.08)) drop-shadow(0 4px 4px rgba(0, 0, 0, 0.42));
}

.header-contact {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  min-width: 0;
  color: #f7f0df;
  font-size: 13px;
  letter-spacing: 0;
}

.header-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
}

.header-contact-icon {
  display: none;
  flex: 0 0 22px;
}

.header-inner {
  position: relative;
  z-index: 1;
  width: calc(100% - 32px);
  margin: 0 auto;
  min-height: var(--header-stage-height);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: 44px 1fr;
  align-items: center;
  gap: 0 24px;
  overflow: visible;
}

.header-inner > .primary-nav { grid-column: 2 / -1; grid-row: 2; align-self: start; }
.header-inner > .account-actions { grid-column: 3; grid-row: 1; }

.header-inner > :not(.menu-dozer) {
  position: relative;
  z-index: 10;
}

/* Keep the machinery visible; link text already has its own contrast shadow. */
.has-dozer-scene .primary-nav > ul {
  background: transparent;
  box-shadow: none;
}
@media (min-width: 1051px) {
  .has-dozer-scene .primary-nav > ul {
    width: fit-content;
    max-width: 100%;
  }
}

.dozer-lowboy {
  position: absolute;
  inset: 0;
  width: 100%;
  pointer-events: none;
  overflow: visible;
}

.menu-dozer {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 8;
  --dozer-width: 248px;
  --dozer-height: 166px;
  width: var(--dozer-width);
  height: var(--dozer-height);
  pointer-events: none;
  transform: translateX(180px);
  transform-origin: 0 0;
  will-change: transform;
}
.menu-dozer > svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.menu-dozer:not([data-rig-mounted]) {
  visibility: hidden;
}
.dozer-world-lane {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
/* The simulation owns these poses. Even a tiny reduced-motion transition
   creates a second animation for every moving SVG part on every frame. */
.menu-dozer,
.menu-dozer *,
.dozer-world-lane,
.dozer-world-lane *,
.dozer-rig-rocks,
.dozer-rig-rocks *,
.home .site-header::before,
.home .hero::before,
.hero-title-letter {
  transition-property: none !important;
}
.site-header.has-dozer-scene {
  --header-surface-color: #161616;
}
.site-header.has-dozer-scene::before {
  filter: none;
}
body.nav-open .dozer-world-lane,
body.nav-open .dozer-rig-rocks {
  visibility: hidden;
}
.dozer-world-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
.dozer-soil-photo {
  position: absolute;
  top: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(0, 0, 0, 0.17), rgba(0, 0, 0, 0.17)), var(--dozer-soil-image);
  background-size: cover;
  background-position: center;
  clip-path: url(#dozer-soil-photo-clip);
}
.dozer-load-photo {
  clip-path: url(#dozer-load-photo-clip);
}
.has-soil-photo #dozer-loose-piles,
.has-soil-photo #dozer-windrow,
.has-soil-photo #dozer-spoil-heap {
  visibility: hidden;
}
.hero.has-dozer-soil-photo::before {
  top: calc(-1 * var(--dozer-photo-offset));
  background-image: linear-gradient(rgba(0, 0, 0, 0.17), rgba(0, 0, 0, 0.17)), var(--dozer-soil-image);
  background-size: cover;
  background-position: center;
  clip-path: inset(var(--dozer-photo-offset) 0 0);
}
.dozer-rig-cut {
  fill: var(--header-surface-color);
}
.dozer-rig-rocks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}
.dozer-rig-rock {
  position: absolute;
  left: 0;
  top: 0;
  background: #795334;
  border: 1px solid #402b1c;
  clip-path: polygon(6% 30%, 32% 4%, 72% 8%, 98% 44%, 80% 88%, 39% 98%, 4% 70%);
  will-change: transform;
}
.dozer-review-toggle {
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: white;
  background: #262626;
  border: 1px solid #bbb;
  cursor: pointer;
}
.dozer-review-status {
  position: fixed;
  right: 12px;
  bottom: 62px;
  z-index: 1000;
  max-width: calc(100% - 24px);
  padding: 4px 8px;
  color: white;
  background: #262626;
  font: 12px monospace;
  pointer-events: none;
}
.dozer-controls {
  position: absolute;
  bottom: 8px;
  right: 16px;
  z-index: 5;
  text-align: left;
  text-shadow: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dozer-controls .button {
  min-height: 44px;
  font: 800 14px/1.25 Arial, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
}
.dozer-controls .dozer-control-toggle { width: auto; min-width: 0; height: 44px; padding: 9px 14px; }
.dozer-controls .dozer-control-toggle[hidden] { display: none; }
.dozer-controls .dozer-control-playback { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; }
.dozer-controls .dozer-control-playback[hidden] { display: none; }
.dozer-controls button:focus-visible { outline: 3px solid #f0ce73; outline-offset: 3px; }
.dozer-control-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 278px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  border: 1px solid #c8a449;
  border-radius: 6px;
  color: #fff;
  background: #202020;
  box-shadow: 0 6px 20px #0009;
}
.dozer-control-panel[hidden] { display: none; }
.dozer-control-panel h2 { margin: 0 44px 20px 0; font: 700 18px/1.3 Arial, sans-serif; }
.dozer-control-panel p { margin: 14px 0; font: 14px/1.45 Arial, sans-serif; }
.dozer-controls .dozer-control-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; padding: 0; font-size: 24px; }
.dozer-control-directions { display: grid; grid-template-columns: 44px 1fr; gap: 8px 12px; align-items: center; font: 14px/1.3 Arial, sans-serif; }
.dozer-controls .dozer-direction { width: 44px; height: 44px; padding: 0; font-size: 24px; touch-action: none; user-select: none; }
.dozer-controls .dozer-control-auto { width: 100%; padding: 9px 12px; }
body.nav-open .dozer-controls { visibility: hidden; }
@media (max-width: 720px) {
  .dozer-controls { right: 10px; bottom: 8px; max-width: calc(100% - 174px); }
  .dozer-controls .dozer-control-toggle { padding: 4px 8px; font-size: 12px; }
}
@media (max-height: 720px) {
  .dozer-control-panel {
    position: fixed;
    top: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    right: max(12px, env(safe-area-inset-right));
    width: 340px;
    max-width: calc(100vw - 24px);
    padding: 12px;
  }
  .dozer-control-directions { grid-template-columns: 44px minmax(0, 1fr) 44px minmax(0, 1fr); gap: 8px; }
  .dozer-control-directions span { overflow-wrap: anywhere; }
  .dozer-control-panel p { margin: 10px 0; }
}

.brand {
  grid-column: 1;
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  align-self: start;
  height: var(--header-stage-height);
  text-decoration: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.brand img {
  width: auto;
  height: var(--header-stage-height);
  max-width: none;
  object-fit: contain;
}

.primary-nav ul,
.footer-links,
.account-actions {
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-nav ul {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.primary-nav a,
.account-actions a {
  text-shadow: 0 0 3px #000, 0 0 6px #000;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.account-actions a:hover {
  color: var(--hes-gold);
}

.primary-nav .menu-item-has-children { position: relative; display: flex; align-items: center; }
.primary-nav .sub-toggle {
  display: none;
  flex: 0 0 24px;
  width: 24px;
  min-height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  cursor: pointer;
}
.primary-nav[data-service-nav-ready] .sub-toggle { display: inline-flex; }
.primary-nav .sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.primary-nav .sub-toggle:hover { color: var(--hes-gold); }
.primary-nav .sub-toggle:focus-visible { outline: 2px solid var(--hes-gold); outline-offset: -2px; }
.primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  max-width: calc(100vw - 32px);
  padding: 6px 0;
  margin: 0;
  gap: 0;
  align-items: stretch;
  flex-direction: column;
  background: rgba(14, 14, 14, .98);
  border: 1px solid #3a3a3a;
  border-top: 3px solid #c8202a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .55);
  z-index: 60;
}
.primary-nav .sub-menu a {
  display: flex;
  min-height: 44px;
  padding: 10px 16px;
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  white-space: normal;
  text-transform: none;
  font-size: 14px;
}
.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu a:focus-visible { background: #2a2a2a; color: #f2c230; }
.primary-nav .sub-open > .sub-menu { display: flex; }
@media (min-width: 1051px) {
  .primary-nav > ul { gap: 0 12px; }
  .primary-nav > ul > li > a { white-space: nowrap; }
  .primary-nav:not([data-service-nav-ready]) .menu-item-has-children:hover > .sub-menu,
  .primary-nav:not([data-service-nav-ready]) .menu-item-has-children:focus-within > .sub-menu { display: flex; }
}
@media (min-width: 1051px) and (max-width: 1279px) {
  .primary-nav > ul > li > a { font-size: 11px; }
  .primary-nav > ul { column-gap: 8px; }
  .primary-nav .sub-toggle { flex-basis: 20px; width: 20px; }
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.cart-link {
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 0 10px;
  border-radius: 6px;
}

.hub-signin-link {
  padding: 0 14px 0 8px;
  border-right: 1px solid var(--hes-border);
}

.cart-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.account-actions .cart-link {
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.header-account-menu { position: relative; }
.header-account-menu summary {
  min-height: 44px;
  padding: 12px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-transform: uppercase;
  cursor: pointer;
  list-style-position: inside;
}
.header-account-menu summary::marker { color: var(--hes-gold); }
.header-account-menu summary:hover,
.header-account-menu[open] summary { color: var(--hes-gold); }
.header-account-links {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  padding: 6px;
  margin: 0;
  list-style: none;
  background: #202020;
  border: 1px solid var(--hes-border);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.header-account-links a { width: 100%; padding: 10px 12px; }
.header-account-links a:hover { background: #303030; }
.header-inner a:focus-visible,
.header-account-menu summary:focus-visible {
  outline: 2px solid var(--hes-gold);
  outline-offset: 2px;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 7px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--hes-gold);
  color: #17120b;
  font-size: 11px;
  line-height: 1;
  text-shadow: none;
}

.cart-count:empty,
.cart-count[hidden] {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.site-main {
  background-color: var(--hes-black);
  background-image: linear-gradient(rgba(18, 18, 18, 0.84), rgba(18, 18, 18, 0.84)), var(--hes-logo-texture);
  background-size: auto, 360px 360px;
  color: #f3f3f3;
}

.section {
  padding: 70px 0;
  background-color: transparent;
}

.section-dark {
  background-color: rgba(12, 12, 12, 0.84);
  background-image: linear-gradient(rgba(12, 12, 12, 0.86), rgba(12, 12, 12, 0.86)), var(--hes-logo-texture);
  background-size: auto, 360px 360px;
  color: #fff;
}

.section-soft {
  background-color: rgba(31, 31, 31, 0.9);
  background-image: linear-gradient(rgba(31, 31, 31, 0.82), rgba(31, 31, 31, 0.82)), var(--hes-logo-texture);
  background-size: auto, 360px 360px;
}

.container {
  width: min(100% - 32px, var(--hes-width));
  margin: 0 auto;
}

.narrow {
  width: min(100% - 32px, 860px);
  margin: 0 auto;
}

.hero {
  min-height: 630px;
  color: #fff;
  display: grid;
  align-items: center;
  text-align: center;
  background-position: center;
  background-size: cover;
  position: relative;
  will-change: clip-path;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.17), rgba(0, 0, 0, 0.17));
}

.hero.equipment-hero {
  background-color: var(--hes-black);
  background-size: contain;
  background-repeat: no-repeat;
}

/* Reserve the shared photograph's origin before the dozer mounts. */
.home .hero::before {
  top: calc(-1 * var(--dozer-photo-offset, var(--header-stage-height)));
  clip-path: inset(var(--dozer-photo-offset, var(--header-stage-height)) 0 0);
}

.hero > .container {
  position: relative;
  z-index: 1;
  padding: 90px 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.78);
}

.hero h1 {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(42px, 6vw, 72px);
}

.hero h1.logo-title {
  font-family: "Rockwell Extra Bold", Rockwell, "Chunkfive", Georgia, serif;
  width: 100%;
  max-width: none;
  font-size: clamp(30px, 5.7vw, 72px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  color: #f8f1dc;
  -webkit-text-stroke: 2px rgba(0, 0, 0, 0.9);
  paint-order: stroke fill;
  text-shadow: none;
  overflow-wrap: normal;
  white-space: normal;
  text-wrap: balance;
}

.hero-title-letter {
  display: inline-block;
  position: relative;
  transform-origin: 50% 78%;
  will-change: transform;
}

.hero.is-dozer-debugging .hero-title-letter::after {
  content: attr(data-letter-source);
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  color: transparent;
  font: inherit;
  line-height: inherit;
  text-align: center;
  text-transform: inherit;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.2px rgba(0, 255, 130, 0.96);
  filter: drop-shadow(0 0 4px rgba(0, 255, 130, 0.78));
  paint-order: stroke fill;
  pointer-events: none;
}

.hero-title-word {
  display: inline-block;
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--hes-gold);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
}

.hero .eyebrow {
  display: flex;
  width: fit-content;
  margin: 0 auto 22px;
  padding: 7px 13px;
  border: 1px solid rgba(184, 128, 16, 0.82);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.66);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 222, 118, 0.22);
  color: #e0b03e;
  font-size: 15px;
  line-height: 1.1;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.95);
}

.hero .eyebrow a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
.display-title {
  font-family: "Chunkfive", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 7vw, 78px);
}

h2 {
  margin: 0 0 22px;
  font-size: clamp(34px, 5vw, 52px);
}

h3,
.section-title-compact {
  margin: 0 0 12px;
  font-size: 26px;
}

h4 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
}

li::marker {
  color: var(--hes-gold);
}

.lead {
  max-width: 780px;
  margin: 0 auto 28px;
  font-size: 21px;
}

.button-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.button,
.button-outline,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #review_form #respond .form-submit input {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid var(--hes-action);
  border-radius: 6px;
  background: var(--hes-action);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0;
  cursor: pointer;
}

.button,
.button-outline,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #review_form #respond .form-submit input,
.cart-link {
  background-color: var(--hes-action);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(67, 7, 6, 0.18));
  background-blend-mode: normal;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: inset 0 1px 0 rgba(255, 206, 206, 0.24), inset 0 0 0 1px rgba(70, 8, 7, 0.3), inset 0 -3px 0 rgba(67, 7, 6, 0.26), 0 10px 20px rgba(0, 0, 0, 0.18);
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.9), 0 0 7px rgba(0, 0, 0, 0.48);
}

.button:hover,
.button-outline:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #review_form #respond .form-submit input:hover,
.account-actions .cart-link:hover {
  background-color: var(--hes-action-hover);
  background-image: url("assets/images/gold-leaf-engine-turn-button-row-large.jpg");
  background-blend-mode: normal;
  background-position: center center;
  background-repeat: repeat-x;
  background-size: auto 112%;
  border-color: var(--hes-action-hover);
  color: #fff;
}

.button-outline {
  color: #fff;
}

.button-outline.dark {
  color: #fff;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.image-frame {
  overflow: hidden;
  border-radius: 6px;
  box-shadow: var(--hes-shadow);
  background: #111;
}

.image-frame img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.hes-carousel {
  width: 100%;
  position: relative;
  margin: 32px auto 38px;
  overflow: hidden;
  border: 1px solid var(--hes-border);
  border-radius: 6px;
  background: #080808;
  box-shadow: var(--hes-shadow);
}

.hes-carousel-viewport {
  position: relative;
  overflow: hidden;
}

.hes-carousel-track {
  display: flex;
  touch-action: pan-y pinch-zoom;
  transition: transform 280ms ease;
  will-change: transform;
}

.hes-carousel-slide {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 100%;
  aspect-ratio: 13 / 8;
  max-height: max(64px, calc(var(--hes-media-height) - var(--hes-carousel-chrome, 96px)));
  min-height: 0;
  margin: 0;
  background: #080808;
}

.hes-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hes-carousel-slide > picture, .hes-carousel-slide > img { display: block; flex: 1; min-height: 0; }

#water-tender .hes-carousel-slide img {
  object-fit: contain;
}

.hes-carousel-caption {
  flex: 0 0 auto;
  padding: 10px 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.82) 18%, rgba(0, 0, 0, 0.9));
  color: #fff;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
}

.hes-carousel-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 44px;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  transform: translateY(-50%);
  cursor: pointer;
}

.hes-carousel-control:hover,
.hes-carousel-control:focus-visible {
  background: var(--hes-action);
  border-color: var(--hes-action);
}

.hes-carousel-prev {
  left: 12px;
}

.hes-carousel-next {
  right: 12px;
}

.hes-carousel-dots {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-start;
  width: max-content;
  max-width: calc(100% - 24px);
  gap: 0;
  margin: 12px auto 14px;
  padding: 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.58);
}

.hes-carousel-dots button {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.hes-carousel-dots button::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.hes-carousel-dots button[aria-current="true"]::before {
  background: var(--hes-gold);
  border-color: var(--hes-gold);
}

.hes-carousel-dots button:focus-visible {
  outline: 2px solid var(--hes-gold);
  outline-offset: -2px;
}

.hes-carousel + h3 {
  margin-top: 36px;
}

.hes-carousel + h2 {
  margin-top: 42px;
}

.service-grid,
.card-grid,
.equipment-grid,
.form-grid,
.gallery-grid {
  display: grid;
  gap: 24px;
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.equipment-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card,
.content-card,
.equipment-card,
.form-link,
.notice {
  background: var(--hes-black);
  border: 1px solid var(--hes-border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: none;
  color: #f3f3f3;
}

.service-card img,
.equipment-card img,
.content-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.equipment-card img { object-fit: contain; background: var(--hes-black); }
.service-card img.service-image-contained { object-fit: contain; background: var(--hes-black); }

.card-body {
  padding: 24px;
}

.content-card h2:not(.section-title-compact) {
  margin-top: 0;
  font-size: 28px;
}

.checked-list,
.plain-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.checked-list li,
.plain-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
}

.checked-list li::before,
.plain-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 12px;
  height: 12px;
  border: 2px solid #d7a838;
  border-radius: 3px;
  background-color: var(--hes-gold);
  background-image: linear-gradient(145deg, rgba(255, 246, 174, 0.7), rgba(184, 128, 16, 0.95) 48%, rgba(92, 52, 3, 0.42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(70, 38, 3, 0.32), 0 2px 5px rgba(0, 0, 0, 0.28);
  transform: translateY(-50%);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--hes-border);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 32px;
}

.stat-strip div {
  background: var(--hes-soft);
  padding: 22px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
}

.contact-panel > * {
  min-width: 0;
}

.contact-details {
  background: var(--hes-soft);
  color: #fff;
  padding: 30px;
  border-radius: 6px;
  border: 1px solid var(--hes-border);
}

.contact-details a {
  color: #fff;
  overflow-wrap: anywhere;
}

.hes-form {
  display: grid;
  gap: 16px;
}

.hes-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.hes-form input,
.hes-form select,
.hes-form textarea {
  width: 100%;
  border: 1px solid #c9c3b6;
  border-radius: 6px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: #161616;
}

.hes-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #4a3420 50%),
    linear-gradient(135deg, #4a3420 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.hes-form textarea {
  min-height: 140px;
  resize: vertical;
}

.quote-wizard {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(184, 128, 16, 0.55);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.quote-wizard legend {
  padding: 0 8px;
  color: var(--hes-gold);
  font-family: "Chunkfive", Georgia, serif;
  font-size: 24px;
}

.quote-fields {
  display: grid;
  gap: 14px;
}

.quote-fields[hidden] {
  display: none;
}

.hes-form .hidden-field {
  position: absolute;
  left: -9999px;
}

.form-note {
  color: var(--hes-muted);
  font-size: 13px;
}

.notice {
  padding: 16px 18px;
  margin-bottom: 18px;
}

.notice-success {
  color: #161616;
  border-color: #9ac6a1;
  background: #edf8ef;
}

.notice-error {
  color: #161616;
  border-color: #d9a0a0;
  background: #fff2f2;
}

#hes-form-notice {
  scroll-margin-top: 276px;
}

#hes-form-notice:focus {
  outline: 2px solid var(--hes-gold);
  outline-offset: 3px;
}

.shop-setup-panel {
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid rgba(184, 128, 16, 0.58);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  color: #f5f2ec;
}

.shop-setup-panel h2,
.shop-setup-panel p {
  margin-top: 0;
}

.product-meta {
  color: var(--hes-muted);
  font-size: 14px;
}

.product-detail-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
  color: #f6efe2;
  font-size: 14px;
}

.product-detail-list li {
  padding: 10px 12px;
  border: 1px solid rgba(184, 128, 16, 0.48);
  border-radius: 6px;
  background: rgba(35, 28, 20, 0.72);
}

.preview-cart,
.checkout-preview-grid {
  display: grid;
  gap: 22px;
}

.checkout-preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preview-cart-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--hes-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.preview-cart-table th,
.preview-cart-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--hes-border);
  text-align: left;
}

.preview-cart-table th {
  color: var(--hes-gold);
  text-transform: uppercase;
  font-size: 12px;
}

.preview-cart-table tr:last-child td {
  border-bottom: 0;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  text-decoration: none;
  font-weight: 800;
}

.form-link:hover {
  border-color: var(--hes-gold);
  transform: translateY(-1px);
}

.form-link span {
  color: var(--hes-muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-item {
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 180ms ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item.project-photo-full img { object-fit: contain; }
.gallery-item.project-photo-full:hover img,
.project-photo-grid .project-photo:hover img { transform: none; }

.equipment-card img.equipment-image-full {
  object-fit: contain;
}

.field-project,
#water-tender {
  scroll-margin-top: 180px;
}

.field-project {
  border-top: 1px solid var(--hes-border);
}

.field-project-summary {
  max-width: 780px;
}

.project-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.project-photo {
  min-width: 0;
  margin: 0;
}

.project-photo-open {
  display: block;
  width: 100%;
}

.project-photo-open img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.project-photo-open:hover img {
  transform: none;
}

.project-photo figcaption {
  padding-top: 12px;
}

.project-photo figcaption strong {
  display: block;
  color: var(--hes-gold);
}

.project-action {
  max-width: 720px;
}

@media (max-width: 720px) {
  .field-project,
  #water-tender {
    scroll-margin-top: 220px;
  }

  .project-comparison {
    grid-template-columns: 1fr;
  }
}

.video-wrap {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--hes-shadow);
}

.video-wrap video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--hes-media-height);
  object-fit: contain;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
}

dialog.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox.is-open,
.lightbox[open] {
  display: flex;
}

.lightbox img {
  width: 100%;
  height: calc(100vh - 80px);
  height: calc(100dvh - 80px);
  max-width: 100%;
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: var(--hes-shadow);
}

.lightbox button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.map-band {
  min-height: 260px;
  display: grid;
  place-items: center;
  background: linear-gradient(rgba(22, 22, 22, 0.55), rgba(22, 22, 22, 0.55)), url("assets/images/97c23f5c-ca8f-4fdb-a1bb-012a1e1291a1.png") center/cover;
}

.site-footer {
  background: var(--hes-black);
  color: #fff;
  padding: 34px 0;
}

.footer-inner {
  width: min(100% - 32px, var(--hes-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.footer-links a,
.social-link {
  color: #fff;
  text-decoration: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 4px;
  text-align: center;
}

.footer-links a:focus-visible,
.social-link:focus-visible {
  outline: 2px solid var(--hes-gold);
  outline-offset: 3px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  max-width: 840px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  margin: 0 auto;
  display: none;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-radius: 6px;
  background: #6f6f6f;
  color: #fff;
  box-shadow: var(--hes-shadow);
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner button {
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--hes-black);
  min-height: 44px;
  flex-shrink: 0;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 720px), (max-width: 920px) and (max-height: 520px) {
  .cookie-banner {
    gap: 12px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.5;
  }
}

.policy-content p a {
  box-sizing: border-box;
  display: inline-block;
  min-height: 44px;
  max-width: 100%;
  padding-block: 8px;
  overflow-wrap: anywhere;
  vertical-align: middle;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-content p a:focus-visible {
  outline: 2px solid #e0bd62;
  outline-offset: 2px;
}

.entry-content {
  width: min(100% - 32px, 860px);
  margin: 0 auto;
  padding: 70px 0;
  color: #f3f3f3;
}

.woocommerce .site-main {
  padding: 60px 0;
}

.woocommerce-container {
  width: min(100% - 32px, var(--hes-width));
  margin: 0 auto;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  border: 1px solid var(--hes-border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--hes-panel);
  box-shadow: var(--hes-shadow);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button {
  margin-left: 16px;
  margin-right: 16px;
}

.woocommerce ul.products li.product .button {
  margin-bottom: 18px;
}

.woocommerce div.product,
.woocommerce-cart-form,
.woocommerce-checkout,
.woocommerce-account .woocommerce {
  color: #f3f3f3;
}

.woocommerce div.product .product_title {
  font-size: 36px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.woocommerce div.product .woocommerce-tabs h2 {
  font-size: 28px;
}

.woocommerce div.product .product_meta > span {
  display: block;
}

@media (max-width: 600px) {
  .woocommerce div.product .product_title {
    font-size: 28px;
  }
}

.woocommerce table.shop_table,
.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register {
  border-color: var(--hes-border);
  border-radius: 6px;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: var(--hes-border);
}

.woocommerce-account .woocommerce form .form-row input.input-text,
.woocommerce-account .woocommerce form .form-row textarea,
.woocommerce-account .woocommerce form .form-row select:not(.select2-hidden-accessible) {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px;
  color: #f5f5f5;
  background: #252525;
  border: 1px solid #8e8e8e;
  border-radius: 3px;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}
.woocommerce-account .woocommerce form .password-input input.input-text {
  padding-right: 54px;
}
.woocommerce-account .woocommerce form .show-password-input {
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  right: 0;
  width: 44px;
  height: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0;
  transform: none;
  color: #f5f5f5;
}
.woocommerce-account .woocommerce form .show-password-input::before {
  filter: brightness(0) invert(1);
}
.woocommerce-account .woocommerce .woocommerce-form-login__rememberme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.woocommerce-account .woocommerce .woocommerce-form-login__rememberme input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
}
.woocommerce-account .woocommerce .lost_password a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
}
.woocommerce-account .select2-container .select2-selection--single {
  min-height: 44px;
  height: auto;
  color: #f5f5f5;
  background: #252525;
  border-color: #8e8e8e;
  font-size: 16px;
}
.woocommerce-account .select2-container .select2-selection--single .select2-selection__rendered {
  color: inherit;
  line-height: 42px;
}
.woocommerce-account .select2-container .select2-selection--single .select2-selection__arrow {
  height: 42px;
}
.woocommerce-account .select2-dropdown {
  color: #252525;
}
.woocommerce-account .select2-search--dropdown .select2-search__field {
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px;
  color: #252525;
  background: #fff;
  font-size: 16px;
}
.woocommerce-account .select2-results__option {
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px;
}
.woocommerce-account .woocommerce input.input-text:focus-visible,
.woocommerce-account .woocommerce textarea:focus-visible,
.woocommerce-account .woocommerce select:focus-visible,
.woocommerce-account .woocommerce .show-password-input:focus-visible,
.woocommerce-account .woocommerce .lost_password a:focus-visible,
.woocommerce-account .select2-selection:focus-visible,
.woocommerce-account .select2-search__field:focus-visible,
.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible {
  outline: 2px solid #e0bd62;
  outline-offset: 2px;
}

@media (min-width: 1051px) {
  .hero h1.logo-title {
    font-size: 72px;
    white-space: nowrap;
  }
}

@media (min-width: 1051px) and (max-width: 1279px) {
  .hero h1.logo-title { font-size: 58px; }
  .primary-nav > ul { gap: 4px 8px; }
}

@media (max-width: 1050px) {
  body.nav-open .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--hes-black);
  }

  body.admin-bar.nav-open .site-header {
    top: var(--wp-admin--admin-bar--height, 46px);
    max-height: calc(100vh - var(--wp-admin--admin-bar--height, 46px));
    max-height: calc(100dvh - var(--wp-admin--admin-bar--height, 46px));
  }

  body.nav-open .nav-toggle {
    position: sticky;
    top: 12px;
    z-index: 2;
    background: var(--hes-black);
  }

  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) 44px;
    grid-template-rows: var(--header-stage-height);
    width: calc(100% - 20px);
    gap: 0 12px;
  }

  .brand {
    grid-row: 1;
  }

  .header-contact {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    gap: 0 20px;
    padding-top: 8px;
    justify-content: center;
  }

  .header-inner > .nav-toggle {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    margin-top: 8px;
  }

  .header-inner > .primary-nav,
  .header-inner > .account-actions {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .hero h1.logo-title {
    font-size: clamp(32px, 5.6vw, 58px);
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: manual;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .primary-nav,
  .account-actions {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
  }

  body.nav-open .primary-nav,
  body.nav-open .account-actions {
    display: grid;
  }

  body.nav-open .account-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 46px;
    align-items: start;
    gap: 8px;
    border-top: 1px solid var(--hes-border);
  }

  .account-actions > li > a,
  .header-account-menu summary { width: 100%; }
  .header-account-menu summary { min-height: 46px; padding: 13px 8px; text-align: center; }
  .header-account-links { position: static; min-width: 0; box-shadow: none; }
  .account-actions .hub-signin-link { border: 0; }

  .primary-nav ul,
  .account-actions {
    padding: 18px 0;
    align-items: stretch;
    flex-direction: column;
  }

  .primary-nav a,
  .account-actions a {
    justify-content: center;
    min-height: 46px;
    padding: 8px 10px;
    font-size: 14px;
    white-space: normal;
    text-align: center;
  }

  .primary-nav > ul { gap: 0; }
  .primary-nav > ul > li > a { justify-content: flex-start; text-align: left; }
  .primary-nav .menu-item-has-children { flex-wrap: wrap; }
  .primary-nav .menu-item-has-children > a { flex: 1; }
  .primary-nav .sub-toggle { flex: 0 0 48px; width: 48px; min-height: 48px; }
  .primary-nav .sub-menu {
    position: static;
    flex: 0 0 100%;
    min-width: 0;
    max-width: 100%;
    padding: 6px 0;
    border-top: 0;
    border-left: 3px solid #c8202a;
    box-shadow: none;
  }
  .primary-nav:not([data-service-nav-ready]) .sub-menu { display: flex; }

  .split,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hes-carousel-slide {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .hes-carousel-control {
    width: 44px;
    height: 46px;
    font-size: 36px;
  }

  .card-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .checkout-preview-grid {
    grid-template-columns: 1fr;
  }

  .preview-cart-table th,
  .preview-cart-table td {
    padding: 11px 10px;
    font-size: 13px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-stage-height: 168px;
  }

  .header-inner {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: 88px 80px;
    width: calc(100% - 16px);
  }

  .header-contact {
    grid-column: 2;
    grid-row: 1;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0;
    padding: 0 44px 0 0;
    font-size: 12px;
    line-height: 1.4;
  }

  .header-email {
    flex: 0 0 44px;
    width: 44px;
  }

  .header-email .header-contact-icon { display: block; }
  .header-email .header-contact-label { display: none; }

  .header-inner > .nav-toggle {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    margin: 0;
    background: var(--header-surface-color);
  }

  .header-contact a:first-child {
    margin-right: 0;
    white-space: nowrap;
  }

  .menu-dozer {
    --dozer-width: 174px;
    --dozer-height: 130px;
    bottom: -2px;
  }

  .brand {
    grid-row: 1 / 3;
    min-width: 0;
  }

  .section {
    padding: 46px 0;
  }

  .hero {
    min-height: 560px;
  }

  .hero > .container {
    padding: 60px 0;
  }

  h1 {
    font-size: 42px;
  }

  .hero h1.logo-title {
    width: min(100%, calc(100vw - 28px));
    font-size: clamp(28px, 9.2vw, 44px);
    line-height: 1.06;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: manual;
    text-wrap: balance;
  }

  h2 {
    font-size: 34px;
  }

  .lead {
    font-size: 18px;
  }

  .hero-title-word {
    max-width: 100%;
  }

  .service-grid,
  .card-grid,
  .equipment-grid,
  .form-grid,
  .gallery-grid,
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .button,
  .button-outline,
  .wp-block-button__link,
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button,
  .woocommerce #review_form #respond .form-submit input {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  input,
  select,
  textarea,
  button {
    font-size: 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 920px) and (max-height: 520px), (max-width: 720px) and (orientation: landscape) {
  .hero h1.logo-title {
    width: min(100%, calc(100vw - 48px));
    font-size: clamp(28px, 7.2vw, 40px);
  }
}

@media (max-width: 420px) {
  .hero h1.logo-title {
    font-size: clamp(26px, 8.7vw, 38px);
    -webkit-text-stroke-width: 1.5px;
  }
}

@media (max-width: 400px) {
  .header-inner { column-gap: 6px; }
  .header-phone { flex: 0 0 44px; width: 44px; }
  .header-phone .header-contact-icon { display: block; }
  .header-phone .header-contact-label { display: none; }
}

/* Customer inquiry paths; Home retains the full animation stage. */
.customer-paths { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.customer-paths .card-body { display: flex; flex-direction: column; align-items: flex-start; }
.customer-paths .card-body p { flex: 1; }
.contact-panel h2 { font-size: 32px; line-height: 1.25; }
.quote-optional { border-block: 1px solid var(--hes-border); padding: 0; }
.quote-optional summary { cursor: pointer; padding: 16px 0; min-height: 48px; font-weight: 700; }
.quote-optional[open] { padding-bottom: 18px; }
.quote-optional[open] summary { margin-bottom: 8px; }
.quote-optional summary:focus-visible { outline: 2px solid var(--hes-gold); outline-offset: 3px; }
.inquiry-context { border-left: 3px solid var(--hes-gold); padding: 4px 18px; overflow-wrap: anywhere; }
.inquiry-context p { margin: 0 0 6px; }
.hes-form .inquiry-context input[type="number"] { width: 110px; }
.inquiry-context a { display: inline-block; padding: 8px 0; }
#request-a-quote { scroll-margin-top: 220px; }
.service-section { scroll-margin-top: 155px; }
.service-section .image-frame img { width: 100%; height: 420px; object-fit: contain; }
.service-hero { min-height: 330px; padding: 64px 0; }
.service-hero > .container { padding: 0; }
.service-hero h1 { font-size: 44px; }
@media (max-width: 720px) {
  .service-section .image-frame img { height: 320px; }
  .service-hero { padding: 48px 0; }
  .service-hero h1 { font-size: 32px; }
}
body:not(.home) #request-a-quote { scroll-margin-top: 155px; }
.project-highlight { max-width: 1000px; margin-inline: auto; }
body:not(.home) .site-header { --header-stage-height: 110px; }
@media (min-width: 601px) {
  body.admin-bar:not(.home) .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
}
.mobile-lead-bar, .mobile-lead-space { display: none; }
/* Measurements include the sticky header and any visible bottom overlay. */
:root {
  --hes-media-header: 110px;
  --hes-media-bottom: 0px;
  --hes-media-height: max(96px, calc(100svh - var(--hes-media-header) - var(--hes-media-bottom) - 24px));
}
.hes-carousel, .hes-carousel-slide, .video-wrap { scroll-margin-top: calc(var(--hes-media-header) + 12px); }

.project-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; min-width: 0; }
.project-photo-grid[data-photo-count="1"] { grid-template-columns: minmax(0, 1fr); }
.project-photo-grid[data-photo-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-photo-grid .project-photo { width: 100%; border: 0; background: transparent; }
.project-photo-grid .project-photo img { width: 100%; height: min(360px, var(--hes-media-height)); object-fit: contain; }
.project-photo-grid[data-photo-count="1"] .project-photo img { height: min(420px, var(--hes-media-height)); }
.content-card > .project-photo-grid { margin: 0; }
.content-card > .project-photo-grid .project-photo img { height: 260px; }
.hes-carousel-card { margin: 0; border: 0; border-radius: 0; }
.hes-carousel-card .hes-carousel-slide { aspect-ratio: auto; height: 260px; }
.hes-carousel-card .hes-carousel-slide img { height: 100%; object-fit: contain; }
@media (max-width: 1050px) {
  .project-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .project-photo-grid, .project-photo-grid[data-photo-count="2"] { grid-template-columns: minmax(0, 1fr); }
  .project-photo-grid .project-photo img, .project-photo-grid[data-photo-count="1"] .project-photo img { height: min(320px, var(--hes-media-height)); }
}
@media (max-width: 1050px) {
  body:not(.home) .header-contact { align-self: center; padding-top: 0; }
  .customer-paths { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  :root { --hes-media-header: 100px; --hes-media-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  body:not(.home) .site-header { --header-stage-height: 100px; }
  body:not(.home) .header-inner { grid-template-rows: 100px; }
  body:not(.home) .brand { grid-row: 1; }
  body:not(.home) .header-contact { align-self: center; }
  .customer-paths { grid-template-columns: 1fr; }
  .mobile-lead-space { display: block; height: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .mobile-lead-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; position: fixed; z-index: 45; inset: auto 0 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: #161616; border-top: 1px solid var(--hes-gold); }
  .mobile-lead-bar a { padding: 10px 8px; min-height: 48px; margin: 0; font-size: 14px; text-align: center; }
  body.nav-open .mobile-lead-bar,
  body:has(.cookie-banner.is-visible) .mobile-lead-bar,
  body:has(dialog[open]) .mobile-lead-bar,
  body:has(.pswp--open) .mobile-lead-bar,
  body:has(input:focus, textarea:focus, select:focus) .mobile-lead-bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dozer-rig-rocks:not(.is-review-playing) {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
