/* =========================================================
   Plant Waste Water Treatment — informational Tattika partner site
   Lightweight, dependency-free, mobile-first CSS.
   ========================================================= */

:root {
  --green: #28a745;
  --green-dark: #1e7e34;
  --green-light: #e9f7ec;
  --navy: #0f2436;
  --slate: #33475b;
  --slate-light: #64748b;
  --ink: #1a2530;
  --paper: #ffffff;
  --bg: #f6f9f8;
  --border: #e1e8e6;
  --radius: 3px;
  --radius-lg: 3px;
  --max-width: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Big Shoulders Display", var(--font);
}

/* Self-hosted display face (single variable-font file, no external request)
   for headlines and big numerals only — a condensed, industrial-drafting
   grotesk that reads as "engineering firm," not "SaaS template," and gives
   the type system real contrast against the plain system-font body copy. */
@font-face {
  font-family: "Big Shoulders Display";
  src: url("/assets/fonts/big-shoulders-display-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
.faq-item__q:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.4rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; color: var(--slate); }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 1.2em; }

.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--alt { background: var(--paper); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: rgba(255,255,255,0.85); }

/* Eyebrow label: a diagonal accent mark instead of a rounded pill badge,
   echoing the angled cut in the Tattika "TT" logotype rather than a generic
   SaaS-template component. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 3px;
  background: var(--green);
  transform: skewX(-24deg);
  flex-shrink: 0;
}
.section--navy .eyebrow { color: #7be091; }
.section--navy .eyebrow::before { background: #7be091; }

.section-head { max-width: 760px; margin: 0 0 40px; }
.section-head p { font-size: 1.05rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ----------
   Flat, square-edged, no drop-shadow glow and no hover-lift animation —
   a plain color/border swap on hover instead of the generic
   "elevated SaaS button" micro-interaction. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn--primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--invert { background: #fff; color: var(--green-dark); border-color: #fff; }
.btn--invert:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--lg { padding: 16px 32px; font-size: 1.02rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Top bar ---------- */
.top-bar { background: var(--navy); color: #fff; font-size: 0.85rem; }
.top-bar__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 20px; flex-wrap: wrap; }
.top-bar__text { margin: 0; opacity: 0.85; }
.top-bar__link { color: #7be091; font-weight: 600; }

/* ---------- Header / Nav ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__logo { height: 48px; width: auto; }
.brand__text { display: flex; flex-direction: column; }
.brand__title { font-weight: 800; color: var(--navy); font-size: 1.02rem; line-height: 1.15; }
.brand__subtitle { font-size: 0.72rem; color: var(--slate-light); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav ul { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--slate); font-weight: 600; font-size: 0.95rem; }
.site-nav a.is-active, .site-nav a:hover { color: var(--green-dark); text-decoration: none; }
.nav-cta { flex-shrink: 0; }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    border-top: 3px solid var(--green);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 14px; }
  .nav-cta { text-align: center; justify-content: center; }
}
@media (min-width: 881px) {
  .nav-toggle { display: none; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.85rem; color: var(--slate-light); padding: 16px 0 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--slate-light); }
.breadcrumbs a { color: var(--slate-light); }
.breadcrumbs li[aria-current] { color: var(--navy); font-weight: 600; }

/* ---------- Hero ----------
   Flat navy overlay (no green-to-navy gradient blend) plus a single angled
   accent panel referencing the diagonal cut in the Tattika logotype, rather
   than the generic "photo + brand-color gradient wash" hero pattern. */
.hero {
  position: relative;
  color: #fff;
  background: var(--navy);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 26, 40, 0.72);
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -6%;
  width: 10px;
  background: var(--green);
  transform: skewX(-12deg);
  display: none;
}
@media (min-width: 900px) {
  .hero::after { display: block; }
}
.hero__inner { position: relative; z-index: 1; padding: 72px 20px 60px; display: grid; gap: 36px; }
.hero__content { max-width: 760px; }
.hero h1 { color: #fff; }
.hero__lede { font-size: 1.15rem; color: rgba(255,255,255,0.88); max-width: 640px; }
.hero__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 28px; }
.hero__link { color: #fff; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 2px; }
.hero__link:hover { border-color: #fff; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.18); }
.hero__fact { font-size: 0.88rem; color: rgba(255,255,255,0.78); }
.hero__fact strong { color: #fff; font-weight: 700; }

@media (min-width: 900px) {
  .hero__inner { padding: 100px 20px 80px; }
}

/* Compact hero variant used on spoke pages (shorter, no badges) */
.hero--compact { min-height: auto; }
.hero--compact .hero__inner { padding: 56px 20px 48px; }

/* Breadcrumb color variant when placed over the dark hero background */
.breadcrumbs--on-dark { color: rgba(255,255,255,0.7); }
.breadcrumbs--on-dark a { color: rgba(255,255,255,0.7); }
.breadcrumbs--on-dark li[aria-current] { color: #fff; }

/* ---------- Icons ---------- */
.icon { width: 26px; height: 26px; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 40px; height: 40px; }

/* ---------- Stat rows (editorial list, not a card grid) ---------- */
.impact-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .impact-layout { grid-template-columns: 0.9fr 1.1fr; } }
.stat-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,0.16); }
.stat-rows li {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}
.stat-rows__value {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  color: #7be091;
  flex-shrink: 0;
  width: 132px;
  font-variant-numeric: tabular-nums;
}
.stat-rows__label { font-size: 0.98rem; color: rgba(255,255,255,0.82); }

/* ---------- Feature pair (flagship products, no cards) ---------- */
.feature-pair {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  margin-bottom: 36px;
}
@media (min-width: 760px) { .feature-pair { grid-template-columns: 1fr 1fr; } }
.feature-pair__item { padding: 32px 30px; }
.feature-pair__item:first-child { border-bottom: 1px solid var(--border); }
@media (min-width: 760px) {
  .feature-pair__item:first-child { border-bottom: none; border-right: 1px solid var(--border); }
}
.feature-pair__stat {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1;
  margin-bottom: 6px;
}
.feature-pair__stat span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-light);
  margin-top: 6px;
}
.feature-pair__item h3 { margin-top: 10px; }

.link-arrow { font-weight: 700; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow .icon { width: 16px; height: 16px; }

/* ---------- Solution list (secondary products, plain rows) ---------- */
.solution-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.solution-list li { padding: 22px 0; border-bottom: 1px solid var(--border); }
.solution-list__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.solution-list__head h3 { margin-bottom: 0; font-size: 1.08rem; }
.solution-list__meta {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green-dark);
  white-space: nowrap;
}
.solution-list p { margin: 8px 0 0; font-size: 0.95rem; }
.solution-list__link { font-weight: 700; font-size: 0.9rem; }

/* ---------- Tier list (equipment ranges) — capacity presented as a spec
   numeral in a fixed left column, not an icon-in-a-circle feature card. */
.tier-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.tier-list li {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
@media (max-width: 620px) { .tier-list li { grid-template-columns: 1fr; gap: 6px; } }
.tier-list__cap {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--green-dark);
}
.tier-list__cap span {
  display: block;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-light);
  margin-top: 4px;
}
.tier-list h3 { margin: 0 0 6px; font-size: 1.15rem; }
.tier-list p { margin: 0; font-size: 0.95rem; }

/* ---------- Process two-column (Waste2Value) ----------
   The sticky intro column only makes sense once the layout is actually
   two columns — scoping it to the same breakpoint prevents it from
   overlapping the step list when the grid collapses to one column
   on mobile. */
.two-col.process-two-col { align-items: start; }
@media (min-width: 900px) {
  .two-col.process-two-col { grid-template-columns: 0.85fr 1.15fr; }
  .process-two-col__intro { position: sticky; top: 90px; }
}
.step-list--wide .step-list__num { color: var(--green); }

/* ---------- Sector list (industries served) — a plain bordered
   list/columns treatment rather than a cloud of rounded pill chips ---------- */
.sector-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
@media (min-width: 640px) { .sector-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .sector-list { grid-template-columns: repeat(4, 1fr); } }
.sector-list li {
  padding: 14px 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
}
.sector-list li.sector-list__more { color: var(--green-dark); }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item__q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 50px 18px 20px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  cursor: pointer;
  position: relative;
}
.faq-item__q::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--green-dark);
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item.is-open .faq-item__q::after { transform: translateY(-50%) rotate(45deg); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item__a-inner { padding: 0 50px 18px 20px; }
.faq-item__a-inner p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Process list (spoke pages) ----------
   A numbered spec-sheet index column (large flat numeral + hairline rule)
   instead of the generic filled-circle "step badge" every AI-built process
   section uses. */
.step-list { display: flex; flex-direction: column; margin: 28px 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.step-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.step-list__num {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1;
  color: var(--green-dark);
}

/* ---------- Two column layout ---------- */
.two-col { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.1fr 0.9fr; } }
.two-col--reverse { direction: rtl; }
.two-col--reverse > * { direction: ltr; }

.info-box {
  background: var(--green-light);
  border-left: 3px solid var(--green);
  padding: 20px 22px;
}
.info-box h4 { color: var(--green-dark); margin-bottom: 10px; }
.info-box__note { font-size: 0.85rem; color: var(--slate-light); }
.section--navy .info-box__note { color: rgba(255,255,255,0.6); }

/* ---------- CTA banner ----------
   A flat-color, left-aligned split banner (text left, action right) instead
   of the centered gradient-pill-card pattern. */
.cta-banner {
  background: var(--green-dark);
  color: #fff;
  padding: 40px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-banner__copy { max-width: 620px; }
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.88); margin: 0; }
.cta-banner__actions { display: flex; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
th { background: var(--navy); color: #fff; font-weight: 700; }
tr:last-child td { border-bottom: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.85); padding: 56px 0 0; margin-top: 40px; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; padding-bottom: 40px; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer__col h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: rgba(255,255,255,0.78); font-size: 0.92rem; }
.footer__col a:hover { color: #7be091; }
.footer__brand p { color: rgba(255,255,255,0.72); font-size: 0.92rem; margin: 14px 0 18px; }
.footer__contact { list-style: none; padding: 0; margin: 0; gap: 12px !important; }
.footer__contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; }
.footer__contact .icon { color: #7be091; margin-top: 2px; }
.footer__vat { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 12px; }

.footer__disclosure {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 20px 28px;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.62);
}
.footer__disclosure a { color: #7be091; }
.footer__legal { margin-top: 10px; font-size: 0.78rem; color: rgba(255,255,255,0.45); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.u-mt-12 { margin-top: 12px; }
.u-mt-28 { margin-top: 28px; }
.u-mt-56 { margin-top: 56px; }
.u-narrow-560 { max-width: 560px; margin: 0 auto 28px; }
.section--error { padding-top: 90px; padding-bottom: 100px; }
.hero__actions--center { justify-content: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
