/* ==========================================================================
   AquaDect / Mosselmonitor® website
   Original stylesheet. Palette derived from the AquaDect logo blue and the
   red base of the Mosselmonitor unit. System fonts only: no external
   requests, no tracking, no cookies.
   ========================================================================== */

:root {
  --navy: #0f3b6e;
  --navy-deep: #0a2b52;
  --blue: #2f6fb3;
  --blue-soft: #5b93d1;
  --blue-tint: #e8f0f9;
  --red: #c8342b;
  --ink: #1a2230;
  --ink-soft: #4b5563;
  --muted: #6b7280;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(15, 59, 110, .10);
  --shadow-sm: 0 2px 10px rgba(15, 59, 110, .08);
  --container: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 3px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--blue-tint); }
.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,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand img { width: 150px; height: auto; }
.brand-sub { font-size: .95rem; font-weight: 600; letter-spacing: .04em; border-left: 1px solid rgba(255,255,255,.35); padding-left: 14px; line-height: 1.1; }
.brand-sub sup { font-size: .6em; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { color: rgba(255,255,255,.88); padding: 10px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.main-nav a:hover { background: rgba(255,255,255,.10); color: #fff; text-decoration: none; }
.main-nav a[aria-current="page"] { background: rgba(255,255,255,.16); color: #fff; }
.main-nav .lang { border: 1px solid rgba(255,255,255,.4); padding: 6px 10px; font-size: .85rem; margin-left: 6px; }
/* The demo button sits inside the nav; these rules must beat ".main-nav a" so
   its text stays navy on the white button instead of inheriting the white link colour. */
.main-nav .nav-cta { margin-left: 10px; padding: 10px 18px; color: var(--navy); }
.main-nav .nav-cta:hover { background: var(--blue-tint); color: var(--navy); }
.nav-toggle {
  display: none; background: transparent; border: 0; width: 44px; height: 44px; padding: 8px; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 3px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  background: radial-gradient(1200px 600px at 85% 20%, #1f5a9c 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff; padding: 72px 0 96px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; background: var(--bg);
  clip-path: ellipse(60% 100% at 50% 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero .eyebrow { color: #a9c9ee; }
.hero .lead { color: rgba(255,255,255,.88); font-size: 1.2rem; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-figure { position: relative; }
.hero-figure img { border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.35); border: 6px solid rgba(255,255,255,.10); }
.hero-badge {
  position: absolute; left: -12px; bottom: 22px; background: #fff; color: var(--ink); border-radius: 12px;
  padding: 12px 16px; box-shadow: var(--shadow); font-size: .9rem; line-height: 1.3; max-width: 240px;
}
.hero-badge b { display: block; color: var(--navy); font-size: 1.05rem; }
.hero-badge .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #22a06b; margin-right: 6px; box-shadow: 0 0 0 4px rgba(34,160,107,.18); }
.hero-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); }
.hero-facts div { font-size: .9rem; color: rgba(255,255,255,.8); }
.hero-facts b { display: block; font-size: 1.35rem; color: #fff; }

/* ---------- page hero (subpages) ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color: #fff; padding: 56px 0 48px; }
.page-hero h1 { color: #fff; }
.page-hero .eyebrow { color: #cfe1f6; }
.page-hero .lead { color: rgba(255,255,255,.9); max-width: 720px; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-tight { padding: 48px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- logo strip ---------- */
.logo-strip { padding: 34px 0 10px; }
.logo-strip p { text-align: center; color: var(--muted); font-size: .9rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.logo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
.logo-row a, .logo-row div {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; align-items: center; justify-content: center; min-height: 84px;
}
.logo-row img { max-height: 54px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.logo-row a:hover img, .logo-row div:hover img { filter: none; opacity: 1; }

/* ---------- cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-top: 14px; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-tint); color: var(--navy); display: grid; place-items: center; }
.icon svg { width: 28px; height: 28px; }
.icon-red { background: #fbe9e7; color: var(--red); }
.card-link { display: inline-block; margin-top: 12px; font-weight: 700; }
.card-link::after { content: " \2192"; }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; margin-bottom: 26px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center;
}
.step h3 { margin-bottom: 4px; }

/* feature list */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-tint);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5 10.5l3 3 7-7' fill='none' stroke='%230f3b6e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}

/* spec table */
.specs { width: 100%; border-collapse: collapse; font-size: .98rem; }
.specs th, .specs td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 38%; color: var(--ink-soft); font-weight: 600; background: var(--bg-alt); }

/* alarm chips */
.alarms { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.alarm { border-left: 4px solid var(--red); background: #fff; border-radius: 10px; padding: 14px 16px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.alarm b { display: block; color: var(--navy); }
.alarm span { font-size: .92rem; color: var(--ink-soft); }

/* figure */
.figure { margin: 0; }
.figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.figure figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }

/* notice */
.notice { border-radius: var(--radius); padding: 18px 22px; background: var(--blue-tint); border: 1px solid #cfdff2; }
.notice-dev { background: #fff7e6; border-color: #f3dfb0; }
.notice b { color: var(--navy); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy-deep), var(--blue)); color: #fff; padding: 64px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 620px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }

/* quote / story */
.story { max-width: 760px; }
.story p { font-size: 1.08rem; }
.portrait-card { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.contact-card { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; }
.contact-card address { font-style: normal; line-height: 1.7; }
.contact-card .map-link { margin: 8px 0 0; }
.contact-card .map-link a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.contact-card .map-link svg { flex: none; }
form .field { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
input, textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; color: var(--ink); background: #fff;
}
input:focus, textarea:focus { border-color: var(--blue); outline: 3px solid rgba(47,111,179,.2); }
textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .88rem; color: var(--muted); }
.honeypot { position: absolute; left: -9999px; }
.alert { border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; font-weight: 600; }
.alert-ok { background: #e7f6ee; color: #14663f; border: 1px solid #b9e3c9; }
.alert-err { background: #fdecea; color: #8f1f17; border: 1px solid #f3c1bc; }

/* ---------- landing page: audiences, versions, comparison ---------- */
.grid-top { align-items: stretch; }
.card.audience h3, .card.version h3 { margin-top: 4px; font-size: 1.35rem; }
.card.audience .checks { margin-top: 14px; }
/* photo at the top of a version card: both product photos shown whole, at the same height */
.version-photo { height: 260px; margin-bottom: 18px; border-radius: 10px; background: var(--blue-tint); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.version-photo img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
a.card.version-link { display: block; color: inherit; }
a.card.version-link:hover { text-decoration: none; }
a.card.version-link h3 { margin-top: 4px; font-size: 1.35rem; }
.table-wrap { overflow-x: auto; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .98rem; }
.compare th, .compare td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--navy); color: #fff; font-weight: 700; }
.compare tbody th { width: 22%; color: var(--ink-soft); font-weight: 600; background: var(--bg-alt); }
.download-card { background: var(--blue-tint); border: 1px solid #cfdff2; border-radius: var(--radius); padding: 28px; }
.download-card h3 { margin-top: 0; }
select { appearance: auto; }
select:focus { border-color: var(--blue); outline: 3px solid rgba(47,111,179,.2); }
#enquiry, #versions, #two-versions { scroll-margin-top: 90px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.82); padding: 56px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { width: 150px; margin-bottom: 14px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: rgba(255,255,255,.88); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: .88rem; color: rgba(255,255,255,.65); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Between 1200 and 1300px the full menu still fits, but only without the
   "Mosselmonitor" brand suffix and with slightly tighter links. */
@media (max-width: 1300px) {
  .brand-sub { display: none; }
  .main-nav a { padding: 10px 10px; font-size: .92rem; }
}
/* Below 1200px the seven links plus language switch and demo button no longer
   fit next to the logo: collapse into the hamburger menu. */
@media (max-width: 1200px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch;
    padding: 12px 20px 20px; gap: 2px; border-top: 1px solid rgba(255,255,255,.12); box-shadow: 0 12px 24px rgba(0,0,0,.25);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; font-size: .98rem; }
  .main-nav .lang { align-self: flex-start; margin: 8px 0 0 10px; }
  .main-nav .nav-cta { margin: 10px 0 0; justify-content: center; }
}
@media (max-width: 800px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 76px; }
  .hero-grid, .grid-2, .grid-3, .contact-grid, .field-row { grid-template-columns: 1fr; }
  /* On a phone the photo comes first, with the badge as a small card over its bottom-right corner. */
  .hero-figure { order: -1; width: fit-content; max-width: 100%; margin: 0 0 36px; }
  .hero-badge { left: auto; right: -8px; bottom: -30px; max-width: 215px; padding: 10px 14px; font-size: .8rem; line-height: 1.3; }
  .hero-badge b { font-size: .93rem; }
  .section { padding: 52px 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr 1fr; gap: 16px; }
  .brand img { width: 130px; }
}
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
  body { color: #000; }
}
