/* =============================================
   CMJRacks.com v2 - Suzhou Chuangmeijia Metal Products
   High-end Custom Rack & Shelf Manufacturer
   ============================================= */

:root {
  --primary: #1a3a5c;
  --primary-dark: #0f1b2d;
  --primary-light: #2c5f8a;
  --accent: #c9a84c;
  --accent-hover: #b8942e;
  --text-dark: #1a1a2e;
  --text-body: #4a4a5a;
  --text-light: #7a7a8a;
  --bg-light: #f8f9fc;
  --bg-white: #ffffff;
  --bg-dark: #0f1b2d;
  --border: #e5e7eb;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gradient: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  --gradient-accent: var(--accent);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-primary);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* Language Switcher (collapsible) */
.lang-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
}
.lang-current:hover { background: #f0f0f0; }
.lang-caret {
  font-size: 0.7rem;
  color: var(--accent);
  transition: transform 0.25s ease;
}
.lang-switcher.open .lang-caret { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 120px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-dropdown a {
  display: block;
  padding: 7px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  color: var(--text-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  text-align: left;
}
.lang-dropdown a:hover { background: var(--primary); color: #fff; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 { position: relative; display: inline-block; }
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title p {
  margin-top: 1.5rem;
  color: var(--text-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201,168,76,0.3);
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-white {
  background: #fff;
  color: var(--primary-dark);
}
.btn-white:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 15px 0;
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  padding: 10px 0;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo img { height: 42px; width: auto; }
.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  transition: var(--transition);
}
.logo-text span { color: var(--accent); }
.header.scrolled .logo-text { color: var(--text-dark); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}
.nav .nav-sub-link::before {
  content: '↗';
  font-size: 0.6rem;
  margin-right: 2px;
  display: inline-block;
  opacity: 0.5;
  vertical-align: super;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.nav a:hover::after { width: 100%; }
.nav a:hover { color: var(--accent); }
.header.scrolled .nav a { color: var(--text-body); }
.header.scrolled .nav a:hover { color: var(--accent); }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}
.header.scrolled .mobile-toggle span { background: var(--text-dark); }

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,27,45,0.65) 0%, rgba(44,95,138,0.4) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 120px 20px 80px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 500;
}
.hero-content h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-content h1 span { color: var(--accent); }
.hero-content p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 650px;
  margin-bottom: 32px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-metrics {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
}
.hero-metric { text-align: center; }
.hero-metric .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}
.hero-metric .lbl {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Section Generic */
.section {
  padding: 90px 0;
}
.section-alt { background: var(--bg-light); }
.section-dark {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.8);
}
.section-dark h2,
.section-dark h3 { color: #fff; }
.section-dark .section-title p { color: rgba(255,255,255,0.6); }

/* Fade-in animations
   Default state is VISIBLE so the page is always readable even if JS
   runs late / fails (critical on mobile where the first screen must
   appear immediately). The `.anim-ready` class on <html> (added by JS)
   turns on the hidden start + transition for a smooth reveal. */
.fade-in {
  opacity: 1;
  transform: none;
}
html.anim-ready .fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.anim-ready .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.about-image-grid .main-img {
  grid-column: 1 / -1;
  border-radius: var(--radius-lg);
  height: 300px;
  object-fit: cover;
  width: 100%;
}
.about-image-grid .sub-img {
  border-radius: var(--radius);
  height: 170px;
  object-fit: cover;
  width: 100%;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.stat-card {
  background: var(--bg-light);
  padding: 16px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
}
.stat-card .number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-card .label {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 40px;
  max-width: 900px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--primary-light));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 30px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--accent);
}
.timeline-year {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.timeline-item h3 { margin-bottom: 4px; }
.timeline-item p { font-size: 0.92rem; color: var(--text-light); }

/* Factory Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,27,45,0.5);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay span {
  color: #fff;
  font-size: 2rem;
}

/* Certifications */
.cert-section {
  background: #fff;
  padding: 70px 0;
  position: relative;
}
.cert-section h2 { color: var(--primary-dark); text-align: center; margin-bottom: 10px; }
.cert-section .section-title p { color: var(--text-light); margin-bottom: 40px; }

.cert-carousel {
  position: relative;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 52px;
}
.cert-track-wrap {
  overflow: hidden;
  padding: 10px 4px;
}
.cert-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 2px;
}
.cert-track::-webkit-scrollbar { display: none; }
.cert-track.paused {
  animation-play-state: paused;
}
.cert-item {
  flex: 0 0 auto;
  width: 230px;
  background: var(--bg-light);
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}
.cert-item:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.cert-item img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  display: block;
  background: #f7f7f7;
  padding: 14px;
}
.cert-item span {
  display: block;
  padding: 10px 12px;
  font-size: 0.8rem;
  color: var(--text);
  background: #fff;
  border-top: 1px solid #eee;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cert-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  color: var(--accent);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  z-index: 5;
}
.cert-nav:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cert-nav span { padding: 0; margin: 0 0 3px; font-size: inherit; color: inherit; background: transparent; border: 0; font-weight: normal; }
.cert-prev { left: 0; }
.cert-next { right: 0; }
@media (max-width: 700px) {
  .cert-carousel { padding: 0 40px; }
  .cert-item { width: 190px; }
  .cert-item img { height: 210px; }
}
.cert-hint {
  text-align: center;
  color: var(--text-light);
  font-size: 0.8rem;
  margin-top: 28px;
  opacity: 0.6;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  justify-content: center;
  align-items: center;
  padding: 40px;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  background: #fff;
  padding: 8px;
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
  z-index: 10000;
  background: none;
  border: none;
}
.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-card .image {
  height: 220px;
  overflow: hidden;
  background: var(--bg-light);
}
.product-card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .image img { transform: scale(1.08); }
.product-card .body { padding: 20px; }
.product-card .body h3 { font-size: 1.05rem; }
.product-card .body p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 12px;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-tags span {
  background: var(--bg-light);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-light);
  border: 1px solid var(--border);
}

/* Product Categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.category-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: default;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.category-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--primary);
}
.category-card .icon svg {
  width: 30px;
  height: 30px;
}
.category-card:hover .icon {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.category-card h3 { font-size: 1.1rem; }
.category-card p { font-size: 0.85rem; color: var(--text-light); }

/* Features / Advantages */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-white);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-card .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(201,168,76,0.10);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-card .icon svg {
  width: 26px;
  height: 26px;
}
.feature-card:hover .icon {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.feature-card h3 { font-size: 1.05rem; }
.feature-card p {
  font-size: 0.88rem;
  color: var(--text-light);
}

/* Innovation Section */
.innovation-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  transition: var(--transition);
}
.innovation-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-lg);
}
.innovation-card .num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.innovation-card h3 { font-size: 1.1rem; }
.innovation-card p { font-size: 0.88rem; color: var(--text-light); }

/* Cases */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}
.case-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.case-card .image {
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.case-card .body { padding: 24px; }
.case-card .tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-light);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 10px;
}
.case-card .body h3 { font-size: 1.05rem; }
.case-card .body p { font-size: 0.88rem; color: var(--text-light); }

/* Founder Section */
.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 900px) {
  .founder-grid { grid-template-columns: 1fr; }
}
.founder-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  max-height: 780px;
}
.founder-image img {
  width: 100%;
  height: auto;          /* let portrait show full height, no crop */
  object-fit: contain;
}
.founder-info h3 { font-size: 1.5rem; }
.founder-info .title {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.founder-info ul { margin: 16px 0; }
.founder-info ul li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.92rem;
}
.founder-info ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent);
}


/* Partners / Clients */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}
.partner-item {
  padding: 16px 24px;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  min-width: 120px;
}
.partner-item strong { display: block; font-size: 0.9rem; }
.partner-item span { font-size: 0.75rem; color: var(--text-light); }

/* CTA Banner */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%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");
}
.cta-banner h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.cta-banner p { color: rgba(255,255,255,0.7); margin-bottom: 28px; font-size: 1.05rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info h3 { margin-bottom: 20px; }
.info-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.info-item:last-child { border-bottom: none; }
.info-item .icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--primary);
  margin-top: 2px;
}
.info-item .icon svg {
  width: 20px;
  height: 20px;
}
.info-item .text strong { display: block; font-size: 0.85rem; margin-bottom: 2px; }
.info-item .text { font-size: 0.88rem; color: var(--text-light); }
.info-item .text a { color: var(--primary-light); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-primary);
  font-size: 0.92rem;
  transition: var(--transition);
  background: var(--bg-white);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.success-message {
  text-align: center;
  padding: 40px;
}
.success-message h3 { color: var(--accent); }

/* Footer */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer p { font-size: 0.85rem; line-height: 1.6; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.footer ul li a:hover { color: var(--accent); }
.footer img { height: 36px; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: var(--accent); }

/* Price Highlight */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.price-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border);
}
.price-item .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}
.price-item p { font-size: 0.82rem; color: var(--text-light); margin-top: 4px; }

/* Statistics / Numbers Section */
.stats-banner {
  background: var(--accent);
  padding: 60px 0;
}
.stats-banner .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  text-align: center;
}
.stats-banner .stat-item .num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  display: block;
}
.stats-banner .stat-item .lbl {
  font-size: 0.88rem;
  color: rgba(15,27,45,0.7);
  font-weight: 500;
}

/* Image Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
}
.lightbox .close:hover { opacity: 1; }
.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition);
  padding: 20px;
}
.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }
.lightbox .prev:hover,
.lightbox .next:hover { opacity: 1; }

/* Responsive */
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 998;
    gap: 16px;
  }
  .nav.open a { color: var(--text-body); }
  .mobile-toggle { display: flex; }
  .hero-metrics { gap: 20px; }
  .hero-metric { min-width: 100px; }
  .hero-metric .num { font-size: 1.5rem; }
}

/* ============================================================
   Mobile Responsive Enhancements (v2)
   Applies to ALL pages/languages via shared style.css.
   Overrides the older @media(max-width:768px) block above.
   ============================================================ */
@media (max-width: 900px) {
  .container, .container-wide { padding: 0 16px; }
  .section { padding: 60px 0; }
}

/* Language switcher on small screens: shrink + keep clear of the
   hamburger button instead of covering it. */
@media (max-width: 768px) {
  .lang-switcher {
    top: 6px;
    right: 62px;          /* clear of the hamburger on the far right */
    transform: scale(0.86);
    transform-origin: top right;
    z-index: 1002;        /* above the mobile nav panel so the dropdown is tappable */
  }
  .mobile-toggle {
    position: relative;
    z-index: 1001;        /* above lang-switcher so it is always tappable */
    padding: 8px 12px;    /* bigger tap target */
  }
  .nav.open {
    top: 66px;            /* start below header so it doesn't cover the lang switch */
    padding: 24px 20px;
    gap: 6px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .nav.open a {
    color: var(--text-body);
    font-size: 1rem;
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
    display: block;
  }
  .nav.open a:last-child { border-bottom: none; }
}

/* Hero first screen on mobile */
@media (max-width: 768px) {
  .hero { min-height: 92vh; }
  .hero-content { padding: 110px 20px 60px; }
  .hero-content p { font-size: 0.98rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-metrics { gap: 14px; justify-content: space-between; width: 100%; }
  .hero-metric { min-width: 0; flex: 1; }
  .hero-metric .num { font-size: 1.35rem; }
  .hero-metric .lbl { font-size: 0.72rem; letter-spacing: 0.2px; }
}

/* Typography scale on small screens */
@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.15rem; }
  .btn { padding: 12px 20px; font-size: 0.9rem; }
  .logo-text { font-size: 1.15rem; }
  .logo img { height: 34px; }
}

/* Fade-in fallback on touch: never let content stay invisible */
@media (hover: none) {
  html.anim-ready .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
  html.anim-ready .fade-in.visible { opacity: 1 !important; }
}

/* ============================================================
   Mobile polish (v2.1): readability, spacing, touch targets
   ============================================================ */
@media (max-width: 480px) {
  body { font-size: 15px; line-height: 1.65; }
  p, li { font-size: 0.95rem; }
  .section-title p { font-size: 0.95rem; }

  /* 2x2 stat cards: more breathing room */
  .about-stats { gap: 14px; }
  .stat-card { padding: 18px 10px; }
  .stat-card .number { font-size: 1.45rem; }
  .stat-card .label { font-size: 0.82rem; }

  /* Product / category / feature / case cards */
  .product-card .body h3 { font-size: 1.05rem; }
  .product-card .body p, .feature-card p, .case-card .body p, .category-card p {
    font-size: 0.92rem;
  }
}

/* Cert carousel: show ONE certificate per view on phones */
@media (max-width: 600px) {
  .cert-carousel { padding: 0 8px; }
  .cert-track { gap: 12px; }
  .cert-item { width: calc(100vw - 40px); }
  .cert-item img { height: 240px; }
  .cert-nav { width: 38px; height: 38px; font-size: 1.5rem; }
  .cert-prev { left: 0; }
  .cert-next { right: 0; }
}

/* ============================================================
   Floating contact buttons (WhatsApp + Email) — injected site-wide
   ============================================================ */
#cmj-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.cmj-fab {
  display: flex;
  align-items: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  transition: transform .22s ease, box-shadow .22s ease;
  overflow: hidden;
  background: transparent; /* per-button color set inline below */
  padding: 0;
  height: 56px;
}
.cmj-fab:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 26px rgba(0,0,0,.30); }
.cmj-fab .cmj-fab-ic {
  width: 56px; height: 56px;
  flex: 0 0 56px;
  display: flex; align-items: center; justify-content: center;
}
.cmj-fab .cmj-fab-ic svg { width: 28px; height: 28px; }
.cmj-fab .cmj-fab-lbl {
  max-width: 0;
  white-space: nowrap;
  overflow: hidden;
  font: 600 15px/1 var(--font-primary, inherit);
  color: #fff;
  transition: max-width .28s ease, padding .28s ease;
  letter-spacing: .2px;
}
.cmj-fab:hover .cmj-fab-lbl { max-width: 220px; padding-right: 20px; }
.cmj-fab:focus-visible { outline: 3px solid var(--accent, #c9a84c); outline-offset: 2px; }

/* idle attention nudge (only briefly, respects reduced-motion) */
@keyframes cmj-nudge {
  0%, 84%, 100% { transform: scale(1); }
  88% { transform: scale(1.06); }
  92% { transform: scale(.99); }
  96% { transform: scale(1.03); }
}
.cmj-fab { animation: cmj-nudge 6s ease-in-out 2.5s 3; }
@media (prefers-reduced-motion: reduce) { .cmj-fab { animation: none !important; } }
.cmj-fab, .cmj-fab * { -webkit-tap-highlight-color: transparent; }

/* Mobile: show labels off, keep two round buttons stacked bottom-right */
@media (max-width: 600px) {
  #cmj-float { right: 14px; bottom: 14px; gap: 12px; }
  .cmj-fab { height: 54px; }
  .cmj-fab .cmj-fab-ic { width: 54px; flex-basis: 54px; }
  .cmj-fab .cmj-fab-ic svg { width: 27px; height: 27px; }
  .cmj-fab .cmj-fab-lbl { display: none; }
}
