:root {
  --bg-ice: #f0f4ff;
  --bg-soft: #ffffff;
  --ink: #0d1526;
  --ink-muted: #48556a;
  --blue: #3b82f6;
  --blue-deep: #1e40af;
  --blue-soft: #dbeafe;
  --line: #d7e1f2;
  --whatsapp: #22c55e;
  --shadow: 0 24px 70px rgba(13, 21, 38, 0.14);
  --radius: 8px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg-ice);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1000;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--blue-deep);
  border-radius: var(--radius);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(215, 225, 242, 0.85);
  backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 40px rgba(13, 21, 38, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand img {
  width: 190px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 10px 14px;
  color: #21304a;
  font-weight: 700;
  border-radius: var(--radius);
  transition: color 180ms ease, background 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--blue-deep);
  background: var(--blue-soft);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--bg-ice);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.section {
  padding: 96px 0;
  scroll-margin-top: 92px;
}

.section-white {
  background: var(--bg-soft);
}

.section-dark {
  color: #ffffff;
  background: var(--ink);
}

.eyebrow {
  margin: 0 0 16px;
  color: #b8d7ff;
  font-size: 0.88rem;
  font-weight: 800;
}

.eyebrow.dark {
  color: var(--blue-deep);
}

.eyebrow.light {
  color: #dbeafe;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  max-width: 870px;
  margin-bottom: 24px;
  font-size: 4.3rem;
}

h2 {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 2.65rem;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

p {
  color: var(--ink-muted);
}

.section-dark p,
.hero p,
.trust-banner p {
  color: rgba(255, 255, 255, 0.82);
}

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 150px 0 72px;
}

.hero-bg,
.hero-overlay,
.hero-lines {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background: url("../img/water-treatment.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 21, 38, 0.94) 0%, rgba(13, 21, 38, 0.74) 50%, rgba(13, 21, 38, 0.44) 100%),
    linear-gradient(180deg, rgba(13, 21, 38, 0.16) 0%, rgba(13, 21, 38, 0.72) 100%);
}

.hero-lines {
  opacity: 0.6;
  background:
    linear-gradient(115deg, transparent 0 20%, rgba(59, 130, 246, 0.22) 20% 20.25%, transparent 20.25% 100%),
    linear-gradient(70deg, transparent 0 66%, rgba(255, 255, 255, 0.12) 66% 66.2%, transparent 66.2% 100%),
    linear-gradient(180deg, rgba(59, 130, 246, 0.1), transparent 54%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  max-width: 720px;
  margin-bottom: 34px;
  font-size: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  font-weight: 800;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--ink);
  background: var(--blue);
  box-shadow: 0 16px 35px rgba(59, 130, 246, 0.28);
}

.btn-primary:hover {
  color: #ffffff;
  background: var(--blue-deep);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn svg,
.nav-toggle svg,
.service-card svg,
.pillar-icon svg,
.feature-list svg,
.whatsapp-float svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 920px;
  margin-top: 70px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(13, 21, 38, 0.45);
  backdrop-filter: blur(12px);
}

.hero-metrics div {
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-metrics div:last-child {
  border-right: 0;
}

.hero-metrics strong {
  display: block;
  color: #ffffff;
  font-size: 1.12rem;
  line-height: 1.2;
}

.hero-metrics span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 68px;
  align-items: center;
}

.section-copy p {
  font-size: 1.05rem;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.feature-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #203049;
  font-weight: 700;
}

.feature-list svg {
  color: var(--blue);
  flex: 0 0 auto;
}

.project-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--ink);
}

.project-visual > img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.visual-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  color: #ffffff;
  background: rgba(13, 21, 38, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.visual-badge img {
  width: 132px;
  height: auto;
  max-height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: brightness(0) invert(1);
}

.visual-badge span {
  font-weight: 700;
  line-height: 1.35;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading p {
  font-size: 1.05rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.pillar {
  padding: 34px;
  background: var(--bg-ice);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 45px rgba(13, 21, 38, 0.06);
}

.pillar-icon {
  display: flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: var(--radius);
}

.pillar ul {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding-left: 20px;
  color: #25344e;
}

.pillar li::marker {
  color: var(--blue);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span,
.trust-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  color: var(--blue-deep);
  font-weight: 800;
  background: #ffffff;
  border: 1px solid #c9dcff;
  border-radius: var(--radius);
}

.services {
  background: linear-gradient(180deg, var(--bg-ice), #ffffff);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 260px;
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 45px rgba(13, 21, 38, 0.055);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #adc7f8;
  box-shadow: 0 22px 60px rgba(13, 21, 38, 0.1);
}

.service-card svg {
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  color: var(--blue);
}

.service-card h3 {
  font-size: 1.08rem;
}

.service-card p {
  margin-bottom: 0;
  font-size: 0.96rem;
}

.trust-banner {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  color: #ffffff;
  background: url("../img/water-treatment.jpg") center / cover no-repeat;
}

.trust-banner::before {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--ink);
  opacity: 0.8;
}

.trust-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 40px;
  align-items: center;
}

.trust-content h2 {
  max-width: 780px;
  margin-bottom: 0;
  color: #ffffff;
}

.trust-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.trust-points span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.clients {
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.clients-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.65fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 42px;
}

.clients-heading h2 {
  max-width: 650px;
  margin-bottom: 0;
}

.clients-heading > p {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.clients-marquee {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.clients-track {
  display: flex;
  width: max-content;
  animation: clients-scroll 39.6s linear infinite;
}

.clients-marquee:hover .clients-track {
  animation-play-state: paused;
}

.clients-group {
  display: flex;
  flex: 0 0 auto;
  gap: 72px;
  align-items: center;
  padding-right: 72px;
}

.client-logo {
  display: flex;
  width: auto;
  height: 72px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  transition: transform 180ms ease;
}

.client-logo:hover {
  transform: translateY(-3px);
}

.client-logo img {
  width: auto;
  max-width: 158px;
  max-height: 54px;
  object-fit: contain;
  filter: grayscale(1) saturate(0) brightness(0);
  opacity: 0.66;
  transition: opacity 180ms ease;
}

.client-logo-light img {
  filter: grayscale(1) saturate(0) contrast(1.12);
  mix-blend-mode: multiply;
  opacity: 0.78;
}

.client-logo:hover img {
  opacity: 0.92;
}

@keyframes clients-scroll {
  to {
    transform: translateX(-50%);
  }
}

.contact-strip {
  padding: 84px 0;
  background: #ffffff;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 42px;
  background: var(--bg-ice);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-panel h2 {
  max-width: 720px;
}

.contact-panel p {
  max-width: 780px;
  margin-bottom: 0;
}

.site-footer {
  padding: 64px 0 28px;
  color: #ffffff;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-brand img {
  width: 178px;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

.footer-brand p,
.site-footer p,
.site-footer address,
.site-footer a {
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
}

.site-footer strong {
  display: block;
  margin-bottom: 12px;
  color: #ffffff;
}

.site-footer a {
  display: block;
  transition: color 180ms ease;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.82);
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99;
  display: flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--whatsapp);
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.32);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(34, 197, 94, 0.42);
}

.whatsapp-float svg {
  width: 27px;
  height: 27px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .clients-marquee {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .clients-track {
    width: auto;
    animation: none;
  }

  .clients-group {
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
  }

  .clients-group[aria-hidden="true"] {
    display: none;
  }
}

@media (max-width: 1020px) {
  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .two-column,
  .clients-heading,
  .trust-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .trust-points {
    justify-content: flex-start;
  }

  .clients-heading {
    gap: 18px;
  }
}

@media (max-width: 780px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand img {
    width: 160px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 14px;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: 720px;
    padding-top: 124px;
  }

  h1 {
    font-size: 2.62rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.08rem;
  }

  .hero-metrics,
  .pillars,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    margin-top: 48px;
  }

  .hero-metrics div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .hero-metrics div:last-child {
    border-bottom: 0;
  }

  .project-visual > img {
    height: 430px;
  }

  .clients-group {
    gap: 48px;
    padding-right: 48px;
  }

  .client-logo {
    height: 64px;
  }

  .client-logo img {
    max-width: 132px;
    max-height: 46px;
  }

  .contact-panel {
    padding: 28px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 2.22rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .hero-actions,
  .hero-actions .btn,
  .contact-panel .btn {
    width: 100%;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .project-visual > img {
    height: 360px;
  }

  .visual-badge {
    position: static;
    border-radius: 0;
  }

  .visual-badge img {
    width: 112px;
    height: auto;
    max-height: 40px;
  }

  .pillar,
  .service-card {
    padding: 24px;
  }

  .clients-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
}
