/* Controlmatik Commerce - concept stylesheet
   Colours from the Controlmatik logo: deep teal ring (#105880) and aqua wave (#3db2e0).
   Red Hat Display for headings, Red Hat Text for reading. The one loud element is the
   water-values gauge on the home page, built from the numbers on their own site. */

@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url(../fonts/redhatdisplay-normal-latin-ext.woff2) format("woff2");
  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; }
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url(../fonts/redhatdisplay-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Red Hat Text"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/redhattext-normal-latin-ext.woff2) format("woff2");
  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; }
@font-face { font-family: "Red Hat Text"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/redhattext-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Red Hat Text"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url(../fonts/redhattext-italic-latin-ext.woff2) format("woff2");
  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; }
@font-face { font-family: "Red Hat Text"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url(../fonts/redhattext-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f5f8f9;
  --surface: #ffffff;
  --tint: #e5f1f6;
  --ink: #0d2433;
  --ink-soft: #4a6070;
  --rule: #d3dfe5;
  --teal: #105880;
  --teal-deep: #0b3d5a;
  --teal-line: #265f80;
  --aqua: #3db2e0;
  --aqua-hover: #62c3ea;
  --on-deep: #ffffff;
  --on-deep-soft: #bcd6e4;
  --focus: #105880;
  --display: "Red Hat Display", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --text: "Red Hat Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(1rem, 5vw, 3rem);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: 1.0625rem; line-height: 1.62;
  padding-bottom: 4.75rem;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.08; text-wrap: balance; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-underline-offset: .18em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.num { font-variant-numeric: tabular-nums; }

.wrap { max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 40rem; }
.deep { background: var(--teal-deep); color: var(--on-deep); --focus: var(--aqua); }
.tinted { background: var(--tint); }

.skip { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--aqua); color: var(--ink); padding: .75rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; }

.concept { background: var(--ink); color: #c3d2db; font-size: .8125rem; line-height: 1.4; padding: .5rem var(--gutter); text-align: center; }
.concept strong { color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; padding-block: .5rem; flex: none; }
.brand img { width: 11.5rem; height: auto; }
.header-end { display: flex; align-items: center; gap: .5rem; }
.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: .125rem; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .5rem; text-decoration: none; font-size: .9375rem; font-weight: 500; white-space: nowrap; box-shadow: inset 0 -3px 0 transparent; }
.nav a:hover { box-shadow: inset 0 -3px 0 var(--rule); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--aqua); color: var(--teal); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding-inline: .875rem; border: 2px solid var(--teal); color: var(--teal); border-radius: var(--radius); font-weight: 700; font-size: .9375rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--teal); color: #fff; }
.menu ul { list-style: none; position: absolute; right: 0; top: calc(100% + .5rem); width: min(18rem, calc(100vw - 2rem)); background: var(--surface); border: 1px solid var(--rule); box-shadow: 0 14px 30px rgba(13, 36, 51, .18); }
.menu li + li { border-top: 1px solid var(--rule); }
.menu a { display: block; padding: .8125rem 1rem; text-decoration: none; font-weight: 600; }
.menu a[aria-current="page"] { color: var(--teal); box-shadow: inset 4px 0 0 var(--aqua); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .625rem 1.125rem; border: 2px solid transparent; border-radius: var(--radius); font: 700 1rem/1.2 var(--display); text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn svg { width: 1.125rem; height: 1.125rem; flex: none; }
.btn-aqua { background: var(--aqua); color: var(--ink); }
.btn-aqua:hover { background: var(--aqua-hover); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgba(16, 88, 128, .07); }
.deep .btn-line:hover { background: rgba(255, 255, 255, .1); }
.header-call { display: none; min-height: 44px; font-size: .9375rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Photos */
figure { margin: 0; }
.photo img { width: 100%; aspect-ratio: var(--ratio, 4 / 3); object-fit: cover; background: var(--tint); border-radius: var(--radius); }
figcaption { margin-top: .5rem; font-size: .9375rem; color: var(--ink-soft); line-height: 1.4; }
.product img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--surface); padding: .75rem; border: 1px solid var(--rule); border-radius: var(--radius); }

/* Hero */
.hero { padding-block: 2.5rem 3.5rem; background: var(--surface); border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; gap: 2.25rem; }
.hero-place { color: var(--teal); font-weight: 600; }
.hero h1 { font-size: clamp(2.5rem, 8.5vw, 4.5rem); margin-top: .75rem; color: var(--ink); letter-spacing: -.02em; }
.hero-lead { font-size: 1.1875rem; margin-top: 1.25rem; color: var(--ink-soft); max-width: 36rem; }
.hero .photo img { --ratio: 4 / 3; }

/* Bands */
.band { padding-block: 4rem; }
.band-head { max-width: 44rem; }
.band-head h2 { font-size: clamp(2rem, 6vw, 3.25rem); }
.band-head p { margin-top: .875rem; font-size: 1.125rem; color: var(--ink-soft); }
.deep .band-head p { color: var(--on-deep-soft); }

/* Two audiences (home) */
.split { display: grid; gap: 1.25rem; }
.split-home { padding: 1.75rem 0 0; border-top: 3px solid var(--teal); }
.split-home h2, .split-biz h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
.link-list { list-style: none; margin-top: 1.25rem; border-top: 1px solid var(--rule); }
.link-list a { display: grid; gap: .125rem; padding-block: .9375rem; border-bottom: 1px solid var(--rule); text-decoration: none; }
.link-list strong { font-family: var(--display); font-size: 1.3125rem; font-weight: 700; color: var(--teal); }
.link-list span { color: var(--ink-soft); }
.link-list a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; }
.split-biz { padding: 1.75rem; border-radius: var(--radius); }
.split-biz p { margin-top: .875rem; color: var(--on-deep-soft); }
.split-biz ul { margin-top: 1.25rem; padding-left: 1.125rem; }
.split-biz li + li { margin-top: .5rem; }
.split-biz .actions { margin-top: 1.5rem; }

/* Gauges: the water values from their maintenance page */
.gauges { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
.gauge h3 { font-size: 1.25rem; font-weight: 700; }
.gauge-value { font-family: var(--display); font-weight: 900; font-size: clamp(2.75rem, 9vw, 4.25rem); line-height: 1; color: var(--teal); margin-top: .5rem; letter-spacing: -.02em; }
.gauge-value small { font-size: .38em; font-weight: 700; color: var(--ink-soft); margin-left: .25rem; letter-spacing: 0; }
.gauge-track { position: relative; height: .875rem; margin-top: 1.25rem; background: repeating-linear-gradient(90deg, var(--rule) 0 2px, transparent 2px 10%), #fff; border: 1px solid var(--rule); border-radius: 99px; }
.gauge-track::before { content: ""; position: absolute; top: -1px; bottom: -1px; left: var(--from); width: calc(var(--to) - var(--from)); background: var(--aqua); border-radius: 99px; }
.gauge-scale { position: relative; height: 1.5rem; margin-top: .375rem; font-size: .875rem; color: var(--ink-soft); }
.gauge-scale span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.gauge-scale span:first-child { transform: none; }
.gauge-scale span:last-child { transform: translateX(-100%); }
.gauge p { margin-top: .75rem; color: var(--ink-soft); }
.gauge-note { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); max-width: 44rem; }

/* Brands */
.brand-rows { list-style: none; margin-top: 2rem; border-top: 2px solid var(--ink); }
.brand-rows li { display: grid; gap: .25rem; padding-block: 1rem; border-bottom: 1px solid var(--rule); }
.brand-rows strong { font-family: var(--display); font-size: 1.375rem; }
.brand-rows span { color: var(--ink-soft); }

/* Contact strip (home) */
.contact-strip .wrap { display: grid; gap: 2rem; }
.contact-strip address { font-style: normal; font-size: 1.1875rem; line-height: 1.5; }
.contact-strip address strong { display: block; font-family: var(--display); font-size: 1.5rem; margin-bottom: .25rem; }
.phones { list-style: none; display: grid; gap: .25rem; }
.phones a { display: flex; flex-direction: column; min-height: 44px; justify-content: center; padding-block: .5rem; text-decoration: none; border-bottom: 1px solid var(--teal-line); }
.phones small { color: var(--on-deep-soft); font-size: .875rem; }
.phones span { font-family: var(--display); font-weight: 700; font-size: clamp(1.125rem, 5vw, 1.375rem); }
.phones a:hover span { text-decoration: underline; }
.hours-line { margin-top: 1rem; color: var(--on-deep-soft); }
.hours-line strong { color: #fff; }

/* Sub-page head */
.page-head { padding-block: 2.5rem 2.5rem; background: var(--surface); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.25rem, 7.5vw, 3.75rem); max-width: 20ch; }
.page-head p { margin-top: 1rem; font-size: 1.1875rem; color: var(--ink-soft); max-width: 42rem; }
.crumb { font-size: .9375rem; color: var(--ink-soft); margin-bottom: .75rem; }
.crumb a { color: var(--teal); }
.jump { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: 1.5rem; }
.jump a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; color: var(--teal); text-decoration-thickness: 2px; text-decoration-color: var(--aqua); }

/* Article sections */
.section { padding-block: 3.25rem; border-bottom: 1px solid var(--rule); }
.section:last-of-type { border-bottom: 0; }
.section .wrap { display: grid; gap: 2rem; }
.section h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); color: var(--ink); }
.prose > * + * { margin-top: 1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .4rem; }
.prose strong { color: var(--ink); }
.facts { list-style: none; display: grid; gap: 0; margin-top: 1.25rem; border-top: 1px solid var(--rule); }
.facts li { display: grid; grid-template-columns: minmax(8rem, 40%) 1fr; gap: 1rem; padding-block: .75rem; border-bottom: 1px solid var(--rule); }
.facts b { font-weight: 600; color: var(--ink-soft); }
.callout { padding: 1.25rem 1.5rem; background: var(--tint); border-left: 4px solid var(--aqua); }
.callout a { color: var(--teal); font-weight: 700; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 1.75rem; margin-top: 1.75rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 900; font-size: 2.25rem; line-height: 1; color: var(--aqua); }
.steps h3 { font-size: 1.3125rem; font-weight: 700; }
.steps p { margin-top: .375rem; }

/* Equipment */
.groups { display: grid; gap: 2.5rem; }
.group h2 { font-size: clamp(1.625rem, 4.5vw, 2.125rem); padding-bottom: .625rem; border-bottom: 2px solid var(--ink); }
.group ul { list-style: none; }
.group li { padding-block: .6875rem; border-bottom: 1px solid var(--rule); }
.group li span { display: block; color: var(--ink-soft); font-size: .9375rem; }
.group-figs { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: 1.25rem; }
.group-figs figcaption { font-size: .875rem; }

/* Forms */
.form { display: grid; gap: 1.125rem; margin-top: 1.5rem; }
.field { display: grid; gap: .375rem; }
.field label { font-weight: 600; }
.field .hint { font-size: .875rem; color: var(--ink-soft); }
.field input, .field textarea, .field select { width: 100%; font: 400 1.0625rem/1.4 var(--text); color: var(--ink); background: #fff; border: 2px solid #5f7887; border-radius: var(--radius); padding: .75rem .875rem; min-height: 48px; }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); outline: 3px solid rgba(61, 178, 224, .45); outline-offset: 0; }
.form .btn { justify-self: start; }
.form-legal { font-size: .875rem; color: var(--ink-soft); }
.form-concept { padding: .625rem .875rem; background: var(--tint); border-left: 4px solid var(--teal); font-size: .9375rem; }
.hidden-field { position: absolute; left: -9999px; }
.form-box { padding: 1.5rem; background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--aqua); }
.form-box h2 { font-size: clamp(1.625rem, 4.5vw, 2.125rem); }

/* Contact page */
.contact-grid { display: grid; gap: 2.5rem; }
.contact-card { padding: 1.5rem; border-radius: var(--radius); }
.contact-card h2 { font-size: 1.5rem; }
.contact-card address { font-style: normal; margin-top: .75rem; font-size: 1.125rem; line-height: 1.5; }
.contact-card .mail { display: inline-block; margin-top: 1rem; font-family: var(--display); font-weight: 700; font-size: clamp(1.0625rem, 4.8vw, 1.25rem); color: #fff; }
.hours { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.hours caption { text-align: left; font-family: var(--display); font-weight: 700; font-size: 1.25rem; padding-bottom: .375rem; }
.hours th, .hours td { text-align: left; padding: .5rem 0; border-top: 1px solid var(--teal-line); font-weight: 400; }
.hours td { text-align: right; font-weight: 600; white-space: nowrap; padding-left: 1rem; }
.company { margin-top: 1.5rem; font-size: .875rem; color: var(--on-deep-soft); line-height: 1.55; }

.thanks { padding-block: 4rem 6rem; }
.thanks h1 { font-size: clamp(2.25rem, 8vw, 3.75rem); }
.thanks p { margin-top: 1rem; font-size: 1.1875rem; max-width: 36rem; }
.thanks a:not(.btn) { color: var(--teal); font-weight: 700; }

/* Footer */
.site-footer { padding-block: 3rem; background: var(--ink); color: #c3d2db; --focus: var(--aqua); }
.site-footer p a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer .wrap { display: grid; gap: 1.75rem; }
.site-footer p { font-size: .9375rem; }
.site-footer strong { color: #fff; font-family: var(--display); }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.foot-links a { display: inline-flex; min-height: 44px; align-items: center; }
.footer-concept { border-top: 1px solid #2b4455; padding-top: 1.5rem; font-size: .875rem; }

/* Mobile action bar */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .625rem var(--gutter) calc(.625rem + env(safe-area-inset-bottom)); background: var(--teal-deep); --focus: var(--aqua); }
.action-bar .btn { width: 100%; padding-inline: .375rem; font-size: .9375rem; }
.action-bar .btn-line { color: #fff; }

@media (max-width: 22.5rem) {
  .brand img { width: 9.5rem; }
  .facts li { grid-template-columns: 1fr; gap: .125rem; }
}

/* 600px */
@media (min-width: 37.5rem) {
  .group-figs { grid-template-columns: repeat(3, 1fr); }
  .brand-rows li { grid-template-columns: 11rem 1fr; gap: 1.5rem; align-items: baseline; }
}

/* 768px */
@media (min-width: 48rem) {
  body { padding-bottom: 0; }
  .action-bar { display: none; }
  .header-call { display: inline-flex; }
  .hero { padding-block: 3.5rem 4rem; }
  .hero .wrap { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3.5rem; }
  .band { padding-block: 5rem; }
  .split { grid-template-columns: 1.3fr .9fr; gap: 3rem; align-items: start; }
  .gauges { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .contact-strip .wrap { grid-template-columns: 1fr 1fr; align-items: start; gap: 3rem; }
  .page-head { padding-block: 3.5rem 3rem; }
  .section .wrap { grid-template-columns: 1.2fr .8fr; gap: 3.5rem; align-items: start; }
  .section .wrap.single { grid-template-columns: 1fr; }
  .groups { grid-template-columns: 1fr 1fr; gap: 3rem 3.5rem; }
  .contact-grid { grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: start; }
  .site-footer .wrap { grid-template-columns: 1.3fr 1fr 1fr; align-items: start; }
  .footer-concept { grid-column: 1 / -1; }
}

/* 1200px: full navigation fits next to the logo and phone */
@media (min-width: 75rem) {
  .nav { display: block; }
  .menu { display: none; }
}

@media print { .site-header { position: static; } .action-bar { display: none; } }
