/* ==========================================================================
   MEDOVAQ CHEMICAL - Design System & Multi-Page Stylesheet
   Style Inspiration: Modern UI Card Layout, Floating Pills, Rounded Modules
   Color System: Warm Off-White (#F8F8F6), Slate/Graphite Text (#111111), Mineral Blue Accent (#0066CC)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --bg-main: #F4F4EE;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F1EE;
  --bg-card: #FAF9F6;
  --bg-accent-card: #0066CC;

  /* Text Colors */
  --text-primary: #111111;
  --text-secondary: #555558;
  --text-tertiary: #8E8E93;
  --text-inverse: #FFFFFF;

  /* Accent Mineral Blue */
  --accent-blue: #0066CC;
  --accent-blue-hover: #0052A3;
  --accent-blue-light: rgba(0, 102, 204, 0.08);

  /* Glassmorphism System */
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-bg-hover: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-border-dark: rgba(0, 0, 0, 0.06);
  --glass-blur: blur(20px);
  --glass-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.05);

  /* Borders & Radius */
  --radius-pill: 9999px;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Roboto Mono', monospace;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 920px;
  --nav-height: 80px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Base Reset & General Layout
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Sideways Shared-Element Page Transitions on Main (Header Remains 100% Fixed & Stationary) */
main {
  flex: 1;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.48s cubic-bezier(0.16, 1, 0.3, 1), transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

main.page-loaded {
  opacity: 1;
  transform: translateX(0);
}

main.page-exiting {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Subpage Layout Spacing - Removes excessive blank upper space on all subpages (excluding Homepage) */
.subpage-main,
main:not(:has(.hero-section)) {
  padding-top: calc(var(--nav-height) + 1.25rem);
}

.subpage-main > .section:first-child,
.subpage-main > section:first-of-type,
main:not(:has(.hero-section)) > .section:first-child,
main:not(:has(.hero-section)) > section:first-of-type,
.subpage-main > .container:first-child,
main:not(:has(.hero-section)) > .container:first-child {
  padding-top: 0 !important;
}

.subpage-main .glass-section-card.subpage-hero-card,
main:not(:has(.hero-section)) .glass-section-card.subpage-hero-card {
  padding-top: 2.25rem;
}

/* First-Load Apple Glass Loader Screen */
.initial-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: rgba(244, 244, 238, 0.96);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.initial-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loader-logo {
  transform: scale(1.15);
}

.loader-line-track {
  width: 140px;
  height: 3px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.loader-line-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #3B82F6, #0066CC);
  border-radius: 999px;
  transform: translateX(-100%);
  animation: loaderFill 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes loaderFill {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(-20%); }
  100% { transform: translateX(0%); }
}

main {
  flex: 1;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

/* Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-tight {
  padding: 3.5rem 0;
}

/* Apple-Style Glass Section Container */
.glass-section-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 32px;
  padding: 4rem 3rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.05), 
              inset 0 1.5px 3px rgba(255, 255, 255, 0.95),
              inset 0 -1px 1px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.glass-section-card:hover {
  background: rgba(255, 255, 255, 0.78);
  border-color: #FFFFFF;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.07), 
              inset 0 2px 4px rgba(255, 255, 255, 1);
}

/* --------------------------------------------------------------------------
   3. Typography & Section Headers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: var(--accent-blue-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}

.heading-xl {
  font-size: 3.65rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0.75rem 0 1.25rem 0;
}

.heading-lg {
  font-size: 2.65rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0.5rem 0 1rem 0;
}

.heading-md {
  font-size: 1.6rem;
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.subheading {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 620px;
}

.text-muted {
  color: var(--text-secondary);
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.text-center {
  text-align: center;
}

.section-header.text-center .subheading {
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   4. Liquid Glass Buttons & Badges
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow, filter;
  white-space: nowrap;
  z-index: 1;
}

/* Green Fill Sweep Animation Layer (Left to Right) */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #047857 0%, #10B981 50%, #059669 100%);
  transform: translateX(-101%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
}

/* Ensure button text & icon remain above the animated green fill */
.btn > * {
  position: relative;
  z-index: 2;
}

/* Trigger green sweep from left to right on press, click, or submitting state */
.btn:active::before,
.btn.btn-submitting::before,
.btn.btn-success::before {
  transform: translateX(0%);
}

.btn-icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover .btn-icon-circle {
  transform: translateX(4px);
}

/* Liquid Glass Primary Button */
.btn-primary, .btn-accent {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.88) 0%, rgba(0, 82, 163, 0.85) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 25px -8px rgba(0, 102, 204, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.btn-primary:hover, .btn-accent:hover {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.98) 0%, rgba(0, 82, 163, 0.95) 100%);
  border-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 38px -8px rgba(0, 102, 204, 0.45), inset 0 1.5px 2px rgba(255, 255, 255, 0.7);
  filter: drop-shadow(0 6px 15px rgba(0, 102, 204, 0.2));
}

.btn-dark {
  background: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-inverse);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.3);
}

.btn-dark:hover {
  background: rgba(44, 44, 46, 0.95);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 35px -8px rgba(0, 0, 0, 0.38);
}

/* Liquid Glass Secondary Button */
.btn-secondary {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.07), inset 0 1.5px 2px rgba(255, 255, 255, 1);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.84375rem;
}

/* Verification Pills */
.verify-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  background-color: #FFFBEB;
  color: #B45309;
  border: 1px solid #FCD34D;
  border-radius: var(--radius-pill);
  font-size: 0.725rem;
  font-weight: 500;
}

.tag-verified {
  background-color: #ECFDF5;
  color: #047857;
  border-color: #A7F3D0;
}

/* --------------------------------------------------------------------------
   5. Floating Glass Pill Header & Navigation Bar
   -------------------------------------------------------------------------- */
.header-wrapper {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0.5rem 1rem;
  pointer-events: none;
  transition: top 0.3s ease;
}

.header-pill {
  width: 100%;
  max-width: 1400px;
  height: 60px;
  background: #FFFFFF;
  border-radius: 9999px;
  box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.09), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  pointer-events: auto;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-wrapper.scrolled .header-pill {
  box-shadow: 0 16px 40px -5px rgba(0, 0, 0, 0.13), 0 4px 12px -2px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* MEDOVAQ CHEMICAL Brand Logo Typography */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  white-space: nowrap;
  text-decoration: none;
}

.brand-logo .logo-text {
  font-weight: 800;
  color: #111111;
  letter-spacing: -0.03em;
}

.brand-logo .logo-square {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #0066CC;
  border-radius: 2px;
  margin-left: 2px;
  margin-right: 0.4rem;
}

.brand-logo .sub-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #666666;
  text-transform: uppercase;
  padding-left: 0.4rem;
  border-left: 1px solid #D1D1D6;
}

/* Navigation Links */
.nav-links-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  position: relative;
  z-index: 2;
}

.nav-active-pill {
  position: absolute;
  background: var(--accent-blue, #0066CC);
  border-radius: 9999px;
  pointer-events: none;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, width, left;
  backface-visibility: hidden;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.35);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.nav-link:hover {
  color: #ffffff !important;
}

.nav-link.active {
  color: #ffffff;
  font-weight: 700;
}

/* Ensure active link stays visible when morphing pill moves to another hovered link */
.nav-links:hover .nav-link.active:not(:hover) {
  color: #0066CC !important;
  font-weight: 700;
}

/* Nomad Distinct Blue Sale Link */
.nav-link.nav-sale {
  color: #0066CC !important;
  font-weight: 700;
}

.nav-link.nav-sale:hover {
  color: #004499 !important;
  text-decoration: underline;
}

/* Right Utility Actions Group */
.nav-actions-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  position: relative;
}

.country-dropdown-wrapper {
  position: relative;
}

.nav-country-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  color: #18181b;
  transition: background-color 0.2s ease, color 0.2s ease;
  backface-visibility: hidden;
}

.nav-country-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #000000;
}

.country-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: 220px;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.12);
  padding: 0.6rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 1020;
}

.country-dropdown-menu.active {
  display: flex;
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-header {
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #8E8E93;
  text-transform: uppercase;
  padding: 0.4rem 0.6rem;
}

.currency-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.5rem 0.6rem;
  background: none;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #18181b;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.currency-option:hover, .currency-option.active {
  background: rgba(0, 102, 204, 0.08);
  color: #0066CC;
  font-weight: 600;
}

/* Icon Buttons (Bell, Account, Search, Cart) */
.nav-action-item {
  position: relative;
}

.nav-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #18181b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease;
  backface-visibility: hidden;
}

.nav-icon-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #000000;
}

/* Stable Header Sample Button (No Vertical Jump/Jitter on Hover) */
.header-pill .btn {
  transition: background 0.25s ease, box-shadow 0.25s ease !important;
}

.header-pill .btn:hover {
  transform: none !important;
  box-shadow: 0 8px 22px -4px rgba(0, 102, 204, 0.45) !important;
}

.notification-badge-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  background-color: #EF4444;
  border-radius: 50%;
  border: 1.5px solid #FFFFFF;
}

.cart-count-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #0066CC;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 1.5px solid #FFFFFF;
}

/* Popover Menus for Bell & Account */
.nav-popover-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: 240px;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.12);
  padding: 0.85rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 1020;
}

.nav-popover-menu.active {
  display: flex;
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.popover-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8E8E93;
  margin-bottom: 0.25rem;
}

.popover-item {
  font-size: 0.835rem;
  color: #3f3f46;
  line-height: 1.4;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f4f4f5;
}

.popover-item:last-child {
  border-bottom: none;
}

.popover-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #0066CC;
  text-decoration: none;
  padding: 0.3rem 0;
}

.popover-link:hover {
  text-decoration: underline;
}

/* Search Overlay Modal */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

.search-overlay.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.search-modal-card {
  width: 90%;
  max-width: 640px;
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #F4F4EE;
  padding: 0.85rem 1.25rem;
  border-radius: 16px;
}

.search-input-wrapper input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-weight: 500;
  color: #111111;
}

.close-search-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #71717a;
}

.search-suggestions {
  margin-top: 1.25rem;
  padding: 0 0.5rem;
}

.suggestion-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: #a1a1aa;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

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

.search-tag {
  background: #F1F1EE;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #27272a;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-tag:hover {
  background: #0066CC;
  color: #FFFFFF;
}

/* Cart Slide-Out Drawer */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  justify-content: flex-end;
}

.cart-drawer-overlay.active {
  display: flex;
}

.cart-drawer-card {
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #FFFFFF;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  animation: slideLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideLeft {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e4e4e7;
}

.close-cart-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
}

.cart-drawer-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.cart-empty-state {
  text-align: center;
  color: #71717a;
}

.cart-empty-state svg {
  margin-bottom: 1rem;
  color: #a1a1aa;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-primary);
}


/* --------------------------------------------------------------------------
   6. Homepage Hero Section (SS Inspired Layout)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   6. Homepage Hero Showcase Section
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   6. Homepage Hero Section (SS Inspired Layout)
   -------------------------------------------------------------------------- */
.hero-section {
  height: 100vh;
  min-height: 650px;
  position: relative;
  background-color: var(--bg-main);
  padding: 0;
  overflow: hidden;
}

.hero-video-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.98) contrast(1.02);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(244, 244, 238, 0.45) 0%, rgba(244, 244, 238, 0.25) 50%, rgba(244, 244, 238, 0.85) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}

.hero-split-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  pointer-events: auto;
}

.hero-left, .hero-right, .hero-bottom-item {
  opacity: 0;
  will-change: transform, opacity, filter;
}

@keyframes heroEntranceLeft {
  0% {
    opacity: 0;
    transform: translateX(-40px) translateY(10px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0);
    filter: blur(0px);
  }
}

@keyframes heroEntranceRight {
  0% {
    opacity: 0;
    transform: translateX(40px) translateY(10px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0);
    filter: blur(0px);
  }
}

@keyframes heroEntranceUp {
  0% {
    opacity: 0;
    transform: translateY(25px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

body.loader-finished .hero-left {
  animation: heroEntranceLeft 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

body.loader-finished .hero-right {
  animation: heroEntranceRight 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

body.loader-finished .hero-bottom-item {
  animation: heroEntranceUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.loader-finished .hero-bottom-item:nth-child(1) { animation-delay: 0.45s; }
body.loader-finished .hero-bottom-item:nth-child(2) { animation-delay: 0.55s; }
body.loader-finished .hero-bottom-item:nth-child(3) { animation-delay: 0.65s; }
body.loader-finished .hero-bottom-item:nth-child(4) { animation-delay: 0.75s; }

.heading-display {
  font-size: 5.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin: 0.5rem 0;
}

.hero-bottom-bar {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 1.5rem;
  pointer-events: auto;
}

.hero-bottom-item {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-bottom-item .accent {
  color: var(--accent-blue);
  margin-right: 0.5rem;
}

.eyebrow-accent {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
}

.hero-content {
  max-width: 600px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.hero-stat-pill-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.5rem;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border-dark);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
}

.hero-left, .hero-right, .hero-bottom-item {
  opacity: 0;
  will-change: transform, opacity, filter;
}

@keyframes heroEntranceLeft {
  0% {
    opacity: 0;
    transform: translateX(-40px) translateY(10px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0);
    filter: blur(0px);
  }
}

@keyframes heroEntranceRight {
  0% {
    opacity: 0;
    transform: translateX(40px) translateY(10px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0);
    filter: blur(0px);
  }
}

@keyframes heroEntranceUp {
  0% {
    opacity: 0;
    transform: translateY(25px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

.hero-mobile-flow, .hero-bottom-item {
  opacity: 0;
  will-change: transform, opacity, filter;
}

body.loader-finished .hero-mobile-flow {
  animation: heroEntranceUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

body.loader-finished .hero-bottom-item {
  animation: heroEntranceUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.loader-finished .hero-bottom-item:nth-child(1) { animation-delay: 0.45s; }
body.loader-finished .hero-bottom-item:nth-child(2) { animation-delay: 0.55s; }
body.loader-finished .hero-bottom-item:nth-child(3) { animation-delay: 0.65s; }
body.loader-finished .hero-bottom-item:nth-child(4) { animation-delay: 0.75s; }

.heading-display {
  font-size: 5.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin: 0.5rem 0;
}

.hero-bottom-bar {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 1.5rem;
  pointer-events: auto;
}

.hero-bottom-item {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-bottom-item .accent {
  color: var(--accent-blue);
  margin-right: 0.5rem;
}

.eyebrow-accent {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
}

.hero-content {
  max-width: 600px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

/* Floating Stat Pills Card under Hero Text */
.hero-stat-pill-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.5rem;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border-dark);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
}

.stat-item-mini {
  display: flex;
  flex-direction: column;
}

.stat-item-mini .val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.stat-item-mini .lbl {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 28px;
  background-color: #E5E5E0;
}

/* Hero Right Visual Card styles removed */

.floating-glass-tag {
  position: absolute;
  padding: 0.6rem 1.1rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tag-top-right {
  top: 1.25rem;
  right: 1.25rem;
}

.tag-bottom-left {
  bottom: 1.25rem;
  left: 1.25rem;
}

/* --------------------------------------------------------------------------
   7. Editorial Statement Card Banner
   -------------------------------------------------------------------------- */
.editorial-banner-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.03), inset 0 1px 1.5px rgba(255, 255, 255, 0.9);
  max-width: 820px;
  margin: 0 auto;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-banner-card h2 {
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  max-width: 720px;
  margin: 0 auto 1.25rem auto;
}

/* --------------------------------------------------------------------------
   8. 6-Card Application Grid (Frosted Glass Base & Frosted Blue Glass Hover)
   -------------------------------------------------------------------------- */
.apps-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.app-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.03), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, filter, backdrop-filter;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Mouse Hover Effect: Transform ANY card into Frosted Mineral Blue Glass with Motion Blur! */
.app-card:hover {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.94) 0%, rgba(0, 82, 163, 0.9) 100%);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 25px 50px -10px rgba(0, 102, 204, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  transform: translateY(-7px) scale(1.018);
  filter: drop-shadow(0 12px 24px rgba(0, 102, 204, 0.18));
  color: #FFFFFF;
}

.app-card:hover .app-card-num {
  color: rgba(255, 255, 255, 0.45);
}

.app-card:hover .app-card-title {
  color: #FFFFFF;
}

.app-card:hover .app-card-desc {
  color: rgba(255, 255, 255, 0.92);
}

.app-card:hover .app-card-tag {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}

.app-card:hover .app-card-link {
  color: #FFFFFF;
}

.app-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.app-card-num {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 300;
  color: var(--text-tertiary);
  line-height: 1;
}

.app-card-tag {
  font-size: 0.725rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.app-card-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
}

.app-card-desc {
  font-size: 0.90625rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.app-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-blue);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   9. Why Choose Us / Stats Split Section (SS Style)
   -------------------------------------------------------------------------- */
.stats-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.stats-visual-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border-dark);
  padding: 3rem;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.04);
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stats-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.feature-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
}

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

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-box .number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-box .number .unit {
  font-size: 1.75rem;
  color: var(--accent-blue);
}

.stat-box .title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.stat-box .desc {
  font-size: 0.84375rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   10. Technical Specification Tables (product.html)
   -------------------------------------------------------------------------- */
.specs-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border-dark);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  margin-bottom: 2.75rem;
}

.specs-card-header {
  padding: 1.5rem 2rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--glass-border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.specs-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.specs-table-container {
  overflow-x: auto;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.specs-table th {
  padding: 1.1rem 2rem;
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--glass-border-dark);
}

.specs-table td {
  padding: 1.15rem 2rem;
  font-size: 0.9375rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--glass-border-dark);
  vertical-align: middle;
}

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

.specs-table tr:hover td {
  background-color: rgba(248, 248, 246, 0.6);
}

.param-name {
  font-weight: 600;
  color: var(--text-primary);
  width: 30%;
}

.param-value {
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.55;
}

.param-status {
  width: 22%;
}

/* Status & Verification Badges */
.verify-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

.verify-tag.tag-verified {
  background: var(--accent-blue-light);
  color: var(--accent-blue);
}

.verify-tag.tag-success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.verify-tag.tag-amber {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
}

.verify-tag.tag-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

/* Clean Manufacturer Notice Card */
.mfg-notice-card {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  margin-bottom: 2.75rem;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.03);
}

.mfg-notice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.mfg-notice-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.mfg-notice-text strong {
  font-weight: 600;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .specs-card-header {
    padding: 1.25rem 1.25rem;
  }
  .specs-table th, .specs-table td {
    padding: 0.85rem 1.15rem;
    font-size: 0.875rem;
  }
  .param-name {
    width: 38%;
  }
  .mfg-notice-card {
    padding: 1.5rem 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   11. Forms & Modals
   -------------------------------------------------------------------------- */
.inquiry-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border-dark);
  padding: 3.5rem;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.04);
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.84375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background-color: var(--bg-main);
  border: 1px solid #E5E5E0;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  background-color: #FFFFFF;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.form-select {
  cursor: pointer;
  appearance: auto;
}

.form-select option {
  background-color: #FFFFFF;
  color: #111111;
  padding: 0.5rem;
}

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

/* Modal System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.18);
  width: 100%;
  max-width: 560px;
  padding: 2.5rem;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-tertiary);
  padding: 0.5rem;
}

.modal-close:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   12. Footer Architecture (Inspired by CodeRabbit Editorial Dark Glass Layout)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   12. Footer Architecture (Light Theme Editorial Layout with Black Watermark)
   -------------------------------------------------------------------------- */
.footer-editorial {
  background: linear-gradient(180deg, #F4F4EE 0%, #EAEAE0 100%);
  color: var(--text-primary);
  padding: 5rem 0 2rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 3.5rem;
}

.footer-top-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84375rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-selector:hover {
  background: #FFFFFF;
  color: var(--text-primary);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.footer-socials a {
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-socials a:hover {
  color: var(--accent-blue);
  transform: translateY(-2px);
}

.footer-main-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.5fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue); /* MEDOVAQ Mineral Blue Accent */
  margin-bottom: 1.5rem;
}

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

.footer-nav-list a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-nav-list a:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

.footer-info-item {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

/* Subscribe Box Column */
.footer-subscribe-col {
  display: flex;
  flex-direction: column;
}

.subscribe-desc {
  font-size: 0.84375rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.footer-subscribe-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.subscribe-input {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.1rem;
  font-size: 0.84375rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.subscribe-input::placeholder {
  color: var(--text-tertiary);
}

.subscribe-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(0, 102, 204, 0.2);
}

.subscribe-privacy {
  font-size: 0.725rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.subscribe-privacy a {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* Massive Giant Black Outline Watermark Typography at Bottom */
.footer-watermark-container {
  width: 100%;
  overflow: hidden;
  text-align: center;
  padding: 1.5rem 0 0rem 0;
  user-select: none;
  pointer-events: none;
}

.footer-watermark-text {
  font-family: var(--font-sans);
  font-size: 13.5vw;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.8px rgba(17, 17, 17, 0.14); /* Black Stroke Outline */
  text-transform: uppercase;
  display: block;
  width: 100%;
  transition: all 0.5s ease;
}

.footer-sub-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.775rem;
  color: var(--text-tertiary);
}

/* --------------------------------------------------------------------------
   13. Responsive Media Queries & Mobile System
   -------------------------------------------------------------------------- */

/* Mobile Nav Backdrop Overlay */
.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Base Responsive Touch Target Standards */
button, a, input, select, textarea {
  touch-action: manipulation;
}

input, select, textarea {
  font-size: 16px !important; /* Prevents auto-zoom on iOS safari input focus */
}

/* Specs & Data Table Horizontal Scroll Polish */
.specs-table-container, .table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.specs-table, .data-table {
  min-width: 580px;
}

/* 1024px Breakpoint (Laptops & Large Tablets) */
@media (max-width: 1024px) {
  .heading-display { font-size: clamp(2.5rem, 6.5vw, 4.5rem); }
  .heading-xl { font-size: clamp(2.1rem, 5vw, 3.2rem); }
  .heading-lg { font-size: clamp(1.75rem, 4vw, 2.3rem); }

  .hero-section, .hero-video-wrapper, .hero-text-overlay {
    height: auto;
    min-height: 100vh;
  }

  .hero-text-overlay {
    position: relative;
    padding-top: 105px;
    padding-bottom: 3.5rem;
  }

  .hero-split-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-bottom-bar {
    position: relative;
    bottom: auto;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .apps-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .stats-split-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-main-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* 992px Breakpoint (Tablet Navigation Morph & Mobile Drawer) */
@media (max-width: 992px) {
  .header-pill {
    padding: 0 1.25rem;
  }

  .nav-links-wrapper .nav-active-pill {
    display: none !important;
  }

  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
  }

  .mobile-nav-toggle:hover {
    background: rgba(0, 0, 0, 0.06);
  }

  .nav-links {
    position: fixed;
    top: calc(var(--nav-height) + 1.25rem);
    left: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: stretch;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.98);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .nav-links.mobile-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.15rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 14px;
    color: var(--text-primary);
  }

  .nav-link:hover, .nav-link.active {
    background: var(--accent-blue, #0066CC);
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
  }
}

/* 768px Breakpoint (Mobile Portrait & Compact Layouts) */
@media (max-width: 768px) {
  .header-wrapper {
    top: 0.5rem;
    padding: 0 0.5rem;
  }

  .header-pill {
    height: 54px;
    padding: 0 0.75rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .subpage-main,
  main:not(:has(.hero-section)) {
    padding-top: calc(54px + 0.85rem) !important;
  }

  .nav-actions-group {
    gap: 0.25rem;
  }

  .header-sample-btn {
    display: none !important; /* Hide header sample button on mobile so header pill fits cleanly without horizontal overflow */
  }

  .nav-country-btn {
    padding: 0.3rem 0.45rem;
    font-size: 0.825rem;
  }

  /* Tagline lower, positioned right above the buttons on mobile */
  .hero-right .heading-md {
    display: block !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    margin-top: 1.25rem !important;
    margin-bottom: 0.75rem !important;
    color: var(--text-primary) !important;
  }

  .hero-right .subheading {
    display: none !important;
  }

  /* Compact small hero buttons side-by-side */
  .hero-actions {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.65rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  .hero-actions .btn {
    width: auto !important;
    padding: 0.55rem 1.15rem !important;
    font-size: 0.8125rem !important;
  }

  .hero-actions .btn-icon-circle {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.75rem !important;
  }

  .hero-stat-pill-bar {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
    gap: 1rem;
    padding: 1rem;
  }

  .stat-divider {
    display: none;
  }

  .apps-card-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.85rem !important;
  }

  .apps-card-grid > * {
    grid-column: span 1 !important;
  }

  .app-card {
    padding: 1.15rem 0.85rem !important;
    min-height: auto !important;
    border-radius: 16px !important;
  }

  .app-card-title {
    font-size: 1rem !important;
    margin-bottom: 0.4rem !important;
  }

  .app-card-desc {
    font-size: 0.775rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.85rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .app-card-num {
    font-size: 1.5rem !important;
  }

  .app-card-header {
    margin-bottom: 0.85rem !important;
  }

  .app-card-tag {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.45rem !important;
  }

  .editorial-banner-card {
    padding: 1.5rem 1.15rem !important;
    border-radius: 18px !important;
  }

  .editorial-banner-card h2 {
    font-size: 1.05rem !important;
    line-height: 1.45 !important;
    margin-bottom: 1rem !important;
  }

  .stats-numbers-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .inquiry-card {
    padding: 2rem 1.25rem;
    border-radius: 20px;
  }

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

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

  .footer-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer-main-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-watermark-text {
    font-size: 16vw;
  }

  .footer-sub-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .medovaq-toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1.25rem;
  }

  .medovaq-toast {
    width: 100%;
    justify-content: center;
  }
}

/* 480px Breakpoint (Compact Mobile Devices / iPhones & Androids) */
@media (max-width: 480px) {
  .heading-display { font-size: clamp(1.95rem, 8vw, 2.8rem); }
  .heading-xl { font-size: clamp(1.75rem, 7vw, 2.3rem); }
  .heading-lg { font-size: clamp(1.45rem, 6vw, 1.95rem); }

  .brand-logo {
    font-size: 1.05rem;
  }

  .brand-logo .sub-tag {
    font-size: 0.55rem;
    padding-left: 0.25rem;
  }

  .nav-country-btn span:not(.flag-emoji) {
    display: none; /* Hide region text, show flag emoji on narrow phones */
  }

  .hero-stat-pill-bar {
    grid-template-columns: 1fr;
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-subscribe-form {
    flex-direction: column;
    gap: 0.65rem;
  }

  .subscribe-btn {
    width: 100%;
  }

  .search-modal-card, .modal-card {
    width: 94%;
    padding: 1.25rem;
    border-radius: 20px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .search-overlay {
    padding-top: 70px;
  }

  .footer-watermark-text {
    font-size: clamp(2.2rem, 13vw, 5rem) !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
  }
}

/* --------------------------------------------------------------------------
   Mobile-First Custom UI Cards System for Specs & Timelines
   -------------------------------------------------------------------------- */

/* Hide Mobile Spec Cards by Default on Desktop */
.specs-mobile-cards {
  display: none;
}

@media (max-width: 640px) {
  /* Hide desktop specs table on mobile screens to present custom mobile cards */
  .specs-table-desktop-view {
    display: none !important;
  }

  .specs-mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .spec-mobile-card {
    background: #FFFFFF;
    border: 1px solid var(--glass-border-dark);
    border-radius: 16px;
    padding: 1.15rem 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .spec-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .spec-mobile-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
  }

  .spec-mobile-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-blue);
    word-break: break-word;
  }
}

/* --------------------------------------------------------------------------
   14. Scroll Reveal Text Animations
   -------------------------------------------------------------------------- */
.reveal-text {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
  transform: translateY(30px);
}

.reveal-left {
  transform: translateX(-30px);
}

.reveal-right {
  transform: translateX(30px);
}

/* When the JS intersection observer adds this class, the element smoothly animates in */
.reveal-text.is-revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* --------------------------------------------------------------------------
   15. Scroll-Driven Animations (CSS Only)
   -------------------------------------------------------------------------- */
@supports (animation-timeline: scroll()) {
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-blue);
    transform-origin: 0 50%;
    z-index: 9999;
    animation: scale-progress linear both;
    animation-timeline: scroll(root);
  }

  @keyframes scale-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}

@supports (animation-timeline: view()) {
  .hero-visual-card,
  .editorial-banner-card,
  .glass-section-card,
  .app-card,
  .process-card,
  .bento-card,
  .value-prop-card,
  .product-img-placeholder {
    animation: pop-in-scroll linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 30%;
  }

  @keyframes pop-in-scroll {
    from {
      opacity: 0;
      transform: translateY(80px) scale(0.9);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

/* ==========================================================================
   16. World-Class UI/UX Subtle Micro-Interactions & Refined Polish
   ========================================================================== */

/* Ambient Radial Mesh Lighting */
body::after {
  content: '';
  position: fixed;
  top: -20vh;
  right: -10vw;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.045) 0%, rgba(244, 244, 238, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Custom Minimal Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 102, 204, 0.22);
  border-radius: 999px;
  border: 2px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 102, 204, 0.45);
}

/* Text Selection Accent */
::selection {
  background: rgba(0, 102, 204, 0.16);
  color: var(--accent-blue);
}

/* Button Light-Sweep Shimmer & Active Physics */
.btn {
  position: relative;
  overflow: hidden;
}

.btn-primary::before, .btn-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover::before, .btn-accent:hover::before {
  left: 140%;
}

.btn:active, button:active, .app-card:active {
  transform: scale(0.97) !important;
}

/* Accessible Focus Ring */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible, .app-card:focus-visible {
  outline-offset: 4px;
  border-radius: var(--radius-pill);
}

/* Apple-Grade Floating Toast Notification System */
.medovaq-toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.medovaq-toast {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.4rem;
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.medovaq-toast.toast-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.medovaq-toast .toast-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 102, 204, 0.25);
  color: #3B82F6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}



/* Subtle Cursor Glow for Spotlight Cards */
.spotlight-card {
  position: relative;
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, -150px);
  left: var(--mouse-x, -150px);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 50%;
  z-index: 1;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card > * {
  position: relative;
  z-index: 2;
}

/* Logistics Route Card System */
.logistics-route-card {
  padding: 1.25rem 1.5rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.route-step {
  display: flex;
  flex-direction: column;
}

.route-city {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.route-desc {
  font-size: 0.775rem;
  color: var(--text-secondary);
}

.route-arrow {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-blue);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .logistics-route-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem 1.15rem;
  }

  .route-arrow {
    transform: rotate(90deg);
    align-self: center;
    margin: -0.2rem 0;
  }
}

/* 5-Stage Manufacturing Flow Card Enhancements */
.manufacturing-flow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.manufacturing-stage-card {
  min-height: 260px;
  padding: 1.75rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
}

.manufacturing-stage-card .stage-subtitle {
  transition: color 0.3s ease;
}

.manufacturing-stage-card:hover .stage-subtitle {
  color: #FFFFFF !important;
}

.manufacturing-stage-card:hover .text-muted {
  color: rgba(255, 255, 255, 0.85) !important;
}

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

@media (max-width: 768px) {
  .manufacturing-flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .manufacturing-flow-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   16. SSR Public Article Page & B2B Monograph Design System
   ========================================================================== */

/* 2-Column Responsive Layout */
.article-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .article-page-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.article-main-column {
  min-width: 0;
  max-width: 100%;
}

/* Breadcrumbs */
.article-breadcrumbs {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.article-breadcrumbs a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.article-breadcrumbs a:hover {
  text-decoration: underline;
}

.article-breadcrumbs .breadcrumb-separator {
  color: var(--text-tertiary);
  margin: 0 0.25rem;
}

.article-breadcrumbs .breadcrumb-current {
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
}

/* Article Header & Byline */
.article-header {
  margin-bottom: 2.5rem;
}

.article-title {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.75rem 0 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .article-title {
    font-size: 2.15rem;
  }
}

.article-byline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border-dark);
}

.article-byline time {
  color: var(--text-primary);
  font-weight: 500;
}

.byline-sep {
  color: var(--text-tertiary);
}

.byline-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-secondary);
}

/* Article Featured Image */
.article-featured-image {
  margin: 0 0 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border-dark);
  background: var(--bg-card);
}

.article-featured-image img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Article Content & Typography (~70ch measure) */
.article-content {
  max-width: 72ch;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #222224;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.75rem 0 1rem;
  line-height: 1.3;
  border-bottom: 1px solid var(--glass-border-dark);
  padding-bottom: 0.5rem;
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

.article-content h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
  line-height: 1.35;
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

.article-content h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.5rem 0 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--accent-blue);
  padding: 1rem 1.5rem;
  background: var(--bg-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
  margin: 2rem 0;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

.article-content ul,
.article-content ol {
  padding-left: 1.75rem;
  margin-bottom: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-content sub,
.article-content sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

.article-content sub {
  bottom: -0.25em;
}

.article-content sup {
  top: -0.5em;
}

.article-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-subtle);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--glass-border-dark);
}

.article-content pre {
  background: #1E1E1E;
  color: #D4D4D4;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.5;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  border: 1px solid var(--glass-border-dark);
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--glass-border-dark);
  margin: 2.5rem 0;
}

/* Horizontally Scrollable Responsive Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.table-responsive table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.925rem;
}

.table-responsive th {
  background: var(--bg-subtle);
  color: var(--text-tertiary);
  text-transform: uppercase;
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--glass-border-dark);
  text-align: left;
}

.table-responsive td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--glass-border-dark);
  color: var(--text-primary);
  vertical-align: top;
}

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

.table-responsive tr:hover td {
  background: rgba(0, 102, 204, 0.02);
}

/* Intro B2B Call-to-Action Card */
.article-intro-cta {
  margin: 2.25rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.cta-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.article-intro-cta h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.25rem;
  color: var(--text-primary);
}

.article-intro-cta p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0.2rem 0 0;
}

.intro-cta-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Scientific References List */
.article-references {
  margin-top: 3.5rem;
  border-top: 1px solid var(--glass-border-dark);
  padding-top: 2rem;
}

.article-references h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.references-list {
  padding-left: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.references-list li {
  margin-bottom: 0.5rem;
}

/* Chemical & Regulatory Disclaimer */
.article-disclaimer {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent-blue);
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.article-disclaimer strong {
  color: var(--text-primary);
}

/* "Reviewed by" Attribution Box */
.review-box {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.reviewer-avatar {
  font-size: 2rem;
  background: var(--accent-blue-light);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reviewer-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 0.05em;
  display: block;
}

.reviewer-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.2rem 0;
  color: var(--text-primary);
}

.reviewer-details {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Social Sharing Buttons */
.article-social-share {
  margin-top: 3rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--glass-border-dark);
  border-bottom: 1px solid var(--glass-border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.share-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.share-buttons-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border-dark);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.share-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-1px);
}

/* Previous / Next Article Navigation */
.article-nav-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 640px) {
  .article-nav-prev-next {
    grid-template-columns: 1fr;
  }
}

.nav-prev-card,
.nav-next-card {
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.nav-next-card {
  text-align: right;
}

.nav-prev-card:hover,
.nav-next-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.05);
  transform: translateY(-2px);
}

.nav-direction {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

/* Related Products Quick Card */
.article-products-card {
  margin-top: 3.5rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.products-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.product-quick-link {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

.product-quick-link:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.05);
  transform: translateY(-2px);
}

.product-quick-link strong {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.product-quick-link span {
  font-size: 0.8rem;
  color: var(--accent-blue);
}

/* Terminal Bottom B2B Call-to-Action */
.article-bottom-cta {
  margin-top: 3.5rem;
  background: var(--accent-blue);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  color: #FFFFFF;
  text-align: center;
}

.article-bottom-cta .cta-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.article-bottom-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.article-bottom-cta p {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 620px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

.bottom-cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-white-pill {
  background: #FFFFFF;
  color: var(--accent-blue);
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-white-pill:hover {
  background: #F4F4EE;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-fast);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFFFFF;
}

/* Related Articles Grid */
.article-related-section {
  margin-top: 4rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.related-card {
  padding: 1.25rem;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border-dark);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.related-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.06);
}

.related-category {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.related-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.related-link-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue);
}

/* Sticky Sidebar (320px) */
.article-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .article-sidebar {
    position: static;
    margin-top: 2rem;
  }
}

.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

/* Auto-Generated Table of Contents (TOC) */
.toc-anchor {
  display: block;
  position: relative;
  top: calc(-1 * (var(--nav-height) + 1.5rem));
  visibility: hidden;
}

.toc-card {
  max-height: calc(100vh - var(--nav-height) - 4rem);
  overflow-y: auto;
}

.toc-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border-dark);
}

.toc-icon {
  font-size: 1.15rem;
}

.toc-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.toc-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  margin-bottom: 0.5rem;
}

.toc-item.toc-level-3 {
  padding-left: 1rem;
}

.toc-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  transition: color var(--transition-fast);
}

.toc-link:hover,
.toc-link.active {
  color: var(--accent-blue);
  font-weight: 600;
}

/* Sidebar B2B CTA Card */
.sidebar-cta-card {
  background: var(--bg-card);
}

.sidebar-badge {
  display: inline-block;
  background: var(--accent-blue-light);
  color: var(--accent-blue);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.sidebar-cta-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.sidebar-cta-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.sidebar-cta-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.sidebar-coa-btn {
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

/* Sidebar Products Widget */
.sidebar-widget-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--glass-border-dark);
}

.sidebar-products-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-products-list a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

.sidebar-products-list a:hover strong {
  color: var(--accent-blue);
}

.sidebar-products-list strong {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.sidebar-products-list span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   17. Blog Listing (/blog) & Category/Tag Archive Controls
   ========================================================================== */
.blog-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-lg);
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.category-pill {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border-dark);
  transition: all var(--transition-fast);
}

.category-pill:hover,
.category-pill.active {
  background: var(--accent-blue);
  color: #FFFFFF;
  border-color: var(--accent-blue);
}

.blog-search-form {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.5rem 0.25rem 1rem;
  gap: 0.5rem;
}

.blog-search-input {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  width: 220px;
}

.blog-search-btn {
  background: var(--accent-blue);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.blog-search-btn:hover {
  background: var(--accent-blue-hover);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 102, 204, 0.08);
}

.blog-card-thumb {
  width: 100%;
  height: 200px;
  background: var(--bg-subtle);
  overflow: hidden;
  position: relative;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.04);
}

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

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.blog-card-badge {
  background: var(--accent-blue-light);
  color: var(--accent-blue);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.blog-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border-dark);
  font-size: 0.85rem;
}

.blog-card-author {
  color: var(--text-secondary);
}

.blog-card-link {
  color: var(--accent-blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Pagination Bar */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}

.pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--glass-border-dark);
  transition: all var(--transition-fast);
}

.pagination-item:hover,
.pagination-item.active {
  background: var(--accent-blue);
  color: #FFFFFF;
  border-color: var(--accent-blue);
}

.pagination-item.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ==========================================================================
   Mobile fixes + small finishing touches (added 2026-11-24)
   Everything below is additive: delete this block to go back to the old look.
   ========================================================================== */

/* --- Small finishing touches (all screen sizes) ------------------------- */

/* Headings break into even lines instead of leaving one word alone */
h1, h2, h3, .heading-xl, .heading-lg, .heading-md, .heading-display {
  text-wrap: balance;
}
p, li, .subheading {
  text-wrap: pretty;
}

/* Section labels: plain small caps with a short rule instead of a tinted pill */
.eyebrow {
  background: none;
  padding: 0;
  border-radius: 0;
  gap: 0.6rem;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.7;
  flex-shrink: 0;
}
.text-center .eyebrow::before,
.section-header.text-center .eyebrow::before {
  display: none;
}

/* Slightly tighter corners and calmer shadows - less "floating glass" */
.glass-section-card {
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -18px rgba(0, 0, 0, 0.12);
}
.glass-section-card:hover {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 14px 36px -18px rgba(0, 0, 0, 0.14);
}
.stats-visual-card {
  border-radius: 22px;
}

/* Numbers line up in stats and tables */
.stat-box .number,
.specs-table td,
.stats-table td,
.app-card-num {
  font-variant-numeric: tabular-nums;
}

/* Links inside running text look like links */
main p a:not(.btn) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 102, 204, 0.35);
}
main p a:not(.btn):hover {
  text-decoration-color: currentColor;
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Touch screens: no sticky hover lifts after a tap */
@media (hover: none) {
  .app-card:hover,
  .blog-card:hover,
  .glass-section-card:hover,
  .btn:hover {
    transform: none !important;
  }
  .btn:hover .btn-icon-circle {
    transform: none;
  }
}

/* Scrollable spec tables scroll smoothly on phones */
[style*="overflow-x: auto"],
[style*="overflow-x:auto"] {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* --- Tablet & phone (768px and below) ---------------------------------- */
@media (max-width: 768px) {
  .container,
  .container-narrow {
    padding: 0 1rem;
  }

  .section {
    padding: 3.5rem 0;
  }
  .section-tight {
    padding: 2.25rem 0;
  }
  .section-header {
    margin-bottom: 2rem;
  }

  /* Hero: use the real visible screen height (no jump when the address bar hides) */
  .hero-section,
  .hero-video-wrapper,
  .hero-text-overlay {
    min-height: 100svh;
  }

  /* Big cards: give the content its width back */
  .glass-section-card,
  .glass-section-card[style*="padding"] {
    padding: 2rem 1.15rem !important;
    border-radius: 20px;
  }
  .stats-visual-card,
  .stats-visual-card[style*="padding"] {
    padding: 1.6rem 1.15rem !important;
    min-height: 0;
    border-radius: 18px;
  }
  .inquiry-card {
    padding: 1.75rem 1.1rem;
  }

  /* Inline card paddings written for desktop */
  main [style*="padding: 3rem 2rem"],
  main [style*="padding: 2.75rem"],
  main [style*="padding: 2.5rem"] {
    padding: 1.4rem 1.15rem !important;
  }
  main [style*="padding: 2rem"]:not(.btn) {
    padding: 1.25rem 1.1rem !important;
  }

  /* Inline auto-fit grids with large minimums overflow on phones */
  main [style*="minmax(320px"],
  main [style*="minmax(280px"],
  main [style*="minmax(260px"],
  main .apps-card-grid[style*="minmax(320px"],
  main .apps-card-grid[style*="minmax(280px"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Badges and buttons may wrap instead of pushing the page sideways */
  .verify-tag {
    white-space: normal;
    text-align: left;
    line-height: 1.35;
  }
  .btn {
    white-space: normal;
    text-align: center;
  }

  /* Blog: search field and cards fit the screen */
  .blog-search-form {
    width: 100%;
    max-width: 100%;
  }
  .blog-search-input {
    flex: 1;
    min-width: 0;
    width: auto;
    font-size: 16px; /* stops iOS zooming into the field */
  }
  .blog-search-btn {
    flex-shrink: 0;
    padding: 0.55rem 1rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Form fields at 16px so iPhones don't zoom in on focus */
  input,
  select,
  textarea {
    font-size: 16px;
  }

  /* Big enough to tap */
  .mobile-nav-toggle {
    width: 44px;
    height: 44px;
  }

  .stat-box .number {
    font-size: 2.4rem;
  }
  .stat-box .number .unit {
    font-size: 1.4rem;
  }

  /* Long words / CAS numbers / URLs never break the layout */
  main h1, main h2, main h3, main h4, main p, main td, main li {
    overflow-wrap: anywhere;
  }
}

/* --- Phones (640px and below) ------------------------------------------ */
@media (max-width: 640px) {
  /* Read left-to-right on small screens instead of everything centered */
  .section-header.text-center {
    text-align: left;
  }
  .section-header.text-center .subheading {
    margin: 0;
  }

  .heading-display {
    letter-spacing: -0.03em;
    line-height: 1.05;
  }

  /* About page metric table: one tidy column of tiles */
  .stats-table {
    border-spacing: 0 !important;
  }
  .stats-table tbody[style*="grid"] {
    gap: 0.75rem !important;
  }
  .stats-table tbody tr {
    padding: 1rem !important;
  }
  .stats-table tbody td:first-child {
    font-size: 1.6rem !important;
  }
}

/* --- Small phones (400px and below) ------------------------------------ */
@media (max-width: 400px) {
  .apps-card-grid {
    gap: 0.65rem !important;
  }
  .stats-table tbody[style*="grid"] {
    grid-template-columns: 1fr !important;
  }
  .hero-actions .btn {
    padding: 0.55rem 0.95rem !important;
  }
}

/* ==========================================================================
   Official Medovaq logo (added 2026-11-24)
   Replaces the text-built "Medovaq ■ | CHEMICAL" mark with the real logo file.
   The text stays in the HTML for screen readers and search engines.
   Delete this block to go back to the old text logo.
   ========================================================================== */
.brand-logo {
  gap: 0;
}

.brand-logo::before {
  content: '';
  display: block;
  height: 26px;
  aspect-ratio: 438 / 84;
  background: url('assets/medovaq-logo.png') no-repeat left center / contain;
  background-image: image-set(
    url('assets/medovaq-logo.webp') type('image/webp'),
    url('assets/medovaq-logo.png') type('image/png')
  );
  margin-top: 3px; /* the image includes the "q" tail, so nudge it to sit level */
}

.brand-logo .logo-text,
.brand-logo .logo-square,
.brand-logo .sub-tag {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.brand-logo.footer-logo::before {
  height: 30px;
}

.brand-logo.loader-logo::before {
  height: 34px;
}

@media (max-width: 768px) {
  .brand-logo::before {
    height: 22px;
    margin-top: 2px;
  }
  .brand-logo.footer-logo::before {
    height: 26px;
  }
}
