/* =====================================================
   Merit Fire & Power Piping Systems — Design System
   ===================================================== */

/* --- Tokens --- */
:root {
  --red:        #B01C1C;
  --red-dark:   #8C1515;
  --red-light:  #FCEBEB;
  --gold:       #C97820;
  --gold-light: #FDF3E3;
  --dark:       #1F2937;
  --mid:        #4B5563;
  --muted:      #6B7280;
  --border:     #E5E7EB;
  --bg:         #F8F7F5;
  --white:      #FFFFFF;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --nav-h: 72px;
  --transition: 0.2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { font-family: var(--font); color: var(--dark); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* --- Typography --- */
h1, h2, h3, h4, h5 { font-weight: 600; line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { color: var(--mid); }
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.section-title { margin-bottom: 0.75rem; }
.section-sub { font-size: 1.05rem; color: var(--muted); max-width: 560px; }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }
.section { padding: 80px 0; }
.section--gray { background: var(--bg); }
.section--dark { background: var(--dark); }
.section--red  { background: var(--red); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:active { transform: scale(0.98); }
.btn--primary   { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); }
.btn--secondary { background: #f59e0b; color: #fff; }
.btn--secondary:hover { background: #d97706; }
.btn--outline   { background: transparent; color: var(--red); border-color: var(--red); }
.btn--outline:hover { background: var(--red); color: var(--white); }
.btn--white     { background: var(--white); color: var(--red); }
.btn--white:hover { background: #f0f0f0; }
.btn--ghost     { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn--sm { padding: 8px 18px; font-size: 0.82rem; }
.btn--lg { padding: 16px 36px; font-size: 1rem; }

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav__logo img { height: 40px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__link {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--mid);
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover, .nav__link.active { color: var(--red); background: var(--red-light); }
.nav__link--disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}
.nav__cta { margin-left: 12px; }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}
.nav__mobile.open { display: flex; }
.nav__mobile .nav__link { padding: 12px 14px; display: block; }

/* --- Hero --- */
.hero {
  margin-top: var(--nav-h);
  position: relative;
  min-height: calc(65vh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--dark);
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Slideshow */
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.hero__slide--active {
  display: block;
  opacity: 0.35;
}
.hero__next {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(4px);
}
.hero__next:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.8);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 24px;
}
.hero__tag {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.hero h1 { color: var(--white); max-width: 640px; margin-bottom: 20px; }
.hero p  { color: rgba(255,255,255,0.75); max-width: 520px; font-size: 1.1rem; margin-bottom: 36px; }
.hero__btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* Product category card */
.prod-card { display: grid; grid-template-rows: auto 1fr auto; }
.prod-card__img {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.prod-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.prod-card:hover .prod-card__img img { transform: scale(1.04); }
.prod-card__body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.prod-card__body h3 { margin-bottom: 8px; font-size: 1.05rem; }
.prod-card__body p  { font-size: 0.88rem; flex: 1; }
.prod-card__footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: var(--bg);
}

/* Product item (thumbnail grid) */
.item-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.item-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.item-card__img {
  background: var(--bg);
  padding: 20px;
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.item-card__img img { max-height: 120px; object-fit: contain; }
.item-card--lg .item-card__img { padding: 12px; }
.item-card--lg .item-card__img img { max-height: none; width: 100%; height: 100%; object-fit: contain; }
.item-card__label {
  padding: 10px 12px 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark);
  border-top: 1px solid var(--border);
}
.item-card__desc {
  padding: 0 12px 10px;
  font-size: 0.7rem;
  color: var(--muted);
}

/* Stat / value prop tile */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border);
}
.stat-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--red-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.stat-card__icon svg { width: 22px; height: 22px; stroke: var(--red); fill: none; stroke-width: 2; }
.stat-card h3 { font-size: 1rem; margin-bottom: 6px; }
.stat-card p  { font-size: 0.875rem; }

/* --- Forms --- */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--dark); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* --- Lead CTA section --- */
.cta-section {
  background: var(--dark);
  padding: 80px 0;
}
.cta-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.cta-section__left h2 { color: var(--white); margin-bottom: 16px; }
.cta-section__left p  { color: rgba(255,255,255,0.65); font-size: 1rem; }
.cta-section__left .eyebrow { color: var(--gold); }
.cta-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.cta-form h3 { margin-bottom: 24px; font-size: 1.1rem; }

/* --- Footer brands strip --- */
.footer-brands {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
  margin-bottom: 32px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  flex-wrap: wrap;
}
.footer-brands__item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brands__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}
.footer-brands__logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
}
.footer-brands__logo--invert {
  filter: none;
  opacity: 1;
  height: 52px;
}
.footer-brands__divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.15);
}
@media (max-width: 480px) {
  .footer-brands {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-brands__divider { display: none; }
}

/* --- Footer --- */
.footer {
  background: #111827;
  color: rgba(255,255,255,0.6);
  padding: 56px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand img { height: 48px; margin-bottom: 14px; }
.footer__brand p { font-size: 0.85rem; max-width: 260px; line-height: 1.6; }
.footer__col h4 {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__col li { margin-bottom: 10px; }
.footer__col a { font-size: 0.87rem; transition: color var(--transition); }
.footer__col a:hover { color: var(--white); }
.footer__col address { font-style: normal; font-size: 0.87rem; line-height: 1.7; }
.footer__login-btn {
  display: block;
  font-size: 0.87rem;
  margin-top: 10px;
  transition: color var(--transition);
}
.footer__login-btn:hover { color: var(--white); }

/* ── Enquiry Modal ──────────────────────────────────────────────────────── */
body.modal-open { overflow: hidden; }

.eq-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,20,30,0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.eq-modal__box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0,0,0,0.28);
  width: min(660px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  padding: 40px 44px 44px;
}
@media (max-width: 600px) {
  .eq-modal__box { padding: 28px 20px 32px; }
}
.eq-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.eq-modal__close:hover { background: #FCEBEB; color: var(--red); border-color: #FCEBEB; }
.eq-modal__head { margin-bottom: 28px; }
.eq-modal__head h2 { font-size: 1.5rem; margin: 4px 0 8px; }
.eq-modal__head p  { color: var(--mid); font-size: 0.9rem; }
.eq-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
@media (max-width: 520px) {
  .eq-modal__grid { grid-template-columns: 1fr; }
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group--full { grid-column: 1 / -1; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--dark); }
.form-group .req { color: var(--red); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(176,28,28,0.10);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #aaa; }
.eq-file__hint {
  font-weight: 400;
  color: var(--mid);
  font-size: 0.78rem;
  margin-left: 4px;
}
.eq-file__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.eq-file__zone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 20px 16px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  text-align: center;
  font-size: 0.85rem;
  color: var(--mid);
}
.eq-file__zone::before {
  content: '';
  display: block;
  width: 28px;
  height: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.eq-file__zone:hover,
.eq-file__zone--has-file {
  border-color: var(--red);
  background: var(--red-light);
  color: var(--red);
}
.eq-file__zone--has-file::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B01C1C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E");
}
.eq-file__name {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--mid);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.eq-modal__submit {
  margin-top: 24px;
  width: 100%;
  justify-content: center;
  padding: 13px;
  font-size: 1rem;
}
.eq-modal__toast {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 24px;
  text-align: center;
  color: #1a7a50;
}
.eq-toast__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
}
.eq-toast__sub {
  margin: 0;
  font-size: 0.875rem;
  color: var(--mid);
}
.footer__bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}
.footer__bottom a:hover { color: var(--white); }
.footer__bottom svg { display: block; }
.im-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #888;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease;
  letter-spacing: 0;
}
.im-badge:hover { background: #C1272D; }

/* --- Page header (inner pages) --- */
.page-header {
  margin-top: var(--nav-h);
  background: var(--dark);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(176,28,28,0.3) 0%, transparent 60%);
}
.page-header__inner { position: relative; z-index: 1; }
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p  { color: rgba(255,255,255,0.65); max-width: 540px; font-size: 1rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: var(--gold); }

/* --- Tabs --- */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 40px;
  overflow-x: auto;
  padding-bottom: 0;
}
.tab-btn {
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}
.tab-btn:hover { color: var(--dark); }
.tab-btn.active { color: var(--red); border-bottom-color: var(--red); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --- Section divider accent --- */
.accent-bar {
  width: 48px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin-bottom: 20px;
}

/* --- Placeholder image --- */
.placeholder-img {
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}
.placeholder-img svg { width: 32px; height: 32px; stroke: var(--border); fill: none; stroke-width: 1.5; }

/* --- Toast / success message --- */
.toast {
  display: none;
  background: #EAF3DE;
  color: #3B6D11;
  border: 1px solid #97C459;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 16px;
}
.toast.show { display: block; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta-section__inner { gap: 40px; }
}
/* machines.html intro layout */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 72px;
}
.intro-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 460px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .intro-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
  .intro-image-grid { width: 100%; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .cta-section__inner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 10px; text-align: center; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .hero { min-height: 500px; }
  .hero__btns { flex-direction: column; }
  .hero__btns .btn { text-align: center; justify-content: center; }
  .cta-help-banner .btn--white { display: block; margin: 0 auto; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .tabs { gap: 0; }
}
@media (max-width: 640px) {
  .grid-auto {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

/* ── Industry page filter buttons ───────────────────────── */
.ind-filter {
  border: 1px solid var(--border); border-radius: 20px;
  padding: 6px 16px; font-size: 0.8rem; font-weight: 500;
  background: var(--white); color: var(--muted);
  cursor: pointer; transition: all .15s; font-family: var(--font);
}
.ind-filter:hover { border-color: var(--red); color: var(--red); }
.ind-filter.active {
  background: var(--red); color: var(--white);
  border-color: var(--red); font-weight: 600;
}

/* ── Flexible hose cards — responsive ───────────────────── */
.hose-card {
  display: flex;
  flex-direction: row;
  overflow: hidden;
}
.hose-card__img {
  width: 40%;
  min-width: 180px;
  height: auto;
  aspect-ratio: unset;
  flex-shrink: 0;
  padding: 28px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hose-card__img img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: contain;
}
@media (max-width: 640px) {
  .hose-card {
    flex-direction: column;
  }
  .hose-card__img {
    width: 100%;
    min-width: unset;
    height: 130px;
    padding: 16px 28px;
    box-sizing: border-box;
  }
  .hose-card__img img {
    max-height: 100%;
  }
  .hose-card > div:last-child {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 20px 16px;
  }
  .hose-card > div:last-child > div {
    grid-template-columns: 1fr !important;
  }
}

/* ── Tab bar scroll fade indicator ──────────────────────── */
.tabs-wrap {
  position: relative;
}
.tabs-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 100%;
  background: linear-gradient(to right, transparent, var(--white) 85%);
  pointer-events: none;
  transition: opacity 0.2s;
  opacity: 1;
}
.tabs-wrap.no-fade::after {
  opacity: 0;
}

/* ── Homepage product grid — responsive ─────────────────── */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Brands strip — responsive ───────────────────────────── */
.brands-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.brands-strip__logos {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 640px) {
  .brands-strip {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .brands-strip__logos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: stretch;
    width: 100%;
  }
  .brands-strip__logos > div {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    border-left: none !important;
    padding-left: 0 !important;
  }
  .brands-strip__logos > div > div {
    border-left: none !important;
    padding-left: 0 !important;
    text-align: center;
    margin-top: auto;
  }
  .brands-strip__divider {
    display: none;
  }
}

/* ── Why Choose Us cards ─────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.why-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.why-card__icon {
  width: 60px;
  height: 60px;
  background: var(--red-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.why-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.why-card__text {
  font-size: 0.82rem;
  color: var(--mid);
  line-height: 1.6;
}
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ── Stats bar ───────────────────────────────────────────── */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.stats-bar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 4px 8px;
}
.stats-bar__icon {
  width: 36px;
  height: 36px;
  background: rgba(226,75,74,0.18);
  border: 1.5px solid var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.stats-bar__value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}
.stats-bar__label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}
.stats-bar__divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    justify-items: center;
  }
  .stats-bar__divider { display: none; }
  .stats-bar__value { font-size: 1rem; white-space: normal; }
  .stats-bar__label { font-size: 0.65rem; white-space: normal; }
}
@media (max-width: 380px) {
  .stats-bar__value { font-size: 0.88rem; }
  .stats-bar__label { font-size: 0.62rem; }
  .stats-bar__icon { width: 28px; height: 28px; }
  .stats-bar__icon svg { width: 14px; height: 14px; }
}

/* ── Piping Machines teaser: center on mobile ── */
@media (max-width: 768px) {
  .machines-teaser-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .machines-teaser-header .btn {
    align-self: center;
  }
}
