/* Home page styles (hero, slider, channel partner band, sections) */
body.ecs-home-page .hero.ecs-hero-full .eyebrow,
body.ecs-home-page .hero.ecs-hero-full .ecs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--orange);
  font-weight: 600;
  font-size: var(--ecs-hero-intro-size);
  line-height: 1.65;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
body.ecs-home-page .hero.ecs-hero-full .eyebrow::before,
body.ecs-home-page .hero.ecs-hero-full .ecs-eyebrow::before {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--orange);
  flex-shrink: 0;
}

body.ecs-home-page .hero.ecs-hero-full .ecs-hero-title {
  font-size: clamp(34px, min(5.2vw, 8.5vh), 72px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.ecs-home-page .hero.ecs-hero-full .ecs-hero-lead {
  font-size: var(--ecs-hero-intro-size);
}

body.ecs-home-page .hero.ecs-hero-full::before {
  display: none !important;
}

.ecs-hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  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: 60px 60px;
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}

body.ecs-home-page .hero.ecs-hero-full {
  --ecs-hero-intro-size: clamp(16px, 2.3vh, 18px);
  background-color: #0b1b33;
}

/* Kill theme ::before overlays that sit above slides */
body.ecs-home-page .hero.ecs-hero-full::before,
body.ecs-home-page .hero.ecs-hero::before,
.ecs-site .hero.ecs-hero-full::before {
  display: none !important;
  content: none !important;
  background: none !important;
}

.hero-slide.slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
  background-color: #0b1b33;
  /* Lighter wash so slides feel brighter; crop via --pos */
  background-image:
    linear-gradient(90deg, rgba(11, 27, 51, 0.45) 0%, rgba(11, 27, 51, 0.18) 32%, rgba(11, 27, 51, 0.04) 58%, transparent 80%),
    var(--img);
  background-position: 0 0, var(--pos, 78% 40%);
  background-size: 100% 100%, var(--size, cover);
  background-repeat: no-repeat, no-repeat;
  filter: brightness(1.04) contrast(1.03) saturate(1.06);
}
.hero-slide.slide.active {
  opacity: 1;
  z-index: 1;
}

body.ecs-home-page .hero.ecs-hero-full .stats.ecs-hero-stats {
  margin-top: 0;
  padding: 28px 24px 64px;
  background: linear-gradient(0deg, rgba(11, 27, 51, 0.9), rgba(11, 27, 51, 0)) !important;
}

body.ecs-home-page .hero.ecs-hero-full .stats.ecs-hero-stats b {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

body.ecs-home-page .hero.ecs-hero-full .hero-inner,
body.ecs-home-page .hero.ecs-hero-full .ecs-hero-inner,
body.ecs-home-page .hero.ecs-hero-full .stats.ecs-hero-stats,
body.ecs-home-page .hero.ecs-hero-full .hero-dots {
  position: relative;
  z-index: 3;
}

.hero-dots.dots {
  position: absolute;
  left: max(24px, calc((100% - 1200px) / 2 + 24px));
  bottom: calc(28px + env(safe-area-inset-bottom));
  display: flex;
  gap: 8px;
  z-index: 3;
  padding: 0;
  border: 0;
  margin: 0;
}
.hero-dots.dots button {
  width: 24px;
  height: 4px;
  border: 0;
  border-radius: 2px;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.hero-dots.dots button.on {
  width: 44px;
  background: var(--orange);
}

body.ecs-home-page .ecs-hero .btn,
body.ecs-home-page .ecs-cta-block .btn {
  border-radius: 999px;
  padding: 16px 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  line-height: 1.2;
  text-transform: none !important;
}

body.ecs-home-page .ecs-hero .btn-primary.btn-default::before {
  display: none !important;
}
body.ecs-home-page .ecs-hero .btn-primary.btn-default::after {
  content: "→";
  display: inline !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  background: none !important;
  transform: none !important;
  margin-left: 2px;
  transition: transform 0.2s ease;
}
body.ecs-home-page .ecs-hero .btn-primary.btn-default:hover::after {
  transform: translateX(4px);
  background: none !important;
}

body.ecs-home-page .ecs-hero .btn-ghost,
body.ecs-home-page .ecs-hero .ecs-outline {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 2px solid rgba(255, 255, 255, 0.85) !important;
  color: #fff !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.ecs-home-page .ecs-hero .btn-ghost:hover,
body.ecs-home-page .ecs-hero .ecs-outline:hover {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: #fff !important;
}

.header-btn .btn-default.ecs-header-cta {
  border-radius: 999px !important;
  text-transform: none !important;
}

/* Language switcher: icon/label gap + readable menu (theme .main-menu ul a is white) */
.ecs-header-actions .lang-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 10px !important;
  color: #fff;
}

.ecs-header-actions .lang-btn:hover,
.ecs-header-actions .lang.open .lang-btn {
  color: var(--orange);
}

.ecs-header-actions .lang-btn svg {
  flex: none;
  margin: 0 !important;
}

.ecs-header-actions .lang-btn #langCur,
.ecs-header-actions .lang-btn span {
  margin: 0;
  padding: 0;
  line-height: 1;
}

.ecs-header-actions .lang-menu {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  right: 0 !important;
  left: auto !important;
  width: auto !important;
  min-width: 160px !important;
  margin: 0 !important;
  padding: 8px !important;
  list-style: none !important;
  background: #fff !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 30px rgba(11, 27, 51, 0.25) !important;
  transform: none !important;
  z-index: 300 !important;
  text-align: left !important;
}

.ecs-header-actions .lang-menu li {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.ecs-header-actions .lang-menu a,
.main-menu .ecs-header-actions .lang-menu a {
  display: block !important;
  padding: 10px 14px !important;
  color: #0b1b33 !important;
  background: transparent !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-transform: none !important;
  border-radius: 6px !important;
  text-decoration: none !important;
}

.ecs-header-actions .lang-menu a:hover,
.ecs-header-actions .lang-menu a:focus,
.main-menu .ecs-header-actions .lang-menu a:hover,
.main-menu .ecs-header-actions .lang-menu a:focus {
  color: var(--orange) !important;
  background: #f2f5fa !important;
  padding: 10px 14px !important;
}

body.ecs-site h1,
body.ecs-site h2,
body.ecs-site h3 {
  letter-spacing: -0.01em;
}

body.ecs-home-page header.main-header .navbar-brand {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.ecs-home-page header.main-header .ecs-logo-header {
  height: 46px;
  width: auto;
  max-width: min(210px, 46vw);
  background: #fff !important;
  border-radius: 10px !important;
  padding: 6px 10px !important;
  box-sizing: content-box;
  object-fit: contain;
  filter: none !important;
}

.section-dark {
  background: var(--navy) !important;
  color: #fff;
}
.section-dark .section-title .section-sub-title {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.section-dark .section-title h2,
.section-dark h2,
.section-dark h3 {
  color: #fff !important;
}
.section-dark p,
.section-dark .ecs-section-intro {
  color: rgba(255, 255, 255, 0.75);
}
.section-dark .why-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}
.section-dark .why-card h3 {
  color: #fff !important;
}
.section-dark .why-card p {
  color: rgba(255, 255, 255, 0.78);
}
.section-dark .why-card i {
  color: var(--orange);
}

/* CTA styles live in ecs-cta-footer.css */

.ecs-about-headline {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.15;
  color: var(--primary-color) !important;
  margin: 0 0 16px;
  opacity: 1 !important;
  visibility: visible !important;
}

.ecs-footer .ecs-logo-footer {
  height: 52px;
  width: auto;
  max-width: 240px;
  background: #fff !important;
  border-radius: 12px !important;
  padding: 8px 12px !important;
  box-sizing: content-box;
  object-fit: contain;
  filter: none !important;
  display: block;
}

.ecs-solution-has-media {
  padding: 0 !important;
  overflow: hidden;
}
.ecs-solution-media {
  height: 140px;
  overflow: hidden;
}
.ecs-solution-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.ecs-solution-has-media:hover .ecs-solution-media img {
  transform: scale(1.05);
}
.ecs-solution-body {
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
  align-items: flex-start;
}
.ecs-solution-has-media .ecs-solution-body i {
  margin-bottom: 12px;
  text-align: center;
  width: 32px;
}
.ecs-solution-has-media .ecs-solution-body h3,
.ecs-solution-has-media .ecs-solution-body p,
.ecs-solution-has-media .ecs-card-arrow {
  text-transform: none !important;
  text-align: left;
  width: 100%;
}
.ecs-solution-has-media .ecs-solution-body h3 {
  color: var(--primary-color) !important;
  font-size: 19px;
  margin: 0 0 8px;
}
.ecs-solution-has-media .ecs-solution-body p {
  color: var(--text-color) !important;
  margin: 0 0 12px;
}
.ecs-solution-has-media:hover .ecs-solution-body h3,
.ecs-solution-has-media:hover .ecs-solution-body p {
  color: var(--primary-color) !important;
}
.ecs-solution-has-media:hover .ecs-solution-body p {
  color: var(--text-color) !important;
}

.ecs-section[id] {
  scroll-margin-top: 100px;
}

@media (max-width: 768px) {
  .hero-dots.dots {
    left: 24px;
    bottom: 120px;
  }

  .hero-slide.slide {
    background-position: 0 0, var(--pos, 72% 40%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.slide {
    transition: none;
  }
}

/* Short-window hero: scale with height, no header seam, readable stats */
body.ecs-home-page .hero.ecs-hero.ecs-hero-full {
  height: auto !important;
  min-height: 100svh !important;
  padding-top: 120px !important;
  padding-bottom: 0 !important;
  overflow: hidden;
}

body.ecs-home-page .hero.ecs-hero-full .hero-inner,
body.ecs-home-page .hero.ecs-hero-full .ecs-hero-inner {
  padding-bottom: 48px;
  flex: 1 1 auto;
}

body.ecs-home-page header.header.main-header.ecs-unified-header,
body.ecs-home-page header.header.main-header.active-sticky-header,
body.ecs-home-page header.header.main-header .header-sticky,
body.ecs-home-page header.header.main-header .header-sticky.active,
body.ecs-home-page header.header.main-header .header-sticky.hide,
body.ecs-home-page header.header.main-header .navbar {
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-bottom: none !important;
  border-top: none !important;
}

body.ecs-home-page header.header.main-header.active-sticky-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 55;
}

body.ecs-home-page header.header.main-header.scrolled,
body.ecs-home-page header.header.main-header.scrolled .header-sticky,
body.ecs-home-page header.header.main-header.scrolled .navbar {
  background: rgba(11, 27, 51, 0.94) !important;
  background-color: rgba(11, 27, 51, 0.94) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25) !important;
}

body.ecs-home-page .hero.ecs-hero-full::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 180px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 27, 51, 0.85), transparent);
}

body.ecs-home-page {
  padding-top: 0 !important;
}

/* Veolia exclusive channel partner band (sits over all hero slides) */
body.ecs-home-page .hero.ecs-hero-full .ecs-channel {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 72px;
  box-sizing: border-box;
}
body.ecs-home-page .hero.ecs-hero-full::before {
  display: none !important;
}
.hero.ecs-hero-full .ecs-channel::before {
  content: "";
  position: absolute;
  inset: -40px -100vw 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(11, 27, 51, 0.94) 0%, rgba(11, 27, 51, 0.82) 70%, rgba(11, 27, 51, 0));
}
.ecs-channel-main {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-bottom: 24px;
}
.ecs-channel-logo {
  flex: none;
  display: flex;
  align-items: center;
  padding-right: 36px;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  min-height: 120px;
}
.ecs-channel-logo img {
  width: clamp(260px, 25vw, 400px);
  height: auto;
  display: block;
}
.ecs-channel-copy h2 {
  color: #fff !important;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  margin: 10px 0 6px;
}
.ecs-channel-copy p {
  color: #e8eef7 !important;
  font-size: 17px;
  margin: 0 0 16px;
}
.ecs-channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 4px;
  background: rgba(255, 106, 26, 0.16);
  border: 1px solid rgba(255, 106, 26, 0.55);
  color: #ffb27f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ecs-channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 8px;
  background: var(--orange);
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none !important;
  transition: transform 0.2s ease, background 0.2s ease;
}
.ecs-channel-btn:hover {
  transform: translateY(-2px);
  background: #e85d12;
}
.ecs-channel-caps {
  list-style: none;
  margin: 0;
  padding: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.ecs-channel-caps li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 4px 12px;
}
.ecs-channel-caps li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}
.ecs-channel-caps i {
  font-size: 22px;
  color: var(--orange);
}

/* Right-side value points */
.ecs-hero-points {
  position: absolute;
  z-index: 3;
  top: 150px;
  right: 0;
  margin: 0;
  padding: 12px 24px 12px 18px;
  list-style: none;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(90deg, rgba(11, 27, 51, 0.55), rgba(11, 27, 51, 0.15));
}
.ecs-hero-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.ecs-hero-points i {
  width: 22px;
  text-align: center;
  font-size: 18px;
  color: var(--orange);
}

[dir="rtl"] .ecs-channel-logo {
  padding-right: 0;
  padding-left: 36px;
  border-right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}
[dir="rtl"] .ecs-channel-caps li + li {
  border-left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}
[dir="rtl"] .ecs-channel-btn .fa-arrow-right {
  transform: scaleX(-1);
}
[dir="rtl"] .ecs-hero-points {
  right: auto;
  left: 0;
  border-left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

body.ecs-home-page .hero.ecs-hero-full .hero-dots.dots {
  bottom: calc(24px + env(safe-area-inset-bottom));
}

@media (max-width: 1279px) {
  .ecs-hero-points {
    display: none;
  }
}
@media (max-width: 991px) {
  .ecs-channel-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .ecs-channel-logo,
  [dir="rtl"] .ecs-channel-logo {
    border: 0;
    padding: 0;
    min-height: 0;
  }
  .ecs-channel-caps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 14px;
  }
  .ecs-channel-caps li {
    justify-content: flex-start;
    font-size: 14px;
    padding: 0;
  }
  .ecs-channel-caps li + li,
  [dir="rtl"] .ecs-channel-caps li + li {
    border: 0;
  }
}

/* Hero colour & scale refinement: one accent (primary CTA), white headline */
body.ecs-home-page .hero.ecs-hero-full .ecs-hero-title {
  font-size: clamp(28px, min(3.2vw, 5.5vh), 44px);
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 24px rgba(11, 27, 51, 0.45);
}
body.ecs-home-page .hero.ecs-hero-full .ecs-hero-title .l3 {
  color: #fff;
}
body.ecs-home-page .hero.ecs-hero-full .ecs-hero-lead {
  text-shadow: 0 1px 12px rgba(11, 27, 51, 0.6);
}
body.ecs-home-page .hero.ecs-hero-full .eyebrow,
body.ecs-home-page .hero.ecs-hero-full .ecs-eyebrow {
  color: #fff;
  letter-spacing: 0.14em;
  opacity: 0.92;
}
.ecs-channel-badge {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.ecs-channel-btn {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  padding: 9px 18px;
}
.ecs-channel-btn:hover {
  background: #fff;
  color: var(--navy) !important;
  border-color: #fff;
}
.ecs-channel-caps i,
.ecs-hero-points i {
  color: #cfdbec;
}
.hero-dots.dots button:focus,
.hero-dots.dots button:focus-visible {
  outline: none;
}
.hero-dots.dots button:focus-visible {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}
.hero-dots.dots button.on:focus-visible {
  background: var(--orange);
}
