/**
 * ATZIS public site -- one stylesheet, no framework, no state.
 *
 * Colours are the ATZ Solutions brand pair taken from the ATZIS app's own tokens (atzis/static/app.css): navy
 * #102A40 and its deeper shade #17395A, with the orange #B4560F for text and #E97824 for fills. The TEXT orange is the
 * darker one on purpose: #E97824 on white is about 2,9:1, which fails WCAG AA for body text, while #B4560F is about
 * 4,9:1 and passes. The light orange is only ever a FILL behind navy text.
 *
 * No external requests of the pages' own: the font is self-hosted (Manrope, OFL, see assets/fonts/OFL-manrope.txt),
 * there is no CDN, no analytics and no cookie. The one third-party script is the Turnstile widget on the contact page,
 * built only when `CONTACT_FORM_LIVE` is on (`sites/shared/contact_form.py`); every page still loads and works with
 * JavaScript disabled.
 */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-vietnamese.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #102a40;
  --navy-deep: #0c2133;
  --navy-mid: #17395a;
  --ink: #102a40;
  --body: #3c4a57;
  --muted: #5b6b78;
  --line: #d5dfe4;
  --line-soft: #eef2f4;
  --paper: #ffffff;
  --bg: #fbfbf8;
  --bg-deep: #e4ecef;
  --accent: #b4560f;
  --accent-fill: #e97824;
  --accent-light: #f0a057;
  --soft: #fff7ef;
  --ok: #146c43;
  --radius: 14px;
  --measure: 68ch;
  --wrap: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

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

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

a:hover,
a:focus-visible {
  color: var(--navy);
}

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

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
}

h2 {
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
  margin-top: 2.2em;
}

h3 {
  font-size: 1.12rem;
  margin-top: 1.6em;
}

p,
ul,
ol,
dl,
table {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.25em;
}

li + li {
  margin-top: 0.35em;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  background: var(--paper);
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
}

/* --- the shells ------------------------------------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  flex-wrap: wrap;
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--navy-mid);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  flex: 0 0 auto;
}

.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0;
}

/* THE COMPANY'S DRAWING IN THE HEADER (25/11/2026). The logo is 1024x544, so a fixed height keeps the bar's rhythm and
   the width follows. `align-items: center` on `.brand` centres it against the company name beside it; `display: block`
   removes the inline-image baseline gap that would otherwise push the name down by a few pixels. */
.brand-logo {
  display: block;
  height: 46px;
  width: auto;
}

/* THE SMALL MARK IN THE SECOND SITE'S FOOTER. That footer is the navy surface, and the logo's blue on it is about 1.6:1
   -- unreadable -- so the mark sits on its own white plate, which is how a logo strip is printed on a dark page. */
.footer-mark {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 4px 6px;
  background: #fff;
  border-radius: 8px;
  line-height: 0;
}

.footer-mark img {
  display: block;
  height: 22px;
  width: auto;
}

/* On a phone the tagline now carries two business lines and wrapped to two lines under the company name, which made
   the sticky header three lines tall. The hero and the page titles still say both lines; the header keeps the name. */
@media (max-width: 560px) {
  .brand small {
    display: none;
  }
}

nav.main {
  margin-left: auto;
}

nav.main ul {
  display: flex;
  flex-wrap: wrap;
  /* THE ROW IS CENTRE-ALIGNED (owner's report, 13/11/2026). Every item carries the same box in every state -- same
     padding, same line-height, a 2px transparent border on all of them -- so the active item's underline takes no
     space and changes no size. What was left was the ROW: with the default `stretch`/baseline alignment, an item whose
     label wraps to a second line at a narrow width pushed its neighbours off the common baseline, and the item that
     showed it was the one with a visible underline: "Trang chu" sat higher than the rest. Centring the row removes the
     baseline from the question. `sites/check_nav_align.py` measures it at four widths. */
  align-items: center;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.main a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  /* ONE BOX IN EVERY STATE: the padding, the line-height and the 2px border are the same for a link, a link under the
     pointer and the current page. Only the border's COLOUR changes, so nothing can move by a pixel. */
  line-height: 1.4;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  display: inline-block;
}

/* AND THE ITEM ITSELF CARRIES NO MARGIN. `li + li { margin-top: 0.35em }` below is a PROSE rule -- a run of bullets
   reads better with air -- and it was also hitting the nav, so every item except the first sat 6 px lower than the
   first. The first item is "Trang chủ", and on the home page that is also the current page: the item with a visible
   underline was the only one you could see the misalignment on, which is exactly how the owner reported it. The nav's
   spacing is the ul's `gap`, so the items' own margins are zero in every state. Measured by
   `site/tools/check-nav-align.mjs` at four widths. */
nav.main li,
nav.main li + li {
  margin: 0;
}

nav.main a[aria-current="page"] {
  border-bottom-color: var(--accent-fill);
}

nav.main a:hover {
  border-bottom-color: var(--line);
}

/* THE GROUPED NAV (proposal, 25/11/2026: the owner asked for seven top-level items instead of eleven). A group is a
   link to its first page AND a menu of the rest, opened by hover or by keyboard focus -- no script, because these pages
   run none. On a touch screen the tap follows the parent link to a page that lists its siblings, so nothing in the menu
   is reachable only through a hover state: the menu is a shortcut, not the only door.
   A group's label carries a small chevron, drawn from two borders rather than a glyph, so it inherits the link's colour
   in every state and ships no icon font. */
nav.main li.nav-group {
  position: relative;
}

nav.main a.nav-parent::after {
  content: "";
  display: inline-block;
  width: 0.38rem;
  height: 0.38rem;
  margin-left: 0.42rem;
  margin-bottom: 0.14rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
}

nav.main ul.nav-sub {
  /* `nav.main ul` is the ROW; this is a column inside it, and it is out of the flow so the bar keeps its height. The
     inherited `align-items: center` centres items on the row's cross axis -- in a column that is horizontal, so the menu
     would shrink to its longest label and sit centred. `stretch` gives every item the panel's width and a left edge. */
  display: none;
  position: absolute;
  top: calc(100% + 0.1rem);
  left: 0;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  min-width: 17rem;
  padding: 0.4rem 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  box-shadow: 0 14px 30px rgb(12 33 51 / 14%);
  z-index: 30;
}

nav.main li.nav-group:hover > ul.nav-sub,
nav.main li.nav-group:focus-within > ul.nav-sub {
  display: flex;
}

nav.main ul.nav-sub li,
nav.main ul.nav-sub li + li {
  margin: 0;
}

nav.main ul.nav-sub a {
  display: block;
  padding: 0.5rem 1rem;
  font-weight: 500;
  border-bottom-width: 0;
  white-space: nowrap;
}

nav.main ul.nav-sub a:hover,
nav.main ul.nav-sub a[aria-current="page"] {
  background: var(--line-soft);
  border-bottom-width: 0;
}

main {
  display: block;
}

section {
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

.hero {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy-mid) 70%);
  color: #eaf1f5;
}

.hero h1 {
  color: #fff;
  max-width: 22ch;
}

.hero p.lead {
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem);
  color: #d8e4ea;
  max-width: 56ch;
}

.hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.btn {
  display: inline-block;
  background: var(--accent-fill);
  color: var(--navy-deep);
  font-weight: 800;
  text-decoration: none;
  padding: 0.75rem 1.15rem;
  border-radius: 10px;
  border: 2px solid var(--accent-fill);
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--navy-deep);
}

/* A GHOST BUTTON IS A DARK-PANEL BUTTON. It was written for the hero: white type, a hairline border, a transparent
   fill. Everywhere else it sat on a light section, so its label was white on white -- measured 28/11/2026 on
   du-an.html, where the closing call to action showed an empty box beside "Liên hệ". The white treatment is now
   scoped to the panels it was written for, and a ghost button on a light section takes the page's ink colour. */
.btn.ghost {
  background: transparent;
  border-color: #7f97a8;
  color: var(--navy-deep);
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: #fff;
}

.hero .btn.ghost,
.section-navy .btn.ghost {
  color: #fff;
  border-color: #d8e4ea;
}

.hero .btn.ghost:hover,
.hero .btn.ghost:focus-visible,
.section-navy .btn.ghost:hover,
.section-navy .btn.ghost:focus-visible {
  background: #1d4a6b;
  border-color: #d8e4ea;
  color: #fff;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

/* --- content --------------------------------------------------------------------------------------------- */
/* The header is sticky, so an in-page link must stop below it instead of under it. */
h2[id],
section[id] {
  scroll-margin-top: 5.5rem;
}

.lede {
  font-size: 1.08rem;
  color: var(--body);
  max-width: var(--measure);
}

.prose {
  max-width: var(--measure);
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  padding: 0;
  list-style: none;
  margin: 1.5rem 0 0;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}

.card h3 {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--soft);
  border: 1px solid #f3d7bd;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.6rem;
}

.product {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
}

@media (min-width: 620px) {
  .product {
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: start;
  }
}

.product img {
  width: 100%;
  max-width: 180px;
  border-radius: 10px;
  background: var(--bg-deep);
}

.product h3 {
  margin-top: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.97rem;
}

caption {
  text-align: left;
  color: var(--muted);
  font-size: 0.9rem;
  padding-bottom: 0.4rem;
}

th,
td {
  text-align: left;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--ink);
  font-weight: 700;
  background: var(--line-soft);
}

/* A service code ("SV-01") broke after the hyphen on a 360 px screen. The first column is the row's key -- a code or a
   label -- so it stays on one line and the container scrolls if it must. */
th:first-child,
td:first-child {
  white-space: nowrap;
}

.table-scroll {
  overflow-x: auto;
}

.note {
  background: var(--soft);
  border: 1px solid #f3d7bd;
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
}

/* Inside the hero the same element is a CREDIT LINE, not a callout (28/11/2026): the pale box on navy left its own
   sentence unreadable, and it sat across the opening paragraph. It now follows the buttons as one small line. */
.hero .note {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: inherit;
  opacity: 0.75;
}

dl.contact {
  display: grid;
  gap: 0.25rem 1rem;
  grid-template-columns: max-content minmax(0, 1fr);
  margin: 1rem 0 0;
}

dl.contact dt {
  font-weight: 700;
  color: var(--ink);
}

dl.contact dd {
  margin: 0;
}

.crumbs {
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 1rem;
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: var(--line);
}

footer.site {
  background: var(--navy-deep);
  color: #c8d6de;
  margin-top: 3rem;
  padding-block: 2.5rem 1.5rem;
  font-size: 0.94rem;
}

footer.site h2 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

footer.site a {
  color: #e8d3c2;
}

footer.site .cols {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

footer.site ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-line {
  border-top: 1px solid #24445f;
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #9db2c0;
}

/* --- the footer's chip stack (owner's request, 15/11/2026) ---------------------------------------------------
   ONE COMPONENT, VERTICAL, ON EVERY SITE IN THIS REPOSITORY: the owner asked for the same look he approved on
   sitecnem, where the strip is a column in the footer rather than a row. Each chip is a LINK; the element that
   carries the colour carries the target. The colours are the site's own palette -- the accent, the navy and the
   green already in this stylesheet -- so a chip cannot introduce a colour the site does not otherwise use. */
.chips {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

footer.site a.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.3em 0.75em 0.3em 0.6em;
  border-radius: 999px;
  background: var(--chip-tint);
  color: var(--chip-ink);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition:
    box-shadow 120ms ease,
    background-color 120ms ease;
}

footer.site a.chip svg {
  flex: 0 0 auto;
}

/* THE FIVE COLOUR PAIRS. Each label was measured against its own tint at build time: `check_chips.py` reads these
 * tokens and fails below 4.5:1, so a palette change cannot quietly make a chip unreadable. */
.chip--water {
  --chip-ink: #8a3f08;
  --chip-tint: #fdeede;
}

.chip--waste {
  --chip-ink: #0f566b;
  --chip-tint: #e4f2f7;
}

.chip--test {
  --chip-ink: #146c43;
  --chip-tint: #e6f4ec;
}

.chip--device {
  --chip-ink: #1b3f63;
  --chip-tint: #e7eef7;
}

.chip--corrotwin {
  --chip-ink: #7a3d00;
  --chip-tint: #fbeed9;
}

/* HOVER RAISES THE TINT TOWARDS THE LABEL'S OWN COLOUR, and focus is a ring in that colour: a colour-coded stack must
 * not flicker to a generic colour on a mouse-over, and the reader who is tabbing must see where they are. */
footer.site a.chip:hover {
  background: color-mix(in srgb, var(--chip-tint) 82%, var(--chip-ink) 18%);
  box-shadow: inset 0 0 0 1px var(--chip-ink);
}

footer.site a.chip:hover span {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

footer.site a.chip:focus-visible {
  outline: 2px solid var(--chip-ink);
  outline-offset: 2px;
}

/* The current page's chip says so without changing its colour: the label goes bold-underlined in place. */
footer.site a.chip[aria-current="page"] span {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* --- temporary photographs (owner's decision 11/11/2026; A4 redraws them) ---------------------------------- */
/* Every image carries data-temp-image=true and a row in site/IMAGES-TEMP.md, so the swap is mechanical. The hero
   becomes two columns only when there is room; below that the figure sits under the text. */
.hero-figure {
  margin: 0;
}

.hero-figure img,
.group-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--bg-deep);
}

.hero-figure img {
  box-shadow: 0 24px 60px -28px rgba(8, 20, 38, 0.6);
}

.group-figure {
  margin: 1.5rem 0;
  max-width: var(--measure);
}

/* A SQUARE PHOTOGRAPH IS HELD TO A COLUMN OF ITS OWN (28/11/2026): at the text measure a 500 px square fills the
   column and pushes everything after it down a screen for nothing. The wide plates keep the full measure. */
.group-figure--square {
  max-width: 420px;
}

.group-figure figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  padding-top: 0.5rem;
}

.card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  background: var(--bg-deep);
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}
/* --- the floating Zalo and WhatsApp pair -------------------------------------------------------------------- */
/* Plain links in the brands' own colours, 44 px square, clear of the iPhone home indicator. No SDK, no widget, no
   iframe: a click leaves the page, which is the whole of the behaviour. */
.contact-fab {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-fab .fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 0;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 22px -8px rgba(8, 20, 38, 0.5);
}

.contact-fab .fab::after {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.contact-fab .fab--zalo {
  background: #0068ff;
}

.contact-fab .fab--zalo::after {
  content: "Zalo";
}

.contact-fab .fab--whatsapp {
  background: #075e54;
}

.contact-fab .fab--whatsapp::after {
  content: "WA";
}

.fab--zalo.btn {
  background: #0068ff;
  border-color: #0068ff;
  color: #fff;
}

.fab--whatsapp.btn {
  background: #075e54;
  border-color: #075e54;
  color: #fff;
}

@media print {
  .contact-fab {
    display: none;
  }
}

/* AN ORDERED PROCESS -- the six steps both sites describe (survey, method, execution, acceptance, handover). The number
   stays in the markup, so a page without the stylesheet still reads as a list in order. */
.steps { list-style: none; padding: 0; display: grid; gap: .75rem; margin: 1rem 0 0; }
.steps li { border-left: 3px solid var(--line); padding: .15rem 0 .15rem .9rem; color: var(--body); }
.steps strong { color: var(--ink); }

/* CONTACT FACTS -- label and value on one line, wrapping on a phone rather than shrinking the label. */
.facts { list-style: none; padding: 0; display: grid; gap: .45rem; }
.facts strong { color: var(--ink); }

/* A SINGLE READING COLUMN -- for a page with no cards and no table: a contact block, a policy. */
.narrow { max-width: 46rem; }

/* THE CONTACT FORM (owner's decision, 15/11/2026). One column of the site's own inputs — no CSS framework, no second
   design language. The honeypot is positioned off-screen rather than hidden: display: none is the first thing a bot
   checks, and a field a person never sees must still be a field a form-filler fills. */
.contact-form { max-width: 44rem; display: grid; gap: .9rem; }
.contact-form .form-row { display: grid; gap: .35rem; }
.contact-form label { font-weight: 600; color: var(--ink); }
.contact-form input, .contact-form textarea {
  font: inherit; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: .5rem;
  background: #fff; color: var(--body); width: 100%;
}
.contact-form textarea { resize: vertical; }
.contact-form .form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .form-note, .contact-form .form-privacy { color: var(--muted); font-size: .85rem; margin: 0; }
.contact-form .form-result { border-left: 3px solid var(--navy); background: var(--bg); padding: .7rem .9rem; color: var(--body); }
.contact-form .btn { justify-self: start; }

/* THE CATALOGUE ANSWERS A NEED, NOT A PRODUCT NAME (28/11/2026). A radio strip under the heading; `:has()` hides the
   cards whose `data-need` does not list the chosen one. No script: the build serves static files only, and a filter is
   not worth a bundle. A browser without `:has()` shows every card, which is the whole catalogue, not a broken page. */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 0.2rem;
  align-items: center;
}

.filter input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}

.filter label,
.filter-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.92rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}

.filter label:hover,
.filter-link:hover {
  border-color: var(--accent-fill);
  color: var(--accent);
}

.filter input:checked + label {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.filter input:focus-visible + label {
  outline: 3px solid var(--accent-fill);
  outline-offset: 2px;
}

.filter-link {
  border-style: dashed;
}

.filter:has(#need-waste:checked) ~ .shelf .card:not([data-need~="waste"]),
.filter:has(#need-scale:checked) ~ .shelf .card:not([data-need~="scale"]),
.filter:has(#need-instrument:checked) ~ .shelf .card:not([data-need~="instrument"]) {
  display: none;
}

/* An ATZ photograph now stands where the drawing was; the credit travels with it (owner's rule, 28/11/2026). */
.hero-figure figcaption {
  color: inherit;
  opacity: 0.72;
  font-size: 0.82rem;
  margin-top: 0.5rem;
}

/* A shelf and its heading travel together: with a need chosen, the shelf whose cards do not answer it goes, heading
   included, so the page never shows a heading with nothing under it. */
.filter:has(#need-waste:checked) ~ .shelf:not([data-need~="waste"]),
.filter:has(#need-scale:checked) ~ .shelf:not([data-need~="scale"]),
.filter:has(#need-instrument:checked) ~ .shelf:not([data-need~="instrument"]) {
  display: none;
}

/* THE POWER SOLUTION CATALOGUE'S SEVEN MEASUREMENTS (28/11/2026), the same two rules per need: the cards that do not
   answer it, and the shelf that has none. Written out because CSS cannot compare two attribute values. */
.filter:has(#need-organic:checked) ~ .shelf .card:not([data-need~="organic"]),
.filter:has(#need-nitrogen:checked) ~ .shelf .card:not([data-need~="nitrogen"]),
.filter:has(#need-phospho:checked) ~ .shelf .card:not([data-need~="phospho"]),
.filter:has(#need-do:checked) ~ .shelf .card:not([data-need~="do"]),
.filter:has(#need-chlorine:checked) ~ .shelf .card:not([data-need~="chlorine"]),
.filter:has(#need-solids:checked) ~ .shelf .card:not([data-need~="solids"]),
.filter:has(#need-metal:checked) ~ .shelf .card:not([data-need~="metal"]) {
  display: none;
}

.filter:has(#need-organic:checked) ~ .shelf:not([data-need~="organic"]),
.filter:has(#need-nitrogen:checked) ~ .shelf:not([data-need~="nitrogen"]),
.filter:has(#need-phospho:checked) ~ .shelf:not([data-need~="phospho"]),
.filter:has(#need-do:checked) ~ .shelf:not([data-need~="do"]),
.filter:has(#need-chlorine:checked) ~ .shelf:not([data-need~="chlorine"]),
.filter:has(#need-solids:checked) ~ .shelf:not([data-need~="solids"]),
.filter:has(#need-metal:checked) ~ .shelf:not([data-need~="metal"]) {
  display: none;
}

/* --- the quote bar, and the room the floating buttons need above it ----------------------------------------- */
/* Owner, 28/11/2026 15:0x: the bar stays, and the Zalo button moves UP so the two never cover each other. One variable
   is the bar's height; the bar sets it, the buttons read it, and the page keeps room for both at its foot. */
:root {
  --quote-bar-h: 58px;
}

body {
  padding-bottom: var(--quote-bar-h);
}

.quote-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  background: var(--navy);
  color: #fff;
  min-height: var(--quote-bar-h);
  display: flex;
  align-items: center;
  box-shadow: 0 -8px 22px -16px rgba(8, 20, 38, 0.7);
}

.quote-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
}

.quote-bar p {
  margin: 0;
  font-size: 0.92rem;
  flex: 1 1 auto;
  min-width: 0;
}

.quote-bar .btn {
  flex: none;
  padding: 0.45rem 0.9rem;
}

.contact-fab {
  bottom: calc(1rem + env(safe-area-inset-bottom) + var(--quote-bar-h));
}

@media (max-width: 640px) {
  /* The sentence is an explanation, the button is the action: on a narrow screen the action stays and the bar keeps
     one line, so its height cannot grow under the floating buttons (owner, 28/11: both stay visible). */
  .quote-bar p {
    display: none;
  }

  .quote-bar .wrap {
    justify-content: center;
  }

  .quote-bar .btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.82rem;
  }
}

/* A portrait product shot in the hero (PowerSolution): the cabinet is tall, so it is held to a readable height and
   centred rather than stretched across the column. */
.hero-figure--portrait img {
  width: auto;
  max-width: 100%;
  max-height: 460px;
  margin-inline: auto;
}

@media (max-width: 640px) {
  .hero-figure--portrait img {
    max-height: 340px;
  }
}
