/* ==========================================================================
   CHEMORA SCIENTIFICS — Production Corporate Design System
   Brand Colors:
   Primary Navy: #103B66 | Dark Navy: #0A2542 | Light Navy: #1A548E
   Secondary Magenta: #B51F58 | Magenta Hover: #961747 | Light Magenta: #FDF2F6
   Scientific Teal: #0C9EAA | Light Teal: #E6F8F9
   Background Light: #F5F8FC | Card Alt: #EDF3FA
   Text Dark: #1B2938 | Text Muted: #4B5E73 | Border: #D9E4EF
   ========================================================================== */

:root {
  --navy: #103B66;
  --navy-dark: #0A2542;
  --navy-light: #1A548E;
  --magenta: #B51F58;
  --magenta-hover: #961747;
  --magenta-light: #FDF2F6;
  --teal: #0C9EAA;
  --teal-light: #E6F8F9;
  --bg-light: #F5F8FC;
  --bg-alt: #EDF3FA;
  --text-dark: #1B2938;
  --text-muted: #4B5E73;
  --border-light: #D9E4EF;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(16, 59, 102, 0.06);
  --shadow-md: 0 4px 12px rgba(16, 59, 102, 0.08);
  --shadow-lg: 0 12px 28px rgba(16, 59, 102, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1;
}

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

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

/* ================= ADVANCED SCROLL & UI ANIMATIONS ================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.32s; }
.reveal-delay-4 { transition-delay: 0.42s; }

/* Micro Floating Keyframe Animation */
@keyframes chemoraFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes chemoraPulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(181, 31, 88, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(181, 31, 88, 0); }
}

@keyframes chemoraShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ================= ROTATING MOLECULE ANIMATIONS ================= */
@keyframes chemoraRotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes chemoraRotateReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes chemoraMoleculeDrift1 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  33%  { transform: translate(30px, -45px) rotate(120deg); }
  66%  { transform: translate(-25px, -80px) rotate(240deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes chemoraMoleculeDrift2 {
  0%   { transform: translate(0, 0) rotate(360deg); }
  33%  { transform: translate(-40px, 35px) rotate(240deg); }
  66%  { transform: translate(35px, 60px) rotate(120deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.molecule-canvas-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.55;
}

.floating-molecule {
  position: absolute;
  pointer-events: none;
}
.floating-molecule-1 {
  top: 15%;
  right: 4%;
  width: 140px;
  height: 140px;
  animation: chemoraMoleculeDrift1 28s ease-in-out infinite;
}
.floating-molecule-2 {
  top: 55%;
  left: 3%;
  width: 180px;
  height: 180px;
  animation: chemoraMoleculeDrift2 35s ease-in-out infinite;
}
.floating-molecule-3 {
  bottom: 12%;
  right: 8%;
  width: 120px;
  height: 120px;
  animation: chemoraMoleculeDrift1 24s ease-in-out infinite reverse;
}

/* Subtle continuous rotation for brand monogram ring */
.brand-logo-wrap svg polygon {
  transform-origin: 50% 50%;
  animation: chemoraRotateSlow 45s linear infinite;
}

.animate-float {
  animation: chemoraFloat 4s ease-in-out infinite;
}

.animate-glow {
  animation: chemoraPulseGlow 2.5s infinite;
}

/* Image Container Styling with smooth hover zoom & shine */
.img-zoom-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
}
.img-zoom-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s ease;
}
.img-zoom-wrap:hover img {
  transform: scale(1.06);
}

/* ================= HERO SLIDER SYSTEM ================= */
.hero-slider-wrap {
  position: relative;
  width: 100%;
  min-height: 600px;
  overflow: hidden;
  background-color: var(--navy-dark);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
  display: flex;
  align-items: center;
  z-index: 1;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s ease-out;
  pointer-events: none;
}
.hero-slide-video-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.hero-slide-video-wrap iframe,
.hero-slide-video-wrap video {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}
.hero-slide.active .hero-slide-bg {
  transform: scale(1);
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,37,66,0.95) 0%, rgba(10,37,66,0.82) 48%, rgba(10,37,66,0.55) 100%);
  z-index: 2;
}
.hero-slide-content {
  position: relative;
  z-index: 3;
  color: var(--white);
  max-width: 820px;
  padding: 85px 0 95px;
}
.hero-headline {
  font-size: 52px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #ffffff;
  margin-bottom: 18px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.hero-headline span {
  display: block !important;
  width: 100%;
  clear: both;
  font-size: 38px;
  font-weight: 700;
  background: linear-gradient(135deg, #38bdf8 0%, #0C9EAA 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 8px;
  letter-spacing: -0.4px;
}
.hero-desc {
  font-size: 17px;
  line-height: 1.6;
  color: #e2e8f0;
  max-width: 600px;
  margin-bottom: 26px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* =========================================================
   HERO BANNER TEXT ANIMATIONS (STAGGERED SMOOTH ENTRANCE)
========================================================= */
.hero-slide .hero-tagline-badge,
.hero-slide .hero-headline,
.hero-slide .hero-desc,
.hero-slide .hero-actions,
.hero-slide .hero-feature-tags {
  opacity: 0;
  transform: translateY(28px);
  will-change: transform, opacity;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Staggered entrance when slide becomes active */
.hero-slide.active .hero-tagline-badge {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
  animation: heroBadgeGlow 3s ease-in-out infinite alternate 1s;
}

.hero-slide.active .hero-headline {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

.hero-slide.active .hero-headline span {
  display: block;
  animation: heroGradientShimmer 6s ease-in-out infinite alternate;
}

.hero-slide.active .hero-desc {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}

.hero-slide.active .hero-actions {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.65s;
}

.hero-slide.active .hero-feature-tags {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.8s;
}

@keyframes heroBadgeGlow {
  0% {
    box-shadow: 0 0 0 rgba(12, 158, 170, 0);
  }
  100% {
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
  }
}

@keyframes heroGradientShimmer {
  0% {
    filter: drop-shadow(0 2px 8px rgba(12, 158, 170, 0.3));
  }
  50% {
    filter: drop-shadow(0 4px 16px rgba(56, 189, 248, 0.6));
  }
  100% {
    filter: drop-shadow(0 2px 8px rgba(12, 158, 170, 0.3));
  }
}

/* =========================================================
   HERO SLIDER ROTATING & FLOATING MOLECULES LAYER
========================================================= */
.hero-molecules-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}

.hero-molecule {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 4px 14px rgba(12, 158, 170, 0.35));
}

.hero-molecule svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Molecule 1: Top-Right Hexagonal Cluster */
.hero-molecule-1 {
  top: 10%;
  right: 6%;
  width: 170px;
  height: 170px;
  opacity: 0.85;
  animation: heroMoleculeSpin1 22s linear infinite, heroMoleculeFloat1 7s ease-in-out infinite alternate;
}

/* Molecule 2: Center-Right Chiral Orbitals */
.hero-molecule-2 {
  top: 42%;
  right: 14%;
  width: 135px;
  height: 135px;
  opacity: 0.75;
  animation: heroMoleculeSpin2 18s linear infinite reverse, heroMoleculeFloat2 9s ease-in-out infinite alternate;
}

/* Molecule 3: Bottom-Right Organic Branch */
.hero-molecule-3 {
  bottom: 14%;
  right: 24%;
  width: 105px;
  height: 105px;
  opacity: 0.65;
  animation: heroMoleculeSpin1 26s linear infinite reverse, heroMoleculeFloat1 8s ease-in-out infinite alternate-reverse;
}

@keyframes heroMoleculeSpin1 {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes heroMoleculeSpin2 {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes heroMoleculeFloat1 {
  0%   { margin-top: 0px; margin-left: 0px; }
  50%  { margin-top: -16px; margin-left: 12px; }
  100% { margin-top: 8px; margin-left: -8px; }
}

@keyframes heroMoleculeFloat2 {
  0%   { margin-top: 0px; margin-left: 0px; }
  50%  { margin-top: 14px; margin-left: -14px; }
  100% { margin-top: -10px; margin-left: 10px; }
}

@media (max-width: 991px) {
  .hero-molecules-layer {
    opacity: 0.55;
  }
  .hero-molecule-1 {
    width: 110px;
    height: 110px;
    right: 2%;
    top: 6%;
  }
  .hero-molecule-2 {
    width: 85px;
    height: 85px;
    right: 5%;
    top: 46%;
  }
  .hero-molecule-3 {
    display: none;
  }
}

.hero-slider-nav {
  position: absolute;
  bottom: 32px;
  right: 40px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
}
.slider-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}
.slider-arrow-btn:hover {
  background: var(--magenta);
  border-color: var(--magenta);
  transform: scale(1.08);
}
.slider-dots {
  display: flex;
  gap: 8px;
  margin-right: 8px;
}
.slider-dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}
.slider-dot.active {
  background: #38bdf8;
  width: 44px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Background Patterns */
.bg-grid-pattern {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.bg-dot-pattern {
  background-image: radial-gradient(rgba(16, 59, 102, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Typography Utility */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.badge-magenta {
  background-color: var(--magenta-light);
  color: var(--magenta);
  border: 1px solid rgba(181, 31, 88, 0.2);
}
.badge-teal {
  background-color: var(--teal-light);
  color: var(--teal);
  border: 1px solid rgba(12, 158, 170, 0.25);
}
.badge-white {
  background-color: rgba(255, 255, 255, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.section-title-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-top: 8px;
}
.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-primary {
  background-color: var(--magenta);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(181, 31, 88, 0.25);
}
.btn-primary:hover {
  background-color: var(--magenta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(181, 31, 88, 0.35);
  color: var(--white);
}
.btn-secondary {
  background-color: var(--bg-alt);
  color: var(--navy);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  background-color: var(--white);
  border-color: var(--navy);
  color: var(--navy);
}
.btn-ghost-white {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}
.btn-ghost-white:hover {
  background-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

/* Cards */
.card-white {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.card-white:hover {
  box-shadow: 0 16px 36px rgba(16, 59, 102, 0.12);
  border-color: #93c5fd;
  transform: translateY(-6px);
}

/* ================= TOP UTILITY BAR ================= */
.top-bar {
  background-color: var(--navy-dark);
  color: #cbd5e1;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(26, 84, 142, 0.4);
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.top-bar a:hover {
  color: #38bdf8;
}

/* ================= HEADER ================= */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-text-name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--navy);
  line-height: 1;
}
.brand-text-name span {
  color: var(--magenta);
  font-size: 15px;
  margin-left: 6px;
  letter-spacing: 1.5px;
}
.brand-tagline {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--navy);
  background-color: var(--bg-alt);
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 300px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  list-style: none;
  z-index: 200;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-link {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav-dropdown-link span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}
.nav-dropdown-link:hover {
  background-color: var(--bg-light);
  color: var(--magenta);
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy);
  padding: 8px;
}

/* ================= FOOTER ================= */
.main-footer {
  background-color: var(--navy-dark);
  color: #cbd5e1;
  border-top: 1px solid rgba(26, 84, 142, 0.4);
}
.footer-cta-ribbon {
  background-color: var(--navy);
  border-bottom: 1px solid rgba(26, 84, 142, 0.5);
  padding: 24px 0;
}
.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-content {
  padding: 56px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
  gap: 40px;
}
.footer-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #38bdf8;
  margin-bottom: 18px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.footer-links a:hover {
  color: var(--white);
}
.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(26, 84, 142, 0.4);
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ================= CONTACT FORM ================= */
.contact-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.form-group {
  margin-bottom: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 13.5px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: inherit;
  transition: all 0.2s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--navy);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(16, 59, 102, 0.12);
}
.form-feedback {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  margin-bottom: 24px;
}
.form-feedback.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.form-feedback.error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

/* Chemical Table */
.chemical-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.chemical-table th {
  background-color: var(--navy-dark);
  color: var(--white);
  padding: 14px 16px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.8px;
}
.chemical-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.chemical-table tr:hover td {
  background-color: var(--bg-light);
}

/* ================= RESPONSIVE MEDIA QUERIES ================= */
@media (max-width: 992px) {
  .top-bar-left span:nth-child(2),
  .top-bar-left span:nth-child(3) {
    display: none;
  }
  .header-inner {
    height: 72px;
  }
  .brand-text-name {
    font-size: 18px;
    letter-spacing: 1.5px;
  }
  .brand-text-name span {
    font-size: 13px;
  }
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-slide-content {
    padding: 70px 0 100px;
  }
  .hero-headline {
    font-size: 38px;
  }
  .hero-headline span {
    font-size: 28px;
  }
  .hero-desc {
    font-size: 15.5px;
  }
  .hero-slider-nav {
    bottom: 24px;
    right: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .form-row, .form-row-3 {
    grid-template-columns: 1fr;
  }

  /* Universal Responsive 2-Column & Multi-Column Grid Collapse */
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns: 1.2fr 0.8fr"],
  div[style*="grid-template-columns: 1.3fr 1fr"],
  div[style*="grid-template-columns: 1fr 1.3fr"],
  form[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

@media (max-width: 640px) {
  .top-bar {
    font-size: 11px;
    padding: 6px 0;
  }
  .top-bar-inner {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
  .top-bar-left, .top-bar-right {
    justify-content: center;
    gap: 12px;
  }
  .header-inner {
    height: 64px;
  }
  .header-actions .btn {
    display: none; /* Hide header CTA button on small phones so brand logo fits cleanly */
  }
  .brand-logo-wrap svg {
    width: 34px;
    height: 34px;
  }
  .brand-text-name {
    font-size: 16px;
    letter-spacing: 1px;
  }
  .brand-text-name span {
    font-size: 12px;
    margin-left: 4px;
  }
  .brand-tagline {
    font-size: 8.5px;
    letter-spacing: 1.5px;
  }

  .container {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }

  .hero-slider-wrap {
    min-height: 480px;
  }
  .hero-slide-content {
    padding: 36px 0 90px;
    text-align: left;
  }
  .hero-tagline-badge {
    font-size: 10px !important;
    padding: 3px 10px !important;
    margin-bottom: 12px !important;
  }
  .hero-headline {
    font-size: 26px;
    line-height: 1.22;
    margin-bottom: 10px;
  }
  .hero-headline span {
    font-size: 19px;
    margin-top: 4px;
  }
  .hero-desc {
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 18px;
    color: #e2e8f0;
  }
  .hero-actions {
    flex-direction: row;
    gap: 10px;
  }
  .hero-actions .btn {
    flex: 1;
    font-size: 12px;
    padding: 10px 14px;
    text-align: center;
    justify-content: center;
  }
  .hero-feature-tags {
    display: none !important; /* Hide tiny bottom tags on mobile phones to eliminate clutter */
  }
  .hero-slider-nav {
    bottom: 16px;
    left: 20px;
    right: 20px;
    justify-content: space-between;
  }
  .slider-arrow-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .slider-dot {
    width: 20px;
    height: 3px;
  }
  .slider-dot.active {
    width: 32px;
  }

  .section-title {
    font-size: 24px;
  }
  .section-subtitle {
    font-size: 13.5px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-cta-inner {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
  }
  .footer-cta-inner .btn {
    width: 100%;
    text-align: center;
  }

  /* Universal padding reduction for mobile touch screens */
  main {
    padding: 24px 0 50px !important;
  }
  section {
    padding: 44px 0 !important;
  }
  .card-white {
    padding: 18px !important;
  }

  /* Subpage Header Banner Mobile Sizing */
  div[style*="background: linear-gradient(135deg"] {
    margin-bottom: 32px !important;
    border-radius: 16px !important;
  }
  div[style*="background: linear-gradient(135deg"] div[style*="padding: 56px 48px"] {
    padding: 28px 20px !important;
  }
  div[style*="background: linear-gradient(135deg"] h1 {
    font-size: 26px !important;
    line-height: 1.25 !important;
    margin-bottom: 10px !important;
  }
  div[style*="background: linear-gradient(135deg"] p {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
  }
  div[style*="background: linear-gradient(135deg"] div[style*="height:100%; min-height:280px"] {
    height: 190px !important;
    min-height: 190px !important;
    max-height: 190px !important;
  }
}
