/*
Theme Name: Cox Filter Bag
Theme URI: https://filterbag.org
Author: Cox Filter Bag
Author URI: https://filterbag.org
Description: Minimal WordPress theme for Cox Filter Bag — liquid filter bag manufacturer. Responsive, industrial B2B design.
Version: 1.0
License: GPL v2 or later
Text Domain: cox-filter-bag
*/

/* ============================================
   COX Filter Bag — Shared Stylesheet
   Modern, responsive, industrial B2B
   ============================================ */

:root {
  /* Brand — industrial blue (ref. EATON #007AC2 / PALL #2C58A8) */
  --primary: #0A4F9E;
  --primary-dark: #063B73;
  --primary-light: #E8F1FB;
  /* Accent — teal, liquid-filtration cue, pairs with blue */
  --accent: #0C8A8A;
  --accent-dark: #096B6B;
  --accent-light: #E1F4F4;
  /* Neutrals */
  --text: #23262B;
  --text-muted: #565A61;
  --text-light: #8A8F98;
  --bg: #FFFFFF;
  --bg-alt: #F6F8FB;
  --border: #E4E8EE;
  --border-light: #EEF1F5;
  /* Status */
  --warning: #8A5A00;
  --warning-bg: #FBEFD9;
  /* Footer */
  --footer-bg: #0C2742;
  --footer-text: #A9B4C0;
  --footer-border: #1E3A57;
  /* Shape & depth */
  --radius: 10px;
  --radius-sm: 6px;
  --max-width: 1200px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

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

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

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.logo-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px;
}
.logo span { color: var(--primary); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav .dropdown-label {
  display: inline-flex; align-items: center;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text);
  cursor: pointer; transition: background 0.2s;
}
.nav a:hover, .nav .dropdown-label:hover { background: var(--bg-alt); color: var(--primary); }
.nav .active { color: var(--primary); background: var(--primary-light); }

.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); min-width: 260px; padding: 6px;
  flex-direction: column;
}
.dropdown:hover .dropdown-menu { display: flex; }
.dropdown-menu a {
  padding: 9px 14px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 400; color: var(--text-muted);
}
.dropdown-menu a:hover { background: var(--bg-alt); color: var(--primary); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1.5px solid transparent; transition: all 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-lg { padding: 14px 32px; font-size: 15px; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff; padding: 64px 0;
}
.hero h1 { font-size: 34px; font-weight: 700; line-height: 1.25; margin-bottom: 16px; max-width: 720px; }
.hero p { font-size: 17px; opacity: 0.92; max-width: 620px; margin-bottom: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 32px; }
.hero-badge { display: flex; align-items: center; gap: 8px; font-size: 14px; opacity: 0.92; }
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Section ===== */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 26px; font-weight: 700; text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 16px; max-width: 640px; margin: 0 auto 40px; }

/* ===== Product Cards ===== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card .tag {
  display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--accent); background: var(--accent-light);
  padding: 3px 10px; border-radius: 20px; margin-bottom: 14px;
}
.product-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.product-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.product-card .compat { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 16px; }
.product-card .spec-mini { font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--border-light); padding-top: 14px; }
.product-card .spec-mini div { display: flex; justify-content: space-between; padding: 3px 0; }

/* ===== Feature Blocks ===== */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-block { text-align: center; padding: 24px; }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; margin: 0 auto 16px;
}
.feature-block h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-block p { font-size: 13.5px; color: var(--text-muted); }

/* ===== App Grid ===== */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.app-item {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 18px; text-align: center; font-size: 14px; font-weight: 600; color: var(--text-muted);
}

/* ===== Trust Strip ===== */
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px; padding: 28px 0; }
.trust-item { font-size: 18px; font-weight: 700; color: var(--text-light); letter-spacing: 0.5px; }

/* ===== CTA Section ===== */
.cta-section {
  background: var(--accent); color: #fff; text-align: center; padding: 56px 0;
}
.cta-section h2 { font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.cta-section p { font-size: 16px; opacity: 0.92; margin-bottom: 28px; }

/* ===== Page Banner ===== */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff; padding: 36px 0;
}
.page-banner h1 { font-size: 27px; font-weight: 700; margin-bottom: 6px; }
.page-banner p { font-size: 15px; opacity: 0.88; margin-bottom: 0; }
.breadcrumb { font-size: 13px; opacity: 0.85; margin-bottom: 6px; }
.breadcrumb a { color: #fff; opacity: 0.9; }
.breadcrumb a:hover { opacity: 1; }

/* ===== Content Typography ===== */
.content { padding: 56px 0; }
.content h2 { font-size: 22px; font-weight: 700; margin: 36px 0 14px; color: var(--text); }
.content h2:first-child { margin-top: 0; }
.content h3 { font-size: 17px; font-weight: 600; margin: 24px 0 10px; }
.content p { margin-bottom: 14px; color: var(--text); }
.content ul, .content ol { margin: 0 0 16px 20px; }
.content li { margin-bottom: 6px; }
.content strong { font-weight: 600; }

/* ===== Tables ===== */
.data-table { width: 100%; border-collapse: collapse; margin: 16px 0 28px; font-size: 14px; }
.data-table th {
  background: var(--primary-dark); color: #fff; text-align: left;
  padding: 12px 16px; font-weight: 600; font-size: 13px;
}
.data-table td { padding: 11px 16px; border-bottom: 1px solid var(--border-light); }
.data-table tr:nth-child(even) td { background: var(--bg-alt); }
.data-table tr:hover td { background: var(--primary-light); }

.spec-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.spec-table td { padding: 10px 16px; border-bottom: 1px solid var(--border-light); }
.spec-table td:first-child { font-weight: 600; color: var(--text-muted); width: 35%; background: var(--bg-alt); }

/* ===== Info Cards ===== */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 24px 0; }
.info-card {
  background: var(--bg-alt); border-radius: var(--radius); padding: 24px;
}
.info-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--primary-dark); }
.info-card p, .info-card li { font-size: 14px; color: var(--text-muted); }
.info-card ul { margin: 6px 0 0 18px; }

/* ===== Timeline ===== */
.timeline { position: relative; padding-left: 28px; margin: 24px 0; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 24px; }
.timeline-item::before {
  content: ""; position: absolute; left: -24px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--bg);
}
.timeline-item strong { display: block; font-size: 15px; font-weight: 700; color: var(--primary-dark); margin-bottom: 2px; }
.timeline-item p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ===== Stat Row ===== */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 32px 0; }
.stat { text-align: center; }
.stat .num { font-size: 30px; font-weight: 700; color: var(--primary); }
.stat .label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ===== Testimonials ===== */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 24px 0; }
.testimonial {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.testimonial p { font-size: 14px; color: var(--text); font-style: italic; margin-bottom: 14px; }
.testimonial .author { font-size: 13px; color: var(--text-muted); font-weight: 600; }

/* ===== Cert badges ===== */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0; }
.cert-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center;
}
.cert-card .cert-name { font-size: 16px; font-weight: 700; margin: 8px 0 4px; }
.cert-card .cert-desc { font-size: 13px; color: var(--text-muted); }
.cert-status {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 12px;
  border-radius: 20px; margin-top: 10px;
}
.status-yes { background: var(--accent-light); color: var(--accent-dark); }
.status-prog { background: var(--warning-bg); color: var(--warning); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 24px 0; }
.contact-card { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; }
.contact-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--primary-dark); }
.contact-card .row { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.contact-card .row:last-child { border-bottom: none; }
.contact-card .row .lbl { font-weight: 600; color: var(--text-muted); min-width: 90px; font-size: 14px; }
.contact-card .row .val { font-size: 14px; }

/* ===== Footer ===== */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 48px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand h3 { color: #fff; font-size: 18px; margin-bottom: 12px; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a { display: block; color: var(--footer-text); font-size: 13.5px; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--footer-border); padding-top: 20px; display: flex; justify-content: space-between; font-size: 12.5px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: var(--footer-text); font-size: 13px; }

/* ===== Note box ===== */
.note-box {
  background: var(--primary-light); border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 20px 0;
}
.note-box p { margin: 0; font-size: 14px; color: var(--text); }

/* ===== Form ===== */
.form-field {
  padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; width: 100%;
}
.form-field:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .product-grid, .feature-grid, .app-grid, .info-grid, .testimonial-grid, .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; padding: 12px; gap: 0; box-shadow: var(--shadow-md); }
  .nav.open { display: flex; }
  .nav a, .nav .dropdown-label { width: 100%; padding: 12px 16px; }
  .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 16px; }
  .nav-toggle { display: block; }
  .product-grid, .feature-grid, .app-grid, .info-grid, .testimonial-grid, .cert-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .section { padding: 40px 0; }
  .data-table { font-size: 12.5px; }
  .data-table th, .data-table td { padding: 8px 10px; }
}
