/* ================================================
   CHEMCORA — Premium B2B Chemical Website
   Design System & Global Styles
   ================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600&display=swap');

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Brand Colors */
  --primary: #0D5C9F;
  --secondary: #4AA3DF;
  --text-main: #3F434A;
  --footer-bg: #0A4D84;
  --bg-soft: #F7F9FC;
  --bg-ice: #EEF6FB;
  --border-light: #D9E2EC;
  --accent-teal: #1E7C8C;
  --neutral-steel: #6B7280;
  
  --navy-900: var(--footer-bg);
  --navy-800: #0f2042;
  --navy-700: #1a2f5e;
  --navy-600: #1e3a7a;
  --navy-500: #243f8a;
  --steel-600: #2d6496;
  --steel-500: #3b7bbf;
  --steel-400: var(--secondary);
  --steel-300: #6ab4e0;
  --steel-200: #a8d4f0;
  --steel-100: #d6ecf8;
  
  /* Accent */
  --accent: var(--primary);
  --accent-dark: var(--footer-bg);
  --accent-light: var(--bg-ice);
  
  /* Neutrals */
  --white: #ffffff;
  --gray-50: var(--bg-soft);
  --gray-100: var(--border-light);
  --gray-200: #dde6ef;
  --gray-300: #b8cad9;
  --gray-400: var(--neutral-steel);
  --gray-500: #64819a;
  --gray-600: #4b6070;
  --gray-700: #344858;
  --gray-800: var(--text-main);
  
  /* Semantic */
  --success: #16a34a;
  --warning: #d97706;
  --error: #dc2626;
  
  /* Typography */
  --font-body: 'Open Sans', sans-serif;
  --font-display: 'Montserrat', sans-serif;
  
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;
  --space-5xl: 6rem;
  
  /* Layout */
  --container-max: 1240px;
  --container-pad: 1.5rem;
  
  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.14), 0 8px 20px rgba(0,0,0,0.08);
  --shadow-card: 0 2px 16px rgba(10,22,40,0.08);
  --shadow-card-hover: 0 8px 32px rgba(10,22,40,0.14);
  --shadow-navy: 0 8px 32px rgba(10,22,40,0.30);
  
  /* Transitions */
  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;
  
  /* Header height */
  --header-h: 80px;
  --top-bar-h: 38px; /* height of the top info bar */
}

/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a:hover { color: var(--accent-dark); }

ul, ol { list-style: none; }

/* ================================================
   LAYOUT UTILITIES
   ================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--space-5xl) 0;
}

.section-sm { padding: var(--space-3xl) 0; }

.section-lg { padding: 7rem 0; }

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

/* ================================================
   TYPOGRAPHY
   ================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary);
}

.display-1 {
  font-size: clamp(2.5rem, 5vw, var(--text-6xl));
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.display-2 {
  font-size: clamp(2rem, 4vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.15;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, var(--text-4xl));
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--gray-500);
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
  line-height: 1.7;
}

.section-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-400);
  margin-bottom: var(--space-sm);
}

.lead {
  font-size: var(--text-xl);
  color: var(--gray-600);
  line-height: 1.8;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(13,92,159,0.25);
}

.btn-primary:hover {
  background: var(--footer-bg);
  border-color: var(--footer-bg);
  color: var(--white);
  box-shadow: 0 6px 24px rgba(10,77,132,0.35);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy-700);
  border-color: var(--navy-600);
}

.btn-outline-navy:hover {
  background: var(--navy-700);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--navy-800);
  border-color: var(--white);
}

.btn-white:hover {
  background: var(--gray-100);
  color: var(--navy-900);
  transform: translateY(-1px);
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.5rem 1.25rem;
}

.btn-lg {
  font-size: var(--text-base);
  padding: 1rem 2.25rem;
}

/* ================================================
   HEADER / NAVIGATION
   ================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--navy-900);
  box-shadow: var(--shadow-navy);
  transition: background var(--transition), box-shadow var(--transition);
  overflow: visible; /* Fix: allow dropdown to show below header on scroll */
}

.site-header.scrolled {
  background: var(--navy-900);
  box-shadow: var(--shadow-navy);
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  overflow: visible; /* allow dropdown to escape header bounds */
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.logo-mark {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--steel-400) 0%, var(--accent) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-300);
  line-height: 1;
  margin-top: 2px;
}

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

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-links .has-dropdown {
  position: relative;
  z-index: 9999; /* Fix: ensure dropdown is always on top */
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  z-index: 9999; /* Fix: must be above all page content */
}

.nav-links .has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  color: var(--gray-700) !important;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 0;
  background: transparent;
  position: relative;
  z-index: 1100;
}
.nav-dropdown a:hover {
  background: var(--gray-50) !important;
  color: var(--accent) !important;
}

.nav-rfq-btn {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.6rem 1.4rem !important;
  font-weight: 600 !important;
  margin-left: 0.5rem;
  box-shadow: 0 4px 14px rgba(31,90,138,0.3);
}

.nav-rfq-btn:hover {
  background: var(--secondary) !important;
  border-color: var(--secondary) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79,163,209,0.4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy-900);
  z-index: 999;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav a:hover { color: var(--steel-300); }
.mobile-nav .btn-primary { margin-top: 1.5rem; width: 100%; justify-content: center; }

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-900);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1581094271901-8022df4466f9?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.35) saturate(0.6);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,22,40,0.92) 0%,
    rgba(10,22,40,0.7) 50%,
    rgba(26,47,94,0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(74,159,212,0.15);
  border: 1px solid rgba(74,159,212,0.3);
  color: var(--steel-300);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: var(--space-3xl);
  flex-wrap: wrap;
}

/* Trust Badges */
.hero-trust {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 500;
}

.trust-badge svg {
  color: var(--steel-400);
  flex-shrink: 0;
}

/* ================================================
   SECTION HEADER
   ================================================ */
.section-header {
  margin-bottom: var(--space-3xl);
}

.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ================================================
   CATEGORY CARDS
   ================================================ */
.category-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.category-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.category-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
}

.category-card:hover .category-card-bg {
  transform: scale(1.04);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.3) 60%, transparent 100%);
}

.category-card-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  width: 100%;
}

.category-card-tag {
  display: inline-block;
  background: rgba(74,159,212,0.85);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.category-card h3 {
  color: var(--white);
  font-size: var(--text-2xl);
  margin-bottom: 0.5rem;
}

.category-card p {
  color: rgba(255,255,255,0.75);
  font-size: var(--text-sm);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.category-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--steel-300);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: gap var(--transition);
}

.category-card:hover .category-card-link { gap: 0.625rem; }

/* ================================================
   PRODUCT CARDS
   ================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.product-card-image {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--gray-50);
}

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

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

.product-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--navy-700);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

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

.product-card-category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-400);
  margin-bottom: 0.375rem;
}

.product-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.product-card-grade {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 0.875rem;
}

.product-card-desc {
  font-size: 0.825rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.product-card-actions {
  display: flex;
  gap: 0.5rem;
}

.product-card-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.775rem;
}

/* ================================================
   WHY CHOOSE US / BENEFITS
   ================================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.benefit-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--steel-200);
}

.benefit-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--steel-100) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--accent);
}

.benefit-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ================================================
   INDUSTRIES GRID
   ================================================ */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.industry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1rem;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.industry-card:hover {
  background: var(--navy-800);
  border-color: var(--navy-700);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.industry-card:hover h4,
.industry-card:hover p { color: var(--white); }
.industry-card:hover .industry-icon { background: rgba(74,159,212,0.2); color: var(--steel-300); }

.industry-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
  transition: all var(--transition);
  font-size: 1.5rem;
}

.industry-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.375rem;
  transition: color var(--transition);
}

.industry-card p {
  font-size: 0.78rem;
  color: var(--gray-500);
  line-height: 1.4;
  transition: color var(--transition);
}

/* ================================================
   CTA BANNER
   ================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 50%, var(--steel-600) 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74,159,212,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, var(--text-3xl));
  margin-bottom: 0.5rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-lg);
}

/* ================================================
   SECTION BACKGROUNDS
   ================================================ */
.bg-white { background: var(--white); }
.bg-light { background: var(--gray-50); }
.bg-navy { background: var(--navy-900); }
.bg-navy-800 { background: var(--navy-800); }

.bg-grid {
  background-color: var(--gray-50);
  background-image: 
    linear-gradient(var(--gray-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background: var(--navy-900);
  padding: 5rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-text,
.footer-brand .logo-sub { color: var(--white); }

.footer-tagline {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 260px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
  font-size: 1rem;
}

.social-link:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-col ul li { margin-bottom: 0.625rem; }

.footer-col ul a {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-col ul a:hover { color: var(--steel-300); }

.footer-contact-list { list-style: none; }

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-contact-item svg {
  color: var(--steel-400);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
}

.footer-legal a:hover { color: var(--steel-300); }

/* ================================================
   PAGE HERO (inner pages)
   ================================================ */
.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 4rem;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--steel-600) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1581094271901-8022df4466f9?w=1600&q=60');
  background-size: cover;
  background-position: center;
  opacity: 0.07;
}

.page-hero-content { position: relative; z-index: 2; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
}

.breadcrumb a { color: rgba(255,255,255,0.55); }
.breadcrumb a:hover { color: var(--steel-300); }
.breadcrumb span { color: var(--steel-300); }

.page-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-xl);
  max-width: 600px;
  line-height: 1.7;
}

/* ================================================
   ABOUT PAGE
   ================================================ */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-block.reverse { direction: rtl; }
.about-block.reverse > * { direction: ltr; }

.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.about-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.about-image-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--navy-900);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--steel-400);
  line-height: 1;
}

.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 4px; }

.about-text h2 { margin-bottom: 1.25rem; }
.about-text p { color: var(--gray-600); margin-bottom: 1rem; line-height: 1.8; }

.checkmark-list { margin: 1.25rem 0; }
.checkmark-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--gray-700);
  font-size: 0.9rem;
  margin-bottom: 0.625rem;
  line-height: 1.6;
}

.checkmark-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ================================================
   PRODUCT DETAIL PAGE
   ================================================ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.product-image-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.product-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.product-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.product-info h1 { margin-bottom: 0.5rem; }
.product-grade-label { color: var(--gray-500); font-size: var(--text-lg); margin-bottom: 1.5rem; }

.product-summary {
  color: var(--gray-600);
  font-size: var(--text-lg);
  line-height: 1.8;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.product-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.meta-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
}

.meta-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 0.25rem;
}

.meta-card-value {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--navy-800);
}

.detail-section { margin-bottom: 2rem; }
.detail-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.detail-section h3::before {
  content: '';
  width: 3px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
  display: block;
}

.tags-wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag {
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-full);
}

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

/* ================================================
   RFQ FORM
   ================================================ */
.rfq-wrap {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.rfq-sidebar {
  background: var(--navy-800);
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: var(--white);
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.rfq-sidebar h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.rfq-info-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  line-height: 1.6;
}

.rfq-info-item svg { color: var(--steel-400); flex-shrink: 0; margin-top: 2px; }

.rfq-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group.span-2 { grid-column: span 2; }

.form-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-label span { color: var(--error); margin-left: 2px; }

.form-input,
.form-select,
.form-textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,142,240,0.12);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--error);
}

.form-error {
  font-size: 0.78rem;
  color: var(--error);
  display: none;
}

.form-error.visible { display: block; }

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

.form-submit { margin-top: 0.5rem; }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success.visible { display: block; }

/* ================================================
   CONTACT PAGE
   ================================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contact-details {
  background: var(--navy-800);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  color: var(--white);
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.contact-details h2 { color: var(--white); margin-bottom: 0.5rem; }
.contact-details > p { color: rgba(255,255,255,0.6); margin-bottom: 2rem; }

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: rgba(74,159,212,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel-300);
  flex-shrink: 0;
}

.contact-item-text h4 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-item-text p {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  line-height: 1.5;
}

.map-embed {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
}

/* ================================================
   SUPPLY CHAIN
   ================================================ */
.supply-chain-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 3rem 0;
}

.sc-node {
  text-align: center;
  flex: 1;
  max-width: 220px;
}

.sc-icon-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2.5rem;
  position: relative;
}

.sc-node.factory .sc-icon-wrap { background: linear-gradient(135deg, #1e3a7a, #243f8a); }
.sc-node.chemcora .sc-icon-wrap { background: linear-gradient(135deg, var(--accent), var(--steel-400)); transform: scale(1.15); }
.sc-node.client .sc-icon-wrap { background: linear-gradient(135deg, #16a34a, #15803d); }

.sc-arrow {
  flex: 1;
  height: 3px;
  background: linear-gradient(to right, var(--gray-200), var(--accent), var(--gray-200));
  position: relative;
  max-width: 100px;
}

.sc-arrow::after {
  content: '▶';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1rem;
}

.sc-node h3 { font-size: 1.1rem; color: var(--navy-800); margin-bottom: 0.375rem; }
.sc-node p { font-size: 0.825rem; color: var(--gray-500); }

/* ================================================
   FILTER BAR (Chemicals page)
   ================================================ */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-tabs { display: flex; gap: 0.5rem; }

.filter-tab {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--gray-200);
  cursor: pointer;
  color: var(--gray-600);
  background: transparent;
  transition: all var(--transition);
}

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

.filter-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  background: var(--gray-50);
}

.filter-search input {
  border: none;
  background: transparent;
  font-size: 0.875rem;
  color: var(--gray-700);
  outline: none;
  min-width: 180px;
}

/* ================================================
   NOT FOUND / CALLOUT
   ================================================ */
.callout-box {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.callout-box h3 { color: var(--white); margin-bottom: 0.5rem; }
.callout-box p { color: rgba(255,255,255,0.65); font-size: var(--text-sm); }

/* ================================================
   ANIMATIONS
   ================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
.fade-up-delay-5 { transition-delay: 0.5s; }

/* ================================================
   STATS BAR
   ================================================ */
.stats-bar {
  background: var(--navy-800);
  padding: 2.5rem 0;
}

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

.stat-item { color: var(--white); }
.stat-item .number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--steel-400);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.stat-item .label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

/* ================================================
   DIVIDERS
   ================================================ */
.divider {
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: var(--radius-full);
  margin: 1rem auto 2rem;
}

.divider.left { margin-left: 0; }

/* ================================================
   RESPONSIVE
   ================================================ */

/* Tablet — 1024px */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .rfq-wrap { grid-template-columns: 1fr; }
  .rfq-sidebar { position: static; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-details { position: static; }
  .about-block { grid-template-columns: 1fr; gap: 2rem; }
  .about-block.reverse { direction: ltr; }
  .hero-trust { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; }
  .product-image-wrap { position: static; }
}

/* Mobile — 768px */
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } /* Space for bottom nav on ALL pages */
  
  .site-header {
    background: var(--footer-bg) !important;
    box-shadow: var(--shadow-md);
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .logo-sub {
    font-size: 0.55rem;
  }

  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .category-cards { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .hero-trust { grid-template-columns: repeat(2, 1fr); }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .supply-chain-visual { flex-direction: column; gap: 1.5rem; }
  .sc-arrow { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.span-2 { grid-column: span 1; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  
  .header-inner {
    padding: 0 5px;
  }
}

/* Small Mobile — 480px */
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card-actions { flex-direction: column; }
  .hero-ctas { flex-direction: column; }
  .hero-trust { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ================================================
   MOBILE BOTTOM NAV (APP-LIKE)
   ================================================ */
.mobile-bottom-nav {
  display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 76px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--gray-200);
    z-index: 99999; /* highest on page — must show on ALL pages */
    align-items: center;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
  }

  .mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    width: 25%;
    gap: 4px;
    transition: all var(--transition);
  }

  .mobile-bottom-nav .nav-item i {
    font-size: 1.4rem;
    transition: all var(--transition);
  }

  .mobile-bottom-nav .nav-item.active {
    color: var(--accent);
  }
  
  .mobile-bottom-nav .nav-item.active i {
    color: var(--accent);
  }

  .mobile-bottom-nav .nav-item-action {
    position: relative;
    top: -12px;
  }

  .mobile-bottom-nav .nav-action-btn {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(45,142,240,0.4);
    margin-bottom: 2px;
    transition: transform var(--transition);
  }

  .mobile-bottom-nav .nav-action-btn i {
    color: var(--white);
    font-size: 1.4rem;
  }

  .mobile-bottom-nav .nav-item-action:active .nav-action-btn {
    transform: scale(0.95);
  }
}

/* Enhancing touch targets and mobile feel */
@media (max-width: 768px) {
  .btn, .form-input, .form-select, .form-textarea, .filter-tab {
    min-height: 44px; /* Apple Human Interface Guidelines minimum touch target */
  }
  
  /* Hide scrollbars for cleaner horizontal scrolling */
  .table-wrap, .filter-tabs {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .table-wrap::-webkit-scrollbar, .filter-tabs::-webkit-scrollbar {
    display: none;
  }
}

/* ================================================
   PAGE HERO (Internal Pages)
   ================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  padding: calc(var(--header-h) + 3.5rem) 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero-content { max-width: 720px; }

.page-hero h1 {
  color: var(--white);
  margin: 0.75rem 0 0.75rem;
}

.page-hero p {
  color: rgba(255,255,255,0.72);
  font-size: var(--text-lg);
  line-height: 1.7;
  margin: 0;
}

/* ================================================
   BREADCRUMB
   ================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color var(--transition); }
.breadcrumb a:hover { color: var(--steel-300); }
.breadcrumb span { color: rgba(255,255,255,0.85); }
.breadcrumb i { font-size: 0.75rem; opacity: 0.5; }

/* ================================================
   PRODUCT TAGS (Hero Badges)
   ================================================ */
.product-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.875rem;
}

.product-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(74,159,212,0.2);
  color: var(--steel-200);
  border: 1px solid rgba(74,159,212,0.25);
}

/* ================================================
   PRODUCT DETAIL LAYOUT (2-column)
   ================================================ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: start;
}

.product-image-wrap {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.product-image-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.product-grade-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-400);
  margin-bottom: 1rem;
  display: block;
}

.product-summary {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-100);
}

/* ================================================
   PRODUCT META GRID (Spec Cards)
   ================================================ */
.product-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
  margin-bottom: 2rem;
}

.meta-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1rem 1.125rem;
  transition: border-color var(--transition);
}

.meta-card:hover { border-color: var(--steel-200); }

.meta-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 0.375rem;
}

.meta-card-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-800);
}

/* ================================================
   DETAIL SECTIONS
   ================================================ */
.detail-section {
  margin-bottom: 1.875rem;
  padding-bottom: 1.875rem;
  border-bottom: 1px solid var(--gray-100);
}

.detail-section:last-of-type { border-bottom: none; }

.detail-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 1rem;
}

/* ================================================
   CHECKMARK LIST
   ================================================ */
.checkmark-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkmark-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.5;
}

.checkmark-list li::before {
  content: '';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: var(--accent-light);
  border-radius: 50%;
  border: 2px solid var(--accent);
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230D5C9F'%3E%3Cpath d='M13 4L6 11 3 8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* ================================================
   TAGS WRAP
   ================================================ */
.tags-wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-700);
  background: var(--bg-ice);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.875rem;
  transition: all var(--transition);
}

.tag:hover { background: var(--navy-700); color: var(--white); border-color: var(--navy-700); }

/* ================================================
   PRODUCT ACTIONS
   ================================================ */
.product-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-100);
}

/* ================================================
   CONTACT PAGE
   ================================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contact-details {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  background: var(--navy-800);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  color: var(--white);
}

.contact-details h2 { color: var(--white); margin-bottom: 0.5rem; }
.contact-details > p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-bottom: 2rem; }

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-md);
  background: rgba(74,159,212,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel-300);
}

.contact-item-text h4 { color: var(--white); font-size: 0.875rem; margin-bottom: 0.25rem; }
.contact-item-text p { color: rgba(255,255,255,0.6); font-size: 0.85rem; line-height: 1.6; }

/* ================================================
   FORM STYLES
   ================================================ */
.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-group.span-2 { grid-column: span 2; }

.form-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-label .req { color: var(--error); margin-left: 2px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13,92,159,0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

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

.form-error { font-size: 0.775rem; color: var(--error); display: none; }
.form-error.visible { display: block; }

.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  background: #f0fdf4;
  border-radius: var(--radius-xl);
  border: 1px solid #bbf7d0;
}

.form-success.visible { display: block; }
.form-success h3 { color: #15803d; margin-bottom: 0.5rem; }
.form-success p { color: #166534; font-size: 0.9rem; }

/* ================================================
   RFQ PAGE LAYOUT
   ================================================ */
.rfq-wrap {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 3rem;
  align-items: start;
}

.rfq-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

/* ================================================
   ABOUT PAGE BLOCKS
   ================================================ */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-block.reverse { direction: rtl; }
.about-block.reverse > * { direction: ltr; }

.about-image { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-image img { width: 100%; height: 360px; object-fit: cover; }

/* ================================================
   RESPONSIVE — PRODUCT & INNER PAGES
   ================================================ */
@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; gap: 2rem; }
  .product-image-wrap { position: static; }
  .product-image-wrap img { height: 240px; }
  .product-meta-grid { grid-template-columns: 1fr 1fr; }
  .product-actions { flex-direction: column; }
  .product-actions .btn { width: 100%; justify-content: center; }
  .rfq-wrap { grid-template-columns: 1fr; }
  .rfq-sidebar { position: static; order: 2; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-details { position: static; }
  .about-block { grid-template-columns: 1fr; gap: 2rem; }
  .about-block.reverse { direction: ltr; }
  .page-hero { padding: calc(var(--header-h) + 1.5rem) 0 2rem; }
  .page-hero h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .tags-wrap { gap: 0.375rem; }
  .tag { font-size: 0.75rem; padding: 0.25rem 0.625rem; }
}

@media (max-width: 480px) {
  .product-meta-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.span-2 { grid-column: span 1; }
}

/* ================================================
   TOP BAR
   ================================================ */
.top-bar {
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 0.78rem;
  position: relative; /* Scrolls away naturally — site-header sticks independently */
  z-index: 1001;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-bar-tagline {
  color: rgba(255,255,255,0.45);
  font-size: 0.73rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-bar-link {
  color: rgba(255,255,255,0.7);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.top-bar-link:hover { color: var(--steel-300); }

.top-bar-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #25D366;
  color: #fff !important;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.top-bar-wa:hover {
  background: #128C7E;
  transform: translateY(-1px);
}

/* Adjust header so it sticks BELOW the top-bar, not overlapping it */
.site-header {
  position: sticky;
  top: 0; /* sticks below top-bar naturally since top-bar is above in DOM */
  z-index: 1000;
  overflow: visible;
}

/* When top-bar is present, offset header so nav is not covered */
#top-bar ~ #site-header,
.top-bar + .site-header {
  top: 0;
}

/* ================================================
   WHATSAPP FLOATING BUTTON
   ================================================ */
.wa-float {
  position: relative;
  z-index: 9999;
  background: #25D366;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: none;
  cursor: pointer;
  outline: none;
}

.wa-float i {
  font-size: 1.4rem;
}

.wa-float:hover {
  background: #128C7E;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(37,211,102,0.5);
}

.wa-float-label {
  white-space: nowrap;
}

/* Pulse ring animation */
.wa-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  border: 2px solid #25D366;
  opacity: 0;
  animation: wa-pulse 2s ease-out infinite;
}

@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Chat Widget Container */
.chat-widget-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

/* Chat Widget Popup */
.chat-widget-popup {
  width: 340px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-widget-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-widget-header {
  background: linear-gradient(135deg, #0f5642, #128C7E);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-close-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.25rem;
  cursor: pointer;
  transition: color var(--transition);
}

.chat-close-btn:hover {
  color: #fff;
}

.chat-widget-body {
  background: #e5ddd5; /* Classic WA background */
  padding: 1.5rem 1.25rem;
  position: relative;
  background-image: url('data:image/svg+xml,%3Csvg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23d6cfc7" fill-opacity="0.4" fill-rule="evenodd"%3E%3Ccircle cx="3" cy="3" r="3"/%3E%3Ccircle cx="13" cy="13" r="3"/%3E%3C/g%3E%3C/svg%3E');
}

.chat-bubble {
  background: #fff;
  padding: 0.875rem 1rem;
  border-radius: 0 12px 12px 12px;
  font-size: 0.875rem;
  color: #3f434a;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  margin-bottom: 1.25rem;
  line-height: 1.5;
  display: inline-block;
}

.chat-bubble p {
  margin-bottom: 0.25rem;
}
.chat-bubble p:last-child {
  margin-bottom: 0;
}

.chat-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-option-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: #0d5c9f;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
  transition: all var(--transition);
}

.chat-option-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.chat-widget-footer {
  background: #f1f5f9;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

#wa-chat-input {
  flex: 1;
  border: 1px solid #dde6ef;
  background: #fff;
  border-radius: var(--radius-full);
  padding: 0.6rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition);
}

#wa-chat-input:focus {
  border-color: #0d5c9f;
}

#wa-chat-send {
  background: #0d5c9f;
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

#wa-chat-send:hover {
  background: #0a4d84;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .top-bar-tagline { display: none; }
  .wa-float-label { display: none; }
  /* Fix: push chat widget above the mobile bottom nav (76px) + some breathing room */
  .chat-widget-container { bottom: calc(76px + 16px); right: 12px; }
  .wa-float { padding: 0.875rem; }
}

/* ================================================
   FOOTER BOTTOM ENHANCED
   ================================================ */
.footer-copyright-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.875rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 1.5rem;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-legal a {
  color: rgba(255,255,255,0.45);
  font-size: 0.75rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-legal a:hover { color: var(--steel-300); }

/* ================================================
   PROSE CONTENT (Privacy/T&C pages)
   ================================================ */
.prose-content h2 {
  font-size: 1.25rem;
  color: var(--navy-900);
  margin: 2.5rem 0 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-100);
}

.prose-content p { margin-bottom: 1.1rem; }

.prose-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
}

.prose-content ul li { margin-bottom: 0.4rem; }

/* ================================================
   MOBILE RESPONSIVE — XEROTIC & CHEMICALS PAGE GRIDS
   Inline grids without media queries cause horizontal
   overflow on mobile which breaks position:fixed nav
   ================================================ */
@media (max-width: 768px) {
  /* chemicals.php — 4-col category cards */
  .chem-cat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  /* xerotic.php — About 2-col section */
  .xr-about-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* xerotic.php — Product categories 2-col */
  .xr-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* xerotic.php — Why Xerotic 3-col */
  .xr-grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  /* xerotic.php — Industries 4-col */
  .xr-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
}

@media (max-width: 480px) {
  .chem-cat-grid { grid-template-columns: 1fr !important; }
  .xr-grid-3    { grid-template-columns: 1fr !important; }
}

/* ================================================
   MOBILE FIX — CHEMICALS PAGE FILTER BAR
   The filter tabs + search box overflow on mobile
   causing the bottom nav to break (position:fixed)
   ================================================ */
@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }
  .filter-tabs {
    flex-wrap: wrap;
    gap: 0.375rem;
    width: 100%;
  }
  .filter-tab {
    flex: 1;
    min-width: calc(50% - 0.375rem);
    text-align: center;
    font-size: 0.8rem;
    padding: 0.5rem 0.5rem;
  }
  .filter-search {
    width: 100%;
    box-sizing: border-box;
  }
  .filter-search input {
    min-width: unset;
    width: 100%;
  }
}


