/*
Theme Name: Pureair Filter Co.
Theme URI: https://pureairfilterco.co.za
Author: iTneeds Support
Author URI: https://itneeds.co.za
Description: Custom WordPress theme for Pureair Filter Co. t/a Fibatron. Built for use with Elementor Free.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Private
Text Domain: pureair
Tags: elementor, business, clean
*/

/* ─────────────────────────────────────────
   PUREAIR FILTER CO. — GLOBAL STYLESHEET
   Supports Elementor Free layout
───────────────────────────────────────── */

/* CSS VARIABLES */
:root {
  --blue: #4389D6;
  --navy: #17406D;
  --navy-mid: #1e5290;
  --blue-light: #deeaf8;
  --blue-pale: #f0f6fc;
  --border: #c8daf0;
  --gray: #4a5568;
  --gray-light: #f4f7fb;
  --text: #1a2332;
  --white: #fff;
  --radius: 4px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(23, 64, 109, 0.10);
  --shadow-hover: 0 12px 36px rgba(23, 64, 109, 0.18);
  --transition: 0.25s ease;
}

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }

/* TOPBAR */
.pureair-topbar {
  background: var(--navy);
  color: #b8d4ef;
  font-size: 12px;
  padding: 7px 0;
}
.pureair-topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pureair-topbar a { color: #b8d4ef; }
.pureair-topbar a:hover { color: #93c5f6; }
.pureair-topbar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.pureair-topbar-item { display: flex; align-items: center; gap: 6px; }
.pureair-topbar-item i { color: #93c5f6; font-size: 13px; }

/* HEADER */
.pureair-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.pureair-header.scrolled { box-shadow: 0 2px 20px rgba(23, 64, 109, 0.12); }
.pureair-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.pureair-logo-wrap { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.pureair-logo-name { font-size: 19px; font-weight: 500; color: var(--blue); display: block; line-height: 1.1; }
.pureair-logo-sub { font-size: 10px; color: #666; letter-spacing: 2px; text-transform: uppercase; display: block; }

/* NAV */
.pureair-nav { display: flex; gap: 28px; align-items: center; list-style: none; }
.pureair-nav a {
  font-size: 14px;
  color: var(--gray);
  position: relative;
  padding-bottom: 3px;
  text-decoration: none;
  transition: color var(--transition);
}
.pureair-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width var(--transition);
}
.pureair-nav a:hover,
.pureair-nav a.active { color: var(--blue); }
.pureair-nav a:hover::after,
.pureair-nav a.active::after { width: 100%; }
.pureair-nav .nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 4px !important;
}
.pureair-nav .nav-cta::after { display: none !important; }
.pureair-nav .nav-cta:hover { background: var(--navy) !important; }

/* MOBILE TOGGLE */
.pureair-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--navy);
  font-size: 24px;
}

/* LAYOUT HELPERS */
.pureair-container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
  border: none;
  font-family: inherit;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--blue-light); color: var(--navy); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: #93c5f6; border: 1.5px solid #93c5f6; }
.btn-outline-white:hover { background: rgba(147, 197, 246, 0.15); color: #fff; }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* SECTION HELPERS */
.pureair-section { padding: 80px 0; }
.pureair-section-gray { background: var(--gray-light); }
.pureair-section-navy { background: var(--navy); }
.pureair-section-blue { background: var(--blue); }
.section-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  display: block;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 14px;
}
.section-sub { font-size: 15px; color: var(--gray); line-height: 1.7; max-width: 560px; }
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* HERO */
.pureair-hero {
  position: relative;
  min-height: 540px;
  background: var(--navy);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.pureair-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 55, 0.6);
  z-index: 1;
}
.pureair-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 90px 0 110px;
}
.pureair-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.pureair-hero-left { max-width: 520px; }
.hero-tag {
  font-size: 11px;
  font-weight: 600;
  color: #93c5f6;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 16px;
  display: block;
}
.hero-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 18px;
}
.hero-sub { font-size: 15px; color: #a8c8e8; line-height: 1.7; margin-bottom: 32px; }
.hero-badges { display: flex; flex-direction: column; gap: 12px; min-width: 220px; }
.hero-badge {
  background: rgba(255, 255, 255, 0.10);
  border: 0.5px solid rgba(255, 255, 255, 0.20);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-badge i { color: #93c5f6; font-size: 22px; flex-shrink: 0; }
.hero-badge-title { font-size: 13px; font-weight: 600; color: #fff; display: block; }
.hero-badge-sub { font-size: 12px; color: #a8c8e8; display: block; }

/* PAGE HERO (inner pages) */
.pureair-page-hero {
  background: var(--navy);
  padding: 56px 0 48px;
}
.pureair-page-hero-inner { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.page-hero-tag {
  font-size: 11px;
  font-weight: 600;
  color: #93c5f6;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 12px;
  display: block;
}
.page-hero-title { font-size: clamp(26px, 4vw, 40px); font-weight: 500; color: #fff; margin-bottom: 10px; }
.page-hero-sub { font-size: 15px; color: #a8c8e8; max-width: 600px; line-height: 1.7; }

/* TWO COLUMN */
.pureair-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* WHY GRID */
.pureair-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: #c8daf0;
}
.pureair-why-card { background: #fff; padding: 40px 32px; }
.pureair-why-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.pureair-why-title { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.pureair-why-text { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* STATS ROW */
.pureair-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--navy);
}
.pureair-stat-item { padding: 32px; border-right: 0.5px solid rgba(255,255,255,0.08); }
.pureair-stat-item:last-child { border-right: none; }
.pureair-stat-num { font-size: 32px; font-weight: 700; color: var(--blue); display: block; line-height: 1; margin-bottom: 6px; }
.pureair-stat-label { font-size: 13px; color: #7a9ab8; }

/* PRODUCTS GRID */
.pureair-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pureair-product-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.pureair-product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.pureair-product-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pureair-product-body { padding: 22px 22px 18px; flex: 1; display: flex; flex-direction: column; }
.pureair-product-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--blue-pale);
  color: var(--blue);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pureair-product-title { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 8px; line-height: 1.3; }
.pureair-product-desc { font-size: 13px; color: var(--gray); line-height: 1.65; flex: 1; }
.pureair-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
  border-top: 0.5px solid var(--border);
}
.pureair-product-link {
  font-size: 13px;
  color: var(--blue);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: gap var(--transition);
}
.pureair-product-link:hover { gap: 9px; color: var(--navy); }

/* TESTIMONIALS */
.pureair-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pureair-testi {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.pureair-testi-stars { color: #f59e0b; font-size: 14px; margin-bottom: 14px; display: flex; gap: 3px; }
.pureair-testi-text { font-size: 14px; color: var(--gray); line-height: 1.75; font-style: italic; margin-bottom: 20px; }
.pureair-testi-author { display: flex; align-items: center; gap: 12px; }
.pureair-testi-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.pureair-testi-name { font-size: 14px; font-weight: 600; color: var(--navy); display: block; }
.pureair-testi-role { font-size: 12px; color: var(--gray); display: block; }

/* CTA BAND */
.pureair-cta-band { background: var(--blue); padding: 60px 0; }
.pureair-cta-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.pureair-cta-tag { font-size: 11px; color: #c8e0f8; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; display: block; margin-bottom: 10px; }
.pureair-cta-title { font-size: clamp(20px, 2.5vw, 28px); font-weight: 500; color: #fff; line-height: 1.3; margin: 0; max-width: 500px; }

/* CONTACT */
.pureair-contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.pureair-contact-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pureair-contact-icon i { color: var(--blue); font-size: 19px; }
.pureair-contact-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--blue); display: block; margin-bottom: 3px; }
.pureair-contact-value { font-size: 14px; color: var(--text); font-weight: 500; display: block; }
.pureair-contact-sub { font-size: 13px; color: var(--gray); display: block; }

/* CONTACT FORM */
.pureair-contact-form-wrap {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

/* FOOTER */
.pureair-footer { background: var(--navy); padding: 52px 0 0; }
.pureair-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
}
.pureair-footer-logo-name { font-size: 16px; font-weight: 500; color: #fff; display: block; }
.pureair-footer-logo-sub { font-size: 11px; color: #93c5f6; letter-spacing: 1.5px; text-transform: uppercase; display: block; margin-top: 2px; }
.pureair-footer-desc { font-size: 13px; color: #7a9ab8; line-height: 1.75; max-width: 260px; margin: 14px 0 16px; }
.pureair-footer-social { display: flex; gap: 8px; }
.pureair-footer-social a {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.pureair-footer-social a:hover { background: rgba(255,255,255,0.18); }
.pureair-footer-social i { color: #7a9ab8; font-size: 15px; }
.pureair-footer-col-title { font-size: 11px; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; display: block; }
.pureair-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pureair-footer-col ul li a { font-size: 13px; color: #7a9ab8; text-decoration: none; transition: color var(--transition); }
.pureair-footer-col ul li a:hover { color: #b8d4ef; }
.pureair-footer-contact-item { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
.pureair-footer-contact-item i { font-size: 13px; color: #7a9ab8; flex-shrink: 0; margin-top: 2px; }
.pureair-footer-contact-item span,
.pureair-footer-contact-item a { font-size: 13px; color: #7a9ab8; text-decoration: none; line-height: 1.6; }
.pureair-footer-contact-item a:hover { color: #b8d4ef; }
.pureair-footer-bottom {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pureair-footer-bottom p { font-size: 12px; color: #3d5a72; margin: 0; }
.pureair-footer-bottom-links { display: flex; gap: 16px; }
.pureair-footer-bottom-links a { font-size: 12px; color: #3d5a72; text-decoration: none; }

/* TIMELINE */
.pureair-timeline { position: relative; padding: 0 40px; }
.pureair-timeline::before { content:''; position:absolute; left:50%; top:0; bottom:0; width:1px; background:var(--border); transform:translateX(-50%); }
.pureair-timeline-item { display:flex; gap:40px; margin-bottom:40px; align-items:flex-start; position:relative; }
.pureair-timeline-item:nth-child(even) { flex-direction:row-reverse; }
.pureair-timeline-dot { position:absolute; left:50%; top:8px; width:12px; height:12px; border-radius:50%; background:var(--blue); border:2px solid #fff; box-shadow:0 0 0 3px var(--blue-light); transform:translateX(-50%); }
.pureair-timeline-content { width:calc(50% - 40px); background:#fff; border:0.5px solid var(--border); border-radius:var(--radius-lg); padding:24px 28px; }
.pureair-timeline-year { font-size:11px; font-weight:600; color:var(--blue); letter-spacing:1.5px; display:block; margin-bottom:6px; }
.pureair-timeline-title { font-size:15px; font-weight:600; color:var(--navy); margin-bottom:8px; }
.pureair-timeline-text { font-size:13px; color:var(--gray); line-height:1.7; }

/* PRODUCT DETAIL */
.pureair-product-detail { display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; }
.pureair-product-detail-image { background:var(--blue-pale); border-radius:var(--radius-lg); height:340px; display:flex; align-items:center; justify-content:center; }
.pureair-product-spec { display:flex; justify-content:space-between; padding:10px 0; border-bottom:0.5px solid var(--border); font-size:14px; }
.pureair-product-spec-label { color:var(--gray); }
.pureair-product-spec-value { font-weight:500; color:var(--navy); }

/* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────────────
   ELEMENTOR OVERRIDES
───────────────────────────────────────── */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1180px;
}
.elementor-widget-text-editor p,
.elementor-widget-text-editor li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray);
}
.elementor-widget-heading .elementor-heading-title {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}
/* Contact Form 7 inside Elementor */
.wpcf7-form input,
.wpcf7-form select,
.wpcf7-form textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition);
  width: 100%;
}
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(67, 137, 214, 0.12);
}
.wpcf7-form label { font-size: 13px; font-weight: 500; color: var(--navy); display: block; margin-bottom: 5px; }
.wpcf7-submit { background: var(--blue); color: #fff; border: none; padding: 11px 28px; border-radius: var(--radius); font-size: 14px; font-weight: 500; cursor: pointer; transition: background var(--transition); }
.wpcf7-submit:hover { background: var(--navy); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .pureair-products-grid { grid-template-columns: repeat(2, 1fr); }
  .pureair-three-col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .pureair-two-col,
  .pureair-footer-grid,
  .pureair-product-detail { grid-template-columns: 1fr; }
  .pureair-stats-row { grid-template-columns: repeat(2, 1fr); }
  .pureair-why-grid { grid-template-columns: 1fr 1fr; }
  .pureair-hero-inner,
  .pureair-cta-inner { flex-direction: column; }
  .pureair-timeline::before { left: 24px; }
  .pureair-timeline-item,
  .pureair-timeline-item:nth-child(even) { flex-direction: column; padding-left: 60px; }
  .pureair-timeline-dot { left: 24px; }
  .pureair-timeline-content { width: 100%; margin: 0 !important; }
}
@media (max-width: 700px) {
  .pureair-products-grid { grid-template-columns: 1fr; }
  .pureair-testi-grid { grid-template-columns: 1fr; }
  .pureair-why-grid { grid-template-columns: 1fr; }
  .pureair-stats-row { grid-template-columns: 1fr 1fr; }
  .pureair-footer-grid { grid-template-columns: 1fr; }
  .pureair-nav { display: none; }
  .pureair-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 20px 32px; border-bottom: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
  .pureair-nav-toggle { display: block; }
}
