/* Industries section + shared section eyebrow */
html.ecs-root,
html.ecs-root body.ecs-site {
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.ecs-site .ecs-section .eyebrow:not(.ecs-eyebrow) {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--orange);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
}

.ecs-site .ecs-section .eyebrow:not(.ecs-eyebrow)::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--orange);
  flex-shrink: 0;
}

.ecs-industries .sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}

.ecs-industries .sec-head h2 {
  margin: 12px 0 10px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  color: var(--primary-color);
  font-weight: 700;
}

.ecs-industries .sec-head p {
  margin: 0;
  color: #4a5568;
  font-size: 18px;
  max-width: none;
  line-height: 1.5;
  text-wrap: balance;
}

.ecs-industries .link-arrow {
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 4px;
  margin-bottom: 6px;
  white-space: nowrap;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.ecs-industries .link-arrow:hover {
  color: var(--orange);
}

.ecs-industries .ind-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  color: #fff !important;
  text-decoration: none !important;
  isolation: isolate;
  min-height: 0;
  cursor: pointer;
  background: linear-gradient(160deg, #16305a, #0b1b33);
}

.ecs-industries .ind-card::after {
  content: "→";
  position: absolute;
  left: auto;
  right: 20px;
  top: 20px;
  bottom: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  z-index: 3;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.ecs-industries .ind-card:hover::after,
.ecs-industries .ind-card:focus-visible::after {
  opacity: 1;
  transform: none;
}

.ecs-industries .ind-card picture {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ecs-industries .ind-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  z-index: 0;
  filter: brightness(1.15) saturate(1.05);
  transition: transform 0.6s ease, filter 0.4s ease;
}

.ecs-industries .ind-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11, 27, 51, 0) 30%, rgba(11, 27, 51, 0.92) 100%),
    rgba(11, 50, 100, 0.12);
  transition: background 0.3s ease;
  pointer-events: none;
}

.ecs-industries .ind-card:hover img {
  transform: scale(1.07);
  filter: brightness(1.3) saturate(1.1);
}

.ecs-industries .ind-card:hover::before {
  background:
    linear-gradient(180deg, rgba(11, 27, 51, 0) 18%, rgba(11, 27, 51, 0.88) 100%),
    rgba(11, 50, 100, 0.04);
}

.ecs-industries .ind-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px;
  z-index: 2;
}

.ecs-industries .ind-body h3 {
  margin: 0 0 6px;
  font-size: 22px;
  color: #fff;
}

.ecs-industries .ind-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: 90%;
  text-transform: none !important;
}

.ecs-industries .ind-card:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .ecs-industries .sec-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecs-industries .ind-card img,
  .ecs-industries .ind-card::after {
    transition: none;
  }
}

/* Page edge frame fix */
html.ecs-root,
html.ecs-root body.ecs-site {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  border-radius: 0;
  box-shadow: none;
}

html.ecs-root {
  overflow-x: auto;
}

html.ecs-root body.ecs-site {
  overflow-x: visible;
}

html.ecs-root body.ecs-site {
  background: #fff;
}

body.ecs-site > * {
  border-left: 0 !important;
  border-right: 0 !important;
}

/* Arrow badge: override legacy .ind-card::after { inset: 0 } from ecs.css */
.ecs-industries .ind-card::after,
.ecs-industries .ind-arrow {
  left: auto !important;
  right: 20px !important;
  top: 20px !important;
  bottom: auto !important;
}

/* Water & Wastewater photo runs darker than the set */
.ecs-ind-grid > div:nth-child(2) .ind-card img {
  filter: brightness(1.6) contrast(1.05) saturate(1.1);
}

.ecs-ind-grid > div:nth-child(2) .ind-card:hover img {
  filter: brightness(1.75) contrast(1.05) saturate(1.15);
}
