/* ==========================================================================
   Intermist — Demister Pads
   Stylesheet
   ========================================================================== */

:root {
  --navy-900: #1c283a;
  --navy-800: #212f44;
  --navy-700: #2a3a52;
  --ink: #16202e;
  --body-text: #5c6674;
  --muted: #8891a0;
  --rose: #bd7b5c;
  --rose-dark: #a8664a;
  --rose-light: #d59a80;
  --bg-white: #ffffff;
  --bg-tint: #eef1f4;
  --bg-tint-2: #f5f6f8;
  --border: #e3e6ea;
  --border-dark: #3a4a63;

  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1200px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--body-text);
  background: var(--bg-white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

p { margin: 0 0 16px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
}
.btn-primary:hover { background: var(--rose-dark); border-color: var(--rose-dark); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn-outline-light:hover { background: rgba(255,255,255,.08); border-color: #fff; }

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-outline-dark:hover { border-color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 55px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text .name {
  font-weight: 700;
  font-size: 16.5px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand-text .tagline {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav .nav-item {
  position: relative;
}

.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: #444d5a;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.main-nav .nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.main-nav .nav-item > a::after {
  content: "▾";
  font-size: 12px;
  color: var(--muted);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
  border-bottom-color: var(--rose);
}

.main-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 240px;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 14px 32px rgba(22, 32, 46, 0.12);
  padding: 8px 0;
  z-index: 120;
}

.main-nav .dropdown-menu::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 14px;
}

.main-nav .dropdown-menu a {
  padding: 10px 16px;
  border-bottom: none;
  white-space: nowrap;
}

.main-nav .dropdown-menu a:hover,
.main-nav .dropdown-menu a.active {
  background: var(--bg-tint);
  color: var(--ink);
  border-bottom: none;
}

.main-nav .dropdown:hover .dropdown-menu,
.main-nav .dropdown:focus-within .dropdown-menu {
  display: flex;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

/* ---------------- Hero (home) ---------------- */

.hero {
  position: relative;
  color: #fff;
  min-height: 514px;
  overflow: hidden;
}

.hero-slide {
  position: relative;
  min-height: 514px;
  padding: 96px 0 0;
  background: #16202e center center / cover no-repeat;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .65s ease, visibility 0s linear .65s;
}

.hero-slide:not(.is-active) { position: absolute; inset: 0; }
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.hero-slide--demister { background-image: url('../images/hero-demister.jpg'); }
.hero-slide--filter { background-image: url('../images/hero-filter.jpg'); }
.hero-slide--strainer { background-image: url('../images/hero-strainers.jpg'); }
.hero-slide--gauges { background-image: url('../images/hero-level-gauges.jpg'); }

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(15,22,33,.92) 0%, rgba(20,31,46,.86) 42%, rgba(28,42,61,.55) 75%, rgba(28,42,61,.35) 100%);
  z-index: 0;
}

.hero-slide--filter::before {
  background: linear-gradient(100deg, rgba(15,22,33,.9) 0%, rgba(20,31,46,.78) 42%, rgba(28,42,61,.32) 100%);
}

.hero-slide .container { position: relative; z-index: 1; }

.hero-mesh-bg { display: none; }

.hero-inner {
  position: relative;
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--rose-light);
  margin-bottom: 16px;
}

.hero h1,
.hero h2 {
  color: #fff;
  font-size: 44px;
  line-height: 1.15;
  max-width: 680px;
  margin-bottom: 20px;
}

.hero p.lead {
  color: rgba(255,255,255,.78);
  font-size: 17px;
  max-width: 600px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 56px;
}

.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 30px 0;
}

.hero-stats .stat .num {
  font-size: 27px;
  font-weight: 700;
  color: var(--rose-light);
  margin-bottom: 4px;
}
.hero-stats .stat .label {
  font-size: 13.5px;
  color: rgba(255,255,255,.65);
}

.hero-controls {
  position: absolute;
  right: max(24px, calc((100% - 1120px) / 2));
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-arrow,
.hero-dot {
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
  background: rgba(15,22,33,.3);
  cursor: pointer;
}

.hero-arrow {
  width: 32px;
  height: 32px;
  font-size: 17px;
  line-height: 1;
}

.hero-dots { display: flex; gap: 7px; }
.hero-dot { width: 8px; height: 8px; padding: 0; border-radius: 50%; }
.hero-dot.is-active { background: var(--rose-light); border-color: var(--rose-light); }
.hero-arrow:hover, .hero-arrow:focus-visible, .hero-dot:focus-visible { border-color: var(--rose-light); outline: 2px solid var(--rose-light); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* ---------------- Page hero (interior pages) ---------------- */

.page-hero {
  background: var(--bg-tint);
  padding: 64px 0 48px;
}

.page-hero .eyebrow { color: var(--rose-dark); }

.page-hero h1 {
  font-size: 34px;
  max-width: 700px;
}

.page-hero p.lead {
  color: var(--body-text);
  font-size: 16px;
  max-width: 620px;
  margin-bottom: 0;
}

/* ---------------- Generic section spacing ---------------- */

.section { padding: 72px 0; }
.section-tint { background: var(--bg-tint); }
.section-tint-2 { background: var(--bg-tint-2); }

.section-head { margin-bottom: 20px; }
.section-head.narrow { max-width: 640px; }

.section-head .eyebrow { color: var(--rose-dark); }

.section-head h2 { font-size: 28px; }

.section-head p { font-size: 15.5px; }

.applications-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.applications-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  padding-top: 8px;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}

.applications-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 1px solid var(--border);
}

.applications-nav a {
  display: block;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--body-text);
  transition: all .15s ease;
}

.applications-nav a:hover,
.applications-nav a:focus,
.applications-nav a.active {
  color: var(--ink);
  border-left-color: var(--rose);
  background: var(--bg-tint);
}

.applications-main {
  min-width: 0;
}

.application-group {
  scroll-margin-top: 110px;
}

.filter-section,
.strainer-section,
.gauge-section {
  scroll-margin-top: 110px;
}

.sight-glass-type,
.strainer-type,
.filter-type {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  align-items: center;
  gap: 32px;
}

.sight-glass-type .media-frame,
.strainer-type .media-frame,
.filter-type .media-frame {
  aspect-ratio: 4 / 3;
  box-sizing: border-box;
  border: 1px solid #bd7b5c;
  background: #fff;
  cursor: zoom-in;
}

.sight-glass-type .media-frame img,
.strainer-type .media-frame img,
.filter-type .media-frame img {
  object-fit: contain;
}

.sight-glass-points,
.strainer-points,
.filter-points {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
  font-size: 15px;
}

.sight-glass-points li + li,
.strainer-points li + li,
.filter-points li + li {
  margin-top: 8px;
}

.strainer-divider {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.filter-divider {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.section-head.filter-divider {
  max-width: none;
}

.section-head.strainer-divider {
  max-width: none;
}
.gauge-divider {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.section-head.gauge-divider {
  max-width: none;
}

.sight-glass-zoom-preview,
.strainer-zoom-preview,
.filter-zoom-preview {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 24, 32, .62);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

.sight-glass-zoom-preview img,
.strainer-zoom-preview img,
.filter-zoom-preview img {
  width: min(82vw, 980px);
  height: min(82vh, 720px);
  object-fit: contain;
  border: 1px solid #bd7b5c;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
}

.sight-glass-type .media-frame:hover + .sight-glass-zoom-preview,
.strainer-type .media-frame:hover + .strainer-zoom-preview,
.filter-type .media-frame:hover + .filter-zoom-preview {
  opacity: 1;
  visibility: visible;
}

.sight-glass-type + .sight-glass-type {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ---------------- Two column intro (About / who we are) ---------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split .eyebrow { color: var(--rose-dark); }

.split h2 { font-size: 27px; margin-bottom: 16px; }

.split p { font-size: 15px; }

.split-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 20px;
}

.link-arrow {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--rose-dark);
}

.product-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-category-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.product-category-card > img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-category-content {
  display: flex;
  height: calc(100% - 180px);
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.product-category-content h3 {
  font-size: 17px;
}

.product-category-content p {
  flex: 1;
  font-size: 14px;
}

.product-category-content .link-arrow {
  margin-top: 10px;
}

.media-frame {
  border-radius: 6px;
  overflow: hidden;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------------- Numbered process cards ---------------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.process-grid .step {
  padding: 26px 26px 26px 0;
  border-right: 1px solid var(--border);
}
.process-grid .step:last-child { border-right: none; }
.process-grid .step:not(:first-child) { padding-left: 26px; }

.step .step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--rose-dark);
  margin-bottom: 10px;
}

.step h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  margin-bottom: 0;
}

/* ---------------- Feature / differentiator cards ---------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  background: var(--border);
  gap: 1px;
}

.card-grid .card {
  background: #fff;
  padding: 30px;
}

.card .icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-dark);
  margin-bottom: 16px;
}
.card .icon svg { width: 20px; height: 20px; }

.card h3 {
  font-size: 15.5px;
  margin-bottom: 8px;
}

.card p {
  font-size: 13.8px;
  margin-bottom: 0;
}

.blog-card-grid {
  align-items: stretch;
  gap: 24px;
  border: 0;
  background: #fff;
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.blog-page-link {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.blog-page-link:hover,
.blog-page-link.is-current {
  border-color: var(--rose);
  background: var(--rose);
  color: #fff;
}

.blog-page-direction {
  padding-right: 16px;
  padding-left: 16px;
}

.blog-card-grid .blog-card {
  padding: 0;
  border: 1px solid var(--border);
  background: #fff;
}

.blog-card > img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.blog-card-content {
  padding: 24px;
}

.blog-card-content .eyebrow,
.blog-article .eyebrow {
  color: var(--rose-dark);
}

.blog-card-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.blog-card-content p {
  margin-bottom: 16px;
}

.blog-read-link {
  color: var(--rose-dark);
  font-size: 14px;
  font-weight: 600;
}

.blog-read-link:hover {
  color: var(--ink);
}

.blog-articles {
  max-width: 850px;
}

.blog-article + .blog-article {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.blog-article h2 {
  font-size: 25px;
}

.blog-article p {
  font-size: 15px;
}

.blog-contact {
  text-align: center;
}

.blog-contact p {
  margin-bottom: 22px;
}

.blog-card-content h3 a {
  color: var(--ink);
}

.blog-card-content h3 a:hover {
  color: var(--rose-dark);
}

.blog-article-hero h1 {
  max-width: 850px;
}

.blog-breadcrumb {
  display: flex;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--body-text);
  font-size: 13px;
}

.blog-breadcrumb a,
.blog-back-link {
  color: var(--rose-dark);
  font-weight: 600;
}

.blog-byline {
  margin-top: 20px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.blog-article-layout {
  max-width: 850px;
}

.blog-article-image {
  margin: 0 0 30px;
  overflow: hidden;
  border-radius: 6px;
}

.blog-article-image img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.blog-answer {
  margin-bottom: 36px;
  padding: 24px 28px;
  border-left: 3px solid var(--rose);
  background: var(--bg-tint-2);
}

.blog-answer h2 {
  font-size: 19px;
}

.blog-answer p,
.blog-article-section p,
.blog-faq-item p {
  font-size: 15px;
}

.blog-answer p,
.blog-article-section p:last-child,
.blog-faq-item p {
  margin-bottom: 0;
}

.blog-article-section {
  margin-top: 34px;
}

.blog-article-section ul,
.blog-article-section ol {
  margin: 12px 0 20px;
  padding-left: 24px;
}

.blog-article-section ul {
  list-style: disc;
}

.blog-article-section ol {
  list-style: decimal;
}

.blog-article-section li {
  margin-bottom: 8px;
  padding-left: 3px;
  line-height: 1.6;
}

.blog-related-links {
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.blog-related-links h3 {
  margin: 18px 0 8px;
  font-size: 17px;
}

.blog-article-main .table-responsive {
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(22, 32, 46, .05);
  -webkit-overflow-scrolling: touch;
}

.blog-article-main .table-responsive > table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.blog-article-main .table-responsive > table caption {
  padding: 12px 14px;
  background: var(--bg-tint-2);
  color: var(--ink);
  font-weight: 600;
  text-align: left;
}

.blog-article-main .table-responsive > table th,
.blog-article-main .table-responsive > table td {
  padding: 12px 14px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.blog-article-main .table-responsive > table tr > :first-child {
  border-left: 0;
}

.blog-article-main .table-responsive > table thead th {
  background: var(--navy-800);
  color: #fff;
  font-weight: 600;
  vertical-align: bottom;
}

.blog-article-main .table-responsive > table thead th:first-child {
  border-top-left-radius: 5px;
}

.blog-article-main .table-responsive > table thead th:last-child {
  border-top-right-radius: 5px;
}

.blog-article-main .table-responsive > table tbody th,
.blog-article-main .table-responsive > table tbody td:first-child {
  color: var(--ink);
  font-weight: 600;
}

.blog-article-main .table-responsive > table tbody tr:nth-child(even) {
  background: var(--bg-tint-2);
}

.blog-article-main .table-responsive > table tbody tr:hover {
  background: rgba(189, 123, 92, .08);
}

.blog-article-main .table-responsive > table tbody tr:last-child > * {
  border-bottom: 0;
}

.blog-article-main .table-responsive > table tr > :last-child {
  border-right: 0;
}

.blog-article-section h2,
.blog-faq > h2 {
  font-size: 24px;
}

.blog-faq {
  margin-top: 42px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.blog-faq-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.blog-faq-item h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.blog-sources {
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.blog-sources h2 {
  font-size: 21px;
}

.blog-sources > p,
.blog-sources li span {
  color: var(--muted);
  font-size: 13px;
}

.blog-sources ul {
  list-style: disc;
  padding-left: 20px;
}

.blog-sources li {
  margin-top: 12px;
  padding-left: 3px;
}

.blog-sources li a {
  display: block;
  color: var(--rose-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-disclaimer {
  margin: 28px 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.product-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.product-image-card {
  margin: 0;
  border: 1px solid var(--border);
  background: #fff;
  padding: 24px;
  box-shadow: 0 8px 22px rgba(19, 31, 45, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.product-image-card img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  border: 1px solid rgba(22, 32, 46, 0.08);
  background: #fff;
}

.see-more { margin-top: 28px; }

/* ---------------- Why-Intermist numbered feature blocks ---------------- */

.reason-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
}

.reason {
  padding: 32px 34px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.reason:nth-child(2n) { border-right: none; }
.reason:nth-last-child(-n+2) { border-bottom: none; }

.reason-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reason-grid-3 .reason {
  border-right: 1px solid var(--border);
}
.reason-grid-3 .reason:nth-child(3n) { border-right: none; }

.reason-grid-4 { grid-template-columns: repeat(4, 1fr); }
.reason-grid-4 .reason {
  border-right: 1px solid var(--border);
}
.reason-grid-4 .reason:nth-child(4n) { border-right: none; }

.reason-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.reason-grid-5 .reason {
  border-right: 1px solid var(--border);
}
.reason-grid-5 .reason:nth-child(5n) { border-right: none; }

@media (max-width: 980px) {
  .product-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reason-grid-4 { grid-template-columns: 1fr 1fr; }
  .reason-grid-4 .reason:nth-child(2n) { border-right: none; }
  .reason-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reason-grid-5 .reason:nth-child(3n) { border-right: none; }
}
@media (max-width: 760px) {
  .product-category-grid { grid-template-columns: 1fr; }
  .reason-grid-3 { grid-template-columns: 1fr; }
  .reason-grid-5 { grid-template-columns: 1fr 1fr; }
  .reason-grid-5 .reason:nth-child(2n) { border-right: none; }
}

.reason .step-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--rose-dark);
  margin-bottom: 10px;
  display: block;
}

.reason h3 { font-size: 17px; margin-bottom: 14px; }

.reason ul { margin-bottom: 16px; }

.reason ul li {
  font-size: 14px;
  color: var(--body-text);
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
}
.reason ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rose);
}

.reason .note {
  font-size: 13.5px;
  color: var(--ink);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-bottom: 0;
}

/* ---------------- Commercial terms / 3-step ---------------- */

.terms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.terms-grid .term-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--rose);
  padding: 26px;
  text-align: center;
}

.terms-grid h3 {
  font-size: 15.5px;
  margin-bottom: 10px;
}
.terms-grid p {
  font-size: 13.8px;
  margin-bottom: 0;
}

/* ---------------- CTA band ---------------- */

.cta-band {
  background: var(--navy-900);
  color: #fff;
  padding: 48px 0;
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.cta-band .eyebrow { color: var(--rose-light); margin-bottom: 10px; }

.cta-band h2 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 10px;
}

.cta-band p {
  color: rgba(255,255,255,.7);
  font-size: 14.5px;
  max-width: 560px;
  margin-bottom: 0;
}

.cta-band .cta-email {
  flex: 0 0 auto;
}

.cta-band .cta-email-btn {
  padding-left: 28px;
  padding-right: 28px;
  font-size: 15px;
  font-weight: 600;
}

.cta-band .cta-email-btn:hover {
  color: #fff;
}

.cta-band .cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cta-band .cta-primary-action {
  min-width: 0;
  padding-left: 28px;
  padding-right: 28px;
}

.cta-band .cta-phone-btn {
  padding-left: 28px;
  padding-right: 28px;
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.65);
  padding: 44px 0 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 36px;
}

.footer-grid > * { min-width: 0; }

.footer-brand .brand-text .name { color: #fff; }
.footer-brand .brand-text .tagline { color: rgba(255,255,255,.5); }
.footer-brand p {
  font-size: 13.5px;
  margin-top: 14px;
  color: rgba(255,255,255,.55);
}

.footer-brand .footer-scan {
  margin-top: 18px;
  width: 120px;
  max-width: 100%;
}

.footer-brand .footer-scan img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  background: #fff;
}

.footer-col h4 {
  color: var(--rose-light);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,.72); }
.footer-col ul li a:hover { color: #fff; }

.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: 13.8px;
  margin-bottom: 12px;
  color: rgba(255,255,255,.72);
}
.footer-contact li svg { flex-shrink: 0; margin-top: 2px; color: var(--rose-light); }
.footer-contact li span,
.footer-contact li p {
  min-width: 0;
  overflow-wrap: anywhere;
}
.footer-contact li p { margin-bottom: 0; }
.footer-contact .footer-social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-contact .footer-social-links a {
  color: rgba(255,255,255,.72);
  line-height: 0;
}
.footer-contact .footer-social-links svg { color: inherit; }
.footer-contact .footer-social-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
}

/* ---------------- Table (products page) ---------------- */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--body-text);
}
.data-table td.strong { color: var(--ink); font-weight: 600; }
.data-table td.rose { color: var(--rose-dark); font-weight: 600; }
.table-note {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 12px;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  gap: 1px;
  background: var(--border);
  margin-bottom: 24px;
}
.spec-grid .spec-card {
  background: #fff;
  padding: 24px;
}
.spec-grid .spec-card .label {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--rose-dark);
  font-weight: 700;
  margin-bottom: 6px;
}
.spec-grid .spec-card p { margin-bottom: 0; font-size: 14.5px; color: var(--ink); }

.material-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.material-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 24px;
}
.material-card h3 { font-size: 15.5px; margin-bottom: 6px; }
.material-card .codes {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--rose-dark);
  font-weight: 700;
  margin-bottom: 10px;
}
.material-card p { font-size: 13.8px; margin-bottom: 0; }

/* ---------------- Applications / industries ---------------- */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  background: var(--border);
  gap: 1px;
}
.industry-grid .industry {
  background: #fff;
  padding: 28px;
}
.industry h3 { font-size: 15.5px; margin-bottom: 8px; }
.industry p { font-size: 13.8px; margin-bottom: 0; }

.fluid-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  border-left: 2px solid var(--rose);
  padding-left: 16px;
  font-size: 14.5px;
  color: var(--ink);
}

/* ---------------- FAQ accordion ---------------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy-800);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev {
  transition: transform .2s ease;
  color: var(--muted);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-answer {
  padding: 0 4px 20px;
  font-size: 14.5px;
  color: var(--body-text);
  max-width: 680px;
}

/* ---------------- Contact page ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 17px;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-item .ic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--rose-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}
.contact-item .value {
  font-size: 14px;
  color: var(--body-text);
}
.contact-social-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px 50px;
}
.contact-social-links a {
  color: var(--rose-dark);
  line-height: 0;
}
.contact-social-links a:hover { color: var(--rose); }

.response-box {
  background: var(--bg-tint);
  border-left: 3px solid var(--rose);
  padding: 18px 20px;
  margin-top: 8px;
}
.response-box .label {
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 6px;
}
.response-box p {
  font-size: 13.5px;
  margin-bottom: 8px;
}
.response-box p:last-child { margin-bottom: 0; }

.contact-map {
  margin-top: 28px;
}

.contact-map h3 {
  font-size: 17px;
  margin-bottom: 14px;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: 6px;
}

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
}
.form-card h3 { font-size: 18px; margin-bottom: 4px; }
.form-card .form-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 13px;
  font-size: 14px;
  font-family: var(--font-base);
  color: var(--ink);
  background: #fff;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #a7aebb; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(189,123,92,.12);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-full { margin-bottom: 18px; }

.form-msg {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13.8px;
  margin-bottom: 18px;
}
.form-msg.success { background: #ecf6ee; color: #2c6e3f; border: 1px solid #cbe6d0; }
.form-msg.error { background: #fbecec; color: #a3392f; border: 1px solid #f3cfcb; }

.submit-btn { width: 100%; padding: 14px; font-size: 15px; }

/* Timed enquiry popup */
.enquiry-popup[hidden] { display: none; }
.enquiry-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.enquiry-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 22, 34, .72);
}
.enquiry-popup-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  padding: 32px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}
.enquiry-popup-dialog h2 {
  margin: 6px 38px 8px 0;
  color: var(--ink);
}
.enquiry-popup-dialog > p {
  margin-bottom: 20px;
  color: var(--body-text);
}
.enquiry-popup-dialog .form-group { margin-bottom: 14px; }
.enquiry-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.enquiry-popup-close:hover { background: var(--bg-tint); color: var(--ink); }
.enquiry-popup-honeypot {
  position: absolute;
  left: -10000px;
}
body.enquiry-popup-open { overflow: hidden; }
@media (max-width: 480px) {
  .enquiry-popup { padding: 12px; }
  .enquiry-popup-dialog { padding: 26px 20px; }
}

/* ---------------- Placeholder imagery ---------------- */
/* Generated mesh/industrial textures stand in for product photography.
   Swap the .media-frame contents for real photos when available. */

.ph {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.ph-mesh {
  background-color: #9a9a94;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.55) 0 1.5px, transparent 1.5px 9px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.35) 0 1.5px, transparent 1.5px 9px),
    linear-gradient(135deg, #b3b3ac, #85857d);
}

.ph-plant {
  background-color: #1b2635;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(160deg, #0f1826 0%, #1e2c40 55%, #33465f 100%);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
  background-size: 32px 32px, 32px 32px, cover, cover;
}

.ph-workshop {
  background-color: #cfd3d8;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.5), transparent 45%),
    linear-gradient(150deg, #dfe2e6, #aeb4bc);
}

.ph-caption {
  position: relative;
  width: 100%;
  padding: 10px 14px;
  font-size: 11.5px;
  letter-spacing: .03em;
  color: rgba(255,255,255,.85);
  background: linear-gradient(0deg, rgba(0,0,0,.45), transparent);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 980px) {
  .split,
  .sight-glass-type,
  .strainer-type,
  .filter-type,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .process-grid,
  .card-grid,
  .industry-grid,
  .reason-grid,
  .terms-grid,
  .material-grid,
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .footer-grid { gap: 28px; }
}

@media (max-width: 760px) {
  .main-nav, .header-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .hero h1,
  .hero h2 { font-size: 32px; }
  .page-hero h1 { font-size: 26px; }
  .applications-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .applications-sidebar {
    position: static;
    padding-top: 0;
  }
  .applications-nav {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: 8px;
  }
  .applications-nav a {
    border-left: none;
    border-bottom: 1px solid var(--border);
    padding-left: 0;
  }
  .process-grid,
  .card-grid,
  .industry-grid,
  .reason-grid,
  .terms-grid,
  .material-grid,
  .spec-grid { grid-template-columns: 1fr; }
  .process-grid .step,
  .reason,
  .card-grid:not(.blog-card-grid) .card { border-right: none !important; border-bottom: 1px solid var(--border); }
  .form-row { grid-template-columns: 1fr; }
  .cta-band .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-band .cta-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn { width: 100%; }
}

/* mobile nav drawer */
.main-nav.open {
  display: flex !important;
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 32px 24px;
  gap: 16px;
}
