/* ============================================
   Core Smart Equipment - Main Stylesheet
   Modern Tech / B2B Corporate Website
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #0052CC;
  --primary-dark: #003D99;
  --primary-light: #E8F0FE;
  --secondary: #00B8D9;
  --accent: #FF6B35;
  --dark: #1A1A2E;
  --dark-light: #2D2D44;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --bg: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-section: #F0F4F8;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 48px; /* offset for fixed secondary tech-nav (header 72px + 48px) */
}

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

/* Standard inline anchor used in body text / FAQ / comparison tables */
.text-link {
  color: var(--primary);
  text-decoration: underline dashed;
  text-decoration-thickness: 1px;
}
.text-link:hover {
  color: #0047B3;
  text-decoration: underline dashed;
  text-decoration-thickness: 1px;
}

/* Model Comparison Guide anchors: blue text, underline on hover (matches app scenario links) */
.compare-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.compare-link:hover {
  text-decoration: underline;
}

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

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Utility --- */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}
.section-title p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 16px auto 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-white {
  background: #fff;
  color: var(--primary);
}
.btn-white:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
  overflow: visible;
  isolation: isolate;
}
.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
}
.logo img {
  height: 28px;
  width: auto;
  display: block;
}
.logo span {
  color: var(--primary);
}

/* ===== Secondary Technical Navigation (Level 2) ===== */
.tech-nav {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  height: 48px;
  background: #e9ecef;
  z-index: 999;
  border: none;
  box-shadow: none;
}
.tech-nav .container {
  height: 48px;
  display: flex;
  align-items: center;
}
.tech-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 48px;
  width: 100%;
}
.tech-nav-menu li { height: 48px; display: flex; align-items: center; flex: 1 1 0; justify-content: center; }
.tech-nav-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.tech-nav-menu a:hover {
  color: #0066FF;
  background: rgba(0,102,255,0.06);
}
.tech-nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  width: 100%;
  height: 42px;
  padding: 0 20px;
  background: transparent;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  text-align: left;
}
.tech-nav-toggle .arrow { transition: transform 0.2s; font-size: 0.7rem; }
.tech-nav-toggle.open .arrow { transform: rotate(180deg); }
.tech-nav-mobile {
  display: none;
  flex-direction: column;
  background: #f3f4f6;
  border-top: 1px solid #e5e7eb;
}
.tech-nav-mobile a {
  display: block;
  padding: 13px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  border-bottom: 1px solid #eceef1;
}
.tech-nav-mobile a:last-child { border-bottom: none; }
.tech-nav-mobile a:hover { color: #0066FF; background: rgba(0,102,255,0.05); }

@media (max-width: 768px) {
  .tech-nav { height: auto; }
  .tech-nav .container { height: auto; display: block; padding: 0; }
  .tech-nav-menu { display: none; }
  .tech-nav-toggle { display: flex; }
  .tech-nav-mobile.open { display: flex; }
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 16px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}
.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: var(--primary-light);
}
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

/* Dropdown */
.nav-item {
  position: relative;
}
.nav-item > a { cursor: pointer; }
.nav-item > a::after {
  content: "";
  display: inline-block;
  margin-left: 5px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
  opacity: .6;
  transition: transform .2s ease;
}
.nav-item:hover > a::after {
  transform: rotate(180deg);
  opacity: 1;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) translateZ(0);
  transition: all var(--transition);
  z-index: 1001;
  pointer-events: none;
  will-change: transform, opacity;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) translateZ(0);
  pointer-events: auto;
}
.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: var(--text);
}
.dropdown a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ============================================
   Mega Menu (Desktop)
   ============================================ */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 24px 28px;
  width: 620px;
  max-width: 94vw;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 28px;
  pointer-events: none;
}
.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.mega-column {}
.mega-column h3, .mega-column h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 10px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.mega-column h3 a, .mega-column h4 a {
  color: inherit;
  text-decoration: none;
}
.mega-column h3 a:hover, .mega-column h4 a:hover { color: var(--primary); }
.mega-column .mega-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mega-column .mega-sub li { margin-bottom: 2px; }
.mega-column .mega-sub a {
  display: block;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s, padding-left 0.15s;
}
.mega-column .mega-sub a:hover {
  color: var(--primary);
  padding-left: 6px;
}
/* Mega column without subcategories (single L1 like Weighing Scale, Barcode Scanner) */
.mega-column .mega-sub a.single-link {
  font-weight: 500;
}

/* Mega menu 2x2 grid with white-background product thumbnails per subcategory */
.mega-menu .mega-sub.mega-sub-img li { margin-bottom: 8px; }
.mega-menu .mega-sub.mega-sub-img a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.mega-menu .mega-sub.mega-sub-img a:hover {
  background: #f5f8ff;
  color: var(--primary);
  padding-left: 6px;
}
.mega-menu .mega-sub.mega-sub-img img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  flex: 0 0 auto;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.mega-menu .mega-sub.mega-sub-img span {
  font-size: 0.85rem;
  color: var(--text);
}
.mega-menu .mega-sub.mega-sub-img a:hover span { color: var(--primary); }

/* Mobile: hide mega-menu, keep .dropdown for mobile menu logic */
@media (max-width: 768px) {
  .mega-menu { display: none; }
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* CTA Header */
.header-cta .btn {
  padding: 8px 20px;
  font-size: 0.88rem;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: linear-gradient(135deg, #0A1628 0%, #0D2137 40%, #0F2B46 70%, #0A1628 100%);
  overflow: hidden;
}
.hero.hero-banner {
  min-height: 420px;
  padding-top: 0;
}
.hero.hero-banner .container {
  min-height: 420px;
}
.hero.hero-banner .hero-content {
  max-width: 100%;
}
.hero.hero-banner .hero-content h1 {
  font-size: 2.6rem;
  margin-bottom: 14px;
}
.hero.hero-banner .hero-content p {
  max-width: 960px;
  margin: 0 auto 20px;
  overflow-wrap: break-word;
}
.hero.hero-banner .breadcrumb {
  margin-top: 18px;
  color: rgba(255,255,255,0.85);
  position: relative;
  z-index: 3;
}
.hero.hero-banner .breadcrumb a {
  color: rgba(255,255,255,0.85);
}
.hero.hero-banner .breadcrumb a:hover {
  color: #fff;
}
.hero.hero-banner .breadcrumb span {
  color: rgba(255,255,255,0.6);
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0,82,204,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,184,217,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* M1 (2026-08-19, PSI mobile): hero backgrounds moved from inline style to
   classes so they can be preloaded in <head> (fetchpriority=high) and
   downsized to 800w variants on phones. */
.hero-slide.hs-family { background-image: url('../images/home-hero-product-family.webp'); }
.hero-slide.hs-m60 { background-image: url('../images/m60-android-pos-application-scenarios.webp'); }
.hero-slide.hs-x3c { background-image: url('../images/x3c-thermal-receipt-printer-with-cutter-application-scenarios.webp'); }
@media (max-width: 760px) {
  .hero-slide.hs-family { background-image: url('../images/home-hero-product-family-800w.webp'); }
  .hero-slide.hs-m60 { background-image: url('../images/m60-android-pos-application-scenarios-800w.webp'); }
  .hero-slide.hs-x3c { background-image: url('../images/x3c-thermal-receipt-printer-with-cutter-application-scenarios-800w.webp'); }
}
.hero-slide.active { opacity: 1; }
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, rgba(10,22,40,0.92) 0%, rgba(13,33,55,0.74) 42%, rgba(15,43,70,0.5) 100%);
}
.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(92vh - 72px);
  width: 100%;
}
.hero-text {
  position: relative;
  max-width: 100%;
  width: 100%;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(0,184,217,0.12);
  border: 1px solid rgba(0,184,217,0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero-slide-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}
.hero-slide-text.active {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.hero-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 12px;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, width 0.3s ease;
}
.hero-dot.active {
  background: var(--secondary);
  width: 30px;
  border-radius: 6px;
}

/* (hero-main module removed: merged into hero carousel as slide 1) */

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-content h2 {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-content h1 .highlight,
.hero-content h2 .highlight {
  background: linear-gradient(90deg, var(--secondary), #4DD9E8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
}
.hero-stat p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0;
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,0.1);
}
.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-float-card {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.hero-float-card.card-1 {
  top: 20px;
  right: -20px;
  animation-delay: 0s;
}
.hero-float-card.card-2 {
  bottom: 40px;
  left: -30px;
  animation-delay: 2s;
}
.hero-float-card .card-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.hero-float-card .card-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.hero-float-card .card-value {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* --- Product Categories Bar --- */
.categories-bar {
  padding: 48px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
  text-align: center;
}
.category-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  background: var(--primary-light);
}
.category-icon {
  width: 100%;
  max-width: 200px;
  height: 180px;
  object-fit: contain;
  border-radius: var(--radius-md);
}
.category-card h3, .category-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}

/* --- Products Section --- */
.products-section {
  padding: 80px 0;
  background: var(--bg);
}
.products-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.products-tabs .tab {
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  transition: all var(--transition);
}
.products-tabs .tab:hover,
.products-tabs .tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}
.product-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.product-card .product-image {
  width: 100%;
  height: auto;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-card .product-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform var(--transition);
}
.product-card:hover .product-image img {
  transform: scale(1.05);
}
.product-card .product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.product-card .product-info {
  padding: 20px;
}
.product-card .product-category {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.product-card .product-industry {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  line-height: 1.4;
}
.product-card .product-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.product-card .product-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- About Section --- */
.about-section {
  padding: 100px 0;
  background: var(--bg-section);
  position: relative;
  overflow: hidden;
}
.about-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.about-gallery {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.about-gallery-main {
  position: relative;
  aspect-ratio: 4/3;
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #000;
  color: #000;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.2s;
}
.about-gallery-arrow:hover {
  background: #000;
  color: #fff;
}
.about-gallery-prev { left: 12px; }
.about-gallery-next { right: 12px; }
.about-gallery-thumbs {
  display: flex;
  gap: 18px;
  justify-content: space-between;
}
.about-thumb {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 4/3;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  box-shadow: var(--shadow-sm);
}
.about-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-thumb.active {
  border-color: #0066FF;
}
.about-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}
.about-content h2 span {
  color: var(--primary);
}
.about-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.about-feature .feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}
.about-feature span {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}

/* --- Stats / Advantages --- */
.stats-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 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");
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}
.stat-item {
  text-align: center;
  padding: 24px 16px;
}
.stat-icon {
  width: 56px;
  height: 56px;
  background: rgba(0,82,204,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}
.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* --- Solutions Section --- */
.solutions-section {
  padding: 80px 0;
  background: var(--bg);
}
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.solution-card {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.solution-card:hover::before {
  transform: scaleX(1);
}
.solution-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.solution-icon {
  width: 100%;
  height: 130px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
}
.solution-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.solution-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.solution-card-link {
  display: block;
  transition: transform var(--transition);
}
.solution-card-link:hover .solution-card {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.solution-card-link:hover .solution-icon img {
  transform: scale(1.08);
  transition: transform 0.3s ease;
}

.solution-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- Testimonials Section --- */
.testimonials-section {
  padding: 80px 0;
  background: #ffffff;
}
.testi-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.testi-stat {
  flex: 1 1 200px;
  max-width: 260px;
  text-align: center;
  background: #f4f8ff;
  border: 1px solid #e3edfb;
  border-radius: 14px;
  padding: 22px 18px;
}
.testi-stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.testi-stat-num span {
  font-size: 1.1rem;
  font-weight: 600;
  color: #6b7a90;
}
.testi-stat-label {
  margin-top: 8px;
  font-size: 0.92rem;
  color: #5b6b80;
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testi-card {
  background: #ffffff;
  border: 1px solid #e9eef5;
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: 0 8px 24px rgba(31, 56, 100, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(31, 56, 100, 0.12);
}
.testi-stars {
  color: #ffb400;
  font-size: 1.05rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.testi-quote {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #38465a;
  flex: 1;
  margin-bottom: 20px;
}
.testi-quote::before {
  content: "\201C";
  font-size: 2.4rem;
  line-height: 0;
  color: var(--primary);
  opacity: 0.25;
  margin-right: 4px;
  vertical-align: -0.4em;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #eef2f7;
  padding-top: 16px;
}
.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.testi-name {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.96rem;
}
.testi-role {
  font-size: 0.84rem;
  color: #7a8aa0;
}
@media (max-width: 900px) {
  .testi-grid { grid-template-columns: 1fr; }
  .testi-stats { gap: 16px; }
}

/* --- News Section --- */
.news-section {
  padding: 80px 0;
  background: var(--bg-section);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.news-card .news-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--bg-section);
  overflow: hidden;
}
.news-card .news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}
.news-card:hover .news-image img {
  transform: scale(1.05);
}
.news-card .news-content {
  padding: 20px;
}
.news-date {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}
.news-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- CTA Section --- */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -100px;
  right: -100px;
}
.cta-section::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  bottom: -80px;
  left: -80px;
}
.cta-section .container {
  position: relative;
  z-index: 1;
}
.cta-section h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* --- Contact Section --- */
.contact-section {
  padding: 80px 0;
  background: var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info-cards {
  display: grid;
  gap: 20px;
}
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.contact-info-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.contact-info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}
.contact-info-card h3, .contact-info-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.contact-info-card p {
  font-size: 0.88rem;
  color: var(--text-light);
}
.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-form h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--bg);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,82,204,0.1);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 16px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}
.footer-brand .logo img {
  height: 24px;
  width: auto;
}
.footer-brand .logo .logo-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
  font-size: 0.9rem;
}
.footer-socials a:hover {
  background: var(--primary);
  color: #fff;
}
.footer-col h3, .footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--secondary);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.82rem;
}
.footer-bottom a {
  color: rgba(255,255,255,0.5);
}
.footer-bottom a:hover {
  color: var(--secondary);
}

/* --- Floating Contact Buttons --- */
.floating-buttons {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}
.float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.float-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}
.float-btn.whatsapp { background: #25D366; }
.float-btn.skype { background: #00AFF0; }
.float-btn.email { background: var(--primary); }
.float-btn.top { background: var(--dark); opacity: 0; visibility: hidden; }
.float-btn.top.visible {
  opacity: 1;
  visibility: visible;
}

/* --- Page Header (for inner pages) --- */
.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, #0A1628 0%, #0D2137 50%, #0F2B46 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,82,204,0.15) 0%, transparent 70%);
  top: -200px;
  right: -100px;
}
.page-header h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.page-header p {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}
.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container { text-align: center; }
  .hero-content p { margin: 0 auto 36px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .hero-text { margin: 0 auto; }
  .hero-dots { bottom: 16px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .about-section .container { grid-template-columns: 1fr; }
  .about-gallery-main { width: 100%; }
  .about-gallery-arrow { display: none; }
  .about-gallery-thumbs { gap: 18px; }
  .about-thumb { flex: 1 1 0; padding: 2px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .header-cta { display: none; }

  /* ===== MOBILE DUAL-COLUMN SIDE MENU ===== */

  /* Outer wrapper: fills screen, contains left + right columns */
  .mobile-menu-wrap {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    pointer-events: none;
  }
  .mobile-menu-wrap.active {
    display: flex;
    pointer-events: auto;
  }

  /* Left column: fixed narrow main nav */
  .mobile-left {
    width: 38%;
    max-width: 150px;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
  }
  .mobile-left-header {
    padding: 16px 12px 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    flex-shrink: 0;
  }
  .mobile-left-logo {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
  }
  .mobile-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
  }
  .mobile-close-btn:active { background: var(--border); }
  .mobile-left-nav {
    flex: 1;
    overflow-y: auto;
  }
  .mobile-left-nav a {
    display: block;
    padding: 14px 12px;
    font-size: 0.9rem;
    color: var(--dark);
    border-bottom: 1px solid var(--border);
    line-height: 1.4;
    word-break: break-word;
  }
  .mobile-left-nav a.has-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .mobile-left-nav a.has-sub::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--text-muted);
    border-top: 2px solid var(--text-muted);
    transform: rotate(45deg);
    flex-shrink: 0;
    margin-left: 6px;
  }
  .mobile-left-nav a:active,
  .mobile-left-nav a.selected {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
  }

  /* Right column: secondary content, slides in */
  .mobile-right {
    flex: 1;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: -2px 0 12px rgba(0,0,0,0.08);
  }
  .mobile-right.active {
    transform: translateX(0);
  }
  .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    min-height: 56px;
  }
  .panel-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
  }
  .panel-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
  }
  .panel-close-btn:active { background: var(--border); }
  .panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
    -webkit-overflow-scrolling: touch;
  }

  /* Accordion inside right panel */
  .accordion-item {
    border-bottom: 1px solid var(--border);
  }
  .accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    text-align: left;
    min-height: 50px;
    font-family: inherit;
  }
  .accordion-header:active {
    background: var(--primary-light);
  }
  .accordion-arrow {
    transition: transform 0.25s ease;
    color: var(--text-muted);
    flex-shrink: 0;
  }
  .accordion-item.open .accordion-arrow {
    transform: rotate(180deg);
  }
  .accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .accordion-item.open .accordion-body {
    max-height: 1200px;
  }
  .accordion-body a {
    display: block;
    padding: 12px 16px 12px 28px;
    color: var(--text);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light, #f0f0f0);
    line-height: 1.5;
  }
  .accordion-body a:last-child {
    border-bottom: none;
  }
  .accordion-body a:active {
    background: var(--primary-light);
    color: var(--primary);
  }
  /* Direct link in panel (no accordion group) */
  .panel-link {
    display: block;
    padding: 14px 16px;
    color: var(--dark);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
  }
  .panel-link:active {
    background: var(--primary-light);
    color: var(--primary);
  }

  /* Overlay behind whole menu */
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
  }
  .menu-overlay.active {
    display: block;
  }
  .header { z-index: 1002; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content h2 { font-size: 2.2rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title h2 { font-size: 1.8rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .about-features { grid-template-columns: 1fr; }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.slide-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.slide-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Loading Skeleton --- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-section) 25%, var(--border) 50%, var(--bg-section) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Products Page --- */
.products-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}
.products-filter .filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--bg);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.products-filter .filter-btn:hover,
.products-filter .filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* --- About Page --- */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--primary-light);
}
.timeline-item .ti-step {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 4px;
}
.timeline-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.timeline-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}
/* Timeline with image (left image + right text) */
.timeline-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.timeline-item .ti-img {
  flex: 0 0 200px;
}
.timeline-item .ti-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.timeline-item .ti-body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}
@media (max-width: 600px) {
  .timeline-item {
    flex-direction: column;
    gap: 12px;
  }
  .timeline-item .ti-img {
    flex: 0 0 auto;
    max-width: 280px;
  }
}

/* --- Certifications --- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cert-item {
  text-align: center;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.cert-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.cert-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.cert-item h3, .cert-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
}

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

/* --- Fix: Product card images display fully, no cropping --- */
.related-products img,
.you-may-also-like img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
}

/* ===== Header Model Search ===== */
.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: 4px;
  border: none;
  background: transparent;
  color: var(--text);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.search-toggle:hover { color: var(--primary); background: var(--primary-light); }
.search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 16px 0;
  display: none;
  z-index: 998;
}
.search-panel.open { display: block; }
.search-panel .container { max-width: 920px; }
.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.search-form-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-light);
  pointer-events: none;
}
.search-input {
  flex: 1;
  height: 46px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--primary); }
.search-submit {
  height: 46px;
  padding: 0 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
}
.search-submit:hover { background: var(--primary-dark); }
.search-suggestions {
  margin-top: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: none;
}
.search-suggestions.show { display: block; }
.search-suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.search-suggestion:last-child { border-bottom: none; }
.search-suggestion:hover { background: var(--primary-light); }
.search-suggestion img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
  background: #f8f9fa;
  flex: 0 0 auto;
}
.search-suggestion .ss-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.search-suggestion .ss-model { font-weight: 700; color: var(--dark); font-size: 0.95rem; }
.search-suggestion .ss-name { font-size: 0.82rem; color: var(--text-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-empty { padding: 12px 14px; color: var(--text-light); font-size: 0.9rem; }

/* --- Compatible Brands Marquee --- */
.brands-marquee-section {
  padding: 56px 0;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.brands-marquee-eyebrow {
  text-align: center;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.brands-marquee-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}
.brands-marquee-sub {
  text-align: center;
  /* A6: #999 on white = 2.85:1 (fails WCAG AA); #666 = 5.74:1 */
  color: #666666;
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.brands-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brands-marquee-track {
  display: flex;
  width: max-content;
  gap: 48px;
  padding: 0 24px;
  animation: brandscroll 38s linear infinite;
}
.brands-marquee:hover .brands-marquee-track {
  animation-play-state: paused;
}
.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 24px;
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: box-shadow 0.25s ease;
}
.brand-item img {
  max-height: 44px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.brand-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.brand-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  background: #f8f9fa;
  white-space: nowrap;
}
@keyframes brandscroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.brands-disclaimer {
  text-align: center;
  font-size: 0.72rem;
  /* M3: was var(--text-muted) + opacity 0.7 ≈ 2:1 (fails WCAG); #666 = 5.74:1 */
  color: #666666;
  margin-top: 28px;
  padding: 0 24px;
}
@media (prefers-reduced-motion: reduce) {
  .brands-marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .brands-marquee-track { gap: 32px; animation-duration: 28s; }
  .brands-marquee-title { font-size: 1.3rem; }
}
