:root {
  --navy: #05261d;
  --deep: #073828;
  --green: #168548;
  --blue: #0f8bce;
  --gold: #c9a14a;
  --ink: #12231c;
  --text: #44544c;
  --muted: #6d7b74;
  --line: rgba(18, 35, 28, .12);
  --bg: #f7faf8;
  --white: #fff;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(5, 38, 29, .14);
  --soft: 0 12px 30px rgba(5, 38, 29, .08);
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65
}

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

.container {
  width: min(1180px, 92%);
  margin: auto
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 99
}

.skip-link:focus {
  left: 12px
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line)
}

.nav-wrap {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px
}

.brand img {
  height: 54px;
  width: auto;
  display: block
}

.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center
}

.nav-menu a {
  font-weight: 800;
  font-size: 15px;
  color: #314139
}

.nav-menu a.active,
.nav-menu a:hover {
  color: var(--green)
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(5, 38, 29, .06)
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  color: var(--muted)
}

.lang-switch a.active {
  background: #eef8f2;
  color: var(--green)
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.nav-toggle-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  place-items: center;
  cursor: pointer
}

.nav-toggle-btn span {
  display: block;
  width: 21px;
  height: 2px;
  background: var(--ink);
  border-radius: 99px;
  transition: transform .2s ease, opacity .2s ease
}

.nav-toggle-btn span+span {
  margin-top: 5px
}

.btn,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 23px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease
}

.btn:hover,
.nav-cta:hover {
  transform: translateY(-2px)
}

.btn-primary,
.nav-cta {
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: white;
  box-shadow: 0 16px 34px rgba(15, 139, 206, .18)
}

.btn-secondary {
  background: var(--gold);
  color: #081f17
}

.btn-outline {
  border-color: rgba(255, 255, 255, .5);
  color: white
}

.btn-light {
  background: white;
  color: var(--ink)
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 760px;
  color: white;
  display: flex;
  align-items: center;
  background: linear-gradient(105deg, rgba(5, 38, 29, .97) 0%, rgba(5, 38, 29, .88) 44%, rgba(5, 38, 29, .35) 100%), url('../../images/hero/hero-main.jpg') center/cover
}

.hero:after,
.page-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 18%, rgba(15, 139, 206, .28), transparent 32%), radial-gradient(circle at 20% 90%, rgba(201, 161, 74, .22), transparent 30%);
  z-index: -1
}

.hero-content {
  max-width: 850px;
  padding: 110px 0
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 16px
}

.eyebrow:before,
.section-label:before {
  content: "";
  width: 36px;
  height: 2px;
  background: currentColor
}

.hero h1,
.page-hero h1 {
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -.055em;
  margin: 0 0 22px;
  color: white
}

.hero p,
.page-hero p {
  font-size: clamp(17px, 2vw, 22px);
  max-width: 730px;
  color: rgba(255, 255, 255, .9);
  margin: 0
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 32px 0
}

.page-hero {
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, var(--navy), var(--deep));
  padding: 112px 0 92px;
  color: white;
  overflow: hidden
}

.section {
  padding: 92px 0
}

.alt {
  background: white
}

.tint {
  background: linear-gradient(180deg, #fff, #edf7f1)
}

.section-heading {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 48px
}

.section-heading h2,
.content h2,
.contact-centered h2 {
  font-size: clamp(33px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -.045em;
  color: var(--ink);
  margin: 0 0 16px
}

.section-heading p,
.content p {
  font-size: 17px;
  color: var(--muted)
}

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

.visual-card {
  min-height: 500px;
  border-radius: 24px;
  background: linear-gradient(rgba(5, 38, 29, .08), rgba(5, 38, 29, .2)), url('../../images/sections/about-section.jpg') center/cover;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden
}

.visual-card.tech {
  background-image: linear-gradient(rgba(5, 38, 29, .08), rgba(5, 38, 29, .2)), url('../../images/sections/technology-section.jpg')
}

.visual-card.contact {
  background-image: linear-gradient(rgba(5, 38, 29, .08), rgba(5, 38, 29, .2)), url('../../images/sections/contact-section.jpg')
}

.visual-card:after {
  content: "EC • pH • TDS • Flow";
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 17px;
  font-weight: 950
}

.content-card,
.metric-card,
.service-card,
.process-card,
.contact-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--soft);
  color: var(--text)
}

.content-card h3 {
  color: var(--ink);
  font-size: 24px;
  margin: 0 0 14px
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px
}

.metric-card {
  box-shadow: 0 20px 50px rgba(0, 0, 0, .14)
}

.metric-card strong {
  display: block;
  color: var(--gold);
  font-size: 34px;
  line-height: 1;
  margin-bottom: 12px
}

.metric-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900
}

.metric-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

.service-grid-4 {
  grid-template-columns: repeat(4, 1fr)
}

.service-card {
  transform: none;
  transition: none
}

.icon-pro {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #eef8f2, #fff);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-bottom: 18px
}

.icon-pro svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round
}

.icon-pro img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block
}

.service-card h3,
.process-card h3,
.contact-card h3 {
  color: var(--ink);
  margin: 0 0 10px;
  font-size: 22px
}

.service-card p,
.process-card p,
.contact-card p {
  color: var(--muted);
  margin: 0
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 34px
}

.data-section {
  background: var(--navy);
  color: white
}

.data-section h2 {
  color: white
}

.data-section .gold-title {
  color: var(--gold)
}

.data-section p {
  color: rgba(255, 255, 255, .78)
}

.data-section .metric-card {
  background: rgba(255, 255, 255, .96);
  color: var(--text)
}

.data-section .metric-card p {
  color: var(--text)
}

.data-section .metric-card h3 {
  color: var(--ink)
}

.light-list li {
  color: rgba(255, 255, 255, .86)
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px
}

.process-grid-3 {
  grid-template-columns: repeat(3, 1fr)
}

.process-card b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: white;
  margin-bottom: 16px
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0
}

.check-list li {
  position: relative;
  padding-left: 32px;
  margin: 10px 0;
  color: var(--muted)
}

.check-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 950
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center
}

.tag-grid span {
  background: #f4faf6;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--ink);
  font-weight: 800
}

.inline-cta {
  margin-top: 26px
}

.about-strengths {
  margin-top: 26px
}

.gallery-section {
  background: white
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.gallery-item {
  display: block;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  background: #eef8f2;
  border: 1px solid var(--line);
  box-shadow: var(--soft);
  position: relative;
  cursor: zoom-in
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .25s ease
}

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

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 23, 15, .86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px
}

.gallery-modal.is-open {
  display: flex
}

.gallery-modal img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
  background: white
}

.gallery-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: white;
  font-size: 30px;
  line-height: 1;
  cursor: pointer
}

.contact-section {
  background: linear-gradient(135deg, var(--navy), var(--deep));
  color: white
}

.contact-section h2 {
  color: white
}

.contact-section p {
  color: rgba(255, 255, 255, .82)
}

.contact-page-section {
  background: #eef7f2;
  color: var(--text)
}

.contact-page-section h2 {
  color: var(--ink)
}

.contact-page-section p {
  color: var(--muted)
}

.contact-page-section .section-label {
  color: var(--green)
}

.contact-page-section .btn-outline {
  border-color: rgba(18, 35, 28, .28);
  color: var(--ink)
}

.contact-page-section .btn-light {
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: white
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 34px;
  align-items: center
}

.contact-centered {
  text-align: center;
  max-width: 860px
}

.contact-centered .section-label {
  justify-content: center
}

.contact-centered .section-label:before {
  display: none
}

.contact-centered p {
  font-size: 20px;
  max-width: 740px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .86)
}

.contact-centered .hero-actions {
  justify-content: center
}

.contact-card {
  background: #fff;
  color: var(--text);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .14)
}

.contact-card p {
  margin: 10px 0;
  color: var(--text)
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 12px
}

.registration-note {
  font-size: 13px;
  color: var(--muted) !important;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 16px !important
}

.contact-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef8f2;
  color: var(--green)
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round
}

.footer {
  background: #03170f;
  color: rgba(255, 255, 255, .7);
  padding: 28px 0;
  text-align: center
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22)
}

.floating-whatsapp svg {
  width: 34px;
  height: 34px;
  fill: currentColor
}

.floating-whatsapp span {
  display: none
}

@media(max-width:1100px) {
  .service-grid-4 {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:980px) {

  .grid-2,
  .contact-layout {
    grid-template-columns: 1fr
  }

  .service-grid,
  .metric-grid,
  .process-grid,
  .process-grid-3,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .nav-wrap {
    height: 82px;
    min-height: 82px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    position: relative;
    gap: 12px
  }

  .brand {
    justify-self: start;
    margin-right: 0
  }

  .brand img {
    height: 48px
  }

  .nav-toggle-btn {
    display: grid;
    justify-self: end;
    padding: 10px;
    grid-column: 3;
    grid-row: 1
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(280px, 92vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 8px;
    box-shadow: 0 24px 60px rgba(5, 38, 29, .18);
    z-index: 70
  }

  .nav-menu a {
    padding: 12px 14px;
    border-radius: 12px
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    background: #eef8f2
  }

  .lang-switch {
    justify-self: center;
    margin-left: 0;
    grid-column: 2;
    grid-row: 1
  }

  .nav-toggle:checked+.nav-toggle-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg)
  }

  .nav-toggle:checked+.nav-toggle-btn span:nth-child(2) {
    opacity: 0
  }

  .nav-toggle:checked+.nav-toggle-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg)
  }

  .nav-toggle:checked~.nav-menu {
    display: flex
  }

  .hero {
    min-height: auto
  }

  .hero-content {
    padding: 92px 0
  }
}

@media(max-width:640px) {
  body {
    padding-bottom: 78px
  }

  .container {
    width: min(100% - 28px, 1180px)
  }

  .nav-wrap {
    gap: 12px
  }

  .nav-cta {
    display: none
  }

  .lang-switch a {
    min-width: 40px;
    padding: 6px 9px
  }

  .hero h1,
  .page-hero h1 {
    font-size: 39px
  }

  .section {
    padding: 64px 0
  }

  .service-grid,
  .service-grid-4,
  .metric-grid,
  .process-grid,
  .process-grid-3 {
    grid-template-columns: 1fr
  }

  .gallery-grid {
    grid-template-columns: 1fr
  }

  .gallery-modal {
    padding: 14px
  }

  .visual-card {
    min-height: 340px
  }

  .hero-actions .btn {
    width: 100%
  }

  .contact-centered .hero-actions .btn {
    width: auto;
    min-width: 150px
  }

  .floating-whatsapp {
    left: 16px;
    right: 16px;
    bottom: 14px;
    width: auto;
    height: 54px;
    border-radius: 999px;
    gap: 10px;
    text-align: center
  }

  .floating-whatsapp svg {
    width: 24px;
    height: 24px
  }

  .floating-whatsapp span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1
  }

  .contact-page {
    padding-bottom: 0
  }

  .contact-page .floating-whatsapp {
    display: none
  }
}
