/* MKS Minerals - Modern & Colorful Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Rich Mineral Palette */
  --primary-navy: #0f172a;
  --primary-slate: #1e293b;
  --primary-blue: #2563eb;
  --primary-blue-dark: #1d4ed8;
  --accent-gold: #f59e0b;
  --accent-gold-dark: #d97706;
  --accent-amber: #b45309;
  --accent-emerald: #10b981;
  --accent-teal: #14b8a6;
  --accent-ruby: #f43f5e;
  --accent-purple: #8b5cf6;
  
  /* Text & Surfaces */
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-light: #ffffff;
  --bg-section: #f8fafc;
  --bg-card: #ffffff;
  
  /* Borders & Shadows */
  --border-light: #e2e8f0;
  --border-color: #cbd5e1;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 12px 35px rgba(37, 99, 235, 0.2);
  --shadow-gold: 0 10px 25px rgba(245, 158, 11, 0.25);
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

/* ==========================================================================
   TOP ANNOUNCEMENT & CONTACT BAR
   ========================================================================== */
.top-bar {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #cbd5e1;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-bar-item i {
  color: var(--accent-gold);
}
.top-bar-badge {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.brand-logo-img:hover {
  transform: scale(1.05);
}
.logo-circle {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}
.logo-circle:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}
.logo-script {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 26px;
  color: var(--accent-gold);
  font-weight: 800;
}
.brand-text-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.5px;
  line-height: 1.1;
  white-space: nowrap;
}
.brand-text-sub {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-gold-dark);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li {
  flex-shrink: 0;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.nav-links a i {
  font-size: 13px;
  color: #64748b;
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--primary-blue);
  background: rgba(37, 99, 235, 0.08);
}
.nav-links a:hover i {
  color: var(--primary-blue);
}
.nav-links a.active {
  color: var(--primary-blue);
  background: rgba(37, 99, 235, 0.12);
  font-weight: 700;
}
.nav-links a.active i {
  color: var(--primary-blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.mobile-toggle-btn {
  display: none;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: var(--primary-navy);
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.mobile-toggle-btn:hover {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
}

.mobile-menu-drawer {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 20px 24px;
  position: sticky;
  top: 73px;
  z-index: 999;
}
.mobile-menu-drawer.open {
  display: block;
}
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  transition: all 0.2s ease;
}
.mobile-nav-links a.active, .mobile-nav-links a:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-blue);
  font-weight: 700;
}

/* ==========================================================================
   BUTTON SYSTEM
   ========================================================================== */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14.5px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
  transition: all 0.25s ease;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.45);
  color: #ffffff;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14.5px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: all 0.25s ease;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
  color: #ffffff;
}

.btn-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14.5px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: all 0.25s ease;
}
.btn-emerald:hover {
  background: linear-gradient(135deg, #34d399 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.45);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-navy);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 13.5px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-dark:hover {
  background: var(--primary-blue);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  color: #334155;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-outline:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: rgba(37, 99, 235, 0.04);
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-wrapper {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 58, 138, 0.85) 100%), 
              url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
  padding: 140px 24px;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}
.hero-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fef08a;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero-title-text {
  font-size: 54px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
  line-height: 1.15;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle-text {
  font-size: 20px;
  font-weight: 400;
  color: #e2e8f0;
  margin: 0 auto 36px;
  max-width: 760px;
  line-height: 1.6;
}

/* ==========================================================================
   METRIC & STATS GRID
   ========================================================================== */
.stats-banner {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  padding: 48px 24px;
  color: #ffffff;
  border-bottom: 3px solid var(--accent-gold);
}
.stats-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.stat-card-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.stat-card-item:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(255, 255, 255, 0.07);
}
.stat-number-val {
  font-size: 38px;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: -0.5px;
}
.stat-label-text {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 6px;
}

/* ==========================================================================
   PRODUCT CARDS & GRID
   ========================================================================== */
.products-section-bg {
  background: var(--bg-section);
  padding: 90px 24px;
}
.products-container {
  max-width: 1280px;
  margin: 0 auto;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.3);
}

.product-img-box {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
}
.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img-box img {
  transform: scale(1.06);
}

.product-card-header {
  padding: 24px 24px 16px;
}
.product-category-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  line-height: 1;
}
.price-pill-tag {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 800;
}
.product-card-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-top: 10px;
  line-height: 1.25;
}
.chemical-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #334155;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  margin-top: 8px;
  border: 1px solid #e2e8f0;
}

.product-card-body {
  padding: 0 24px 20px;
  flex-grow: 1;
}
.product-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.product-card-footer {
  padding: 18px 24px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.rfq-card {
  background: #ffffff;
  padding: 44px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
}
.form-group {
  margin-bottom: 22px;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 13px 18px;
  font-size: 14.5px;
  font-family: inherit;
  color: #0f172a;
  background-color: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  transition: all 0.2s ease-in-out;
  outline: none;
}
.form-control:focus {
  background-color: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%25232563eb'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 44px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.modern-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 80px 0 0;
  border-top: 4px solid var(--accent-gold);
}
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-heading {
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
  position: relative;
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--accent-gold);
  border-radius: 3px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: #94a3b8;
  font-size: 14.5px;
  font-weight: 500;
}
.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 6px;
}
.footer-bottom {
  background: #090d16;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13.5px;
  text-align: center;
}

/* ==========================================================================
   WHATSAPP FLOATING WIDGET
   ========================================================================== */
.whatsapp-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.whatsapp-pill {
  background: #ffffff;
  color: #0f172a;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  border: 1px solid var(--border-light);
}
.whatsapp-btn-icon {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  transition: transform 0.3s ease;
}
.whatsapp-widget:hover .whatsapp-btn-icon {
  transform: scale(1.1) rotate(8deg);
}

/* Responsive */
@media (max-width: 1100px) {
  .site-header nav, .site-header .header-actions {
    display: none;
  }
  .mobile-toggle-btn {
    display: flex;
  }
}
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero-title-text { font-size: 34px; }
  .footer-container { grid-template-columns: 1fr; }
}
