/* =========================================================
   PWR website: design system
   Theme "Light & Fresh": white surfaces, blue #0077C8, green accent. Font: Roboto.
   ========================================================= */
:root {
  --navy-900: #0B2440;
  --navy-800: #0F2C4D;
  --navy-700: #173F6B;
  --blue-600: #0077C8;
  --blue-500: #1A8AD4;
  --sky-100: #E8F2FA;
  --sky-50: #F3F8FC;
  --green-500: #8BC34A;
  --green-700: #4F7F1F;
  --ink: #15212E;
  --text: #3A4856;
  --muted: #5E6E7E;
  --line: #DDE6EF;
  --white: #FFFFFF;
  --radius-sm: 6px;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 36, 64, .06);
  --shadow: 0 2px 4px rgba(11, 36, 64, .04), 0 12px 32px rgba(11, 36, 64, .08);
  --max: 1240px;
  --font: "Roboto", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-head: "Manrope", "Roboto", "Segoe UI", system-ui, Arial, sans-serif;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65;
  color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.18; margin: 0 0 .55em; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--green-500); outline-offset: 3px; border-radius: 4px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 200; background: var(--navy-800); color: var(--white); padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font: 600 .98rem/1 var(--font); text-decoration: none; letter-spacing: .005em;
  border: 2px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: .92rem; }
.btn-primary { background: var(--blue-600); color: var(--white); }
.btn-primary:hover { background: var(--navy-700); color: var(--white); }
.btn-green { background: var(--green-500); color: var(--navy-900); }
.btn-green:hover { background: #A2D468; color: var(--navy-900); }
.btn-outline { border-color: var(--blue-600); color: var(--blue-600); }
.btn-outline:hover { background: var(--blue-600); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.65); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy-800); }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 14px; }
.eyebrow-green { color: var(--green-700); }
.lead { font-size: 1.08rem; color: var(--muted); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11,36,64,.07); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.brand-wrap { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 54px; height: 54px; }
/* Name on one line, all Poppins: "Pure Water" medium navy + "Resources" light blue (feedback item 51, option A) */
.brand-name { font-family: Poppins, var(--font-head); font-size: 1.2rem; font-weight: 600; color: var(--navy-900); letter-spacing: -.01em; white-space: nowrap; line-height: 1; }
.brand-name span { color: var(--blue-600); font-weight: 400; }
.brand-partner { display: flex; flex-direction: column; gap: 3px; padding: 6px 0 6px 20px; border-left: 1px solid var(--line); }
.brand-partner small { font-family: Poppins, var(--font); font-size: .62rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.brand-partner img { width: auto; height: 22px; }

.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.main-nav a, .main-nav .nav-btn {
  display: flex; align-items: center; gap: 6px; padding: 10px 13px; border-radius: 8px;
  color: var(--ink); font: 500 .95rem var(--font); text-decoration: none; background: none; border: 0; cursor: pointer;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav .nav-btn:hover, .main-nav .nav-btn[aria-expanded="true"] { background: var(--sky-50); color: var(--blue-600); }
.main-nav a[aria-current="page"], .main-nav .is-active > .nav-btn { color: var(--blue-600); }
.nav-btn svg { width: 12px; height: 12px; transition: transform .2s; }
.nav-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 12px); left: -120px; width: 680px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(11,36,64,.16); padding: 22px; display: none;
  grid-template-columns: 1fr 1fr; gap: 6px 18px;
}
.mega.open { display: grid; }
.mega a { align-items: flex-start; gap: 14px; padding: 12px; white-space: normal; }
.mega-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: var(--sky-100); display: grid; place-items: center; }
.mega-icon svg { width: 22px; height: 22px; stroke: var(--blue-600); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mega strong { display: block; color: var(--ink); font-weight: 600; font-size: .95rem; }
.mega small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; margin-top: 2px; font-weight: 400; }
.mega-footer { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; }
.mega-footer a { padding: 0; }
.header-cta { flex-shrink: 0; min-height: 40px; padding: 0 18px; font-size: .88rem; }
.mega-narrow { width: 360px; left: -40px; grid-template-columns: 1fr; }
.nav-toggle { display: none; }

/* ---------- Home hero (Light & Fresh: full photo, white fade on the left) ---------- */
.hero { position: relative; background: var(--white); color: var(--text); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 36%, rgba(255,255,255,0) 64%); }
/* Home hero only: wash the whole photo so it reads as a soft background */
.hero > .hero-media::after { background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.85) 40%, rgba(255,255,255,.5) 100%); }
.hero-panel { position: relative; z-index: 2; min-height: 620px; display: flex; align-items: center; }
.hero-content { width: 100%; max-width: var(--max); margin: 0 auto; padding: 72px 32px; }
.hero-content > * { max-width: 600px; }
.hero h1, .page-hero h1 { color: var(--navy-900); }
.hero h1 em { font-style: normal; color: var(--blue-600); }
.hero .lead { color: var(--text); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.hero .btn-green, .page-hero .btn-green { background: var(--blue-600); color: var(--white); }
.hero .btn-green:hover, .page-hero .btn-green:hover { background: var(--navy-700); }
.hero .btn-ghost, .page-hero .btn-ghost { border-color: var(--blue-600); color: var(--blue-600); }
.hero .btn-ghost:hover, .page-hero .btn-ghost:hover { background: var(--blue-600); color: var(--white); }
.hero-badge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--sky-100); border: 1px solid #CFE2F3; font-size: .88rem; color: var(--navy-700); }
.hero-badge b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green-500); color: var(--navy-900); font-size: .8rem; }

/* ---------- Home hero: text only on blue (feedback item 40) ---------- */
.hero-blue { position: relative; overflow: hidden; isolation: isolate; color: var(--white); text-align: center;
  background: linear-gradient(125deg, var(--navy-900) 0%, #0A3C73 50%, #0071BE 100%); }
.hero-blue::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 32px 32px,
              linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); }
.hero-blue .container { max-width: 980px; padding-block: 76px 64px; }
.hero-blue h1 { color: var(--white); font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0 0 18px; text-wrap: balance; }
.hero-blue h1 em { font-style: normal; color: #8FD3FF; }
.hero-blue .lead { color: #D6E6F5; max-width: 680px; margin: 0 auto 30px; }
.hero-blue .hero-actions { justify-content: center; margin: 0; }
.hero-trust { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; margin: 40px auto 0; padding-top: 22px; max-width: 560px; border-top: 1px solid rgba(255,255,255,.16); font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #BFD6EC; }
.hero-trust i { width: 5px; height: 5px; border-radius: 50%; background: var(--green-500); }
@media (max-width: 600px) {
  .hero-trust { flex-direction: column; gap: 4px; font-size: .7rem; }
  .hero-trust i { display: none; }
  .hero-blue .container { padding-block: 48px; }
}

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; background: var(--white); color: var(--text); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .hero-media::after { background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 40%, rgba(255,255,255,0) 70%); }
.page-hero .hero-panel { min-height: 440px; }
.page-hero .hero-content { padding: 56px 32px 64px; }
.page-hero .hero-content > * { max-width: 560px; }
.page-hero h1 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
.page-hero .lead { color: var(--text); }
.breadcrumb { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.breadcrumb a { color: var(--blue-600); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero-plain { background: linear-gradient(120deg, var(--sky-100) 0%, var(--white) 70%); }
.page-hero-plain .hero-panel { min-height: 340px; }
.page-hero-plain .hero-content > * { max-width: 760px; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-sm { padding: 64px 0; }
.bg-sky { background: var(--sky-50); }
/* .bg-navy is kept as a class name but is now a light, tinted section */
.bg-navy { background: linear-gradient(180deg, var(--sky-100) 0%, var(--sky-50) 100%); color: var(--text); }
.bg-navy .lead { color: var(--muted); }
.section-head { max-width: 760px; margin-bottom: 60px; }
/* More air between heading, intro and content (feedback item 46) */
.section-head h2, .split h2 { margin-bottom: 26px; }
.section-head .lead { max-width: 640px; }
.lead { line-height: 1.75; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 60px; }
.section-head-row .section-head { margin-bottom: 0; }

/* Statement */
.statement { padding: 88px 0 72px; text-align: center; }
.statement p { font-size: clamp(1.4rem, 2.6vw, 2.05rem); line-height: 1.35; font-weight: 600; color: var(--navy-700); letter-spacing: -.015em; max-width: 960px; margin: 0 auto; }
.statement p span { color: var(--blue-600); }

/* ---------- Image tiles (systems) ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tile {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none;
  aspect-ratio: 4 / 3.1; background: var(--navy-800); isolation: isolate;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; z-index: -2; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,36,64,0) 30%, rgba(11,36,64,.92) 100%); }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; color: var(--white); }
.tile-body h3 { color: var(--white); margin-bottom: 6px; font-size: 1.3rem; }
.tile-body p { margin: 0; color: #D3E2F0; font-size: .93rem; line-height: 1.5; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s, opacity .3s, margin .3s; }
.tile-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; font-size: .9rem; color: var(--green-500); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); }
.tile:hover .tile-body p, .tile:focus-visible .tile-body p { max-height: 120px; opacity: 1; margin-top: 4px; }

.tile-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile-grid-4 .tile { aspect-ratio: 4 / 3.6; }
.tile-grid-4 .tile-body { padding: 22px; }
.tile-grid-4 .tile-body h3 { font-size: 1.15rem; }



/* ---------- Approach (process) ---------- */
.approach { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.approach-step { position: relative; padding: 0 28px 0 0; }
.approach-step + .approach-step { padding-left: 28px; border-left: 1px solid var(--line); }
.approach-icon { width: 58px; height: 58px; border-radius: 16px; background: var(--sky-100); display: grid; place-items: center; margin-bottom: 20px; }
.approach-icon svg { width: 28px; height: 28px; stroke: var(--blue-600); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.approach-step h3 { font-size: 1.35rem; margin-bottom: 8px; }
.approach-step h3::before { counter-increment: step; content: "0" counter(step); display: block; font-size: .78rem; letter-spacing: .14em; color: var(--green-700); margin-bottom: 8px; }
.approach-step p { color: var(--muted); font-size: .97rem; margin: 0; }
.bg-navy .approach-icon { background: var(--white); box-shadow: var(--shadow-sm); }





/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 11; object-fit: cover; box-shadow: var(--shadow); }
.split-media::before { content: ""; position: absolute; width: 46%; height: 60%; right: -18px; bottom: -18px; z-index: -1; border-radius: var(--radius); background: var(--green-500); opacity: .9; }
.split-reverse .split-media::before { right: auto; left: -18px; background: var(--blue-600); }
.split-media { z-index: 0; isolation: isolate; }
.check-list { list-style: none; padding: 0; margin: 22px 0 30px; }
.check-list li { position: relative; padding: 9px 0 9px 34px; border-bottom: 1px solid var(--line); }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 14px; height: 8px; border-left: 2.5px solid var(--green-700); border-bottom: 2.5px solid var(--green-700); transform: rotate(-45deg); }
.check-list strong { color: var(--ink); }




/* ---------- Stats band ---------- */
.stats { background: var(--blue-600); color: var(--white); position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.5px) 0 0 / 20px 20px; mask-image: linear-gradient(90deg, transparent, #000 60%); }
.stats .container { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 64px; padding-bottom: 64px; }
.stat { padding: 0 28px; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.25); }
.stat-num { display: block; font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; margin-bottom: 12px; }
.stat-label { display: block; font-size: .98rem; color: #DCEBF8; line-height: 1.45; }
.stat-source { display: block; font-size: .75rem; color: #A9CBEA; margin-top: 6px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: 0; }
.card .link-arrow { margin-top: 18px; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--sky-100); display: grid; place-items: center; margin-bottom: 20px; }
.card-icon svg { width: 26px; height: 26px; stroke: var(--blue-600); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-media { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card-media img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform .5s; }
.card-media:hover img { transform: scale(1.04); }
.card-media .card-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.card-media .card-body p { flex: 1; }
.card-tag { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); margin-bottom: 10px; }
.card h3 a { color: inherit; text-decoration: none; }





/* Calculator teaser / CTA band */
.cta-band { background: linear-gradient(120deg, #0062A8, var(--blue-600) 55%, #18A0E0); color: #E6F3FF; border-radius: 20px; padding: 56px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(139,195,74,.12); }
.cta-band h2 { color: var(--white); }
.cta-band .eyebrow-green { color: #CFF29E; }
.cta-band .btn { position: relative; z-index: 1; justify-self: end; }

/* ---------- Detail pages ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { font-size: 1.04rem; }
.prose li { margin-bottom: .45em; }
.prose .callout { background: var(--sky-50); border-left: 4px solid var(--blue-600); padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.6em 0; }
.prose .callout p:last-child { margin: 0; }
.issue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 8px; }
.issue { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--white); }
.issue h3 { font-size: 1.02rem; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.issue h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-600); flex-shrink: 0; }
.issue p { margin: 0; font-size: .93rem; color: var(--muted); }
.scope-list { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.scope-list li { background: var(--sky-50); border-radius: var(--radius-sm); padding: 14px 16px 14px 44px; position: relative; font-size: .97rem; margin: 0; }
.scope-list li::before { content: ""; position: absolute; left: 18px; top: 20px; width: 12px; height: 7px; border-left: 2.5px solid var(--green-700); border-bottom: 2.5px solid var(--green-700); transform: rotate(-45deg); }
.outcomes { list-style: none; padding: 0; margin: 20px 0; }
.outcomes li { padding: 16px 0 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr; gap: 12px; margin: 0; }
.outcomes li::before { content: "✓"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green-500); color: var(--navy-900); font-weight: 800; font-size: .85rem; }

.aside-card { position: sticky; top: calc(var(--header-h) + 24px); background: var(--sky-50); color: var(--text); border: 1px solid var(--line); border-top: 4px solid var(--blue-600); border-radius: 0 0 var(--radius) var(--radius); padding: 30px; }
.aside-card h3 { color: var(--navy-900); font-size: 1.2rem; }
.aside-card p { font-size: .95rem; }
.aside-card .btn { width: 100%; margin-top: 8px; }
.aside-card hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.aside-links { list-style: none; padding: 0; margin: 0; }
.aside-links li { margin: 0; }
.aside-links a { display: flex; justify-content: space-between; padding: 10px 0; color: var(--navy-700); text-decoration: none; border-bottom: 1px solid var(--line); font-size: .94rem; }
.aside-links a:hover { color: var(--blue-600); }
.aside-links a::after { content: "→"; }
.aside-label { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); margin-bottom: 8px; }

/* Tech blocks */
.tech-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.tech-col { padding: 30px 26px; }
.tech-col + .tech-col { border-left: 1px solid var(--line); }
.tech-col .card-tag { color: var(--blue-600); }
.tech-col h3 { font-size: 1.08rem; }
.tech-col p { font-size: .94rem; color: var(--muted); margin: 0; }
.tech-col-pwr { background: var(--sky-100); }
.tech-col-pwr h3 { color: var(--navy-900); }
.tech-col-pwr p { color: var(--text); }
.tech-col-pwr .card-tag { color: var(--green-700); }
/* ---------- Training & seminars ---------- */
.event { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; padding: 56px 0; border-top: 1px solid var(--line); }
.event:first-of-type { border-top: 0; padding-top: 0; }
.event-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.event-gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; display: block; }
.event-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; transition: transform .4s; }
.event-gallery button { grid-column: 1 / -1; }
.event-gallery button:first-child img { aspect-ratio: 16 / 10; }
/* with 3+ photos, the extra ones sit side by side */
.event-gallery button:nth-child(n+3) { grid-column: auto; }
.event-gallery button:nth-child(n+3) img { aspect-ratio: 4 / 3; }
.event-gallery button:hover img { transform: scale(1.03); }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; padding: 0; list-style: none; }
.event-meta li { font-size: .85rem; padding: 6px 12px; border-radius: 999px; background: var(--sky-100); color: var(--navy-700); margin: 0; }
.event dl { margin: 22px 0 0; display: grid; gap: 0; }
.event dl div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.event dt { font-weight: 500; color: var(--navy-900); }
.event dd { margin: 0; color: var(--text); }
.quote { margin: 28px 0 0; padding: 26px 28px; background: var(--sky-50); border-left: 4px solid var(--green-500); border-radius: 0 var(--radius) var(--radius) 0; }
.quote p { font-size: 1.08rem; color: var(--navy-900); font-style: italic; margin-bottom: 12px; }
.quote cite { font-style: normal; font-weight: 500; color: var(--blue-600); font-size: .92rem; }
.badge-nalco { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 500; color: var(--navy-700); }
.badge-nalco::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); }
/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(11, 36, 64, .85); }
.lightbox img { max-width: 100%; max-height: 86vh; display: block; border-radius: 8px; margin: 0 auto; }
.lightbox-close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--white); color: var(--navy-900); font-size: 1.4rem; cursor: pointer; }
/* ---------- Clients ---------- */
.client-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.client-grid li { margin: 0; height: 104px; display: grid; place-items: center; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.client-grid img { max-height: 58px; max-width: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s; }
.client-grid li:hover img { filter: none; opacity: 1; }
/* white logos (e.g. Coral Sea) are inverted so they show on the white tile */
.client-grid li.logo-light img { filter: invert(1) grayscale(1); }
.client-grid li.logo-light:hover img { filter: invert(1); }
.client-grid-4 { grid-template-columns: repeat(4, 1fr); }
.client-group + .client-group { margin-top: 40px; }
.client-group h3 { font-size: 1.05rem; margin-bottom: 16px; color: var(--navy-700); }

/* Home: two seminars side by side */
.seminar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.seminar-grid .card-media img { aspect-ratio: 16 / 9; }
.seminar-grid h3 { font-size: 1.25rem; }
.quote-sm { margin-top: 18px; padding: 16px 18px; }
.quote-sm p { font-size: .95rem; margin-bottom: 8px; }
.quote-sm cite { font-size: .85rem; }
/* Home: training strip */
.training-strip { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.training-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: var(--radius); box-shadow: var(--shadow); }

.split-media-product img { object-fit: contain; padding: 36px; background: var(--white); }
.tech-visuals { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; margin-top: 24px; }
.tech-visual { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.tech-visual img { width: 100%; height: 300px; object-fit: cover; }
.tech-visual-product img { object-fit: contain; padding: 24px; background: linear-gradient(180deg, var(--sky-50), var(--sky-100)); }
.tech-visual figcaption { padding: 22px 26px 26px; color: var(--muted); font-size: .95rem; }
.tech-visual figcaption strong { display: block; color: var(--navy-900); font-size: 1.12rem; font-weight: 500; margin-bottom: 6px; }
.note { font-size: .85rem; color: var(--muted); margin-top: 18px; }


/* Safety steps */
.steps-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.steps-row li { counter-increment: s; position: relative; background: var(--white); border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--line); margin: 0; }
.steps-row li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy-700); color: var(--white); font-weight: 700; margin-bottom: 16px; }
.steps-row h3 { font-size: 1.02rem; }
.steps-row p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Equipment */
.equip { border-top: 4px solid var(--blue-600); }
.equip ul { padding-left: 1.1em; margin: 12px 0 0; color: var(--muted); font-size: .96rem; }
.equip li { margin-bottom: 4px; }

/* Article */
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .88rem; color: #A9C0D8; }
.draft-flag { display: inline-flex; align-items: center; gap: 8px; background: #FFF4D6; color: #6B4E00; border: 1px solid #F0D27A; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.article-body { max-width: 760px; }
.article-body h2 { font-size: 1.6rem; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.calc-inputs { padding: 40px; }
.calc-inputs h3 { margin-bottom: 20px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.calc-field label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: 6px; }
.calc-field .unit-wrap { position: relative; }
.calc-field input { width: 100%; font: 500 1rem var(--font); padding: 12px 64px 12px 14px; border: 1.5px solid #C5D3E0; border-radius: 10px; color: var(--ink); min-height: 48px; }
.calc-field input:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(8,119,188,.15); }
.calc-field .unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: .82rem; color: var(--muted); pointer-events: none; }
.calc-field small { display: block; color: var(--muted); font-size: .78rem; margin-top: 4px; line-height: 1.35; }
.calc-results { background: linear-gradient(160deg, #005A9C, var(--blue-600) 60%, #1497DA); color: #E6F3FF; padding: 40px; display: flex; flex-direction: column; }
.calc-results h3 { color: var(--white); }
.calc-big { font-size: clamp(2.4rem, 4.5vw, 3.4rem); font-weight: 800; color: var(--green-500); line-height: 1; letter-spacing: -.03em; }
.calc-big-label { color: #DCE8F4; margin: 8px 0 26px; }
.calc-table { width: 100%; border-collapse: collapse; font-size: .93rem; margin-bottom: 20px; }
.calc-table th, .calc-table td { text-align: left; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-weight: 400; }
.calc-table th { color: #A9C0D8; font-weight: 500; }
.calc-table td { text-align: right; color: var(--white); font-variant-numeric: tabular-nums; }
.calc-table thead th { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.calc-table thead th:not(:first-child) { text-align: right; }
.calc-note { font-size: .8rem; color: #8FA9C4; margin-top: auto; }

/* ---------- Contact band (all pages) ---------- */
.contact-band { background: linear-gradient(180deg, var(--sky-100) 0%, var(--sky-50) 100%); color: var(--text); padding: 96px 0; position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.contact-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(0,119,200,.06) 1px, transparent 1.5px) 0 0 / 18px 18px; }
.contact-band .container { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.contact-band h2 { color: var(--navy-900); }
.contact-points { list-style: none; padding: 0; margin: 30px 0 0; }
.contact-points li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; }
.contact-points .ci { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--white); box-shadow: var(--shadow-sm); display: grid; place-items: center; }
.contact-points svg { width: 20px; height: 20px; stroke: var(--blue-600); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-points small { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.contact-points a, .contact-points span { color: var(--navy-900); text-decoration: none; font-weight: 500; }
.contact-points a:hover { color: var(--blue-600); }

.form-card { background: var(--white); border-radius: 18px; padding: 40px; color: var(--text); box-shadow: 0 24px 60px rgba(11,36,64,.12); border: 1px solid var(--line); }
.form-card h3 { font-size: 1.45rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: .95rem; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 600; font-size: .86rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  font: 400 1rem var(--font); color: var(--ink); width: 100%;
  padding: 12px 14px; border: 1.5px solid #C5D3E0; border-radius: 10px; background: var(--white); min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(8,119,188,.15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #C0392B; }
.field-error { color: #B03A2E; font-size: .82rem; margin-top: 5px; }
.form-status { margin: 14px 0 0; font-size: .93rem; min-height: 1.3em; }
.form-status.ok { color: var(--green-700); font-weight: 600; }
.form-status.err { color: #B03A2E; }
.form-fine { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- Footer ---------- */
/* Blue gradient + water-ripple pattern + lighter legal band (feedback item 42) */
.site-footer { position: relative; overflow: hidden; isolation: isolate; color: #D6E6F5; font-size: .93rem; padding: 64px 0 0;
  background: linear-gradient(120deg, var(--navy-900) 0%, #0A3C73 45%, #0071BE 100%); }
.site-footer::before { content: ""; position: absolute; right: -180px; top: -120px; width: 640px; height: 640px; z-index: -1; border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255,255,255,.09) 0 1px, transparent 1.5px 22px);
  -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 70%); mask-image: radial-gradient(circle, #000 25%, transparent 70%); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 60px; height: 60px; background: var(--white); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.footer-brand p { max-width: 320px; }
.site-footer h4 { font-family: var(--font-head); color: var(--white); font-size: 1.05rem; font-weight: 700; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { color: var(--white); font-weight: 500; text-decoration: none; }
.site-footer a:hover { color: var(--green-500); }
.footer-grid > div:nth-child(2) a::after, .footer-grid > div:nth-child(3) a::after { content: "›"; margin-left: 7px; font-weight: 700; opacity: .75; }
.footer-legal { position: relative; margin-top: 52px; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: .8rem; color: #DCEBF8; }
.footer-legal::before { content: ""; position: absolute; inset: 0 -100vw; z-index: -1; background: rgba(0,119,200,.6); border-top: 2px solid var(--green-500); }
.footer-legal p { margin: 0; max-width: 760px; }

/* ---------- Home: slim quotation strip (replaces the full form on home, item 37) ---------- */
.quote-strip { background: var(--sky-50); border-top: 1px solid var(--line); padding: 44px 0; }
.quote-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.quote-strip h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin: 0 0 6px; }
.quote-strip p { margin: 0; max-width: 620px; }
.quote-strip .hero-actions { margin: 0; }

/* ---------- Floating contact (desktop) / bar (mobile) ---------- */
.float-contact { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: flex; gap: 10px; }
.float-contact a { display: inline-flex; align-items: center; gap: 8px; padding: 0 18px 0 8px; min-height: 48px; border-radius: 999px; background: var(--white); color: var(--navy-800); text-decoration: none; font-weight: 600; font-size: .92rem; box-shadow: 0 8px 28px rgba(11,36,64,.22); }
.float-contact a span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green-500); }
.float-contact svg { width: 17px; height: 17px; stroke: var(--navy-900); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.float-contact a:hover { background: var(--sky-50); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .main-nav a, .main-nav .nav-btn { padding: 10px 9px; font-size: .9rem; }
  .brand-wrap { gap: 14px; }
  .brand-name { font-size: 1.08rem; }
  .brand-partner { padding-left: 14px; }
  .brand-partner img { height: 20px; }
  .mega { left: -200px; }
  .mega-narrow { left: -60px; }
  .steps-row { grid-template-columns: repeat(3, 1fr); }
  .tech-row { grid-template-columns: 1fr 1fr; }
  .tech-col:nth-child(3) { border-left: 0; }
  .tech-col:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Between the full menu and the mobile menu there isn't room for the partner logo */
@media (min-width: 1021px) and (max-width: 1099px) {
  .brand-partner { display: none; }
}

@media (max-width: 1020px) {
  :root { --header-h: 72px; }
  .brand img { width: 50px; height: 50px; }
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--white); cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--navy-800); position: relative; content: ""; transition: transform .2s; }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--white); overflow-y: auto; padding: 12px 20px 120px; display: none; border-top: 1px solid var(--line); }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav a, .main-nav .nav-btn { padding: 16px 6px; font-size: 1.05rem; width: 100%; justify-content: space-between; }
  .mega { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 12px; grid-template-columns: 1fr; }
  .mega a { padding: 10px 6px; font-size: .95rem; }
  .mega small { display: none; }
  .mega-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .header-cta { display: none; }

  .hero-media, .page-hero .hero-media { position: relative; inset: auto; height: 300px; }
  .hero-media::after, .page-hero .hero-media::after { background: linear-gradient(0deg, #fff 0%, rgba(255,255,255,0) 35%); }
  .hero-panel, .page-hero .hero-panel { min-height: 0; }
  .hero, .page-hero { display: flex; flex-direction: column; }
  .page-hero-plain { display: block; }
  .hero-content { padding: 48px 24px 56px; }

  .event, .training-strip { grid-template-columns: 1fr; gap: 32px; }
  .seminar-grid { grid-template-columns: 1fr; }
  .client-grid, .client-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .split, .calc, .contact-band .container, .cta-band, .detail-layout { grid-template-columns: 1fr; }
  .split { gap: 48px; }
  .split-reverse .split-media { order: 0; }
  .cta-band .btn { justify-self: start; }
  .aside-card { position: static; }
  .tile-grid, .tile-grid-4, .card-grid, .card-grid-4 { grid-template-columns: 1fr 1fr; }
  .approach { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .approach-step:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats .container { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .stat:nth-child(3) { border-left: 0; }
  .issue-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .container { padding: 0 18px; }
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 1rem; }
  .brand-partner { display: none; }
  .section { padding: 72px 0; }
  .statement { padding: 56px 0 44px; }
  .hero-media, .page-hero .hero-media { height: 220px; }
  .hero-content { padding: 36px 18px 44px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .event dl div { grid-template-columns: 1fr; gap: 2px; }
  .client-grid, .client-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .client-grid li { height: 88px; }
  .tile-grid-4 .tile { aspect-ratio: 4 / 3; }
  .tile-grid, .tile-grid-4, .tech-visuals, .card-grid, .card-grid-2, .card-grid-4, .approach, .issue-grid, .scope-list, .steps-row, .tech-row, .calc-grid, .field-row { grid-template-columns: 1fr; }
  .field-row { gap: 0; }
  .approach-step + .approach-step { border-left: 0; padding-left: 0; }
  .approach-step { padding-right: 0; }
  .tech-col + .tech-col { border-left: 0; border-top: 1px solid var(--line); }
  .stats .container { grid-template-columns: 1fr 1fr; padding-top: 48px; padding-bottom: 48px; }
  .stat { padding: 0 14px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .calc-inputs, .calc-results, .form-card { padding: 28px 22px; }
  .cta-band { padding: 36px 24px; }
  .tile-body p { max-height: none; opacity: 1; margin-top: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; }
  .float-contact { left: 0; right: 0; bottom: 0; gap: 0; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11,36,64,.1); }
  .float-contact a { flex: 1; justify-content: center; border-radius: 0; box-shadow: none; min-height: 60px; padding: 0 8px; }
  .float-contact a + a { border-left: 1px solid var(--line); }
  .float-contact a.fc-quote { background: var(--blue-600); color: var(--white); }
  .float-contact a.fc-quote span { background: rgba(255,255,255,.2); }
  .float-contact a.fc-quote svg { stroke: var(--white); }
  .split-media::before { display: none; }
}
@media (min-width: 641px) { .float-contact .fc-quote { display: none; } }

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