/* ==========================================================================
   MAGNA TECH & MAGNA TECH AGRO - PREMIUM DESIGN SYSTEM & MOTION ENGINE
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  /* Brand Core Colors */
  --primary-deep: #160621;
  --primary-dark: #2a0b3d;
  --primary: #451559;
  --primary-light: #6a2489;
  --primary-ultralight: #9b4bd4;
  --primary-glow: rgba(112, 38, 158, 0.4);

  /* Magna Signature Vermilion Accent */
  --accent: #e63946;
  --accent-light: #ff4d5d;
  --accent-glow: rgba(230, 57, 70, 0.45);

  /* Agricultural Growth Accents */
  --emerald: #10b981;
  --emerald-dark: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --gold: #f59e0b;

  /* Dark Theme Surfaces (Default) */
  --bg-body: #0b0910;
  --bg-surface: #14101d;
  --bg-card: rgba(25, 20, 36, 0.72);
  --bg-card-hover: rgba(35, 28, 51, 0.9);
  --bg-glass: rgba(18, 14, 26, 0.88);
  --bg-input: rgba(14, 11, 20, 0.85);

  /* Text & Foreground */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-invert: #0b0910;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(155, 75, 212, 0.22);
  --border-highlight: rgba(230, 57, 70, 0.4);

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 35px var(--primary-glow);
  --shadow-accent-glow: 0 0 30px var(--accent-glow);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Layout */
  --container-max: 1280px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode Overrides */
body.light-theme {
  --bg-body: #f7f5fa;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.95);
  --bg-input: #ffffff;
  --text-primary: #120e1c;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-subtle: rgba(75, 23, 106, 0.12);
  --border-card: rgba(75, 23, 106, 0.18);
  --shadow-sm: 0 4px 12px rgba(75, 23, 106, 0.06);
  --shadow-md: 0 10px 25px rgba(75, 23, 106, 0.1);
  --shadow-lg: 0 20px 45px rgba(75, 23, 106, 0.15);
  --shadow-glow: 0 0 30px rgba(112, 38, 158, 0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

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

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

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

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

/* ==========================================================================
   NAVIGATION BAR & MEGA DROPDOWN SUB-MENUS
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  padding-block: 0.35rem;
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border-card);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-svg-wrapper {
  display: flex;
  align-items: center;
  height: 44px;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.65rem 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.35rem;
  right: 0.35rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary-ultralight));
  transform: scaleX(0);
  transition: transform var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
}

.dropdown-caret {
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
  color: var(--text-muted);
}

.nav-item-dropdown:hover .dropdown-caret,
.nav-item-dropdown.dropdown-open .dropdown-caret {
  transform: rotate(180deg);
  color: var(--accent);
}

.mega-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.98);
  width: 540px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  z-index: 1050;
}

.mega-dropdown-menu.mega-divisions {
  width: 620px;
}

.nav-item-dropdown:hover .mega-dropdown-menu,
.nav-item-dropdown.dropdown-open .mega-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.dropdown-grid.divisions-grid {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.dropdown-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.dropdown-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-ultralight);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.dropdown-card.featured-agro:hover {
  border-color: var(--emerald);
  box-shadow: 0 0 20px var(--emerald-glow);
}

.dropdown-card.featured-industry:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.dropdown-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(112, 38, 158, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.dropdown-info {
  display: flex;
  flex-direction: column;
}

.dropdown-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.dropdown-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.dropdown-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.2rem;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-light);
}

.nav-rfq-cta {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px var(--accent-glow);
}

.btn-secondary {
  background: rgba(112, 38, 158, 0.22);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
}

.btn-secondary:hover {
  background: rgba(112, 38, 158, 0.35);
  border-color: var(--primary-ultralight);
  transform: translateY(-2px);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--emerald-glow);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--emerald-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--primary-light);
  background: rgba(255, 255, 255, 0.05);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.badge-purple {
  background: rgba(112, 38, 158, 0.2);
  color: #d8b4fe;
  border: 1px solid rgba(155, 75, 212, 0.35);
}

.badge-accent {
  background: rgba(230, 57, 70, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(230, 57, 70, 0.35);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* ==========================================================================
   PERFECTED HERO SECTION (IMMEDIATE VISIBILITY & AUTHENTIC IMAGERY)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8.5rem 0 5rem;
  background-color: #0b0910;
  background-image: 
    linear-gradient(180deg, rgba(14, 10, 22, 0.72) 0%, rgba(11, 9, 16, 0.94) 100%),
    radial-gradient(circle at 80% 20%, rgba(230, 57, 70, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(112, 38, 158, 0.35) 0%, transparent 45%),
    url('../images/hero-industrial.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-overlay-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  opacity: 1;
  animation: heroEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.hero-tagline {
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.hero-title .gradient-text {
  background: linear-gradient(120deg, #ffffff 0%, #fca5a5 45%, #d8b4fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.25rem;
  max-width: 760px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-lg);
}

.stat-item {
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   PAGE HERO (SUBPAGES)
   ========================================================================== */
.page-hero {
  position: relative;
  padding: 8.5rem 0 4.5rem;
  background: radial-gradient(circle at 10% 20%, rgba(112, 38, 158, 0.35) 0%, transparent 45%),
              radial-gradient(circle at 90% 80%, rgba(230, 57, 70, 0.2) 0%, transparent 45%),
              linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-body) 100%);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.page-hero-content {
  max-width: 800px;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #ffffff;
}

.page-hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

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

.breadcrumb-separator {
  color: var(--border-card);
}

/* ==========================================================================
   SECTIONS & GRIDS
   ========================================================================== */
.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

.division-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.division-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.division-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-ultralight);
  box-shadow: var(--shadow-glow);
}

.division-card.featured {
  border-color: var(--emerald);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.25);
}

.division-card-media {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.division-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.division-card:hover .division-card-media img {
  transform: scale(1.06);
}

.division-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(20, 16, 29, 0.95) 100%);
}

.division-card-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
}

.division-card-body {
  padding: 2.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.division-card-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.division-card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.division-features-list {
  list-style: none;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.division-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.division-features-list li svg {
  color: var(--emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   SCROLL REVEAL MOTIONS
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="fade-in"] {
  transform: none;
}

[data-reveal="zoom"] {
  transform: scale(0.94);
}

[data-reveal="zoom"].revealed {
  transform: scale(1);
}

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

/* ==========================================================================
   CATALOG GRID & CARDS
   ========================================================================== */
.catalog-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.catalog-search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 1.2rem;
  gap: 0.75rem;
  transition: all var(--transition-fast);
}

.catalog-search-bar:focus-within {
  border-color: var(--primary-ultralight);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.catalog-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  outline: none;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tab-btn {
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--primary-light);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  border-color: var(--primary-ultralight);
  box-shadow: var(--shadow-sm);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.75rem;
}

.product-card {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-ultralight);
  box-shadow: var(--shadow-md);
}

.product-media {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.08);
}

.product-category-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.product-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-scientific {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.product-variety {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.mini-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.product-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding: 0.85rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-subtle);
}

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

.metric-box-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.metric-box-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.product-card-footer {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
}

.product-card-footer .btn {
  flex: 1;
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   TECHNICAL SPECIFICATION MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(7, 5, 12, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: all var(--transition-smooth);
}

.modal-backdrop.open .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: #ffffff;
  border-color: var(--accent);
  background: var(--accent);
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.modal-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.modal-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.modal-specs-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.modal-specs-table td {
  padding: 0.75rem 0.5rem;
  font-size: 0.88rem;
}

.modal-specs-table td:first-child {
  color: var(--text-muted);
  width: 40%;
  font-weight: 500;
}

.modal-specs-table td:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

.modal-desc-box {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--primary-light);
}

.modal-desc-box p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.modal-footer {
  display: flex;
  gap: 1rem;
}

/* ==========================================================================
   INDUSTRIAL SHOWCASE STYLING
   ========================================================================== */
.industrial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.industrial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.industrial-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), var(--shadow-accent-glow);
}

.industrial-media {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.industrial-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.industrial-card:hover .industrial-media img {
  transform: scale(1.08);
}

.industrial-content {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.industrial-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.industrial-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  flex: 1;
}

.partner-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.partner-pill {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   RFQ & LOGISTICS CALCULATOR
   ========================================================================== */
.rfq-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
}

.rfq-form-card, .rfq-summary-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.rfq-form-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

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

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.rfq-summary-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-color: var(--border-card);
}

.rfq-receipt {
  border: 1px dashed var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  margin-bottom: 1.5rem;
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
}

.receipt-id {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
}

.receipt-line.total {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #060408;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
}

/* Floating WhatsApp */
.floating-actions {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 900;
}

.whatsapp-float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  transition: all var(--transition-fast);
  animation: pulseWa 2.5s infinite;
}

.whatsapp-float-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 26px rgba(37, 211, 102, 0.65);
}

@keyframes pulseWa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Toast */
.toast-container {
  position: fixed;
  top: 5.5rem;
  right: 1.5rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: #ffffff;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateX(120%);
  transition: transform var(--transition-smooth);
}

.toast.show {
  transform: translateX(0);
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .mega-dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0.5rem 0 0 1rem;
    display: none;
    opacity: 1;
    visibility: visible;
  }
  .nav-item-dropdown.dropdown-open .mega-dropdown-menu {
    display: block;
  }
  .dropdown-grid, .dropdown-grid.divisions-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 2rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform var(--transition-smooth);
  }
  .nav-links.open,
  .nav-links.mobile-open {
    transform: translateX(0);
  }
  .mobile-toggle {
    display: block;
  }
  .rfq-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .division-cards-grid {
    grid-template-columns: 1fr;
  }
  .industrial-grid {
    grid-template-columns: 1fr;
  }
  .form-group-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
