/* ========== Tokens (Terminter brand) ========== */
:root {
  --red: #d40808;
  --red-dark: #a90606;
  --ink: #141618;
  --ink-2: #33383e;
  --muted: #5f6670;
  --line: #e3e5e8;
  --bg: #ffffff;
  --bg-alt: #f3f4f5;
  --water: #1d7fc4;
  --air: #2a9d8f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 22, 24, .08);
  --container: 1200px;
  --header-h: 76px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 6px; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ========== Buttons & links ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; text-decoration: none; text-transform: uppercase; letter-spacing: .04em;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--light { background: #fff; color: var(--red); }
.btn--light:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: .6em 1.1em; font-size: .8rem; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

.link-arrow { font-weight: 700; font-size: .9rem; color: var(--red); text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }
.link-arrow--light { color: #fff; }

.eyebrow {
  display: inline-block; margin-bottom: .8em;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red);
}
.eyebrow--light { color: #ff5a5a; }

/* ========== Header ========== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: linear-gradient(rgba(20,22,24,.75), rgba(20,22,24,0));
  transition: background .25s, box-shadow .25s;
}
.header.is-scrolled, .header.is-open { background: var(--ink); box-shadow: 0 2px 20px rgba(0,0,0,.25); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 140px; height: auto; }
.brand__badge { color: rgba(255,255,255,.75); font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

.nav { display: flex; gap: 28px; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--red); transition: right .2s; }
.nav a:hover::after { right: 0; }

.header__tools { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 2px; }
.lang button {
  background: none; border: 0; color: rgba(255,255,255,.8); font: 700 .72rem var(--font); letter-spacing: .06em;
  padding: 6px 9px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.lang button:hover:not([aria-pressed="true"]) { color: #fff; }

.nav-toggle { display: none; width: 42px; height: 42px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: transform .25s, opacity .25s; }
.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--ink); padding: 8px 16px 20px;
    transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility .3s;
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1rem; }
  .is-open .nav { transform: none; visibility: visible; }
  .nav-toggle { display: block; }
}
@media (max-width: 640px) {
  .header__call span { display: none; }
  .header__call { padding: .65em; }
  .brand img { width: 112px; }
  .brand__badge { font-size: .55rem; letter-spacing: .1em; }
  .lang button { padding: 5px 6px; font-size: .66rem; }
  .header__tools { gap: 6px; }
}
@media (max-width: 380px) { .header__call { display: none; } }

/* ========== Hero ========== */
.hero {
  position: relative; min-height: min(100vh, 860px); display: flex; align-items: center;
  color: #fff; padding: calc(var(--header-h) + 48px) 0 72px; overflow: hidden; background: var(--ink);
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(20,22,24,.92) 0%, rgba(20,22,24,.7) 45%, rgba(20,22,24,.25) 100%),
    url("../assets/img/hero.jpg") center / cover no-repeat;
}
.hero__content { position: relative; max-width: var(--container); }
.hero__title { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; max-width: 14ch; margin-bottom: .25em; }
.hero__title em { font-style: normal; color: var(--red); }
.hero__sub { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; color: rgba(255,255,255,.9); margin-bottom: .6em; }
.hero__lead { max-width: 56ch; color: rgba(255,255,255,.78); font-size: 1.05rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }
.hero__badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.hero__badges li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; color: rgba(255,255,255,.85); }
.hero__badges li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* ========== Sections ========== */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
@media (max-width: 640px) { .section { padding: 64px 0; } }
.section__head { max-width: 760px; margin-bottom: 44px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section__head--row > div { max-width: 700px; }
.section__lead { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* Solutions */
.solutions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 820px) { .solutions { grid-template-columns: 1fr; } }
.solution {
  position: relative; min-height: 440px; border-radius: var(--radius); overflow: hidden; color: #fff;
  display: flex; align-items: flex-end; background: var(--ink);
}
.solution__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.solution:hover .solution__img { transform: scale(1.04); }
.solution::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 15%, rgba(20,22,24,.92) 80%); }
.solution__body { position: relative; z-index: 2; padding: 32px; }
.solution__body h3 { font-size: 1.7rem; }
.solution__body p { color: rgba(255,255,255,.82); }
.chips { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); }

/* Sectors */
.group-title { display: flex; align-items: center; gap: 10px; font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); margin: 0 0 18px; }
.group-title:not(:first-of-type) { margin-top: 44px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--water { background: var(--water); }
.dot--air { background: var(--air); }
.sectors { display: grid; gap: 20px; }
.sectors--4 { grid-template-columns: repeat(4, 1fr); }
.sectors--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .sectors--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .sectors--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sectors--4, .sectors--3 { grid-template-columns: 1fr; } }
.sector { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.sector img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.sector h4 { margin: 18px 20px 6px; }
.sector p { margin: 0 20px 22px; color: var(--muted); font-size: .93rem; }

/* Products */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; background: var(--bg-alt); border-radius: 22px; padding: 4px; }
.tabs button {
  border: 0; background: none; font: 700 .85rem var(--font); padding: 9px 20px; border-radius: 999px;
  color: var(--ink-2); cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.product {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff; transition: box-shadow .25s, transform .25s;
}
.product:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product__img { background: #fff; aspect-ratio: 1 / 1; padding: 18px; border-bottom: 1px solid var(--line); }
.product__img img { width: 100%; height: 100%; object-fit: contain; }
.product__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.product__name { font-size: 1.2rem; margin: 10px 0 6px; }
.product__desc { color: var(--muted); font-size: .92rem; flex: 1; }
.product__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.tag { align-self: flex-start; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 3px 10px; border-radius: 999px; }
/* Category label colours, assigned by category order */
.tag--c0 { color: var(--water); background: rgba(29,127,196,.1); }
.tag--c1 { color: #1f7a6f; background: rgba(42,157,143,.12); }
.tag--c2 { color: #6d28d9; background: rgba(124,58,237,.1); }
.tag--c3 { color: #a15c05; background: rgba(217,119,6,.12); }
.tag--c4 { color: #be185d; background: rgba(219,39,119,.1); }
.tag--c5 { color: #374151; background: rgba(75,85,99,.1); }

/* Certifications */
.certs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 1100px) { .certs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .certs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .certs { grid-template-columns: 1fr; } }
.cert { background: #fff; border-radius: var(--radius); padding: 18px 18px 20px; box-shadow: var(--shadow); }
.cert__logo { aspect-ratio: 16 / 9; overflow: hidden; margin: -6px -6px 14px; display: flex; align-items: center; justify-content: center; }
.cert__logo img { width: 125%; max-width: none; object-fit: contain; }
.cert h4 { font-size: .98rem; margin-bottom: 6px; }
.cert p { font-size: .86rem; color: var(--muted); margin: 0; }

/* About */
.about { background: var(--ink); color: #fff; }
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } }
.about p { color: rgba(255,255,255,.78); }
.about__img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0 0; }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stats div { border-top: 2px solid var(--red); padding-top: 12px; }
.stats dt { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.stats dd { margin: 4px 0 0; font-size: .82rem; color: rgba(255,255,255,.7); }

/* Why */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } }
.why__item { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.why__item svg { width: 40px; height: 40px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.why__item p { color: var(--muted); font-size: .93rem; margin: 0; }

/* CTA band */
.cta { background: var(--red); color: #fff; padding: 56px 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin-bottom: .2em; }
.cta p { margin: 0; color: rgba(255,255,255,.9); font-size: 1.08rem; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .contact { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .contact { grid-template-columns: 1fr; } }
.contact__card {
  display: flex; flex-direction: column; gap: 6px; padding: 26px 24px; border-radius: var(--radius);
  background: var(--bg-alt); text-decoration: none; transition: background .2s;
}
a.contact__card:hover { background: #e9eaec; }
.contact__card svg { width: 28px; height: 28px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.contact__label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.contact__card strong { font-size: 1.05rem; overflow-wrap: anywhere; }
.contact__card .link-arrow { margin-top: 6px; }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.7); font-size: .9rem; padding: 56px 0 0; }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; }
.footer__brand { max-width: 460px; }
.footer__brand img { margin-bottom: 16px; }
.footer__meta strong { color: #fff; }
.footer a { color: #fff; }
.footer__social { display: flex; gap: 16px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; padding-bottom: 24px; font-size: .8rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
