/*
Theme Name: FMG Industrial B2B
Theme URI: https://fairmeasureglobal.com/
Author: Fair Measure Global
Description: A lightweight B2B industrial filtration theme.
Version: 1.0.0
Text Domain: fmg-b2b
*/

:root {
  --navy: #09283b;
  --navy-2: #123b50;
  --teal: #13a8a0;
  --teal-dark: #0b7d79;
  --sky: #dff5f3;
  --ink: #18313e;
  --muted: #617783;
  --line: #dbe5e9;
  --paper: #ffffff;
  --soft: #f4f8f9;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(9, 40, 59, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 18px; top: 18px; z-index: 9999; padding: 10px 14px; background: white; color: var(--navy); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(219,229,233,.9);
  backdrop-filter: blur(16px);
}
.header-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; color: white;
  background: linear-gradient(145deg, var(--navy), #176078);
  box-shadow: 0 8px 20px rgba(9,40,59,.22);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { color: var(--navy); font-size: 17px; letter-spacing: .01em; }
.brand-copy small { color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; margin-top: 5px; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 650; color: #38515d; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--teal-dark); }
.nav-cta { padding: 11px 18px; border-radius: 10px; background: var(--navy); color: white !important; }
.nav-toggle { display: none; }
.nav-toggle-label { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; place-items: center; cursor: pointer; }
.nav-toggle-label span, .nav-toggle-label::before, .nav-toggle-label::after { content: ""; display: block; width: 20px; height: 2px; background: var(--navy); }
.nav-toggle-label span { margin: 4px 0; }

.hero { position: relative; overflow: hidden; padding: 96px 0 90px; background: linear-gradient(120deg, #f7fbfb 0%, #eef8f7 60%, #e4f4f3 100%); }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -210px; border: 1px solid rgba(19,168,160,.2); border-radius: 50%; box-shadow: 0 0 0 60px rgba(19,168,160,.035), 0 0 0 120px rgba(19,168,160,.025); }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--teal-dark); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--teal); }
.hero h1 { margin: 0; color: var(--navy); font-size: clamp(46px, 6vw, 76px); line-height: 1.03; letter-spacing: -.045em; max-width: 720px; }
.hero h1 span { color: var(--teal-dark); }
.hero-lead { max-width: 650px; margin: 26px 0 0; color: #506873; font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 11px; font-size: 14px; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: white; box-shadow: 0 12px 24px rgba(19,168,160,.24); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-secondary { background: white; color: var(--navy); border-color: var(--line); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: #536b76; font-size: 13px; }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; }
.hero-points i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--sky); color: var(--teal-dark); font-style: normal; font-weight: 900; }

.filter-visual { position: relative; min-height: 430px; display: grid; place-items: center; }
.visual-card { position: relative; width: min(430px, 100%); aspect-ratio: 1/1; border-radius: 34px; background: linear-gradient(145deg, var(--navy), #164d64); box-shadow: 0 28px 70px rgba(9,40,59,.24); overflow: hidden; }
.visual-card::before { content: ""; position: absolute; inset: 24px; border: 1px solid rgba(255,255,255,.11); border-radius: 26px; }
.visual-card svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.visual-note { position: absolute; left: -24px; bottom: 36px; width: 210px; padding: 16px 18px; border-radius: 14px; background: white; box-shadow: var(--shadow); }
.visual-note strong { display: block; color: var(--navy); font-size: 14px; }
.visual-note span { color: var(--muted); font-size: 12px; }

.trust-strip { border-bottom: 1px solid var(--line); background: white; }
.trust-inner { min-height: 88px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.trust-item { padding: 0 24px; border-right: 1px solid var(--line); }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; color: var(--navy); font-size: 14px; }
.trust-item span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }

.section { padding: 92px 0; }
.section-soft { background: var(--soft); }
.section-dark { color: white; background: var(--navy); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 42px; }
.section-head h2, .page-hero h1 { margin: 0; color: var(--navy); font-size: clamp(34px, 4vw, 50px); line-height: 1.1; letter-spacing: -.035em; }
.section-dark .section-head h2 { color: white; }
.section-head p { max-width: 540px; margin: 0; color: var(--muted); }
.section-dark .section-head p { color: #b9cbd3; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { min-height: 285px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 6px 24px rgba(9,40,59,.04); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.product-card:hover { transform: translateY(-5px); border-color: #b9dcd9; box-shadow: var(--shadow); }
.icon-box { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: var(--sky); color: var(--teal-dark); }
.icon-box svg { width: 30px; height: 30px; }
.product-card h3 { margin: 24px 0 10px; color: var(--navy); font-size: 20px; }
.product-card p { margin: 0; color: var(--muted); font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 22px; color: var(--teal-dark); font-size: 13px; font-weight: 750; }

.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.14); }
.industry-item { min-height: 180px; padding: 30px; background: #0c3045; }
.industry-item .num { color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.industry-item h3 { margin: 24px 0 8px; font-size: 19px; }
.industry-item p { margin: 0; color: #aec3cc; font-size: 13px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.media-panel { position: relative; min-height: 500px; border-radius: 26px; overflow: hidden; background: linear-gradient(145deg, #d9efed, #a7d4d1); }
.media-panel svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.content-copy h2 { margin: 0 0 20px; color: var(--navy); font-size: clamp(34px, 4vw, 48px); line-height: 1.12; letter-spacing: -.035em; }
.content-copy > p { margin: 0; color: var(--muted); }
.check-list { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 12px; color: #3f5762; }
.check-list li::before { content: "✓"; flex: 0 0 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--sky); color: var(--teal-dark); font-weight: 900; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: steps; }
.process-card { position: relative; padding: 28px 24px; border-top: 3px solid var(--teal); background: white; border-radius: 0 0 14px 14px; box-shadow: 0 8px 26px rgba(9,40,59,.06); counter-increment: steps; }
.process-card::before { content: "0" counter(steps); display: block; color: #a7b9c1; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.process-card h3 { margin: 20px 0 8px; color: var(--navy); font-size: 17px; }
.process-card p { margin: 0; color: var(--muted); font-size: 13px; }

.cta-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding: 52px 58px; border-radius: 24px; color: white; background: linear-gradient(120deg, var(--navy), #145267); box-shadow: var(--shadow); }
.cta-panel::after { content: ""; position: absolute; width: 280px; height: 280px; right: -110px; top: -130px; border: 45px solid rgba(255,255,255,.05); border-radius: 50%; }
.cta-panel h2 { position: relative; z-index: 1; margin: 0; max-width: 700px; font-size: clamp(30px, 4vw, 44px); line-height: 1.15; letter-spacing: -.03em; }
.cta-panel p { position: relative; z-index: 1; margin: 12px 0 0; color: #c0d2d9; }
.cta-panel .btn { position: relative; z-index: 1; }

.page-hero { padding: 82px 0 70px; background: linear-gradient(120deg, #f5fafb, #e9f6f5); }
.page-hero p { max-width: 690px; margin: 20px 0 0; color: var(--muted); font-size: 17px; }
.bread { margin-bottom: 20px; color: var(--teal-dark); font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.detail-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.detail-card h2, .detail-card h3 { margin: 0 0 12px; color: var(--navy); }
.detail-card p { margin: 0; color: var(--muted); }
.spec-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.spec-tags span { padding: 6px 10px; border-radius: 999px; background: var(--soft); color: #4a626d; font-size: 11px; font-weight: 700; }

.contact-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 56px; align-items: start; }
.contact-aside { padding: 34px; border-radius: var(--radius); color: white; background: var(--navy); }
.contact-aside h2 { margin: 0 0 14px; font-size: 28px; }
.contact-aside p { color: #b8ccd5; }
.contact-aside ul { display: grid; gap: 13px; margin: 26px 0 0; padding: 0; list-style: none; }
.contact-aside li { display: flex; gap: 10px; color: #d5e1e6; font-size: 14px; }
.contact-aside li::before { content: "•"; color: var(--teal); font-weight: 900; }
.quote-form { padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { color: var(--navy); font-size: 13px; font-weight: 750; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 14px; color: var(--ink); border: 1px solid #cad9df; border-radius: 9px; outline: none; background: #fbfdfd; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(19,168,160,.12); }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.form-alert { margin-bottom: 20px; padding: 13px 15px; border-radius: 9px; color: #17613e; background: #e7f7ee; border: 1px solid #bce4cd; }
.hp-field { position: absolute !important; left: -9999px !important; }

.site-footer { margin-top: 92px; padding: 68px 0 24px; color: #c1d0d7; background: #071f2e; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand .brand-copy strong { color: white; }
.footer-brand p { max-width: 360px; margin: 20px 0 0; color: #9fb4bd; font-size: 14px; }
.footer-col h3 { margin: 0 0 18px; color: white; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.footer-col a { display: block; margin: 9px 0; color: #a9bec7; font-size: 13px; }
.footer-col a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #78919c; font-size: 12px; }

@media (max-width: 980px) {
  .nav-toggle-label { display: grid; }
  .main-nav { display: none; position: absolute; left: 20px; right: 20px; top: 70px; padding: 20px; align-items: stretch; flex-direction: column; gap: 15px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
  .nav-toggle:checked ~ .main-nav { display: flex; }
  .nav-cta { text-align: center; }
  .hero { padding-top: 72px; }
  .hero-grid, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .filter-visual { min-height: 380px; }
  .visual-card { width: min(390px, 90%); }
  .visual-note { left: 0; }
  .product-grid, .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 28px, 1160px); }
  .brand-copy small { display: none; }
  .header-inner { height: 68px; }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 45px; }
  .hero-lead { font-size: 16px; }
  .actions .btn { width: 100%; }
  .filter-visual { min-height: 330px; }
  .visual-note { bottom: 8px; }
  .trust-inner { grid-template-columns: 1fr 1fr; padding: 16px 0; }
  .trust-item { min-height: 70px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .trust-item:nth-child(2), .trust-item:nth-child(4) { border-right: 0; }
  .trust-item:nth-child(3), .trust-item:nth-child(4) { border-bottom: 0; }
  .section { padding: 68px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 16px; }
  .product-grid, .industry-grid, .process-grid, .detail-grid, .footer-grid { grid-template-columns: 1fr; }
  .two-col { gap: 40px; }
  .media-panel { min-height: 380px; }
  .cta-panel { grid-template-columns: 1fr; padding: 38px 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .quote-form { padding: 24px; }
  .footer-bottom { flex-direction: column; }
}

