/*
Theme Name: Pump Systems Group
Theme URI: https://pumpsystemsgroup.com
Author: ALR Advisory
Description: Custom theme for Pump Systems Group (2026 brand refresh). Pages use templates matched by slug: about, services, industries, products, projects, contact. The homepage uses front-page.php.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: psg
*/
/* Layout: white pages with full-width graphite bands; content on a 1200px column; spec-sheet cards for products. */
:root {
  --graphite: #15201B;
  --green: #1E8E4E;
  --signal: #4CC985;
  --mist: #E9ECEA;
  --steel: #3F4A44;
  --line: #D5DAD7;
  --white: #FFFFFF;
  --ink: #2A332E;
  --tbc-bg: #FFF4CC;
  --tbc-fg: #6B4E00;
  --font: 'Barlow', 'Arial', 'Helvetica Neue', sans-serif;
  --max: 1200px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--graphite); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
h1, h2, h3, h4 { color: var(--graphite); line-height: 1.1; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding-left: 20px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
@media (max-width: 600px) { .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.lead { font-size: 20px; line-height: 1.55; color: var(--steel); max-width: 62ch; }
.muted { color: var(--steel); }
.tbc { background: var(--tbc-bg); color: var(--tbc-fg); padding: 1px 6px; border-radius: 3px; font-size: 0.9em; font-weight: 500; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 3px; font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: #17733F; color: var(--white); }
.btn-ghost { border-color: currentColor; color: var(--graphite); background: transparent; }
.btn-ghost:hover { background: var(--graphite); color: var(--white); border-color: var(--graphite); }
.on-dark .btn-ghost { color: var(--white); }
.on-dark .btn-ghost:hover { background: var(--white); color: var(--graphite); border-color: var(--white); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-block: 16px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--graphite); }
.logo svg { width: 42px; height: 42px; flex: none; }
.logo-word { font-size: 22px; font-weight: 700; letter-spacing: 0.04em; line-height: 1; white-space: nowrap; color: var(--graphite); }
.logo-word span { font-weight: 400; color: var(--green); }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 24px; }
.nav a { color: var(--graphite); text-decoration: none; font-weight: 500; font-size: 16px; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); color: var(--graphite); }
.nav a[aria-current="page"] { border-bottom-color: var(--green); }
.nav .btn { padding: 0 18px; min-height: 42px; border: 0; color: var(--white); }
.nav .btn:hover { color: var(--white); }
@media (max-width: 900px) {
  .nav { width: 100%; gap: 4px 18px; }
  .nav .btn { display: none; }
}
@media (max-width: 420px) { .logo-word { font-size: 18px; } .logo svg { width: 34px; height: 34px; } }

/* Bands */
.band { padding-block: 80px; }
.band-tight { padding-block: 56px; }
.band-mist { background: var(--mist); }
.band-dark { background: var(--graphite); color: #D9E0DC; }
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4 { color: var(--white); }
.band-dark .eyebrow { color: var(--signal); }
.band-dark .lead, .band-dark .muted { color: #B9C4BE; }
.band-dark a:not(.btn) { color: var(--signal); }
.band-green { background: var(--green); color: var(--white); }
.band-green h2 { color: var(--white); }
@media (max-width: 700px) { .band { padding-block: 56px; } }

.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 760px; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .hero-grid { position: relative; display: block; padding-block: 104px 88px; }
.hero .hero-copy { max-width: 760px; position: relative; }
.hero .hero-mark { width: 760px; height: 760px; right: -140px; top: -120px; opacity: 0.24; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-mark { position: absolute; right: -180px; top: -160px; width: 620px; height: 620px; opacity: 0.18; pointer-events: none; }
.hero-photo { position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.page-hero { position: relative; overflow: hidden; }
.page-hero .wrap { padding-block: 64px 56px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.page-hero .hero-mark { width: 480px; height: 480px; right: -120px; top: -140px; }
@media (max-width: 900px) { .hero .hero-grid { padding-block: 56px 48px; } .hero .hero-mark { width: 520px; height: 520px; right: -220px; top: -80px; opacity: 0.16; } }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #2E3A34; }
.fact { padding: 22px 20px 26px 0; display: flex; flex-direction: column; gap: 2px; }
.fact b { font-size: 34px; font-weight: 700; color: var(--white); line-height: 1.1; font-variant-numeric: tabular-nums; }
.fact span { font-size: 14px; color: #B9C4BE; }
@media (max-width: 800px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact b { font-size: 26px; } }

/* Grids and cards */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card { border: 1px solid var(--line); border-radius: 4px; padding: 28px; display: flex; flex-direction: column; gap: 12px; background: var(--white); min-width: 0; }
.card p { color: var(--steel); }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card-top { border-top: 4px solid var(--green); border-radius: 0 0 4px 4px; }
.icon { width: 40px; height: 40px; color: var(--green); }

/* Duty index (home) */
.duty { border-top: 2px solid var(--graphite); }
.duty a { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(0, 1fr) 24px; gap: 24px; align-items: baseline; padding: 20px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.duty a:hover { background: var(--mist); color: var(--ink); }
.duty .name { font-size: 20px; font-weight: 700; color: var(--graphite); }
.duty .range { font-variant-numeric: tabular-nums; color: var(--steel); font-size: 15px; }
.duty .brand { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.duty .arrow { color: var(--green); font-weight: 700; }
@media (max-width: 760px) { .duty a { grid-template-columns: 1fr; gap: 4px; } .duty .arrow { display: none; } }

/* Industry tags */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid #3A4842; border-radius: 3px; color: var(--white); text-decoration: none; font-weight: 500; }
a.tag:hover { border-color: var(--signal); color: var(--white); }

/* Split blocks */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split-copy { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.photo { border-radius: 4px; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.caption { font-size: 14px; color: var(--steel); margin-top: 8px; }

.ticks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }

/* Case study */
.case { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.case h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; }
.band-dark .case h4 { color: var(--signal); }
@media (max-width: 800px) { .case { grid-template-columns: 1fr; gap: 20px; } }
.placeholder { border: 2px dashed #9AA49F; border-radius: 4px; padding: 28px; display: flex; flex-direction: column; gap: 10px; color: var(--steel); background: var(--white); }

/* Timeline */
.timeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--graphite); }
.timeline li { padding: 20px 24px 0 0; display: flex; flex-direction: column; gap: 8px; position: relative; }
.timeline li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--green); }
.timeline .yr { font-size: 32px; font-weight: 700; color: var(--graphite); font-variant-numeric: tabular-nums; }
@media (max-width: 800px) { .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--graphite); padding-left: 24px; gap: 28px; } .timeline li { padding: 0; } .timeline li::before { left: -32px; top: 10px; } }

/* People */
.person { border-top: 4px solid var(--green); padding-top: 20px; max-width: 520px; }
.avatar { width: 140px; aspect-ratio: 1; max-width: 100%; background: var(--mist); border-radius: 4px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; color: var(--steel); padding: 12px; }
.role { font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }


/* Certifications */
.certs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cert { border: 1px solid var(--line); border-radius: 4px; padding: 20px; background: var(--white); }
.cert b { display: block; font-size: 20px; color: var(--graphite); }
.cert span { font-size: 14px; color: var(--steel); }
@media (max-width: 800px) { .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Services detail */
.service { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; padding-block: 40px; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 0; }
.service-copy { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 800px) { .service { grid-template-columns: 1fr; gap: 16px; } }
.repairs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.repairs figure { margin: 0; background: var(--white); border-radius: 4px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.repairs img { height: 140px; width: 100%; object-fit: contain; }
.repairs figcaption { font-size: 14px; color: var(--steel); }
@media (max-width: 800px) { .repairs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Industries */
.industry { border: 1px solid var(--line); border-radius: 4px; padding: 28px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 24px; background: var(--white); min-width: 0; }
.industry .apps { font-size: 15px; color: var(--steel); }
.industry .apps b { color: var(--graphite); font-weight: 600; }

/* Products */
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; color: var(--graphite); font-weight: 500; background: var(--white); }
.cat-nav a:hover { border-color: var(--green); color: var(--graphite); }
.cat { padding-block: 56px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.cat-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; max-width: 760px; }
.spec { border: 1px solid var(--line); border-radius: 4px; display: flex; flex-direction: column; background: var(--white); min-width: 0; overflow: hidden; }
.spec-img { height: 190px; display: flex; align-items: center; justify-content: center; background: var(--white); border-bottom: 1px solid var(--line); padding: 16px; }
.spec-img img { max-height: 100%; width: auto; object-fit: contain; }
.spec-code { height: 120px; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 22px; background: var(--mist); border-bottom: 1px solid var(--line); }
.spec-code b { font-size: 40px; font-weight: 700; color: var(--graphite); line-height: 1; letter-spacing: 0.02em; }
.spec-code span { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-top: 6px; }
.spec-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.spec-body h3 { font-size: 20px; }
.spec-body p { color: var(--steel); font-size: 15px; }
.spec dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.spec dt { color: var(--steel); }
.spec dd { margin: 0; color: var(--graphite); font-weight: 500; font-variant-numeric: tabular-nums; }
.spec .more { margin-top: auto; font-weight: 600; text-decoration: none; padding-top: 6px; }

/* Contact */
.offices { display: grid; grid-template-columns: 1fr; gap: 12px; }
.office { border: 1px solid var(--line); border-radius: 4px; padding: 22px; display: flex; flex-direction: column; gap: 6px; background: var(--white); }
.office .tagline { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.office address { font-style: normal; color: var(--steel); }
.office { min-width: 0; }
.office { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: start; }
.office .tagline, .office h3 { grid-column: 1 / -1; }
.office p { overflow-wrap: break-word; text-align: right; }
@media (max-width: 520px) { .office { grid-template-columns: 1fr; } .office p { text-align: left; } }
@media (max-width: 640px) { .offices { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form .full { grid-column: 1 / -1; }
.form fieldset { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 4px; padding: 18px 20px 20px; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; }
.form legend { font-weight: 700; color: var(--graphite); padding: 0 6px; }
.form legend span { font-weight: 400; color: var(--steel); font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; color: var(--graphite); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #B9C2BD; border-radius: 3px; background: var(--white); color: var(--ink); width: 100%; min-height: 46px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--signal); outline-offset: 0; border-color: var(--green); }
.form-note { grid-column: 1 / -1; padding: 14px 16px; border-radius: 3px; background: var(--mist); color: var(--graphite); }
@media (max-width: 640px) { .form, .form fieldset { grid-template-columns: 1fr; } }

/* CTA */
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.cta p { color: #E4F3EA; max-width: 56ch; margin-top: 8px; }
.cta .btn-ghost { color: var(--white); }
.cta .btn-ghost:hover { background: var(--white); color: var(--green); border-color: var(--white); }
.cta .btn-light { background: var(--white); color: var(--graphite); }
.cta .btn-light:hover { background: var(--graphite); color: var(--white); }

/* Footer */
.site-footer { background: var(--graphite); color: #B9C4BE; font-size: 15px; }
.site-footer .wrap { padding-block: 56px 32px; display: flex; flex-direction: column; gap: 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer h4 { color: var(--white); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer a { color: #D9E0DC; text-decoration: none; }
.site-footer a:hover { color: var(--signal); }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer .logo-word { color: var(--white); }
.site-footer .logo-word span { color: var(--signal); }
.foot-base { border-top: 1px solid #2E3A34; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
html { scroll-behavior: smooth; }

/* Partner strip */
.partners { border-bottom: 1px solid var(--line); background: var(--white); }
.partners .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 36px; padding-block: 24px; }
.partners-label { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.partner { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--graphite); }
.partner img { height: 54px; width: auto; }
.logo-slot { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 12px; font-size: 12px; text-align: center; max-width: 220px; line-height: 1.3; }

.certs-img { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.certs-img img { width: 100%; height: auto; border-radius: 3px; }
@media (max-width: 800px) { .certs-img { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }

/* WordPress content (generic pages) */
.wp-content { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.wp-content img { height: auto; }
.wp-content h2, .wp-content h3 { margin-top: 12px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note.is-error { background: #FBE9E7; color: #8A1C0C; }
.form-note.is-ok { background: #E3F4EA; color: #14532D; }
