/* ============================================
   Chaoxiang New Energy - Global Stylesheet
   Brand: 浙江超翔新能源有限公司
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-primary: #2E4F88;
  --color-primary-dark: #1F3D6E;
  --color-primary-light: #4A6FA8;
  --color-primary-bg: #F3F6F9;
  --color-secondary: #232323;
  --color-accent: #FD9B28;
  --color-text: #333333;
  --color-text-muted: #555555;
  --color-text-light: #999999;
  --color-bg: #ffffff;
  --color-bg-alt: #F3F6F9;
  --color-bg-dark: #232323;
  --color-border: #D1D7DD;
  --color-white: #ffffff;
  --color-black: #000000;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);

  --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;
  --header-height: 80px;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul, ol { list-style: none; }

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

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

/* --- Utility Classes --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .subtitle {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-header p {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: 30px; }
  .section-header .subtitle { font-size: 18px; letter-spacing: 2px; }
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: all var(--transition);
}

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

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.header-logo span {
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding: 8px 0;
  transition: color var(--transition);
}

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

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

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

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--color-text-muted);
  transition: all var(--transition);
}

.nav-dropdown-menu a:hover {
  background: var(--color-primary-bg);
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--transition);
}

.lang-switch:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
  border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 1024px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 16px;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    z-index: 999;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 18px;
    width: 100%;
    padding: 12px 0;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .header-phone { display: none; }

  .mobile-toggle { display: flex; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background: #000;
  position: relative;
  overflow: hidden;
  padding: 0;
}

/* Hero Video Background */
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.20);
}

/* Bottom gradient — fades video to dark for text readability */
.hero-video-bottom-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.30) 50%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Hero content — bottom banner, left-aligned */
.hero .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
}

.hero-content {
  text-align: left;
  color: #ffffff;
  padding: 0 0 50px;
  max-width: 650px;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  animation: fadeInUp 0.8s ease 0.1s both;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease 0.2s both;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  font-weight: 400;
}

/* Hero buttons — glass-morphism translucent to let video through */
.hero .btn {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero .btn-primary {
  background: rgba(46, 79, 136, 0.45);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.2);
}

.hero .btn-primary:hover {
  background: rgba(46, 79, 136, 0.65);
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}

.hero .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.1);
}

.hero .btn-outline:hover {
  border-color: rgba(255,255,255,0.7);
  color: #ffffff;
  background: rgba(255,255,255,0.2);
}

/* Hero decorative elements — softer */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(46,79,136,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: 5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(46,79,136,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  animation: fadeInUp 0.8s ease 0.3s both;
}

@media (max-width: 1024px) {
  .hero .container {
    max-width: 90%;
  }

  .hero-title { font-size: 40px; }
  .hero-subtitle { font-size: 18px; }
}

@media (max-width: 768px) {
  .hero { min-height: 100vh; }
  .hero-title { font-size: 28px; letter-spacing: 1px; }
  .hero-subtitle { font-size: 16px; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(46,79,136,0.3);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 20px rgba(46,79,136,0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

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

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

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

.btn-lg {
  padding: 18px 40px;
  font-size: 17px;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats {
  padding: 60px 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number .suffix {
  font-size: 28px;
  font-weight: 600;
}

.stat-label {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .stat-number { font-size: 36px; }
}

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

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  background: var(--color-bg);
}

/* About section — wider container for large cards */
.about .container {
  max-width: 1400px;
}

/* About Feature Cards (background-image cards) */
.about-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 48px;
}

.about-feature-card {
  flex: 1 1 0;
  min-width: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.about-feature-bg {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 square */
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.about-feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.55));
  transition: background 0.4s ease;
}

.about-feature-bg:hover .about-feature-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.65));
}

.about-feature-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20%;
  text-align: center;
  color: #fff;
}

.about-feature-content h3 {
  font-size: 28px;
  font-weight: 300;
  font-family: Arial, sans-serif;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.about-feature-content p {
  font-size: 16px;
  font-weight: 200;
  line-height: 1.6;
  margin-bottom: 20px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  opacity: 0.9;
}

.about-feature-link {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-family: Arial, sans-serif;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  padding-bottom: 4px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s ease;
}

.about-feature-bg:hover .about-feature-link {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .about-feature-card {
    flex: 1 1 calc(50% - 10px);
    min-width: 240px;
  }
  .about-feature-content h3 {
    font-size: 22px;
  }
  .about-feature-content p {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .about-feature-card {
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* Production Capacity Carousel */
.production-section {
  background: var(--color-bg);
}

.production-section .section-header h2 {
  font-family: Arial, sans-serif;
  font-size: 40px;
  font-weight: bold;
  color: #333;
  text-align: center;
}

/* --- Production Capacity 3-Up Carousel --- */
.production-carousel-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.production-carousel {
  overflow: hidden;
  border-radius: 12px;
}

.production-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.production-slide {
  flex: 0 0 calc(100% / 3);
  overflow: hidden;
}

.production-slide img {
  width: 100%;
  height: 260px;
  display: block;
  object-fit: cover;
}

/* Controls row below carousel */
.production-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}

.production-carousel-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #e8edf5;
  border: 1px solid #d0d7e3;
  color: var(--color-primary);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}

.production-carousel-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.production-dots {
  display: flex;
  gap: 8px;
}

.production-dots .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ccd4e0;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.production-dots .dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
}

@media (max-width: 1024px) {
  .production-slide { flex: 0 0 50%; }
  .production-slide img { height: 220px; }
}

@media (max-width: 640px) {
  .production-slide { flex: 0 0 100%; }
  .production-slide img { height: 200px; }
  .production-controls { gap: 12px; }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image .main-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.about-image .badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 20px 28px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-image .badge .num {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.about-image .badge .text {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 4px;
}

.about-content h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.about-content .lead {
  font-size: 18px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 24px;
}

.about-content p {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--color-primary-bg);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary-dark);
  transition: transform var(--transition);
}

.about-feature:hover {
  transform: translateY(-2px);
}

.about-feature svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image .badge { right: 20px; bottom: -20px; }
  .about-content h2 { font-size: 30px; }
}

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

/* ============================================
   ABOUT US — 3-Up Image Carousel
   ============================================ */
.about-carousel {
  margin-top: 60px;
  overflow: hidden;
  border-radius: 12px;
}

.about-carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.about-carousel-slide {
  flex: 0 0 calc(100% / 3);
  overflow: hidden;
}

.about-carousel-slide img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* Controls row */
.about-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}

.about-carousel-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #e8edf5;
  border: 1px solid #d0d7e3;
  color: var(--color-primary);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}

.about-carousel-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.about-carousel-dots {
  display: flex;
  gap: 8px;
}

.about-carousel-dots .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ccd4e0;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.about-carousel-dots .dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
}

@media (max-width: 1024px) {
  .about-carousel-slide { flex: 0 0 50%; }
  .about-carousel-slide img { height: 220px; }
}

@media (max-width: 640px) {
  .about-carousel-slide { flex: 0 0 100%; }
  .about-carousel-slide img { height: 200px; }
  .about-carousel-controls { gap: 12px; }
}

/* ============================================
   CARDS (Products, Services, Solutions)
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

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

.card-image {
  width: 100%;
  height: 320px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-image .placeholder {
  width: 80px;
  height: 80px;
  opacity: 0.3;
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.card-body p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  transition: gap var(--transition);
}

.card-link:hover { gap: 10px; }

/* Product Center — 4 in a row */
#products .card-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
#products .card-image {
  height: 300px;
}
#products .card-body {
  padding: 16px;
}
#products .card-body h3 {
  font-size: 16px;
}
#products .card-body p {
  font-size: 13px;
}

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  #products .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-image { height: 260px; }
  #products .card-image { height: 240px; }
}

@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  #products .card-grid { grid-template-columns: 1fr; }
  .card-image { height: 240px; }
  #products .card-image { height: 220px; }
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog {
  background: var(--color-bg-alt);
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 33.33333%;
  box-sizing: border-box;
  padding: 0 15px;
  margin-bottom: 30px;
}
.blog-card-link:hover { text-decoration: none; color: inherit; }
.blog-card {
  background: var(--color-white);
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: all var(--transition);
  flex: 0 0 calc(33.33333% - 30px);
  margin: 0 15px;
}

.blog-card:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-bottom: 64%;
}

.blog-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.blog-card:hover .blog-card-image img {
  opacity: 0.5;
  transform: scale(1.1);
}

.blog-card-date {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 2px solid #fff;
  border-radius: 50%;
  position: absolute;
  top: 30px;
  left: 30px;
  text-align: center;
  padding: 7px;
  box-sizing: border-box;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  font-size: 14px;
  z-index: 1;
}

/* ============================================
   SOLUTIONS — 3-Up Scrollable Carousel
   ============================================ */
.solutions-carousel-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.solutions-carousel {
  overflow: hidden;
  padding: 12px 0;
  margin: -12px 0;
}

.solutions-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.solutions-slide {
  flex: 0 0 calc(100% / 3);
  padding: 0 10px;
}

.solutions-slide-inner {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.solutions-slide img {
  width: 100%;
  height: 320px;
  display: block;
  object-fit: cover;
}

/* Caption below image */
.solutions-slide-caption {
  padding: 16px 16px 20px;
  color: var(--color-text-dark, #1a1a1a);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

/* Controls row */
.solutions-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}

.solutions-carousel-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #e8edf5;
  border: 1px solid #d0d7e3;
  color: var(--color-primary);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}

.solutions-carousel-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.solutions-dots {
  display: flex;
  gap: 8px;
}

.solutions-dots .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ccd4e0;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.solutions-dots .dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
}

@media (max-width: 1024px) {
  .solutions-slide { flex: 0 0 50%; }
  .solutions-slide img { height: 240px; }
  .solutions-slide-caption { font-size: 18px; }
}

@media (max-width: 640px) {
  .solutions-slide { flex: 0 0 100%; }
  .solutions-slide img { height: 220px; }
  .solutions-slide-caption { font-size: 16px; padding: 12px 12px 16px; }
  .solutions-controls { gap: 12px; }
}

/* Old solution card — keep for other pages */
.solution-card-img {
  height: 200px;
}

.blog-card-body {
  padding: 30px 10px;
}

.blog-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  height: 48px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.blog-card-link:hover .blog-card-body h3 {
  color: var(--color-primary);
}

.blog-card-body p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 875px) {
  .blog-card-link { width: 50%; }
  .blog-card { flex: 0 0 calc(50% - 30px); }
  .blog-card-date { top: 5px; left: 5px; width: 50px; height: 50px; font-size: 12px; }
  .blog-card-body h3 { font-size: 14px; line-height: 20px; height: 60px; -webkit-line-clamp: 3; }
  .blog-card-body { padding: 20px 10px; }
}

@media (max-width: 600px) {
  .blog-grid { margin-left: -5px; margin-right: -5px; }
  .blog-card-link { padding: 0 5px; }
  .blog-card { flex: 0 0 calc(100% - 10px); margin: 0 5px; }
}

@media (max-width: 480px) {
  .blog-card-link { width: 100%; }
  .blog-card { flex: 0 0 100%; margin: 0; }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  text-align: center;
  padding: 80px 0;
}

.cta h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-primary {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: none;
}

.cta .btn-primary:hover {
  background: var(--color-bg-alt);
  transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-bg-dark);
  color: #cbd5e1;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col h3 {
  color: var(--color-white);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: #94a3b8;
  padding: 6px 0;
  transition: color var(--transition);
}

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

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #64748b;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

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

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 999;
  transition: all var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* ============================================
   PAGE BANNER (Sub pages)
   ============================================ */
.page-banner {
  background: linear-gradient(135deg, #F3F6F9 0%, #E4E9F0 100%);
  padding: 120px 0 60px;
  text-align: center;
}

.page-banner h1 {
  font-size: 40px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 12px;
}

.page-banner p {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .page-banner { padding: 100px 0 40px; }
  .page-banner h1 { font-size: 30px; }
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.8;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}

.contact-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-item a, .contact-item span {
  font-size: 15px;
  color: var(--color-text-muted);
}

.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  transition: all var(--transition);
  background: var(--color-bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(46,79,136,0.1);
}

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

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 24px; }
}

/* ============================================
   FAQ PAGE
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--color-primary-light);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--color-bg-alt);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
  flex-shrink: 0;
  color: var(--color-text-light);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ============================================
   PRODUCTS PAGE
   ============================================ */

/* --- Category Grid (6 cards) --- */
.products-category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.products-cat-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.products-cat-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
  transform: translateY(-4px);
}

.products-cat-image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.products-cat-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.products-cat-body {
  padding: 12px 8px;
}

.products-cat-body h3 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

/* --- Product Detail Cards --- */
.products-all-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.products-category-section {
  /* category grouping */
}

.products-category-title {
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary-light);
}

.products-all-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 12px;
}

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

.product-detail-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
  transform: translateY(-4px);
}

/* NEW badge */
.product-badge-new {
  display: inline-block;
  background: linear-gradient(135deg, #3F88FB, #6366F1);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  align-self: flex-start;
}

.product-detail-image {
  width: 100%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-detail-body h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.product-detail-body p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.product-detail-body .btn {
  align-self: flex-start;
}

/* --- Legacy product card (keep for backward compat) --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.product-card-image {
  height: 240px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-body {
  padding: 24px;
}

.product-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-card-body p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .products-category-grid { grid-template-columns: repeat(3, 1fr); }
  .products-all-row { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .products-category-grid { grid-template-columns: repeat(2, 1fr); }
  .products-all-row { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .products-category-title { font-size: 18px; }
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-page-section {
  padding: 80px 0;
}

.about-page-section:nth-child(even) {
  background: var(--color-bg-alt);
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-primary-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--color-primary);
  border-radius: 50%;
  border: 3px solid var(--color-primary-bg);
}

.timeline-year {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Certificate Grid */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cert-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: all var(--transition);
}

.cert-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.cert-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  background: var(--color-primary-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-card h4 {
  font-size: 14px;
  font-weight: 600;
}

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

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   PRINT / ACCESSIBILITY
   ============================================ */
/* ============================================
   BLOG DETAIL PAGE
   ============================================ */
.blog-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 0;
}

.blog-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-primary);
  text-decoration: none;
  margin-bottom: 32px;
  font-weight: 500;
}
.blog-detail-back:hover { text-decoration: underline; }

.blog-detail-header {
  margin-bottom: 32px;
}

.blog-detail-date {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-detail-header h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 0;
}

.blog-detail-image {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  aspect-ratio: 16/9;
  background: var(--color-bg-alt);
}

.blog-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-detail-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text-muted);
}

.blog-detail-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin: 36px 0 16px;
}

.blog-detail-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin: 28px 0 12px;
}

.blog-detail-body p {
  margin-bottom: 20px;
}

.blog-detail-body ul {
  margin-bottom: 20px;
  padding-left: 24px;
}

.blog-detail-body ul li {
  margin-bottom: 8px;
}

.blog-inline-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 24px auto;
}

.blog-detail-body p:has(.blog-inline-image) {
  text-align: center;
  margin-bottom: 24px;
}

.blog-detail-share {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 16px;
}

.blog-detail-share span {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.blog-detail-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-text-light);
  transition: all var(--transition);
}

.blog-detail-share a:hover {
  background: var(--color-primary);
  color: #fff;
}

@media (max-width: 768px) {
  .blog-detail { padding: 40px 0; }
  .blog-detail-header h1 { font-size: 24px; }
  .blog-detail-body { font-size: 15px; }
}

@media print {
  .header, .whatsapp-float, .footer { display: none; }
}

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