/* ============================================================
   LANKA EXPORT GUIDE — Main Design System
   Premium B2B Export Intelligence Platform
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --color-primary: #0f2744;
  --color-primary-dark: #071929;
  --color-primary-light: #1a3a5c;
  --color-secondary: #16a34a;
  --color-secondary-dark: #15803d;
  --color-secondary-light: #22c55e;
  --color-accent: #d97706;
  --color-accent-light: #f59e0b;
  --color-accent-pale: #fef3c7;

  /* Neutral Colors */
  --color-white: #ffffff;
  --color-bg: #f8fafc;
  --color-bg-alt: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-heading: #0f172a;

  /* Category Colors */
  --cat-apparel: #4f46e5;
  --cat-tea: #92400e;
  --cat-coconut: #065f46;
  --cat-spices: #b91c1c;
  --cat-rubber: #1e40af;
  --cat-gems: #6d28d9;
  --cat-seafood: #0284c7;
  --cat-ceramics: #78350f;
  --cat-electronics: #374151;
  --cat-industrial: #1f2937;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
  --shadow-card: 0 2px 12px rgba(15,39,68,0.08);
  --shadow-hover: 0 8px 32px rgba(15,39,68,0.14);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'Fira Code', 'Cascadia Code', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Container */
  --container-max: 1280px;
  --container-wide: 1440px;
  --container-narrow: 900px;

  /* Navigation */
  --nav-height: 72px;
  --nav-bg: rgba(255,255,255,0.97);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--color-heading);
}

p {
  line-height: var(--leading-relaxed);
}

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

.container--wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

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

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

.section--lg {
  padding: 96px 0;
}

.section--bg {
  background-color: var(--color-bg);
}

.section--dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--auto-sm { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

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

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
  transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: var(--text-lg);
}

.navbar__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.navbar__logo-name {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.navbar__logo-tag {
  font-size: 10px;
  font-weight: 500;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex: 1;
}

.navbar__item {
  position: relative;
}

.navbar__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--color-primary);
  background: var(--color-bg);
}

.navbar__link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.navbar__item:hover .navbar__link svg {
  transform: rotate(180deg);
}

/* Dropdown */
.navbar__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  z-index: 100;
}

.navbar__item:hover .navbar__dropdown,
.navbar__item:focus-within .navbar__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar__dropdown a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px var(--space-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.navbar__dropdown a:hover {
  background: var(--color-bg);
  color: var(--color-primary);
  padding-left: 20px;
}

.navbar__dropdown a span.badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 6px;
  background: var(--color-accent-pale);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  font-weight: 600;
}

.navbar__dropdown--wide {
  min-width: 320px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.navbar__search-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  border: 1px solid var(--color-border);
}

.navbar__search-btn:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

/* Mobile nav */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.navbar__hamburger span {
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
  display: block;
}

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

.navbar__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-lg) var(--space-xl);
  z-index: 999;
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}

.navbar__mobile.open {
  display: block;
}

.navbar__mobile a {
  display: block;
  padding: 12px 0;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-light);
}

.navbar__mobile a:hover {
  color: var(--color-primary);
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero {
  padding-top: calc(var(--nav-height) + var(--space-4xl));
  padding-bottom: var(--space-4xl);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, #1a4a6b 100%);
  position: relative;
  overflow: hidden;
  color: var(--color-white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--color-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero--bg {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.hero--green {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.hero h1 em {
  font-style: normal;
  color: var(--color-accent-light);
}

.hero p {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-2xl);
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
}

.hero__meta-item strong {
  color: var(--color-white);
  font-weight: 600;
}

.hero__badges {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
  padding-top: var(--space-3xl);
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-accent-light);
  display: block;
}

.hero__stat-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

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

.section-header--center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-3xl);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-md);
}

.section-title em {
  font-style: normal;
  color: var(--color-secondary);
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1;
}

.btn--primary {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

.btn--primary:hover {
  background: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(22,163,74,0.35);
}

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

.btn--navy:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(15,39,68,0.3);
}

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

.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}

.btn--outline-dark {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

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

.btn--accent:hover {
  background: #b45309;
  border-color: #b45309;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(217,119,6,0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  background: var(--color-bg);
  border-color: var(--color-text-muted);
}

.btn--sm {
  padding: 8px 16px;
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 16px 32px;
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--color-border-light);
}

.card__image {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-border) 100%);
  overflow: hidden;
  position: relative;
}

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

.card:hover .card__image img {
  transform: scale(1.04);
}

.card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  color: var(--color-text-light);
  font-size: var(--text-xs);
  text-align: center;
  padding: var(--space-lg);
}

.card__badge-wrap {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  z-index: 2;
}

.card__body {
  padding: var(--space-xl);
}

.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.card__category {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-secondary);
}

.card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
  line-height: var(--leading-snug);
}

.card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-lg);
}

.card__stats {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-light);
}

.card__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card__stat-value {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-heading);
}

.card__stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-xl);
  border-top: 1px solid var(--color-border-light);
  background: var(--color-bg);
}

/* Product Card Variant */
.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.product-card__header {
  padding: var(--space-xl) var(--space-xl) var(--space-md);
  border-bottom: 1px solid var(--color-border-light);
}

.product-card__number {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
}

.product-card__name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
}

.product-card__value {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-secondary);
}

.product-card__growth {
  font-size: var(--text-xs);
  color: var(--color-secondary);
  font-weight: 600;
}

/* Category Card */
.category-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
}

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

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

.category-card:hover .category-card__bg {
  transform: scale(1.05);
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.category-card__content {
  position: relative;
  z-index: 1;
  padding: var(--space-xl);
  color: var(--color-white);
}

.category-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.category-card__name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 4px;
}

.category-card__count {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
}

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge--green {
  background: #dcfce7;
  color: #15803d;
}

.badge--blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge--amber {
  background: #fef3c7;
  color: #d97706;
}

.badge--red {
  background: #fee2e2;
  color: #dc2626;
}

.badge--purple {
  background: #ede9fe;
  color: #7c3aed;
}

.badge--navy {
  background: #e0e7ff;
  color: #3730a3;
}

.badge--trending {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

.badge--hot {
  background: linear-gradient(135deg, #fee2e2, #fca5a5);
  color: #991b1b;
}

.badge--new {
  background: linear-gradient(135deg, #dcfce7, #86efac);
  color: #166534;
}

/* ============================================================
   FACT BOXES & EXPORT DATA
   ============================================================ */
.fact-box {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.fact-box--accent {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-color: #fde68a;
}

.fact-box--green {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-color: #86efac;
}

.fact-box--navy {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: #93c5fd;
}

.fact-box__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.fact-box__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.fact-box__value {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-heading);
  line-height: 1;
  margin-bottom: 4px;
}

.fact-box__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.fact-box__trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-secondary);
  margin-top: var(--space-sm);
}

/* Buyer Fact Sheet */
.fact-sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.fact-sheet-table tr {
  border-bottom: 1px solid var(--color-border-light);
}

.fact-sheet-table tr:last-child {
  border-bottom: none;
}

.fact-sheet-table th {
  width: 40%;
  padding: 12px var(--space-md);
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: left;
  background: var(--color-bg);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fact-sheet-table td {
  padding: 12px var(--space-md);
  color: var(--color-text);
  font-weight: 500;
}

/* ============================================================
   STATISTICS COUNTERS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  background: var(--color-white);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
}

.stat-item__value {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--color-primary);
  display: block;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-item__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ============================================================
   ACCORDION / FAQ
   ============================================================ */
.accordion {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.accordion__item {
  border-bottom: 1px solid var(--color-border);
}

.accordion__item:last-child {
  border-bottom: none;
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-heading);
  cursor: pointer;
  background: var(--color-white);
  transition: background var(--transition-fast);
  text-align: left;
}

.accordion__trigger:hover {
  background: var(--color-bg);
}

.accordion__icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
  color: var(--color-text-muted);
}

.accordion__item.open .accordion__icon {
  background: var(--color-primary);
  color: white;
  transform: rotate(45deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion__item.open .accordion__content {
  max-height: 600px;
}

.accordion__body {
  padding: 0 var(--space-xl) var(--space-xl);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-bar {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-bar__input {
  width: 100%;
  padding: 16px 56px 16px 24px;
  font-size: var(--text-base);
  font-weight: 500;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-heading);
  outline: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.search-bar__input::placeholder {
  color: var(--color-text-light);
}

.search-bar__input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
}

.search-bar__btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--color-secondary);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.search-bar__btn:hover {
  background: var(--color-secondary-dark);
}

/* ============================================================
   INQUIRY / CONTACT FORMS
   ============================================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-label span {
  color: #ef4444;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-fast);
  line-height: var(--leading-normal);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.08);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.breadcrumb a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb__sep {
  color: var(--color-text-light);
  font-size: var(--text-xs);
}

.breadcrumb__current {
  color: var(--color-text);
  font-weight: 500;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.data-table thead {
  background: var(--color-primary);
  color: white;
}

.data-table thead th {
  padding: 14px var(--space-lg);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  color: rgba(255,255,255,0.9);
}

.data-table tbody tr {
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition-fast);
}

.data-table tbody tr:last-child {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: var(--color-bg);
}

.data-table tbody td {
  padding: 14px var(--space-lg);
  color: var(--color-text);
  font-weight: 500;
}

.data-table tbody td:first-child {
  font-weight: 600;
  color: var(--color-heading);
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
}

.rank-num--top3 {
  background: var(--color-accent);
}

/* ============================================================
   CHECKLIST / BUYER GUIDE LISTS
   ============================================================ */
.checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
}

.checklist__icon {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--color-secondary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 11px;
}

/* ============================================================
   CTA SECTIONS
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-4xl) var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-banner__inner {
  position: relative;
  z-index: 1;
}

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

.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-lg);
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
}

.cta-banner__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.8);
  padding-top: var(--space-4xl);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand h3 {
  color: white;
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.footer__brand p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-xl);
}

.footer__col h4 {
  color: white;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__col ul li a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.footer__col ul li a:hover {
  color: var(--color-accent-light);
}

.footer__badges {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.footer__badge {
  padding: 5px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

.footer__bottom {
  padding: var(--space-xl) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer__bottom p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-xl);
}

.footer__bottom-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  transition: color var(--transition-fast);
}

.footer__bottom-links a:hover {
  color: rgba(255,255,255,0.8);
}

/* ============================================================
   PAGE-SPECIFIC: PRODUCT PAGE
   ============================================================ */
.product-hero {
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  padding-bottom: var(--space-3xl);
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a3a5c 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.product-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--color-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.product-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-3xl);
  align-items: center;
}

.product-hero h1 {
  color: white;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-lg);
}

.product-hero__intro {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.8);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl);
}

.product-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.product-hero__stat {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  backdrop-filter: blur(4px);
}

.product-hero__stat-val {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-accent-light);
  display: block;
}

.product-hero__stat-lbl {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

.product-hero__card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.product-hero__image {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-bg), var(--color-bg-alt));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  padding: var(--space-lg);
}

.product-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-hero__card-body {
  padding: var(--space-lg);
}

.product-hero__card-body h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

/* ----------------------------------------------------------------
   Product hero: inline-section variant (sections with style="background:...")
   Fixes double padding, missing classes, and misplaced wave on 33 pages
   ---------------------------------------------------------------- */

/* Push breadcrumb below fixed navbar (section padding = 4rem < nav = 72px) */
section:not(.product-hero) > .container > nav.breadcrumb {
  margin-top: calc(var(--nav-height) - 4rem);
}

/* Reset product-hero div padding when nested inside a padded section */
section:not(.product-hero) > .container > .product-hero {
  padding-top: var(--space-xl);
  padding-bottom: 0;
  background: transparent;
  overflow: visible;
  position: static;
  color: inherit;
}

/* Remove wave artifact — it belongs on section, not inner div */
section:not(.product-hero) > .container > .product-hero::after {
  display: none;
}

/* Badge row */
.product-hero__badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Hero title */
.product-hero__title {
  color: white;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Hero subtitle */
.product-hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.8);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl);
  max-width: 680px;
}

/* Badge variants used in product hero */
.badge--category {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
}

.badge--growth {
  background: rgba(34,197,94,0.2);
  color: #86efac;
  border: 1px solid rgba(34,197,94,0.3);
}

/* Stat cards (inner div variant) */
.stat {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  backdrop-filter: blur(4px);
}

.stat__value {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-accent-light);
  display: block;
}

.stat__label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
  display: block;
}

/* Sidebar */
.product-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.sidebar-widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sidebar-widget__header {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sidebar-widget__body {
  padding: var(--space-lg);
}

/* Product content */
.product-content {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
}

.product-content h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-heading);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-border);
  scroll-margin-top: calc(var(--nav-height) + var(--space-lg));
}

.product-content h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.product-content p {
  margin-bottom: var(--space-lg);
}

.product-content ul, .product-content ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.product-content ul { list-style: disc; }
.product-content ol { list-style: decimal; }

.product-content li {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-xs);
}

.product-content strong {
  color: var(--color-heading);
  font-weight: 600;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.step {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-xl);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.step:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--color-secondary);
}

.step__num {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.step__content h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: var(--space-xs);
}

.step__content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ============================================================
   IMAGE PLACEHOLDER SYSTEM
   ============================================================ */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e8f4f0 0%, #d1e8e0 50%, #b8ddd5 100%);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  text-align: center;
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.img-placeholder--hero {
  aspect-ratio: 21/9;
  border-radius: 0;
}

.img-placeholder--square {
  aspect-ratio: 1;
}

.img-placeholder--product {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f0f7f4, #e0eff0, #cce4df);
}

.img-placeholder__icon {
  font-size: 3rem;
  opacity: 0.5;
}

.img-placeholder__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
  max-width: 280px;
}

.img-placeholder__dim {
  font-size: var(--text-xs);
  color: var(--color-text-light);
}

/* ============================================================
   COUNTRY FLAGS / ICONS
   ============================================================ */
.flag {
  display: inline-block;
  font-size: 1.4em;
  line-height: 1;
}

/* ============================================================
   SCROLL-TO-TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  border: none;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,39,68,0.9);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-overlay__inner {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.search-overlay__close {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  border: none;
}

/* ============================================================
   HIGHLIGHTS & CALLOUT BOXES
   ============================================================ */
.highlight-box {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-xl) 0;
}

.highlight-box p {
  margin: 0;
  color: #166534;
  font-size: var(--text-base);
}

.highlight-box--amber {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-color: var(--color-accent);
}

.highlight-box--amber p {
  color: #92400e;
}

.highlight-box--navy {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: var(--color-primary);
}

.highlight-box--navy p {
  color: #1e3a8a;
}

/* ============================================================
   NOTICE STRIPS
   ============================================================ */
.notice-strip {
  background: var(--color-accent-pale);
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: #92400e;
  font-weight: 500;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes countUp {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Intersection observer classes */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }
.text-white { color: white; }
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.bg-primary { background: var(--color-primary); }
.bg-secondary { background: var(--color-secondary); }
.bg-accent { background: var(--color-accent); }
.bg-light { background: var(--color-bg); }
.bg-white { background: var(--color-white); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.border { border: 1px solid var(--color-border); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.overflow-hidden { overflow: hidden; }
.relative { position: relative; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-xl) 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--5 { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .product-hero__inner { grid-template-columns: 1fr; }
  .product-hero__card { max-width: 500px; }
}

@media (max-width: 768px) {
  :root {
    --space-4xl: 4rem;
    --space-3xl: 3rem;
  }

  .container,
  .container--wide,
  .container--narrow {
    padding: 0 var(--space-lg);
  }

  .navbar__nav { display: none; }
  .navbar__actions .btn { display: none; }
  .navbar__hamburger { display: flex; }

  .grid--2 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  .grid--5 { grid-template-columns: repeat(2, 1fr); }

  .hero h1 { font-size: 2rem; }
  .hero p { font-size: var(--text-base); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }

  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .form-row { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-banner { padding: var(--space-2xl) var(--space-xl); }

  .product-hero__stats { grid-template-columns: repeat(2, 1fr); }

  .section-title { font-size: 1.75rem; }
}

@media (max-width: 480px) {
  .hero__stats { grid-template-columns: 1fr; }
  .grid--5 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .cta-banner__actions { flex-direction: column; align-items: center; }
  .navbar__inner { padding: 0 var(--space-md); }
  .container, .container--wide, .container--narrow { padding: 0 var(--space-md); }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .navbar, .footer, .scroll-top, .search-overlay { display: none !important; }
  body { padding-top: 0; }
  a { text-decoration: underline; }
  .hero { padding-top: var(--space-xl); }
  .product-sidebar { position: static; }
}
