/* ===================================================================
   ABC TRADERS — Caterpillar-Inspired Design System
   Palette: Safety Yellow #FFCC00 | Industrial Black #0A0A0A | Steel Gray
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@400;600;700;900&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* ─── CSS Custom Properties — DARK MODE (default) ───────────────── */
:root {
  --yellow: #FFCC00;
  --yellow-dark: #E6B800;
  --on-primary: #0A0A0A;
  --black: #0A0A0A;
  --black-mid: #111111;
  --dark: #1A1A1A;
  --steel: #2C2C2C;
  --steel-mid: #3A3A3A;
  --gray: #888888;
  --light-gray: #CCCCCC;
  --white: #F5F5F5;
  --orange: #E8810A;

  /* Semantic aliases (used by all components) */
  --bg-page: #0A0A0A;
  --bg-surface: #111111;
  --bg-elevated: #1A1A1A;
  --bg-accent: #222222;
  --border: #2C2C2C;
  --text-primary: #F5F5F5;
  --text-muted: #888888;
  --text-subtle: #BBBBBB;
  --navbar-bg: rgba(10, 10, 10, 0.95);
  --footer-bg: #0A0A0A;

  --brand-logo-color: var(--yellow);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 6px;
  --radius-lg: 12px;
  --transition: 0.25s ease;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.5);

  /* Mobile menu — dark: solid black bg + brand yellow text */
  --mobile-menu-bg: #000000;
  --mobile-menu-text: #FFCC00;
  --mobile-menu-hover: rgba(255, 204, 0, 0.10);
}

/* ─── LIGHT MODE overrides ───────────────────────────────────────── */
[data-theme="light"] {
  --black: #FFFFFF;
  --black-mid: #F8F8F8;
  --dark: #F0F0F0;
  --steel: #E5E5E5;
  --steel-mid: #DADADA;
  --gray: #666666;
  --light-gray: #444444;
  --white: #111111;

  --bg-page: #FFFFFF;
  --bg-surface: #FCFCFC;
  --bg-elevated: #F5F5F5;
  --bg-accent: #EFEFEF;
  --border: #E0E0E0;
  --text-primary: #111111;
  --text-muted: #666666;
  --text-subtle: #444444;
  --navbar-bg: rgba(255, 255, 255, 0.97);
  --footer-bg: #F8F8F8;

  /* Use a slightly darker yellow for better contrast on white backgrounds */
  --brand-logo-color: #D4AA00;

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.1);

  /* Mobile menu — light: solid white bg + black text */
  --mobile-menu-bg: #ffffff;
  --mobile-menu-text: #000000;
  --mobile-menu-hover: rgba(0, 0, 0, 0.04);
}

/* ─── CORPORATE BRANDING (Option 2) ───────────────────────── */
[data-branding="corporate"] {
  --yellow: #f06321;
  /* Orange-Red */
  --yellow-dark: #d55318;
  /* Darker Orange-Red */
  --on-primary: #FFFFFF;
  /* Makes text on primary color readable */
  --orange: #004A7C;
  /* Horizon Blue */

  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --brand-logo-color: var(--yellow);
  --radius: 2px;
  /* Sharper edges */
  --radius-lg: 4px;
}

[data-branding="corporate"][data-theme="light"] {
  --bg-page: #FDFDFD;
  --bg-accent: #E3D8C4;
  /* Sandstone */
  --shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.03);
  --brand-logo-color: var(--yellow);
}

/* ─── Theme transition (smooth switch) ──────────────────────────── */
html {
  transition: background-color 0.3s ease, color 0.3s ease;
}

body,
.navbar,
.footer,
.brand-card,
.machinery-card,
.search-bar-wrap,
.contact-info-card,
.contact-form-card,
.quote-form-card,
.hero-machine-card,
.page-header {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ─── Theme Toggle Button ────────────────────────────────────────── */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--steel);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--black);
  transform: rotate(20deg) scale(1.1);
}

/* ─── Reset & Base ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* Prevent horizontal scroll */
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

ul {
  list-style: none;
}

/* ─── Utilities ──────────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
}

.section {
  padding: clamp(60px, 10vw, 100px) 0;
}

.section-sm {
  padding: 48px 0;
}

.text-yellow {
  color: var(--yellow);
}

.text-gray {
  color: var(--gray);
}

.text-white {
  color: var(--white);
}

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

.text-upper {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--yellow);
  color: var(--on-primary);
  /* Use variable to ensure readability under themes */
}

.btn-primary:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 204, 0, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--yellow);
  border: 2px solid var(--yellow);
}

.btn-outline:hover {
  background: var(--yellow);
  color: var(--black);
}

.btn-tab {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--steel);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-tab:hover,
.btn-tab.active-tab {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

.btn-dark {
  background: var(--steel);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--steel-mid);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-yellow {
  background: var(--yellow);
  color: var(--black);
}

.badge-dark {
  background: var(--steel);
  color: var(--light-gray);
}

.badge-orange {
  background: var(--orange);
  color: var(--white);
}

.divider {
  border: none;
  border-top: 1px solid var(--steel);
  margin: 2rem 0;
}

/* ─── Navigation ─────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1500;   /* must be > mobile-overlay (1040) so drawer links are clickable */
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--yellow);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px; 
  transition: height 0.3s ease;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand .brand-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-logo-color);
  text-transform: uppercase;
  line-height: 1;
}

.navbar-brand .brand-sub {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-logo {
  height: clamp(55px, 10vw, 75px); 
  width: auto;
  display: block;
  object-fit: contain;
  transition: all 0.3s ease;
}

/* Logo theme switching — controls ALL logos (navbar + footer) */
.logo-for-light { display: none !important; }
.logo-for-dark  { display: block !important; }

[data-theme="light"] .logo-for-light { display: block !important; }
[data-theme="light"] .logo-for-dark  { display: none  !important; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links li { list-style: none; }

.nav-links a {
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--yellow);
  background: rgba(255, 204, 0, 0.08);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 26px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1500;
  margin-left: 1rem;
}

.hamburger span {
  width: 100%;
  height: 2.5px;
  background: var(--yellow);
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* ─── Mobile Styles ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar-inner { height: 70px; }
  .nav-logo { height: 45px; }

  .hamburger { display: flex; }
  
  .hamburger.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(-20px); }
  .hamburger.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

  /* ── Mobile nav drawer — uses CSS variables set at :root / [data-theme=light] level ── */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 80vw;
    height: 100vh;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-left: 4px solid var(--yellow);
    background: var(--mobile-menu-bg);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.35);
  }

  .nav-links.open { right: 0; }
  .nav-links li { width: 100%; text-align: center; }

  .nav-links a {
    font-size: 1.4rem;
    font-weight: 800;
    padding: 14px 10%;
    width: 100%;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mobile-menu-text);
    transition: background 0.2s ease;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--mobile-menu-hover);
  }

  .mobile-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1040;
  }
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Removed duplicate nav-links blocks */

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#btn-get-quote {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.nav-contact-bar {
  background: var(--yellow);
  color: var(--on-primary);
  text-align: center;
  padding: 8px 16px;
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .nav-contact-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 10px !important;
    gap: 10px 15px !important;
  }
  .nav-contact-bar a, .nav-contact-bar span {
    font-size: 0.72rem !important;
    display: flex;
    align-items: center;
    width: auto !important;
    margin: 0 !important;
    white-space: nowrap;
  }
  .nav-sep {
    display: none !important;
  }
}

.nav-contact-bar a {
  color: var(--on-primary);
  font-weight: 700;
}

.nav-contact-bar a:hover {
  text-decoration: underline;
}

/* ─── Hero Section ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 3.5rem 0 4rem;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background:
    url("/static/images/hero-bg.17b17d7b0460.jpg") center center / cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(5, 5, 5, 0.92) 0%, rgba(10, 10, 10, 0.75) 55%, rgba(5, 5, 5, 0.55) 100%),
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(255, 204, 0, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(232, 129, 10, 0.08) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--yellow);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  color: #F5F5F5;
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--yellow);
}

.hero-desc {
  font-size: 1.1rem;
  color: #CCCCCC;
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .hero-desc {
    font-size: 1rem;
    margin-inline: auto;
    margin-bottom: 2rem;
  }
  .hero-title {
    line-height: 1.1;
    margin-bottom: 1rem;
  }
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--steel);
}

.stat-item {
  text-align: left;
}

@media (max-width: 768px) {
  .stat-item {
    text-align: center;
  }
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: #CCCCCC;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hero-machine-card {
  background: var(--dark);
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

@media (max-width: 500px) {
  .hero-machine-card {
    padding: 1.25rem;
  }
}

.hero-machine-card img {
  border-radius: var(--radius);
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* ─── Hero Slideshow ────────────────────────────────── */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

/* Arrow buttons */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid rgba(255, 204, 0, 0.5);
  color: var(--yellow);
  font-size: 1.8rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  padding: 0;
  backdrop-filter: blur(4px);
}

.slide-arrow:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}

.slide-prev {
  left: 10px;
}

.slide-next {
  right: 10px;
}

/* Dot indicators */
.slide-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1.5px solid rgba(255, 204, 0, 0.5);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.slide-dot.active {
  background: var(--yellow);
  border-color: var(--yellow);
  transform: scale(1.3);
}

.hero-brand-strip {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0 0;
  border-top: 1px solid var(--steel);
  margin-top: 1rem;
}

.hero-brand-pill {
  background: var(--steel);
  color: var(--light-gray);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

/* ─── Who We Are Section ─────────────────────────────────────────── */
.wwa-section {
  background: var(--bg-page);
}

.wwa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 4rem;
}

/* Left content */
.wwa-content .section-title {
  margin-bottom: 1.5rem;
}

.wwa-para {
  font-size: 1rem;
  color: var(--text-subtle);
  line-height: 1.85;
  margin-bottom: 1.1rem;
  font-weight: 400;
}

.wwa-para:last-of-type {
  margin-bottom: 0;
}

/* Right visual */
.wwa-visual {
  position: relative;
}

.wwa-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.wwa-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.wwa-image-wrap:hover img {
  transform: scale(1.03);
}

.wwa-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      transparent 50%,
      rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

/* Floating stat badges */
.wwa-stat-badge {
  position: absolute;
  background: var(--yellow);
  color: var(--on-primary);
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  box-shadow: 0 8px 28px rgba(255, 204, 0, 0.35);
  text-align: center;
  min-width: 120px;
  z-index: 2;
}

.wwa-stat-top {
  top: -20px;
  right: -20px;
}

.wwa-stat-bottom {
  bottom: -20px;
  left: -20px;
}

.wwa-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--black);
}

.wwa-stat-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  color: rgba(0, 0, 0, 0.7);
}

/* 4 pillar cards */
.wwa-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.wwa-pillar {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.wwa-pillar::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.wwa-pillar:hover {
  border-color: var(--yellow);
  background: var(--bg-elevated);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.wwa-pillar:hover::before {
  transform: scaleX(1);
}

.wwa-pillar-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  background: rgba(255, 204, 0, 0.1);
  border: 1px solid rgba(255, 204, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--yellow);
  transition: background var(--transition);
}

.wwa-pillar:hover .wwa-pillar-icon {
  background: rgba(255, 204, 0, 0.18);
}

.wwa-pillar-icon svg {
  width: 32px;
  height: 32px;
}

.wwa-pillar-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.wwa-pillar-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* What We Do sub-header */
.wwa-what-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.wwa-what-header .section-eyebrow {
  justify-content: center;
  margin-bottom: 0.5rem;
}

.wwa-what-header .section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.wwa-what-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── Section Headers ────────────────────────────────────────────── */
.section-header {
  margin-bottom: 3rem;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--yellow);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--yellow);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-title span {
  color: var(--yellow);
}

.section-desc {
  color: var(--gray);
  max-width: 650px;
  margin: 1.5rem auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.9;
}

/* ─── Brand Grid ─────────────────────────────────────────────────── */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  justify-items: center;
}

.brand-card {
  width: 100%;
  max-width: 280px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: cardEntrance 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.brand-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 204, 0, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.brand-card:hover {
  border-color: var(--yellow);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(255, 204, 0, 0.1);
}

.brand-card:hover::after {
  opacity: 1;
}

.brand-logo-wrap {
  width: 160px;
  height: 90px;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
  position: relative;
  z-index: 1;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(0,0,0,0.05);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.brand-card:hover .brand-logo-wrap {
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 12px 30px rgba(255, 204, 0, 0.3);
}

.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Text fallback when logo image is missing */
.brand-code-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-card-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.brand-card:hover .brand-card-name {
  color: var(--white);
}

/* ─── Machinery Card ─────────────────────────────────────────────── */
.machinery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.machinery-card {
  background: var(--dark);
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.machinery-card:hover {
  transform: translateY(-4px);
  border-color: var(--yellow);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.card-image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--steel);
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.machinery-card:hover .card-image-wrap img {
  transform: scale(1.05);
}

.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 3rem;
}

.card-brand-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.2;
}

.card-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--gray);
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-meta-item span {
  color: var(--light-gray);
  font-weight: 500;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--steel);
}

.card-location {
  font-size: 0.82rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ─── Search & Filter Bar ────────────────────────────────────────── */
.search-bar-wrap {
  background: var(--dark);
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.search-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
}

.form-control {
  background: var(--steel);
  border: 1px solid var(--steel-mid);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  width: 100%;
}

[data-theme="light"] .form-control {
  background: #FFFFFF;
  border: 1px solid #CCCCCC;
  color: #111111;
}

.form-control:focus {
  border-color: var(--yellow);
}

.form-control option {
  background: var(--steel);
  color: var(--white);
}

[data-theme="light"] .form-control option {
  background: #FFFFFF;
  color: #111111;
}

/* ─── Contact Section ────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-card {
  background: var(--dark);
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-office {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--steel);
}

.contact-office:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-office h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}

.contact-office p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

.contact-office a {
  color: var(--light-gray);
}

.contact-office a:hover {
  color: var(--yellow);
}

.contact-form-card {
  background: var(--dark);
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

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

.form-group-full {
  margin-bottom: 1rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ─── Locations Strip ────────────────────────────────────────────── */
.locations-strip {
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 25px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.locations-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.location-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

.location-dot {
  width: 8px;
  height: 8px;
  background: #0A0A0A;
  border-radius: 50%;
  opacity: 0.3;
}

/* ─── Quote CTA Banner ───────────────────────────────────────────── */
/* ─── Modern CTA Section ────────────────────────────────────────── */
.cta-modern {
  background: var(--yellow);
  padding: 75px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-modern h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 950;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.cta-modern h2 span {
  color: #000;
  -webkit-text-stroke: 1px #000;
  paint-order: stroke fill;
}

.cta-modern p {
  color: rgba(0, 0, 0, 0.75);
  max-width: 650px;
  margin: 0 auto 2.2rem;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.5;
}

.cta-modern .btn-dark {
  background: #000;
  color: #fff;
  padding: 1.1rem 2.8rem;
}

.cta-modern .btn-outline-dark {
  background: transparent;
  border: 2.5px solid #000;
  color: #000;
  padding: 1.1rem 2.8rem;
}

.cta-modern .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.footer {
  background: var(--footer-bg);
  border-top: 2px solid var(--yellow);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-logo-color);
  text-transform: uppercase;
}

.footer-logo {
  height: 45px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.5rem;
  /* display is intentionally NOT set here — controlled by .logo-for-dark / .logo-for-light */
}

.footer-tagline {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 450px;
  opacity: 0.8;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--yellow);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--gray);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-contact-modern {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card-mini {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.contact-card-mini:hover {
  transform: translateX(5px);
}

.contact-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  border: 1px solid var(--steel);
}

.uae-icon { color: #25D366; }
.ind-icon { color: var(--yellow); }
.mail-icon { color: var(--white); }

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
  font-weight: 600;
}

.contact-value {
  font-size: 0.85rem;
  color: var(--white);
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--steel);
  font-size: 0.82rem;
  color: var(--gray);
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ─── Back to Top ────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--yellow);
  color: var(--black);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  background: var(--yellow-dark);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
  }
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ─── Detail Page ────────────────────────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}

.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
  background: var(--steel);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.gallery-thumbs img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
}

.gallery-thumbs img:hover {
  border-color: var(--yellow);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr {
  border-bottom: 1px solid var(--steel);
}

.spec-table td {
  padding: 10px 0;
  font-size: 0.9rem;
}

.spec-table td:first-child {
  color: var(--gray);
  width: 50%;
}

.spec-table td:last-child {
  font-weight: 600;
  color: var(--white);
}

.quote-form-card {
  background: var(--dark);
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: sticky;
  top: 90px;
}

.quote-form-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--yellow);
}

/* ─── Page Header ────────────────────────────────────────────────── */
.page-header {
  background: linear-gradient(to bottom, var(--dark), var(--black));
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--steel);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
}

.page-header h1 span {
  color: var(--yellow);
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--gray);
}

.breadcrumb a:hover {
  color: var(--yellow);
}

.breadcrumb span {
  color: var(--steel-mid);
}

/* ─── Notifications / Alerts ─────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* ─── Catalog Hero Search ────────────────────────────────────────── */
.catalog-hero {
  background: linear-gradient(135deg, var(--black) 0%, #1a1100 100%);
  padding: 48px 0 0;
  border-bottom: 3px solid var(--yellow);
}

[data-theme="light"] .catalog-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1a00 100%);
}

.catalog-hero-inner {
  text-align: center;
  padding-bottom: 2rem;
}

.catalog-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.catalog-hero-title span {
  color: var(--yellow);
}

.catalog-hero-sub {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.catalog-search-big {
  display: flex;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.catalog-search-big input {
  flex: 1;
  border: none;
  padding: 14px 20px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: #111;
  outline: none;
  background: white;
}

.catalog-search-big button {
  background: var(--yellow);
  border: none;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: background var(--transition);
}

.catalog-search-big button:hover {
  background: var(--yellow-dark);
}

/* ─── Category Icon Grid ─────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

[data-theme="light"] .category-grid {
  background: #EFEFEF;
  border-top: 1px solid #E0E0E0;
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem 0.5rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--light-gray);
  border-right: 1px solid var(--steel);
  transition: all 0.2s ease;
  text-align: center;
}

[data-theme="light"] .cat-item {
  color: #444444;
  border-right-color: #DADADA;
}

.cat-item:last-child {
  border-right: none;
}

.cat-item:hover,
.cat-item.active {
  background: var(--yellow);
  color: var(--black);
}

.cat-item .cat-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.cat-item .cat-label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

/* ─── Catalog Filter Strip ───────────────────────────────────────── */
.catalog-filter-strip {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 70px;
  z-index: 900;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .catalog-filter-strip {
  background: #F8F8F8;
  border-bottom: 1px solid #E0E0E0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.filter-strip-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-strip-inner .form-control {
  padding: 8px 12px;
  font-size: 0.85rem;
  min-width: 140px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--yellow);
  color: var(--black);
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
}

.filter-count {
  background: var(--black);
  color: var(--yellow);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
}

.filter-sep {
  color: var(--border);
  font-size: 1.2rem;
  user-select: none;
}

/* ─── Results Meta Row ───────────────────────────────────────────── */
.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.results-count {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.results-count strong {
  color: var(--yellow);
  font-size: 1.4rem;
}

.view-toggle {
  display: flex;
  gap: 4px;
}

.view-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-muted);
}

.view-btn:hover,
.view-btn.active {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

/* ─── Listing Card (MachineryTrader style) ───────────────────────── */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.listing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}

[data-theme="light"] .listing-card {
  background: #FFFFFF;
  border-color: #E5E5E5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.listing-card:hover {
  transform: translateY(-3px);
  border-color: var(--yellow);
  box-shadow: 0 8px 28px rgba(255, 204, 0, 0.12);
}

.listing-img-wrap {
  position: relative;
  height: 200px;
  background: var(--bg-elevated);
  overflow: hidden;
}

.listing-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.listing-card:hover .listing-img-wrap img {
  transform: scale(1.04);
}

.listing-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--border);
}

.listing-condition-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}

.listing-brand-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--yellow);
  color: var(--black);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.listing-body {
  padding: 1rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.listing-category {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yellow);
  margin-bottom: 4px;
}

.listing-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.listing-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.listing-spec {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.listing-spec b {
  color: var(--text-subtle);
}

.listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  gap: 0.5rem;
}

.listing-location {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

.listing-cta {
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.listing-cta:hover {
  background: var(--yellow-dark);
  color: var(--black);
}

/* ─── Brand Partner Bar ──────────────────────────────────────────── */
.brand-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
}

[data-theme="light"] .brand-bar {
  background: #F5F5F5;
  border-color: #E0E0E0;
}

.brand-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.brand-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.brand-bar-item:hover {
  border-color: var(--yellow);
  background: rgba(255, 204, 0, 0.06);
}

.brand-bar-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.brand-bar-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Empty State ────────────────────────────────────────────────── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* ─── Catalog Sidebar (future use) ──────────────────────────────── */
.catalog-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.catalog-main {
  flex: 1;
  min-width: 0;
}


@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    display: none;
  }

  .hero-desc {
    max-width: 100%;
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .wwa-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .wwa-stat-top {
    top: -14px;
    right: -10px;
  }

  .wwa-stat-bottom {
    bottom: -14px;
    left: -10px;
  }

  .wwa-pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Exports Page Grid */
  .exports-dual-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
}

@media (max-width: 768px) {
  .search-form {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .nav-links {
    display: none; /* Handled by JS for mobile */
  }

  .wwa-pillars {
    grid-template-columns: 1fr;
  }

  .wwa-image-wrap img {
    height: 300px;
  }

  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand-section {
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .logistics-grid, .parts-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .machinery-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   OUR WORKS / REFERENCES PAGE
═══════════════════════════════════════════════════════════════════ */

/* Hero */
.ow-hero {
  background: linear-gradient(160deg, #0a0a0a 0%, #1a0f00 60%, #0a0a0a 100%);
  padding: 56px 0 0;
  border-bottom: 3px solid var(--yellow);
  position: relative;
  overflow: hidden;
}

.ow-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(255, 204, 0, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

[data-theme="light"] .ow-hero {
  background: linear-gradient(160deg, #111111 0%, #2a1a00 60%, #111111 100%);
}

.ow-hero-inner {
  text-align: center;
  padding-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.ow-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--yellow);
  background: rgba(255, 204, 0, 0.1);
  border: 1px solid rgba(255, 204, 0, 0.25);
  padding: 5px 16px;
  border-radius: 99px;
  margin-bottom: 1.25rem;
}

.ow-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.ow-hero-title span {
  color: var(--yellow);
}

.ow-hero-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* Search */
.ow-search-wrap {
  display: flex;
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.ow-search-icon {
  padding: 0 12px 0 16px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  background: #fff;
  color: #555;
  flex-shrink: 0;
}

.ow-search-wrap input {
  flex: 1;
  border: none;
  padding: 15px 10px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: #111;
  outline: none;
  min-width: 0;
}

.ow-search-wrap button {
  background: var(--yellow);
  border: none;
  padding: 15px 32px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #000;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.ow-search-wrap button:hover {
  background: var(--yellow-dark);
}

/* Category chip bar */
.ow-category-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.ow-cat-scroll {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ow-cat-scroll::-webkit-scrollbar {
  display: none;
}

.ow-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ow-cat-chip:hover {
  background: rgba(255, 204, 0, 0.1);
  color: var(--yellow);
}

.ow-cat-chip.active {
  background: var(--yellow);
  color: #000;
}

/* Brand strip */
.ow-brand-strip {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.ow-brand-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ow-brand-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
  margin-right: 0.25rem;
}

.ow-brand-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  color: var(--text-subtle);
  text-decoration: none;
  transition: all 0.2s ease;
  background: transparent;
  cursor: pointer;
}

.ow-brand-pill:hover,
.ow-brand-pill.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #000;
}

.ow-brand-pill.clear {
  background: transparent;
  border-color: rgba(255, 100, 100, 0.4);
  color: #f87171;
}

.ow-brand-pill.clear:hover {
  background: rgba(255, 100, 100, 0.1);
}

/* Filter bar */
.ow-filter-bar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  position: sticky;
  top: 70px;
  z-index: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.ow-filter-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.form-control-sm {
  padding: 7px 10px !important;
  font-size: 0.82rem !important;
}

.ow-clear-btn {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #f87171;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(248, 113, 113, 0.35);
  transition: all 0.2s;
  white-space: nowrap;
}

.ow-clear-btn:hover {
  background: rgba(248, 113, 113, 0.1);
}

.ow-results-count {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.ow-results-count strong {
  color: var(--yellow);
  font-size: 1.1rem;
}

/* Listings section */
.ow-section {
  padding: 2rem 0 3rem;
}

/* Card grid */
.ow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}

/* Card */
.ow-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

.ow-card:hover {
  transform: translateY(-4px);
  border-color: var(--yellow);
  box-shadow: 0 10px 30px rgba(255, 204, 0, 0.1);
}

.ow-card-img {
  position: relative;
  height: 195px;
  background: var(--bg-elevated);
  overflow: hidden;
}

.ow-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ow-card:hover .ow-card-img img {
  transform: scale(1.06);
}

.ow-card-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--border);
}

.ow-card-tags {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 5px;
}

.ow-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
}

.ow-tag-brand {
  background: var(--yellow);
  color: #000;
}

.ow-tag-new {
  background: #22c55e;
  color: #fff;
}

.ow-tag-ref {
  background: #3b82f6;
  color: #fff;
}

.ow-tag-used {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  backdrop-filter: blur(4px);
}

/* Card body */
.ow-card-body {
  padding: 1rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ow-card-cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--yellow);
  margin-bottom: 3px;
}

.ow-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.ow-card-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 0.75rem;
}

.ow-card-specs li {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}

.spec-k {
  color: var(--text-muted);
}

.spec-v {
  color: var(--text-subtle);
  font-weight: 600;
}

.ow-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
}

.ow-card-location {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ow-card-cta {
  background: var(--yellow);
  color: #000;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.ow-card:hover .ow-card-cta {
  background: var(--yellow-dark);
}

/* Empty state */
.ow-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
}

.ow-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.ow-empty h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-primary);
}

.ow-empty p {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Pagination */
.ow-pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-subtle);
  text-decoration: none;
  transition: all 0.2s ease;
}

.pg-btn:hover {
  background: var(--yellow);
  color: #000;
  border-color: var(--yellow);
}

.pg-btn.active {
  background: var(--yellow);
  color: #000;
  border-color: var(--yellow);
}

.ow-page-info {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.75rem;
}

/* Stats strip */
.ow-stats-strip {
  background: var(--black-mid);
  border-top: 2px solid var(--yellow);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

[data-theme="light"] .ow-stats-strip {
  background: #f0f0f0;
}

.ow-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  text-align: center;
}

.ow-stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}

.ow-stat-num span {
  font-size: 2rem;
}

.ow-stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Responsive */
@media (max-width: 1024px) {
  .ow-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .ow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ow-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ow-filter-row {
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .ow-grid {
    grid-template-columns: 1fr;
  }

  .ow-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ow-search-wrap button {
    padding: 15px 18px;
    font-size: 0.85rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   CATEGORY ICON GRID  (MachineryTrader-style white card grid)
═══════════════════════════════════════════════════════════════════ */
.cat-grid-wrapper {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  padding: 2rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cat-icon-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 0;
}

.cat-card {
  background: rgba(255, 255, 255, 0.93);
  border-radius: 8px;
  padding: 14px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #111;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.cat-card:hover {
  background: var(--yellow);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 204, 0, 0.3);
  border-color: var(--yellow-dark);
}

.cat-card.cat-active {
  background: var(--yellow);
  border-color: var(--yellow-dark);
  box-shadow: 0 4px 16px rgba(255, 204, 0, 0.25);
}

.cat-icon-svg {
  width: 62px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
}

.cat-icon-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cat-card:hover .cat-icon-svg,
.cat-card.cat-active .cat-icon-svg {
  color: #000;
}

.cat-card-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.25;
  color: #222;
}

.cat-card:hover .cat-card-label,
.cat-card.cat-active .cat-card-label {
  color: #000;
}

.cat-active-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--black);
  border-radius: 2px 2px 0 0;
}

/* Tabs row below the grid */
.cat-tab-row {
  background: rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 10px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cat-tabs {
  display: flex;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.cat-tab {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 18px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  background: transparent;
  transition: all 0.2s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.cat-tab:last-child {
  border-right: none;
}

.cat-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.cat-tab.active {
  background: var(--yellow);
  color: #000;
}

/* Quick filter row */
.cat-quick-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  flex-wrap: wrap;
}

.cat-quick-filter .form-control {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #111;
  padding: 8px 12px;
  font-size: 0.85rem;
  min-width: 130px;
}

.cat-quick-filter .form-control option {
  background: #fff;
  color: #111;
}

.cat-search-btn {
  background: var(--yellow);
  border: none;
  padding: 9px 24px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #000;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.cat-search-btn:hover {
  background: var(--yellow-dark);
}

.cat-clear-btn {
  color: #f87171;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  padding: 9px 12px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: var(--radius);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}

.cat-clear-btn:hover {
  background: rgba(248, 113, 113, 0.1);
}

/* Results bar */
.ow-results-bar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.ow-results-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ow-results-count {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.ow-results-count strong {
  color: var(--yellow);
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .cat-icon-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 768px) {
  .cat-icon-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cat-tab-row {
    flex-direction: column;
    gap: .75rem;
  }

  .cat-quick-filter {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cat-icon-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cat-icon-svg {
    width: 48px;
    height: 36px;
  }
}
/* ===================================================================
   RESPONSIVE VICTORY BUNDLE — Fixes for all devices
   =================================================================== */

html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  position: relative;
}

@media (max-width: 768px) {
  /* Header Fixes */
  .navbar-inner {
    padding: 0 1rem !important;
    gap: 0.5rem !important;
  }
  
  .navbar-cta {
    gap: 0.4rem !important;
  }
  
  #btn-get-quote {
    display: none; /* Hide on small screens to save space, or make it small */
  }
  
  .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .nav-logo {
    height: 50px !important;
  }

  /* Contact Bar */
  .nav-contact-bar {
    flex-direction: column;
    padding: 10px !important;
    gap: 4px !important;
  }
  
  .nav-contact-bar span {
    display: block;
    width: 100%;
    margin: 2px 0;
  }

  /* Grid Fixes */
  .hero-grid, .wwa-grid, .detail-grid, .contact-grid, .footer-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  
  .hero-visual, .hero-machine-card {
    display: none !important; /* Hide image card on mobile to focus on CTA */
  }
  
  .hero-actions {
    justify-content: center !important;
  }
  
  .hero-stats {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Menu Drawer Fix */
  .nav-links {
    right: -100% !important;
    display: flex !important;
    visibility: visible !important;
  }
  
  .nav-links.open {
    right: 0 !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem !important;
  }
  
  .nav-logo {
    height: 45px !important;
  }
  
  .container {
    padding: 0 1rem !important;
  }
}

.navbar-brand-wrap {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

.navbar-brand {
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .nav-sep {
    display: none !important;
  }
  
  /* Global Section Alignment */
  .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
  }
  .section-eyebrow {
    justify-content: center;
  }
  
  .section-title {
    font-size: 1.7rem !important;
    margin-inline: auto;
  }
  
  /* Hero Stats — ALL 3 in ONE line — Forced Horizontal */
  .hero-stats {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 0.25rem !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
  .stat-item {
    flex: 1;
    text-align: center !important;
    padding: 0;
  }
  .stat-number {
    font-size: 1.25rem !important; /* Very small to ensure one line */
  }
  .stat-label {
    font-size: 0.55rem !important;
    line-height: 1.1;
    white-space: normal;
  }
  
  /* WWA Section Refinement */
  .wwa-grid {
    gap: 2rem !important;
  }
  .wwa-pillars {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  .wwa-pillar {
    padding: 1.25rem 0.5rem !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .wwa-pillar-icon {
    margin: 0 0 1rem 0 !important; /* Center confirmed by flex parent */
  }
  .wwa-pillar-title {
    font-size: 0.8rem !important;
  }
  .wwa-pillar-desc {
    font-size: 0.72rem !important;
  }
  
  /* Brands Grid — 2 per row */
  .brands-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  .brand-card {
    padding: 0.75rem !important;
  }

  /* Footer — Side by side navigation and contact or better center */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    text-align: center;
  }
  
  .footer-brand-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    justify-items: center;
  }
  
  .footer-links li {
    width: 100%;
    text-align: center;
  }
  
  .footer-contact-modern {
    align-items: center !important;
  }
  
  .contact-card-mini {
    justify-content: center;
    width: 100%;
  }

  /* Buttons on Mobile */
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-actions .btn {
    width: 100%;
    padding: 1rem 1rem !important;
    font-size: 0.85rem;
    justify-content: center !important;
    text-align: center !important;
  }

  .container {
    padding: 0 1rem !important;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 2.5rem 0 !important;
  }
  .hero {
    padding: 2rem 0 2.5rem !important;
  }
}
