/* ==========================================================================
   DSL CHEMICALS - DYESUN LIVA CHEMICALS & MANUFACTURER
   Industrial Water Treatment Solutions
   Modern Mobile-First CSS Design System (Industry Standard)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand Primary Colors */
  --color-primary-navy: #072137;
  --color-primary-dark: #0b1a2d;
  --color-primary-blue: #006699;
  --color-accent-cyan: #00a8e8;
  --color-accent-light-blue: #e0f2fe;
  --color-accent-green: #2bb673;
  --color-accent-green-dark: #1e824c;
  --color-accent-green-light: #e8f8f0;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;

  /* Neutrals */
  --color-white: #ffffff;
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Inter', -apple-system, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(0, 168, 232, 0.35);

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout Containers */
  --container-max: 1200px;
  --header-height: 76px;
}

/* --------------------------------------------------------------------------
   2. Reset & Base Styles (Mobile-First)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-slate-700);
  background-color: var(--color-slate-50);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary-navy);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-blue);
}

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

ul, ol {
  list-style-position: inside;
}

/* --------------------------------------------------------------------------
   3. Utility Classes & Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  padding-right: 1.25rem;
  padding-left: 1.25rem;
  margin-right: auto;
  margin-left: auto;
  max-width: var(--container-max);
}

.section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.section-bg-light {
  background-color: var(--color-white);
}

.section-bg-alt {
  background-color: var(--color-slate-100);
}

.section-bg-dark {
  background-color: var(--color-primary-navy);
  color: var(--color-slate-200);
}

.section-bg-dark h1,
.section-bg-dark h2,
.section-bg-dark h3 {
  color: var(--color-white);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.badge-blue {
  background: rgba(0, 168, 232, 0.12);
  color: var(--color-primary-blue);
  border: 1px solid rgba(0, 168, 232, 0.3);
}

.badge-green {
  background: var(--color-accent-green-light);
  color: var(--color-accent-green-dark);
  border: 1px solid rgba(43, 182, 115, 0.3);
}

/* High-contrast & glowing badges for dark backgrounds (Hero & Dark Sections) */
.hero .badge-blue,
.section-bg-dark .badge-blue {
  background: rgba(0, 168, 232, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 16px rgba(0, 168, 232, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero .badge-green,
.section-bg-dark .badge-green {
  background: rgba(43, 182, 115, 0.2);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.45);
  box-shadow: 0 0 16px rgba(43, 182, 115, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
  animation: pulseDot 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.section-title {
  margin-bottom: 0.75rem;
  position: relative;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-slate-600);
  line-height: 1.6;
}

.section-bg-dark .section-subtitle {
  color: var(--color-slate-300);
}

/* --------------------------------------------------------------------------
   4. Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  min-height: 48px;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-cyan) 0%, var(--color-primary-blue) 100%);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(0, 102, 153, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0096cc 0%, #00507a 100%);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 102, 153, 0.35);
}

.btn-accent {
  background: linear-gradient(135deg, #38b000 0%, #2bb673 100%);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(43, 182, 115, 0.25);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #2e9600 0%, #23945c 100%);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--color-accent-cyan);
  color: var(--color-accent-cyan);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-accent-cyan);
  color: var(--color-white);
}

.btn-outline-white {
  border-color: var(--color-white);
  color: var(--color-white);
  background: transparent;
}

.btn-outline-white:hover {
  background: var(--color-white);
  color: var(--color-primary-navy);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: #1ebc59;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  min-height: 38px;
}

/* --------------------------------------------------------------------------
   5. Top Bar & Navigation (Mobile-First)
   -------------------------------------------------------------------------- */
.topbar {
  background: #041424;
  color: var(--color-slate-300);
  font-size: 0.8125rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1001;
}

.topbar-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-contact a {
  color: var(--color-slate-300);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
}

.topbar-contact a:hover {
  color: var(--color-accent-cyan);
}

.topbar-tagline {
  color: var(--color-accent-green);
  font-weight: 500;
  font-size: 0.8rem;
  text-align: right;
  white-space: nowrap;
}

/* Mobile topbar: Single streamlined row (< 768px) */
@media (max-width: 767.98px) {
  .topbar {
    padding: 0.35rem 0;
    font-size: 0.75rem;
  }

  .topbar-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .topbar-contact {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
  }

  /* On mobile: keep tap-to-call and location visible, hide email & long tagline */
  .topbar-contact a[href^="mailto:"],
  .topbar-email,
  .topbar-tagline,
  .topbar-contact-name {
    display: none !important;
  }

  .topbar-contact a[href^="tel:"],
  .topbar-phone {
    font-weight: 600;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
  }

  .topbar-contact a[href^="tel:"] svg,
  .topbar-phone svg {
    color: #22c55e;
  }

  .topbar-location,
  .topbar-contact span:not(.topbar-contact-name) {
    color: var(--color-slate-300);
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 380px) {
  .topbar-location,
  .topbar-contact span:not(.topbar-contact-name) {
    display: none !important;
  }
  .topbar-contact {
    justify-content: center;
  }
}

/* Main Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-slate-200);
  transition: all var(--transition-normal);
}

.main-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  height: 52px;
  width: auto;
  max-width: 260px;
  transition: height var(--transition-fast);
}

@media (max-width: 767.98px) {
  :root {
    --header-height: 60px;
  }

  .nav-container {
    height: 60px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-logo {
    height: 38px;
    max-width: 195px;
  }
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 26px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.mobile-nav-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--color-primary-navy);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.mobile-nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -7px);
}

/* Mobile Nav Menu Drawer */
.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 360px;
  height: 100vh;
  background-color: var(--color-white);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  padding: 6rem 1.75rem 2.5rem;
  transition: right var(--transition-normal);
  z-index: 1050;
  overflow-y: auto;
}

.nav-menu.open {
  right: 0;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.nav-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary-navy);
  display: block;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary-blue);
  border-bottom-color: var(--color-accent-cyan);
}

.nav-cta {
  margin-top: 2rem;
  width: 100%;
}

.nav-mobile-contact {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-slate-200);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.nav-mobile-contact a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--color-slate-700);
  font-weight: 500;
}

.nav-mobile-contact a:hover {
  color: var(--color-primary-blue);
}

.nav-mobile-contact .drawer-location {
  font-size: 0.8125rem;
  color: var(--color-slate-500);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .nav-mobile-contact {
    display: none;
  }
}

/* Desktop Navigation (>= 1024px) */
@media (min-width: 1024px) {
  .mobile-nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background: transparent;
    box-shadow: none;
    flex-direction: row;
    align-items: center;
    gap: 2.25rem;
    padding: 0;
    overflow-y: visible;
  }

  .nav-list {
    flex-direction: row;
    gap: 1.75rem;
  }

  .nav-link {
    font-size: 0.98rem;
    padding: 0.5rem 0;
  }

  .nav-cta {
    margin-top: 0;
    width: auto;
  }
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #072137 0%, #0c3355 50%, #094067 100%);
  color: var(--color-white);
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(0, 168, 232, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(43, 182, 115, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

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

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-highlight {
  background: linear-gradient(120deg, #38b000 0%, #00e5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--color-slate-200);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

@media (min-width: 540px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

@media (min-width: 640px) {
  .hero-features {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero-feat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-slate-200);
}

.hero-feat-item svg {
  color: var(--color-accent-green);
  flex-shrink: 0;
}

/* Hero Visual / Card */
.hero-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  aspect-ratio: 4 / 3;
}

.hero-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-card:hover .hero-img-wrapper img {
  transform: scale(1.03);
}

.hero-badge-float {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(7, 33, 55, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.stat-item {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent-cyan);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--color-slate-300);
  margin-top: 0.25rem;
}

/* Mobile-Specific Hero Optimization (< 768px) */
@media (max-width: 767.98px) {
  .hero {
    padding: 2.25rem 0 2.75rem !important;
  }

  .hero-grid {
    gap: 1.75rem;
  }

  .hero-content h1 {
    font-size: clamp(1.7rem, 6.6vw, 2.15rem);
    line-height: 1.22;
    margin-bottom: 0.75rem;
  }

  .hero-lead {
    font-size: 0.925rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    color: #cbd5e1;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 46px;
    font-size: 0.92rem;
    padding: 0.7rem 1.25rem;
    justify-content: center;
    border-radius: var(--radius-md);
  }

  .hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding-top: 1.15rem;
    margin-bottom: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero-feat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.775rem;
    font-weight: 500;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.55rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .hero-feat-item svg {
    color: #22c55e;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .hero-feat-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-card {
    padding: 0.9rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  }

  .hero-img-wrapper {
    aspect-ratio: 16 / 9;
    margin-bottom: 0.75rem;
    border-radius: calc(var(--radius-sm) + 2px);
  }

  .hero-badge-float {
    bottom: 8px;
    left: 8px;
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
  }

  .hero-card-stats {
    gap: 0.5rem;
  }

  .stat-item {
    padding: 0.6rem 0.65rem;
    border-radius: var(--radius-sm);
  }

  .stat-number {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.68rem;
    line-height: 1.2;
    margin-top: 0.2rem;
  }
}

/* --------------------------------------------------------------------------
   7. Core Product & Systems Grid
   -------------------------------------------------------------------------- */
.systems-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .systems-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .systems-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.system-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-slate-200);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.system-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-accent-cyan);
}

.system-card-img {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.system-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.system-card:hover .system-card-img img {
  transform: scale(1.08);
}

.system-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(7, 33, 55, 0.9);
  color: var(--color-white);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

.system-card-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.system-card-desc {
  font-size: 0.875rem;
  color: var(--color-slate-600);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.chemical-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.chem-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--color-slate-100);
  color: var(--color-primary-navy);
  border: 1px solid var(--color-slate-200);
}

/* --------------------------------------------------------------------------
   8. Before vs After Interactive Comparison
   -------------------------------------------------------------------------- */
.comparison-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 840px) {
  .comparison-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.comparison-box {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  box-shadow: var(--shadow-md);
}

.comparison-box.without {
  background: #fff5f5;
  border: 2px solid #fed7d7;
}

.comparison-box.with {
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.comparison-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.comparison-box.without .comparison-badge {
  background: #fee2e2;
  color: #dc2626;
}

.comparison-box.with .comparison-badge {
  background: #dcfce7;
  color: #16a34a;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.93rem;
  line-height: 1.5;
}

.comparison-icon-cross {
  color: #dc2626;
  font-size: 1.1rem;
  line-height: 1;
}

.comparison-icon-check {
  color: #16a34a;
  font-size: 1.1rem;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   9. Equipment Life & Savings Tables (Mobile-Optimized)
   -------------------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-slate-200);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 520px;
}

.custom-table th,
.custom-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--color-slate-200);
}

.custom-table th {
  background-color: var(--color-primary-navy);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.custom-table tr:hover td {
  background-color: var(--color-slate-50);
}

.cell-negative {
  color: #dc2626;
  font-weight: 600;
}

.cell-positive {
  color: #16a34a;
  font-weight: 700;
  background-color: rgba(22, 163, 74, 0.05);
}

/* --------------------------------------------------------------------------
   10. Interactive Chemical Savings / Dosing Calculator
   -------------------------------------------------------------------------- */
.calculator-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-slate-200);
}

@media (min-width: 768px) {
  .calculator-card {
    padding: 2.5rem;
  }
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 840px) {
  .calc-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-slate-800);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border: 1.5px solid var(--color-slate-300);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  color: var(--color-slate-800);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.2);
}

.calc-results-box {
  background: linear-gradient(135deg, #072137 0%, #0f385c 100%);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(7, 33, 55, 0.25);
}

.calc-disclaimer {
  font-size: 0.775rem;
  line-height: 1.45;
  color: var(--color-slate-300);
  margin-top: 0.5rem;
  margin-bottom: 1.15rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-left: 2.5px solid var(--color-accent-cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.calc-stat {
  margin-bottom: 1.15rem;
}

.calc-stat-val {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--color-accent-green);
  line-height: 1.1;
}

.calc-stat-label {
  font-size: 0.8125rem;
  color: var(--color-slate-300);
  margin-top: 0.25rem;
}

@media (max-width: 767.98px) {
  .calc-results-box {
    padding: 1.25rem;
  }

  .calc-disclaimer {
    font-size: 0.725rem;
    line-height: 1.4;
    padding: 0.4rem 0.6rem;
    margin-bottom: 1rem;
  }

  .calc-stat-val {
    font-size: 1.6rem;
  }

  .calc-stat {
    margin-bottom: 0.9rem;
  }
}

/* --------------------------------------------------------------------------
   11. Service Cards & Why Choose Us
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-box {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--color-slate-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-cyan);
}

.service-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-accent-cyan);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.service-box h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.service-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--color-slate-600);
}

.service-box ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.service-box ul li::before {
  content: '✓';
  color: var(--color-accent-green);
  font-weight: 800;
}

/* Value Props / Why Choose Us */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.why-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--color-slate-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.why-card:hover {
  border-color: var(--color-accent-green);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-accent-light-blue);
  color: var(--color-primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.why-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.why-card p {
  font-size: 0.85rem;
  color: var(--color-slate-600);
}

/* --------------------------------------------------------------------------
   12. Journey Timeline (About Page)
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 2.5rem auto 0;
  padding: 0 1rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 4px;
  background: linear-gradient(to bottom, var(--color-primary-blue), var(--color-accent-green));
  border-radius: 2px;
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  top: 0;
  left: 14px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  border: 4px solid var(--color-accent-cyan);
  z-index: 2;
}

@media (min-width: 768px) {
  .timeline-dot {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-content {
  margin-left: 50px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--color-slate-200);
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: calc(50% + 35px);
  }

  .timeline-item:nth-child(even) .timeline-content {
    margin-left: calc(50% + 35px);
  }
}

.timeline-year {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--color-primary-navy);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* 6-Step Approach */
.approach-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 600px) {
  .approach-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .approach-steps {
    grid-template-columns: repeat(6, 1fr);
  }
}

.approach-step-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  border: 1px solid var(--color-slate-200);
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step-num {
  width: 32px;
  height: 32px;
  background: var(--color-primary-navy);
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
}

.approach-step-card h4 {
  font-size: 0.95rem;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   13. Industries Grid (Industries Page)
   -------------------------------------------------------------------------- */
.industries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.industry-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-slate-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-cyan);
}

.industry-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-accent-light-blue), #ffffff);
  color: var(--color-primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.industry-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.industry-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.industry-card-body p {
  font-size: 0.885rem;
  color: var(--color-slate-600);
  margin-bottom: 1rem;
}

.industry-req-list {
  list-style: none;
  font-size: 0.825rem;
  color: var(--color-slate-700);
  background: var(--color-slate-50);
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  margin-top: auto;
}

.industry-req-list li {
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.industry-req-list li:last-child {
  margin-bottom: 0;
}

.industry-req-list li::before {
  content: '•';
  color: var(--color-accent-cyan);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   14. Filterable Products Catalog Tabs
   -------------------------------------------------------------------------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-slate-300);
  background: var(--color-white);
  color: var(--color-slate-700);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary-navy);
  border-color: var(--color-primary-navy);
  color: var(--color-white);
}

.product-detail-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-slate-200);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .product-detail-card {
    grid-template-columns: 320px 1fr;
  }
}

.product-sidebar {
  background: linear-gradient(180deg, #072137 0%, #0f385c 100%);
  color: var(--color-white);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.product-sku-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--color-accent-green);
  color: var(--color-white);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.product-main {
  padding: 2rem;
}

.product-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1.25rem 0;
}

@media (min-width: 600px) {
  .product-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.product-feature-item svg {
  color: var(--color-accent-green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   15. Contact & Plant Locations Grid
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.contact-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--color-slate-200);
  box-shadow: var(--shadow-lg);
}

.contact-info-boxes {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  box-shadow: var(--shadow-sm);
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-accent-light-blue);
  color: var(--color-primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-info-text p,
.contact-info-text a {
  font-size: 0.9rem;
  color: var(--color-slate-600);
}

.contact-info-text a:hover {
  color: var(--color-primary-blue);
}

/* --------------------------------------------------------------------------
   16. Floating Quick Actions (Mobile-Optimized Sticky Bar)
   -------------------------------------------------------------------------- */
.floating-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-slate-200);
  padding: 0.6rem 1rem;
  display: flex;
  gap: 0.6rem;
  z-index: 999;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
  .floating-mobile-bar {
    display: none;
  }
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: 60px;
  }
}

.floating-mobile-bar .btn {
  flex: 1;
  min-height: 42px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: #041424;
  color: var(--color-slate-300);
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  }
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--color-accent-cyan);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--color-slate-300);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-accent-cyan);
  transform: translateX(4px);
}

.footer-address {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-slate-300);
  margin-bottom: 1rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  color: var(--color-slate-400);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* --------------------------------------------------------------------------
   18. Toast Notification / Modal
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--color-primary-navy);
  color: var(--color-white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--color-accent-green);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
