/* ==========================================================================
   ONECHEMICALS.AI - CORE EXTENDED DESIGN SYSTEM & COMPONENTS
   ========================================================================== */

/* Layout & Containers */
.section-wrapper {
  padding: 96px 24px;
  position: relative;
}

.section-wrapper.bg-light {
  background-color: #f7fafc;
  color: var(--navy);
}

.section-wrapper.bg-white {
  background-color: #ffffff;
  color: var(--navy);
}

.section-wrapper.bg-dark {
  background-color: var(--navy);
  color: var(--white);
}

.section-wrapper.bg-darker {
  background-color: var(--navy-dark);
  color: var(--white);
}

.content-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Section Header standard */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(31, 216, 106, 0.12);
  color: #0e8540;
  border: 1px solid rgba(31, 216, 106, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.bg-dark .section-tag,
.bg-darker .section-tag {
  background: rgba(31, 216, 106, 0.15);
  color: var(--accent);
  border-color: rgba(31, 216, 106, 0.35);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--grey-text);
  line-height: 1.6;
}

.bg-dark .section-subtitle,
.bg-darker .section-subtitle {
  color: rgba(255, 255, 255, 0.72);
}

/* ==========================================================================
   STATS BAR (PROVEN SCALE)
   ========================================================================== */
.stats-bar-strip {
  background: #ffffff;
  border-bottom: 1px solid rgba(14, 42, 71, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid rgba(14, 42, 71, 0.08);
}

.stat-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid rgba(14, 42, 71, 0.08);
  transition: transform var(--transition-base), background-color var(--transition-base);
}

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

.stat-item:hover {
  background-color: #f8fafc;
  transform: translateY(-2px);
}

.stat-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.stat-num .stat-plus {
  color: var(--accent);
  font-weight: 700;
}

.stat-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--grey-text);
}

/* ==========================================================================
   PRODUCT CATALOGUE COMPONENT
   ========================================================================== */
.catalogue-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.catalogue-search-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-input-wrapper svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey-text);
  pointer-events: none;
}

.catalogue-search-input {
  width: 100%;
  height: 52px;
  padding: 12px 16px 12px 48px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #ffffff;
  color: var(--navy);
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.catalogue-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 216, 106, 0.18);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-tab-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #123456;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-tab-btn:hover {
  border-color: #2563EB;
  color: #2563EB;
}

.category-tab-btn.active {
  background: #123456;
  color: #ffffff;
  border-color: #123456;
}

.catalogue-search-input:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ==========================================================================
   PRODUCT CATALOGUE - ENTERPRISE B2B DESIGN SYSTEM
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 1023px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 639px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.product-card {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 1px 3px rgba(18, 52, 86, 0.05), 0 6px 16px -4px rgba(18, 52, 86, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #2563EB;
  box-shadow: 0 16px 32px -8px rgba(18, 52, 86, 0.12), 0 0 0 1px #2563EB;
}

.product-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 10px;
}

.product-badge-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  letter-spacing: 0.01em;
}

/* Subtle green indicator strictly for availability */
.product-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16A34A;
  display: inline-block;
  flex-shrink: 0;
}

.product-cas {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.product-card-header {
  margin-bottom: 14px;
}

.product-name {
  font-size: 1.18rem;
  font-weight: 700;
  color: #123456;
  margin-bottom: 6px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.product-card:hover .product-name {
  color: #2563EB;
}

.product-formula {
  font-size: 0.8rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-formula-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.product-specs-list {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 14px;
}

.spec-entry {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.spec-name {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.spec-val {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 4px;
}

.btn-card-quote {
  flex: 1.5;
  background-color: #123456;
  color: #ffffff;
  height: 42px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-card-quote:hover {
  background-color: #2563EB;
  transform: translateY(-1px);
}

.btn-card-doc {
  background-color: #ffffff;
  color: #123456;
  border: 1px solid #cbd5e1;
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-card-doc:hover {
  border-color: #2563EB;
  color: #2563EB;
  background-color: #eff6ff;
  transform: translateY(-1px);
}

/* ==========================================================================
   MANUFACTURING SHOWCASE
   ========================================================================== */
.plants-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}

.plant-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid #edf2f7;
  display: flex;
  flex-direction: column;
}

.plant-card-header {
  padding: 28px 28px 20px 28px;
  background: linear-gradient(135deg, var(--navy) 0%, #153c63 100%);
  color: #ffffff;
}

.plant-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(31, 216, 106, 0.2);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.plant-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.plant-focus {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}

.plant-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.plant-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.plant-metric {
  background: #f8fafc;
  padding: 14px;
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

.metric-title {
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--grey-text);
  font-weight: 600;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.capabilities-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.capability-pill {
  font-size: 0.8rem;
  font-weight: 600;
  background: #edf2f7;
  color: var(--navy);
  padding: 6px 12px;
  border-radius: 6px;
}

/* Reaction Matrix */
.reaction-matrix-box {
  background: var(--navy-dark);
  border-radius: 16px;
  padding: 40px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.reaction-tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.reaction-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition-base);
}

.reaction-item:hover {
  background: rgba(31, 216, 106, 0.1);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.reaction-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ==========================================================================
   CERTIFICATIONS & DOCUMENT CENTER
   ========================================================================== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.cert-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}

.cert-badge-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background: rgba(31, 216, 106, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0e8540;
}

.cert-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.cert-issuer {
  font-size: 0.82rem;
  color: var(--grey-text);
  margin-bottom: 12px;
}

.cert-status {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #0e8540;
  background: rgba(31, 216, 106, 0.15);
  padding: 3px 10px;
  border-radius: 12px;
}

/* Document Sample Preview Banner */
.doc-sample-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #17426c 100%);
  border-radius: 16px;
  padding: 36px 40px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.doc-sample-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.doc-sample-content p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 620px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.doc-sample-buttons {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

/* ==========================================================================
   HOW IT WORKS (4-STEP STREAMLINED TIMELINE)
   ========================================================================== */
.steps-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  padding: 32px 24px;
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(14, 42, 71, 0.08);
}

.step-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(31, 216, 106, 0.35);
  line-height: 1;
  margin-bottom: 16px;
  font-family: monospace;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--grey-text);
  line-height: 1.55;
  margin-bottom: 16px;
}

.step-output-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

/* ==========================================================================
   INTERACTIVE RFQ QUOTE BUILDER (#quote) - LUXURY CYBER-GLASS DESIGN
   ========================================================================== */
.rfq-cyber-section {
  background: radial-gradient(circle at 15% 20%, rgba(31, 216, 106, 0.12), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(14, 165, 233, 0.1), transparent 45%),
              linear-gradient(180deg, var(--navy-dark) 0%, #071729 50%, var(--navy-dark) 100%);
  position: relative;
  overflow: hidden;
}

.rfq-cyber-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 216, 106, 0.4), transparent);
}

.rfq-box-container {
  background: linear-gradient(145deg, rgba(14, 42, 71, 0.88) 0%, rgba(8, 26, 46, 0.95) 100%);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 40px rgba(31, 216, 106, 0.08);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  position: relative;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.rfq-box-container:hover {
  border-color: rgba(31, 216, 106, 0.35);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.6), 0 0 60px rgba(31, 216, 106, 0.15);
}

/* Left Verification Sidebar */
.rfq-sidebar {
  background: linear-gradient(180deg, rgba(7, 23, 41, 0.95) 0%, rgba(14, 42, 71, 0.85) 100%);
  color: #ffffff;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.rfq-sidebar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(31, 216, 106, 0.3), transparent);
}

.rfq-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(31, 216, 106, 0.14);
  color: var(--accent);
  border: 1px solid rgba(31, 216, 106, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.rfq-live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: radarPulse 1.8s infinite;
}

@keyframes radarPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

.rfq-title-glow {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 14px;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.rfq-title-glow .gradient-word {
  background: linear-gradient(120deg, #1fd86a 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rfq-sidebar-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Holographic Verification Cards */
.rfq-perks-v2 {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.rfq-perk-card-v2 {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: all var(--transition-base);
}

.rfq-perk-card-v2:hover {
  background: rgba(31, 216, 106, 0.08);
  border-color: rgba(31, 216, 106, 0.3);
  transform: translateX(4px);
}

.rfq-perk-icon-glow {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(31, 216, 106, 0.16);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(31, 216, 106, 0.2);
}

.rfq-perk-content-v2 h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.rfq-perk-content-v2 p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Live Dispatch Ticker */
.rfq-live-ticker {
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: #7dd3fc;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

/* Right Interactive Console */
.rfq-form-panel {
  padding: 44px 40px;
  color: #ffffff;
}

/* Segmented Mode Selector */
.rfq-mode-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.rfq-mode-tab {
  flex: 1;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rfq-mode-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.rfq-mode-tab.active {
  background: var(--accent);
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(31, 216, 106, 0.35);
}

/* Quick Chip Selector Row */
.rfq-quick-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.rfq-chip-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.rfq-chip-btn:hover {
  background: rgba(31, 216, 106, 0.18);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Form Grid */
.rfq-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label-v2 {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-label-hint {
  font-size: 0.74rem;
  color: var(--accent);
  font-weight: 500;
}

.form-control-v2 {
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
}

.form-control-v2:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(31, 216, 106, 0.22), 0 0 20px rgba(31, 216, 106, 0.12);
}

.form-control-v2::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

textarea.form-control-v2 {
  height: 84px;
  padding: 12px 16px;
  resize: vertical;
}

/* Visual Packaging Cards Grid */
.packaging-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.packaging-choice-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  user-select: none;
}

.packaging-choice-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(31, 216, 106, 0.4);
  transform: translateY(-2px);
}

.packaging-choice-card.active {
  background: rgba(31, 216, 106, 0.15);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(31, 216, 106, 0.25);
}

.pack-card-icon {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.pack-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
}

.pack-card-sub {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Interactive Incoterms Selectors */
.incoterms-chips-row {
  display: flex;
  gap: 8px;
}

.incoterm-chip {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all var(--transition-base);
}

.incoterm-chip:hover {
  border-color: var(--accent);
  background: rgba(31, 216, 106, 0.08);
}

.incoterm-chip.active {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
  font-weight: 700;
}

/* Quick Quantity Pills */
.qty-preset-row {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.qty-preset-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.qty-preset-btn:hover {
  background: rgba(31, 216, 106, 0.2);
  color: var(--accent);
}

/* Dynamic Logistics Estimation Strip */
.logistics-est-strip {
  background: rgba(31, 216, 106, 0.08);
  border: 1px dashed rgba(31, 216, 106, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #a7f3d0;
  margin-top: 4px;
}

/* Glowing Liquid Shimmer Submit Button */
.btn-submit-rfq-v2 {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, #1fd86a 0%, #12a84f 50%, #1fd86a 100%);
  background-size: 200% 200%;
  animation: liquidGlow 4s ease infinite;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  border: none;
  box-shadow: 0 8px 24px rgba(31, 216, 106, 0.35), 0 0 20px rgba(31, 216, 106, 0.2);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
}

@keyframes liquidGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn-submit-rfq-v2:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 34px rgba(31, 216, 106, 0.5), 0 0 30px rgba(31, 216, 106, 0.35);
}

.btn-submit-rfq-v2:active {
  transform: translateY(0) scale(0.99);
}

.btn-submit-rfq-v2 .btn-arrow-icon {
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.btn-submit-rfq-v2:hover .btn-arrow-icon {
  transform: translateX(6px);
}

/* Mobile Responsiveness for RFQ */
@media (max-width: 1024px) {
  .rfq-box-container {
    grid-template-columns: 1fr;
  }
  .rfq-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 640px) {
  .packaging-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .incoterms-chips-row {
    flex-wrap: wrap;
  }
  .rfq-form-panel {
    padding: 28px 18px;
  }
  .rfq-sidebar {
    padding: 28px 18px;
  }
}

/* ==========================================================================
   AI SPECIALTY CHEMICAL ASSISTANT (#ai)
   ========================================================================== */
.ai-assistant-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 36px;
  color: var(--navy);
  box-shadow: 0 12px 36px rgba(14, 42, 71, 0.08), 0 2px 8px rgba(14, 42, 71, 0.04);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.ai-query-chips {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.query-chip-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(14, 42, 71, 0.03);
}

.query-chip-btn:hover {
  background: rgba(31, 216, 106, 0.12);
  border-color: var(--accent);
  color: var(--navy);
  transform: translateX(4px);
}

.ai-chat-simulation {
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  height: 380px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ai-chat-header {
  padding: 14px 18px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.ai-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #0e8540;
  font-weight: 600;
}

.ai-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(31, 216, 106, 0.6);
}

.ai-chat-messages {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f8fafc;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.chat-bubble.bot {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  align-self: flex-start;
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(14, 42, 71, 0.05);
}

.chat-bubble.bot strong {
  color: var(--navy);
}

.chat-bubble.user {
  background: var(--accent);
  color: var(--navy);
  font-weight: 600;
  align-self: flex-end;
  box-shadow: 0 2px 6px rgba(31, 216, 106, 0.25);
}

.ai-chat-input-bar {
  padding: 12px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 8px;
}

.ai-chat-input {
  flex: 1;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 9px 14px;
  color: var(--navy);
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition-base);
}

.ai-chat-input:focus {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 216, 106, 0.2);
}

.ai-chat-input::placeholder {
  color: #94a3b8;
}

.btn-send-ai {
  background: var(--accent);
  color: var(--navy);
  border-radius: 6px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all var(--transition-base);
}

.btn-send-ai:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

/* ==========================================================================
   FOOTER COMPONENT (#contact)
   ========================================================================== */
.site-footer {
  background: var(--navy-dark);
  color: #ffffff;
  padding: 80px 24px 32px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 24px;
}

.footer-locations {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--accent);
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  transition: color var(--transition-base), transform var(--transition-base);
  display: inline-block;
}

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

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 16px;
}

/* Standalone Page Subheader (for products.html, etc.) */
.page-hero-header {
  padding: 140px 24px 60px 24px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #ffffff;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

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

/* Modal Popup for TDS / COA Document Preview */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 26, 46, 0.8);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal-container {
  background: #ffffff;
  border-radius: 12px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  color: var(--navy);
  padding: 32px;
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f1f5f9;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy);
  font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .stat-item:nth-child(-n+2) {
    border-bottom: 1px solid rgba(14, 42, 71, 0.08);
  }
  .plants-grid {
    grid-template-columns: 1fr;
  }
  .steps-timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rfq-box-container {
    grid-template-columns: 1fr;
  }
  .ai-assistant-card {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .doc-sample-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(14, 42, 71, 0.08);
  }
  .steps-timeline-grid {
    grid-template-columns: 1fr;
  }
  .rfq-form-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 2rem;
  }
  .section-wrapper {
    padding: 64px 18px;
  }
}

/* ==========================================================================
   FLOATING AI CHATBOT WIDGET
   ========================================================================== */
.floating-chatbot-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

/* Floating Pill Button matching user screenshot */
.floating-chatbot-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #1fd86a;
  color: #0e2a47;
  font-family: 'Lexend', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(14, 42, 71, 0.12);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(31, 216, 106, 0.35), 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
}

.floating-chatbot-btn:hover {
  background-color: #18c55e;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(31, 216, 106, 0.45), 0 6px 14px rgba(0, 0, 0, 0.16);
}

.floating-chatbot-btn:active {
  transform: translateY(0) scale(0.98);
}

.floating-chatbot-btn svg {
  stroke: #0e2a47;
  stroke-width: 2.2;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.floating-chatbot-btn:hover svg {
  transform: rotate(-5deg) scale(1.08);
}

/* Chatbot Popup Window */
.chatbot-window {
  pointer-events: auto;
  width: 390px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(8, 26, 46, 0.3), 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(14, 42, 71, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px) scale(0.94);
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0.3s ease;
  transform-origin: bottom right;
}

.chatbot-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

/* Chatbot Header */
.chatbot-top {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(31, 216, 106, 0.4);
}

.chatbot-title-box h3 {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
}

.chatbot-status {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.chatbot-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.chatbot-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chatbot-btn-close {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-base);
  font-size: 0.9rem;
}

.chatbot-btn-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Chatbot Body & Messages */
.chatbot-messages-area {
  flex: 1;
  background: #f8fafc;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bot-msg {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  max-width: 88%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px 12px 12px 2px;
  padding: 12px 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--navy);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.user-msg {
  align-self: flex-end;
  max-width: 85%;
  background: var(--accent);
  color: var(--navy);
  border-radius: 12px 12px 2px 12px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(31, 216, 106, 0.25);
}

.chat-quick-suggestions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.quick-chip {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.78rem;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-base);
  font-weight: 500;
}

.quick-chip:hover {
  background: #e6f9ed;
  border-color: var(--accent);
  color: #0e8540;
}

/* Typing Indicator Animation */
.typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  animation: typingBounce 1.3s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Chatbot Input Bar */
.chatbot-input-strip {
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.chatbot-input {
  flex: 1;
  height: 42px;
  padding: 8px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 24px;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  color: var(--navy);
  transition: border-color var(--transition-base);
}

.chatbot-input:focus {
  border-color: var(--accent);
}

.chatbot-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-base), transform var(--transition-base);
  flex-shrink: 0;
}

.chatbot-send-btn:hover {
  background: var(--accent-hover);
  color: #ffffff;
  transform: scale(1.05);
}

/* ==========================================================================
   GLOBAL SITE HEADER & RESPONSIVE NAVIGATION SYSTEM
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid rgba(14, 42, 71, 0.08);
  box-shadow: 0 4px 20px rgba(14, 42, 71, 0.05);
  transition: background-color var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo .logo-dot {
  color: var(--accent);
}

/* Desktop Navigation Center */
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-base);
}

.nav-link:hover {
  color: var(--accent-hover);
}

.nav-link.active {
  font-weight: 700;
  color: var(--accent-hover);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active::after {
  width: 24px;
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.search-btn {
  background: transparent;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base);
}

.search-btn:hover {
  background: rgba(14, 42, 71, 0.05);
}

.btn-quote {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(14, 42, 71, 0.2);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-quote:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  background: rgba(31, 216, 106, 0.08);
}

.btn-quote .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.btn-quote:hover .arrow {
  transform: translateX(4px);
}

.btn-ai {
  background: var(--accent);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(31, 216, 106, 0.25);
  transition: all var(--transition-base);
}

.btn-ai:hover {
  background: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(31, 216, 106, 0.35);
}

/* ==========================================================================
   MOBILE MENU TOGGLE BUTTON (CRITICAL: STRICTLY HIDDEN ON DESKTOP)
   ========================================================================== */
.mobile-menu-toggle {
  display: none !important; /* STRICTLY HIDDEN ON DESKTOP >= 992px */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  padding: 9px;
  color: var(--navy);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-menu-toggle:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.mobile-menu-toggle .hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--navy);
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  transform-origin: center;
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER & BACKDROP OVERLAY
   ========================================================================== */
.mobile-nav-backdrop {
  display: none !important; /* Hidden on desktop */
  position: fixed;
  inset: 0;
  background: rgba(8, 26, 46, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-panel {
  display: none !important; /* Strictly hidden on desktop */
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  box-shadow: -8px 0 32px rgba(8, 26, 46, 0.2);
  z-index: 10010;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Open State */
.mobile-nav-backdrop.open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

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

/* Drawer Header */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.mobile-nav-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-nav-close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* Drawer Body */
.mobile-nav-body {
  padding: 20px 24px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.mobile-nav-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}

.mobile-nav-link:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: var(--accent-hover);
  transform: translateX(3px);
}

.mobile-nav-link.active {
  background: rgba(31, 216, 106, 0.12);
  color: #0e8540;
  border-color: rgba(31, 216, 106, 0.32);
  font-weight: 700;
}

.mobile-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
}

.mobile-nav-link.active .mobile-nav-icon {
  color: #0e8540;
}

.mobile-nav-text {
  flex: 1;
}

.mobile-nav-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent);
  color: var(--navy);
  padding: 2px 8px;
  border-radius: 999px;
}

.mobile-nav-sub {
  font-size: 0.75rem;
  color: var(--grey-text);
}

/* Actions in Drawer */
.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}

.mobile-btn-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  background: #ffffff;
  color: var(--navy);
  border: 1.5px solid rgba(14, 42, 71, 0.2);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-btn-quote:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  background: rgba(31, 216, 106, 0.05);
}

.mobile-btn-ai {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  background: var(--accent);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(31, 216, 106, 0.3);
  transition: all 0.2s ease;
}

.mobile-btn-ai:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

/* Footer card in Drawer */
.mobile-nav-footer {
  margin-top: auto;
  padding: 16px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.mobile-nav-info-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 216, 106, 0.25);
}

.mobile-nav-info-sub {
  font-size: 0.74rem;
  color: var(--grey-text);
  line-height: 1.4;
}

/* ==========================================================================
   BREAKPOINTS: DESKTOP VS MOBILE/TABLET
   ========================================================================== */
@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none !important;
  }
  .mobile-nav-panel {
    display: none !important;
  }
  .mobile-nav-backdrop {
    display: none !important;
  }
  .site-nav {
    display: flex !important;
  }
  .header-actions {
    display: flex !important;
  }
}

@media (max-width: 991px) {
  .site-nav {
    display: none !important;
  }
  .header-actions .btn-quote,
  .header-actions .btn-ai {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
  .mobile-nav-panel {
    display: flex !important;
  }
  .mobile-nav-backdrop {
    display: block !important;
  }
}

body.mobile-menu-active {
  overflow: hidden !important;
  touch-action: none;
}

body.mobile-menu-active .floating-chatbot-container {
  display: none !important;
}




